/* ZENKORO - Common Styles */
* { box-sizing: border-box; margin: 0; }

:root {
  --green: #00ff88;
  --yellow: #ffd95e;
  --red: #ff7f63;
  --dark: #1a1a1a;
  --darker: #101010;
  --border: rgba(255,255,255,.1);
  --border-active: rgba(0,255,136,.3);
  --muted: #999;
  --warning: #ffc107;
  --shadow: rgba(0,255,136,.2);
  --ease: cubic-bezier(.25,.46,.45,.94);
  --ease-bounce: cubic-bezier(0.68,-0.55,0.265,1.55);
}

/* Base */
body {
  font: 16px/1.6 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--darker), #1e1e1e 50%, var(--darker));
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--yellow), var(--red));
  transform: translateX(-100%);
  animation: loading-bar 2s ease-out;
  z-index: 10000;
}

html { scroll-behavior: smooth; }

/* Container */
.container {
  width: min(1200px, 100% - 2rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 0;
}

/* Enhanced Background Effects */
.background-wrapper {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Enhanced Orbs with more presence */
.orb {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(0,255,136,.25) 0%, 
    rgba(0,255,136,.15) 30%, 
    rgba(0,255,136,.08) 60%, 
    transparent 70%);
  filter: blur(1px);
  mix-blend-mode: screen;
  animation: float-orb 6s ease-in-out infinite;
}

/* Add inner glow to orbs */
.orb::before {
  content: '';
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, 
    rgba(0,255,136,.4) 0%, 
    transparent 50%);
  filter: blur(8px);
  animation: pulse-glow 3s ease-in-out infinite;
}

.orb:nth-child(1) { 
  width: 400px; 
  height: 400px; 
  top: 10%; 
  left: -10%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(255,215,94,.25) 0%, 
    rgba(255,215,94,.15) 30%, 
    rgba(255,215,94,.08) 60%, 
    transparent 70%);
  animation-delay: 0s;
}

.orb:nth-child(1)::before {
  background: radial-gradient(circle at 40% 40%, 
    rgba(255,215,94,.5) 0%, 
    transparent 50%);
}

.orb:nth-child(2) { 
  width: 300px; 
  height: 300px; 
  top: 60%; 
  right: -5%; 
  animation-delay: 2s;
  background: radial-gradient(circle at 30% 30%, 
    rgba(255,127,99,.25) 0%, 
    rgba(255,127,99,.15) 30%, 
    rgba(255,127,99,.08) 60%, 
    transparent 70%);
}

.orb:nth-child(2)::before {
  background: radial-gradient(circle at 40% 40%, 
    rgba(255,127,99,.5) 0%, 
    transparent 50%);
}

.orb:nth-child(3) { 
  width: 250px; 
  height: 250px; 
  bottom: 20%; 
  left: 20%; 
  animation-delay: 4s;
}

/* Additional ambient orbs */
.background-wrapper::after,
.background-wrapper::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  mix-blend-mode: screen;
}

.background-wrapper::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle at 40% 40%, 
    rgba(255,127,99,.2) 0%, 
    rgba(255,127,99,.1) 40%, 
    transparent 60%);
  top: 30%;
  right: 10%;
  animation: float-orb 8s ease-in-out infinite;
  animation-delay: 3s;
}

.background-wrapper::before {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle at 40% 40%, 
    rgba(255,215,94,.2) 0%, 
    rgba(255,215,94,.1) 40%, 
    transparent 65%);
  bottom: 10%;
  left: 15%;
  animation: float-orb 8s ease-in-out infinite reverse;
  animation-delay: 1s;
}

/* Enhanced grid with subtle glow */
.grid-overlay {
  position: absolute;
  top: -50px;
  left: -50px;
  right: -50px;
  bottom: -50px;
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  background: 
    linear-gradient(rgba(0,255,136,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,136,.05) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: grid-move 20s linear infinite;
  filter: contrast(1.1);
}

/* Add grid intersection glow points */
.grid-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(0,255,136,.1) 0%, transparent 2%),
    radial-gradient(circle at 75% 25%, rgba(255,215,94,.1) 0%, transparent 2%),
    radial-gradient(circle at 25% 75%, rgba(255,127,99,.1) 0%, transparent 2%),
    radial-gradient(circle at 75% 75%, rgba(0,255,136,.1) 0%, transparent 2%);
  background-size: 100px 100px;
  animation: grid-move 20s linear infinite reverse;
}

