/* ============================================================
   Vocabsorb — Website Styles
   Dark theme · Brand gradient orange→pink→purple
   ============================================================ */

/* ── TOKENS ── */
:root {
  --bg:          #0d0d14;
  --bg-raised:   #13131e;
  --bg-surface:  #1a1a28;
  --bg-hover:    #20202f;
  --border:      rgba(255,255,255,0.08);
  --border-mid:  rgba(255,255,255,0.14);
  --text:        #edeef5;
  --text-muted:  #6b6d82;
  --text-dim:    #3d3e52;

  --brand-a: oklch(0.72 0.19 42);
  --brand-b: oklch(0.60 0.24 350);
  --brand-c: oklch(0.55 0.20 290);

  --der:  oklch(0.64 0.18 28);
  --die:  oklch(0.62 0.18 300);
  --das:  oklch(0.72 0.15 75);

  --radius:    14px;
  --radius-sm: 9px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { display: block; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.12); }
}

@keyframes pulseCTA {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50%       { opacity: 0.9; transform: translateX(-50%) scale(1.10); }
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes chipPop {
  0%   { opacity: 0; transform: scale(0.75) translateY(6px); }
  70%  { transform: scale(1.06) translateY(-1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes borderPulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.60 0.24 350 / 0); }
  50%       { box-shadow: 0 0 0 4px oklch(0.60 0.24 350 / 0.15); }
}

/* Scroll-reveal base state — JS adds .visible when element enters viewport */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger delays for grid children */
.stagger-1  { transition-delay: 0.05s; }
.stagger-2  { transition-delay: 0.12s; }
.stagger-3  { transition-delay: 0.19s; }
.stagger-4  { transition-delay: 0.26s; }
.stagger-5  { transition-delay: 0.33s; }
.stagger-6  { transition-delay: 0.40s; }


/* ── UTILITIES ── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(270deg, var(--brand-a), var(--brand-b), var(--brand-c), var(--brand-a));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease infinite;
}

.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 16px;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
  color: white;
  font-weight: 700;
  font-size: 15px;
  border-radius: 99px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px oklch(0.60 0.24 350 / 0.35);
}

.btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 28px oklch(0.60 0.24 350 / 0.50);
  transform: translateY(-1px);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 24px;
  background: transparent;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  border-radius: 99px;
  border: 1px solid var(--border-mid);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
  background: var(--bg-surface);
  color: var(--text);
  border-color: rgba(255,255,255,0.22);
}

.btn-nav {
  padding: 8px 20px;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b));
  color: white;
  font-weight: 700;
  font-size: 13px;
  border-radius: 99px;
  transition: filter 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 12px oklch(0.60 0.24 350 / 0.30);
}

.btn-nav:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 18px oklch(0.60 0.24 350 / 0.45);
}


/* ── NAV ── */
.nav { animation: slideDown 0.5s cubic-bezier(0.16, 1, 0.3, 1) both; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 20, 0.80);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  box-shadow: 0 2px 8px oklch(0.60 0.24 350 / 0.25);
}

.nav-name {
  font-size: 15px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--brand-a), var(--brand-b), var(--brand-c));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links a:not(.btn-nav):hover { color: var(--text); }


