:root {
  --bg-base: #050807;
  --bg-surface: #0a0f0d;
  --text-main: #F3F4F6;
  --text-muted: #8B9A94;
  --accent-mint: #00FF9D;
  --accent-glow: rgba(0, 255, 157, 0.2);

  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.22);
  --blur-heavy: blur(40px);
  --blur-medium: blur(20px);

  --radii-sm: 8px;
  --radii-md: 16px;
  --radii-lg: 24px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --demo-cycle: 3.8s;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; color: var(--text-main); }
a { color: var(--text-main); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-mint); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 10; }

/* Liquid Chrome Canvas */
#chromeCanvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  mix-blend-mode: normal;
  opacity: 0.92;
}

#chromeLinksLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
  opacity: 0.95;
}

/* Glassmorphism */
.glass-panel {
  background: #111a14;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.glass-card {
  background: linear-gradient(160deg, #1a2720 0%, #121b16 100%);
  border: 1px solid rgba(255,255,255,0.15);
  border-top-color: rgba(255,255,255,0.25);
  border-radius: var(--radii-md);
  padding: 32px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
}

.glass-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 255, 157, 0.35);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(0,255,157,0.08);
  background: linear-gradient(160deg, #1f2f26 0%, #151f18 100%);
}

.glass-card:hover .feature-icon svg,
.glass-card:hover .benefit-icon svg {
  animation: iconPulse 0.5s ease-out;
}

@keyframes iconPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); filter: drop-shadow(0 0 12px var(--accent-mint)); }
  100% { transform: scale(1); }
}

.feature-icon svg, .benefit-icon svg {
  stroke: var(--accent-mint);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.glow-icon { margin-bottom: 20px; display: inline-block; }

.glow-text {
  background: linear-gradient(180deg, #FFFFFF 0%, #A1A1AA 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-text { color: var(--accent-mint); text-shadow: 0 0 40px var(--accent-glow); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: var(--radii-sm);
  font-weight: 500; font-size: 0.95rem;
  transition: all 0.3s ease; cursor: pointer; border: 1px solid transparent;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--text-main); color: var(--bg-base);
  box-shadow: 0 4px 14px rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--accent-mint);
  box-shadow: 0 0 24px var(--accent-glow);
}

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; padding-bottom: 24px; }
.logo-group { display: flex; align-items: center; gap: 16px; }

.logo-wave { width: 56px; height: 56px; overflow: hidden; position: relative; }
.continuous-wave { animation: waveFlow 4s linear infinite; }
.delay-wave { animation-duration: 6s; animation-delay: -2s; }

@keyframes waveFlow {
  from { transform: translateX(0); }
  to { transform: translateX(-100px); }
}

.logo-wave:hover .continuous-wave path {
  stroke-width: 8;
  filter: drop-shadow(0 0 8px rgba(0,255,157,0.8));
}

.logo-cursor {
  display: inline-block; color: var(--accent-mint);
  font-weight: 400; font-family: var(--font-mono);
  animation: blink 1s step-end infinite;
  margin-left: 2px; text-shadow: 0 0 8px rgba(0,255,157,0.5);
}

.logo-text { font-weight: 700; font-size: 1.6rem; letter-spacing: -0.05em; font-family: var(--font-mono); }
.logo-highlight { color: var(--accent-mint); text-shadow: 0 0 10px var(--accent-glow); }
.nav-links { display: flex; gap: 32px; font-size: 0.95rem; color: var(--text-muted); font-weight: 500; align-items: center; }

.lang-switch { display: flex; gap: 12px; align-items: center; }
.lang-link { font-size: 0.85rem; color: var(--text-muted); transition: color 0.2s; }
.lang-link.active { color: var(--accent-mint); font-weight: 600; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: 80px 24px; min-height: 85vh;
}