.grid-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Typography */
h1 {
  font: 700 clamp(2.5rem, 8vw, 4.5rem)/1 'graphie', 'Inter', sans-serif;
  letter-spacing: .05em;
  margin: 0 0 .75rem;
  display: inline-block;
  position: relative;
  transition: filter 0.4s ease, transform 0.3s ease;
}

.gradient-text {
  background: linear-gradient(135deg, var(--yellow), var(--red), var(--green), var(--yellow));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  /* animation: gradient-shift 4s ease-in-out infinite; */
}

/* Softer, multi-layered glow effect for h1 hover */
h1:hover { 
  filter: 
    drop-shadow(0 0 3px rgba(255,215,94,0.8))     /* Inner yellow glow */
    drop-shadow(0 0 8px rgba(0,255,136,0.6))      /* Mid green glow */
    drop-shadow(0 0 20px rgba(0,255,136,0.4))     /* Outer green glow */
    drop-shadow(0 0 40px rgba(0,255,136,0.2))     /* Far outer soft glow */
    drop-shadow(0 0 60px rgba(255,127,99,0.15));  /* Subtle red accent */
  transform: scale(1.02);
}

/* Header */
header {
  margin-bottom: 3rem;
  position: relative;
  animation: fade-up 0.8s var(--ease) both;
}

.header-accent {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, var(--yellow), var(--green));
  margin: 2rem auto;
  opacity: 0.8;
}

/* Buttons */
.button-container {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.button {
  --bg: linear-gradient(135deg, #ffb84d, #ff9933);
  --color: #1a1a1a;
  padding: 0 2.5rem;
  font: 600 1.0625rem/1 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: 2px solid transparent;
  background: var(--bg);
  color: var(--color);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-width: 220px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s var(--ease);
  transform-style: preserve-3d;
}

.button-ghost {
  --bg: rgba(30, 30, 30, 0.8);
  --color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.button:not(:hover) { transform: scale(1); }

.button::before {
  content: '';
  position: absolute;
  inset: -2px 100% -2px -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transition: transform 0.5s;
}

.button:hover::before { transform: translateX(200%); }

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,152,77,.3);
  filter: brightness(1.05);
}

.button-ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.4);
  box-shadow: 0 8px 25px rgba(255,255,255,.15);
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,.3) 0%, transparent 70%);
  transform: scale(0);
  opacity: 0;
  transition: all 0.5s;
}

.button:active::after {
  transform: scale(1);
  opacity: 1;
  transition: 0s;
}

.button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.button-text,
.button-loading {
  transition: all 0.3s ease;
}

.hidden { display: none !important; }

.spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* Button SVG styles */
.button svg {
  flex-shrink: 0;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 3rem auto;
  max-width: 1000px;
  animation: fade-up 0.8s 0.2s var(--ease) both;
}

.feature-card {
  background: linear-gradient(135deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all 0.4s var(--ease);
  cursor: pointer;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,.1) 50%, transparent 70%);
  transform: rotate(45deg) translateX(-100%);
  transition: transform 0.6s;
}

.feature-card:hover::before { transform: rotate(45deg) translateX(100%); }

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1rem;
  animation: icon-float 3s ease-in-out infinite;
  filter: drop-shadow(0 5px 15px rgba(0,255,136,.3));
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotateY(180deg);
  filter: drop-shadow(0 8px 25px rgba(0,255,136,.5));
}

.feature-card h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .5rem;
  background: linear-gradient(135deg, #fff, #ccc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feature-card p {
  font-size: .875rem;
  opacity: .9;
  color: rgba(255,255,255,.8);
}

.counter {
  color: var(--green);
  font-weight: 700;
  display: inline-block;
  min-width: 3ch;
}

/* Enhanced Particles */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.6;
  animation: float-up 10s linear infinite;
  pointer-events: none;
  box-shadow: 
    0 0 6px rgba(0,255,136,.8),
    0 0 12px rgba(0,255,136,.4);
}