/* ── HERO ── */
.hero {
  position: relative;
  padding: 100px 0 80px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(
    ellipse at center,
    oklch(0.60 0.24 350 / 0.14) 0%,
    oklch(0.72 0.19 42 / 0.06) 45%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 99px;
  border: 1px solid oklch(0.60 0.24 350 / 0.35);
  background: linear-gradient(90deg,
    oklch(0.60 0.24 350 / 0.08) 0%,
    oklch(0.60 0.24 350 / 0.22) 50%,
    oklch(0.60 0.24 350 / 0.08) 100%
  );
  background-size: 200% auto;
  color: oklch(0.78 0.16 350);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  animation: shimmer 3s linear infinite, fadeIn 0.6s ease both;
}

.hero-title {
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 20px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-sub {
  max-width: 520px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 60px;
  animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.34s both;
}

/* Demo strip */
.demo-strip { animation: fadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.48s both; }

.demo-strip {
  background: var(--bg-raised);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  padding: 24px 32px 20px;
  max-width: 580px;
  width: 100%;
  text-align: left;
}

.demo-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.demo-sentence {
  font-size: 16px;
  line-height: 2;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Highlight chips */
.chip {
  display: inline-flex;
  align-items: baseline;
  padding: 1px 9px 2px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 0.92em;
  cursor: default;
  transition: filter 0.15s;
}

.chip:hover { filter: brightness(0.88); }

.chip-der  { background: oklch(0.64 0.18 28 / 0.14); color: oklch(0.75 0.18 28); }
.chip-die  { background: oklch(0.62 0.18 300 / 0.14); color: oklch(0.74 0.16 300); }
.chip-das  { background: oklch(0.72 0.15 75 / 0.18); color: oklch(0.80 0.14 75); }
.chip-none { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.65); }
.chip-lg   { font-size: 1em; padding: 3px 12px 4px; }

.demo-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.leg-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-der  { background: var(--der); }
.dot-die  { background: var(--die); }
.dot-das  { background: var(--das); }
.dot-none { background: rgba(255,255,255,0.30); }


/* ── SECTION BASE ── */
.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-raised);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section p {
  color: var(--text-muted);
  max-width: 600px;
}


/* ── HOW IT WORKS ── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 48px;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 200px;
}

.step-number {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 100%;
}

.step-arrow {
  flex-shrink: 0;
  font-size: 22px;
  color: var(--text-dim);
  padding: 28px 20px 0;
  align-self: flex-start;
}


/* ── FEATURES ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: oklch(0.60 0.24 350 / 0.40);
  background: var(--bg-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px -8px oklch(0.60 0.24 350 / 0.20);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: oklch(0.60 0.24 350 / 0.10);
  border: 1px solid oklch(0.60 0.24 350 / 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: oklch(0.75 0.18 350);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 100%;
}


/* ── TOOLTIP DEMO SECTION ── */
.tooltip-demo-inner {
  display: flex;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.tooltip-demo-text {
  flex: 1;
  min-width: 260px;
}

.tooltip-demo-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
  max-width: 440px;
}

.tooltip-preview {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Fake tooltip card */
.fake-tooltip {
  background: oklch(0.15 0.02 260 / 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
  border-top-width: 2px;
  border-radius: 10px;
  padding: 10px 15px 10px;
  min-width: 180px;
  color: white;
  box-shadow: 0 16px 40px -8px rgba(0,0,0,0.6);
}

.fake-tooltip--der { border-top-color: var(--der); }
.fake-tooltip--die { border-top-color: var(--die); }
.fake-tooltip--das { border-top-color: var(--das); }

.ftt-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ftt-pill {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 99px;
}

.ftt-der { background: oklch(0.64 0.18 28 / 0.20); color: oklch(0.80 0.18 28); border: 1px solid oklch(0.64 0.18 28 / 0.35); }
.ftt-die { background: oklch(0.62 0.18 300 / 0.20); color: oklch(0.78 0.16 300); border: 1px solid oklch(0.62 0.18 300 / 0.35); }
.ftt-das { background: oklch(0.72 0.15 75 / 0.22); color: oklch(0.88 0.15 75); border: 1px solid oklch(0.72 0.15 75 / 0.35); }

.ftt-gender {
  font-size: 9px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  font-family: 'SF Mono', monospace;
}

.ftt-german {
  display: block;
  font-family: 'Palatino Linotype', Palatino, Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  line-height: 1;
}

.ftt-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
  margin-bottom: 8px;
}

.ftt-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ftt-english {
  font-size: 13px;
  color: rgba(255,255,255,0.68);
}

.ftt-arrow {
  color: rgba(255,255,255,0.28);
  margin-right: 5px;
  font-size: 12px;
}

.ftt-speak {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: background 0.15s;
}

.ftt-speak:hover { background: rgba(255,255,255,0.20); }

/* Tooltip cycling fade */
.fake-tooltip,
.tooltip-target-word .chip {
  transition: opacity 0.35s ease, border-top-color 0.35s ease;
}

.fake-tooltip.tt-fade,
.tooltip-target-word .chip.tt-fade {
  opacity: 0;
}

.tooltip-caret {
  font-size: 11px;
  color: oklch(0.15 0.02 260 / 0.92);
  text-shadow: 0 2px 4px rgba(0,0,0,0.4);
  display: block;
  text-align: center;
  line-height: 1;
  margin-top: -1px;
}

.tooltip-target-word {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}


/* ── CTA SECTION ── */
.section-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    ellipse at center,
    oklch(0.55 0.20 290 / 0.14) 0%,
    oklch(0.60 0.24 350 / 0.06) 40%,
    transparent 70%
  );
  pointer-events: none;
  animation: pulseCTA 6s ease-in-out infinite;
}

.cta-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-logo {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 4px 20px oklch(0.60 0.24 350 / 0.30);
  margin-bottom: 20px;
  animation: float 4s ease-in-out infinite;
}

.cta-inner .section-title { margin-bottom: 10px; }

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 30px;
  max-width: 100%;
}

.cta-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-dim);
  max-width: 100%;
}


/* ── FOOTER ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  max-width: 100%;
}


/* ── CONTACT ── */
.contact-inner {
  display: flex;
  align-items: flex-start;
  gap: 72px;
  flex-wrap: wrap;
}

.contact-text {
  flex: 1;
  min-width: 240px;
}

.contact-text p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 360px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: oklch(0.75 0.18 350);
  border: 1px solid oklch(0.60 0.24 350 / 0.30);
  background: oklch(0.60 0.24 350 / 0.08);
  padding: 7px 14px;
  border-radius: 99px;
  transition: background 0.2s, border-color 0.2s;
}

.contact-email:hover {
  background: oklch(0.60 0.24 350 / 0.14);
  border-color: oklch(0.60 0.24 350 / 0.50);
}

.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-field {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  resize: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-dim); }

.form-field input:focus,
.form-field textarea:focus {
  border-color: oklch(0.60 0.24 350 / 0.60);
  box-shadow: 0 0 0 3px oklch(0.60 0.24 350 / 0.12);
}

.form-field input.invalid,
.form-field textarea.invalid {
  border-color: oklch(0.65 0.20 25 / 0.70);
  box-shadow: 0 0 0 3px oklch(0.65 0.20 25 / 0.10);
}

.contact-submit { align-self: flex-start; }

.form-status {
  font-size: 13px;
  min-height: 20px;
  transition: color 0.2s;
}

.form-status.success { color: oklch(0.75 0.17 150); }
.form-status.error   { color: oklch(0.72 0.18 25); }


/* ── RESPONSIVE ── */
@media (max-width: 720px) {
  .nav-links a:not(.btn-nav) { display: none; }
  .hero { padding: 72px 0 60px; }
  .tooltip-demo-inner { flex-direction: column; gap: 48px; }
  .contact-inner { flex-direction: column; gap: 40px; }
  .contact-submit { width: 100%; justify-content: center; }
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { display: none; }
  .footer-inner { flex-direction: column; text-align: center; }
}