.hero-content { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.hero-title { font-size: 4.2rem; line-height: 1.05; letter-spacing: -0.04em; }
.hero-subtitle { font-size: 1.15rem; color: var(--text-muted); max-width: 480px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Mockup Window */
.hero-visual { position: relative; perspective: 1200px; width: 100%; min-width: 0; display: flex; justify-content: center; align-items: center; }

.mockup-window {
  width: min(100%, 620px); border-radius: var(--radii-lg); overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-window:hover { transform: rotateY(0) rotateX(0); }

.window-header { display: flex; align-items: center; padding: 16px 20px; background: rgba(0,0,0,0.25); border-bottom: 1px solid var(--glass-border); }
.window-controls { display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--text-muted); opacity: 0.3; }
.window-title { flex: 1; text-align: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }

.window-body { padding: 32px; position: relative; font-family: var(--font-sans); font-size: 1.05rem; line-height: 1.6; color: var(--text-main); min-height: 220px; }

/* Typing Animation */
.typed-text { margin-bottom: 8px; color: var(--text-muted); }
.typing-line {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  white-space: nowrap;
  position: relative;
}

.dynamic-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  clip-path: inset(0 100% 0 0);
  animation: typingReveal var(--demo-cycle) steps(15, end) infinite;
  font-variant-ligatures: none;
  margin-right: 0;
}

@keyframes typingReveal {
  0%, 20% { clip-path: inset(0 100% 0 0); opacity: 1; }
  45%, 80% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 100% 0 0); opacity: 1; }
}

.cursor {
  display: inline-block; width: 2px; height: 1.2em; background: var(--accent-mint);
  margin-left: 0; margin-right: -1px; animation: blink 1s step-end infinite;
  box-shadow: 0 0 8px var(--accent-mint);
}

@keyframes blink { 50% { opacity: 0; } }

.autocomplete-suggestion {
  display: inline-block;
  color: var(--text-muted); opacity: 0; margin-left: 8px; padding-left: 0; letter-spacing: 0;
  animation: revealSuggestion var(--demo-cycle) infinite;
  text-shadow: 0 0 10px rgba(255,255,255,0.1);
  white-space: nowrap;
}

@keyframes revealSuggestion {
  0%, 45% { opacity: 0; }
  50%, 80% { opacity: 0.62; }
  100% { opacity: 0; }
}

.floating-tooltip {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border); padding: 8px 16px;
  border-radius: var(--radii-sm); display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.8rem; color: var(--text-main);
  backdrop-filter: var(--blur-medium);
  opacity: 0; animation: tooltipFade var(--demo-cycle) infinite;
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  z-index: 100; white-space: nowrap;
}

@keyframes tooltipFade {
  0%, 48% { opacity: 0; transform: translateX(-50%) translateY(20px); }
  52%, 80% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(-10px); }
}

.floating-tooltip kbd {
  background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px;
  font-family: var(--font-mono); font-weight: 600; border: 1px solid var(--glass-border);
  color: var(--accent-mint);
}

/* Sections */
section { padding: 80px 24px; position: relative; z-index: 10; }
.benefits { padding-top: 20px; }
.section-title { font-size: 2.6rem; margin-bottom: 56px; text-align: center; letter-spacing: -0.03em; }

/* Benefits */
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

.benefit-item { position: relative; }
.benefit-item .benefit-icon { margin-bottom: 16px; }
.benefit-item h3 { font-size: 1.15rem; margin-bottom: 10px; }
.benefit-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.step-card { position: relative; padding-top: 48px; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.65; }
.step-number {
  font-family: var(--font-mono); font-size: 3.5rem; font-weight: 700;
  position: absolute; top: 12px; left: 24px; z-index: -1; opacity: 0.06; user-select: none;
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.65; }

/* Use Cases */
.use-cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.use-case-card { text-align: center; }
.use-case-icon {
  margin-bottom: 20px;
  display: flex; justify-content: center;
}
.use-case-icon svg {
  stroke: var(--accent-mint);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}