.particle:nth-child(odd) {
  width: 4px;
  height: 4px;
  opacity: 0.8;
  animation-duration: 8s;
  background: var(--yellow);
  box-shadow: 
    0 0 8px rgba(255,215,94,.8),
    0 0 16px rgba(255,215,94,.4);
}

.particle:nth-child(even) {
  animation-duration: 12s;
  background: var(--red);
  box-shadow: 
    0 0 6px rgba(255,127,99,.8),
    0 0 12px rgba(255,127,99,.4);
}

/* Add more particles for enhanced effect */
.particle:nth-child(5) { left: 10%; animation-delay: 0s; }
.particle:nth-child(6) { left: 30%; animation-delay: 2s; }
.particle:nth-child(7) { left: 50%; animation-delay: 4s; }
.particle:nth-child(8) { left: 70%; animation-delay: 6s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }


/* Toast */
.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--dark), #2d2d2d);
  border: 2px solid var(--green);
  color: #fff;
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 40px var(--shadow);
  z-index: 10000;
  max-width: 320px;
  animation: slide-in 0.4s var(--ease-bounce);
  backdrop-filter: blur(10px);
}

.toast.error {
  border-color: #ff6b6b;
  box-shadow: 0 10px 40px rgba(255,107,107,.3);
}

/* Footer */
footer {
  background: linear-gradient(to bottom, transparent, rgba(26,26,26,.4));
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 2rem 0;
  margin-top: 4rem;
  position: relative;
  animation: fade-in 1s 0.6s both;
}

/* Footer warning styles */
.text-warning {
  color: var(--warning);
  margin-bottom: .5rem;
}

.text-warning svg {
  vertical-align: -2px;
  margin-right: 4px;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-small { font-size: .875rem; }
.font-bold { font-weight: 700; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Typewriter animation - used across multiple pages */
.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typewriter 2s steps(40) 1s both;
}

@keyframes typewriter { 
  from { width: 0; } 
  to { width: 100%; } 
}

/* Success message specific styles for launch modal */
.success-message {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

/* Enhanced Animations */
@keyframes loading-bar { to { transform: translateX(100%); } }
@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Enhanced float animation with transform */
@keyframes float-orb {
  0%, 100% { 
    transform: translateY(0) translateX(0) rotate(0deg) scale(1); 
  }
  25% { 
    transform: translateY(-30px) translateX(10px) rotate(90deg) scale(1.05); 
  }
  50% { 
    transform: translateY(-15px) translateX(-5px) rotate(180deg) scale(0.98); 
  }
  75% { 
    transform: translateY(15px) translateX(-10px) rotate(270deg) scale(1.02); 
  }
}

/* Pulse glow for orb centers */
@keyframes pulse-glow {
  0%, 100% { 
    opacity: 0.8;
    transform: scale(1);
  }
  50% { 
    opacity: 1;
    transform: scale(1.2);
  }
}

@keyframes grid-move { to { transform: translate(50px, 50px); } }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes icon-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes slide-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Enhanced float-up with subtle glow pulse */
@keyframes float-up {
  from { 
    transform: translateY(100vh) scale(0); 
    opacity: 0;
  }
  10% { 
    transform: translateY(80vh) scale(1); 
    opacity: 0.6;
  }
  50% {
    opacity: 0.8;
  }
  90% { 
    transform: translateY(20vh) scale(1); 
    opacity: 0.6;
  }
  to { 
    transform: translateY(-100vh) scale(0.8); 
    opacity: 0;
  }
}

@keyframes slide-out { to { transform: translateX(120%); opacity: 0; } }

/* Responsive */
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; max-width: 400px; }
  .button-container { flex-direction: column; align-items: center; }
  .button { width: 100%; max-width: 280px; height: 52px; }
  
  /* Reduce orb sizes on mobile */
  .orb:nth-child(1) { width: 300px; height: 300px; }
  .orb:nth-child(2) { width: 200px; height: 200px; }
  .orb:nth-child(3) { width: 150px; height: 150px; }
  .background-wrapper::after { width: 350px; height: 350px; }
  .background-wrapper::before { width: 250px; height: 250px; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .toast { right: 10px; left: 10px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