.use-case-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.use-case-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; padding: 40px; }
.faq-item { border-bottom: 1px solid var(--glass-border); }
.faq-item:last-child { border-bottom: none; }
.faq-item details { width: 100%; }
.faq-item summary {
  padding: 24px 0; font-size: 1.05rem; font-weight: 500; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-family: var(--font-mono); color: var(--accent-mint);
  font-size: 1.5rem; transition: transform 0.3s;
}
.faq-item details[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding-bottom: 24px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 80px 24px 120px;
}

.cta-title {
  font-size: 2.8rem; margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta-subtitle {
  color: var(--text-muted); font-size: 1.1rem;
  max-width: 520px; margin: 0 auto 32px; line-height: 1.6;
}

/* Footer */
.site-footer { border-top: 1px solid var(--glass-border); padding: 40px 24px; margin-top: 0; }
.footer-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.footer-meta-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 14px 16px;
}
.footer-meta-card h4 {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}
.footer-meta-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}
.footer-meta-card a {
  color: var(--accent-mint);
}
.footer-bottom { display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 32px; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.35s ease;
}

.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal-content {
  width: 90%; max-width: 520px;
  background: linear-gradient(165deg, rgba(18, 24, 20, 0.97) 0%, rgba(8, 12, 10, 0.99) 100%);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radii-lg);
  padding: 40px;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  color: var(--text-muted);
}

.modal-close:hover {
  background: rgba(255,255,255,0.1);
  color: var(--text-main);
}

.modal-header { margin-bottom: 24px; }
.modal-header h2 { font-size: 1.5rem; margin-bottom: 6px; letter-spacing: -0.02em; }
.modal-header p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.5; }

.waitlist-form { display: flex; flex-direction: column; gap: 20px; }

.form-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

.form-row > * { min-width: 0; }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.form-group .required { color: var(--accent-mint); }

.form-group input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radii-sm);
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input::placeholder { color: rgba(255,255,255,0.2); }
.form-group input:focus {
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 3px rgba(0, 255, 157, 0.08);
}

/* Chip Select */
.chip-group {
  display: flex; flex-wrap: wrap; gap: 8px;
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-muted);
  font-family: var(--font-sans); font-size: 0.82rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: var(--text-main);
}

.chip.active {
  background: rgba(0, 255, 157, 0.1);
  border-color: rgba(0, 255, 157, 0.35);
  color: var(--accent-mint);
}

.chip.active svg { stroke: var(--accent-mint); }

.btn-submit {
  margin-top: 4px;
  width: 100%;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 600;
}

.modal-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Success State */
.success-state {
  text-align: center;
  padding: 32px 0;
}

.success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0, 255, 157, 0.1);
  border: 1px solid rgba(0, 255, 157, 0.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}

.success-state h3 {
  color: var(--accent-mint); font-size: 1.3rem;
  margin-bottom: 8px;
}

.success-state p {
  color: var(--text-muted); font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 60px; min-height: auto; }
  .hero-content { align-items: center; }
  .hero-subtitle { margin: 0 auto; }
  .hero-title { font-size: 3.2rem; }
  .hero-actions { justify-content: center; }
  .mockup-window { transform: none; max-width: 600px; margin: 0 auto; }
  .floating-tooltip { left: 50%; transform: translateX(-50%); bottom: 12px; }

  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .use-cases-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-title { font-size: 2.6rem; }
  .section-title { font-size: 2rem; }
  .cta-title { font-size: 2rem; }

  .benefits-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .use-cases-grid { grid-template-columns: 1fr 1fr; }

  .autocomplete-suggestion { position: static; display: inline; }
  .floating-tooltip { position: relative; left: 0; transform: none; margin-top: 24px; width: fit-content; }
  @keyframes tooltipFade { 0%, 50% { opacity: 0; } 60%, 100% { opacity: 1; } }

  .form-row { grid-template-columns: 1fr; }
  .modal-content { padding: 28px; }

  .nav-links { gap: 16px; font-size: 0.85rem; }
  .footer-meta { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2.2rem; }
  .use-cases-grid { grid-template-columns: 1fr; }
  .navbar { flex-direction: column; gap: 16px; }
}
