/* ==========================================================================
   NyxForms — landing + auth styles
   ========================================================================== */

:root {
  --primary: #7c5cff;
  --primary-dim: #6a4ce0;
  --accent: #4d8dff;
  --success: #4ade80;
  --error: #f87171;
  --warning: #fbbf24;

  --bg: #0a0a12;
  --bg-2: #0e0e18;
  --card: #14141f;
  --card-2: #1a1a28;
  --border: #2a2a3d;
  --border-soft: #22222f;

  --text: #e8e8f0;
  --text-2: #a0a0b8;
  --text-3: #5a5a72;

  --grad: linear-gradient(135deg, var(--primary), var(--accent));
  --grad-soft: linear-gradient(135deg, #7c5cff22, #4d8dff22);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 14px;
  --r-xl: 20px;

  --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
  --glow: 0 0 60px rgba(124, 92, 255, 0.25);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --max: 1140px;

  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0; font-weight: 700; letter-spacing: -0.02em; }

code {
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--card-2);
  padding: 2px 7px;
  border-radius: 6px;
  color: #9ad;
}

pre {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 20px;
  overflow-x: auto;
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #9ad;
  margin: 0;
}
pre code { background: none; padding: 0; color: inherit; }

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.center { text-align: center; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; margin: 0 auto; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.22s var(--ease),
    filter 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.3;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.55; cursor: default; transform: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 92, 255, 0.32);
}
.btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 8px 30px rgba(124, 92, 255, 0.45); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--primary); color: var(--text); }

.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: var(--r-lg); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: background 0.3s var(--ease), backdrop-filter 0.3s var(--ease),
    border-color 0.3s var(--ease), padding 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 10, 18, 0.82);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border-soft);
  padding: 11px 0;
}
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: var(--grad);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 3px 12px rgba(124, 92, 255, 0.4);
  flex: none;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14.5px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span + span { margin-top: 5px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 150px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -20% -10% auto;
  height: 900px;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 25% 15%, rgba(124, 92, 255, 0.28), transparent 62%),
    radial-gradient(ellipse 50% 40% at 78% 30%, rgba(77, 141, 255, 0.22), transparent 60%),
    radial-gradient(ellipse 40% 35% at 50% 60%, rgba(180, 92, 255, 0.12), transparent 65%);
  animation: drift 22s ease-in-out infinite alternate;
  filter: blur(10px);
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) scale(1.08); }
  100% { transform: translate3d(3%, -2%, 0) scale(1.03); }
}
#stars {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.85;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(124, 92, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124, 92, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%);
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.hero-copy { max-width: 560px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: #c4b5fd;
  margin-bottom: 24px;
}
.badge b {
  background: var(--grad);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1.hero-title {
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(115deg, #a78bfa 5%, #7c5cff 35%, #4d8dff 75%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% auto;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }

.hero-sub {
  font-size: 18.5px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 20px;
  font-size: 13.5px;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-note svg { color: var(--success); flex: none; }

.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -40px;
  background: radial-gradient(circle at 50% 50%, rgba(124, 92, 255, 0.22), transparent 68%);
  filter: blur(30px);
  z-index: -1;
}

/* Code window mock */
.window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.window-bar i:nth-child(1) { background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 8px; font-size: 12px; color: var(--text-3); font-family: monospace; }
.window pre { border: 0; border-radius: 0; background: transparent; font-size: 12.5px; padding: 18px; }

.tok-tag { color: #f87171; }
.tok-attr { color: #fbbf24; }
.tok-str { color: #4ade80; }
.tok-com { color: var(--text-3); font-style: italic; }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: 92px 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-2); font-size: 17px; margin: 0; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}
.feature:hover::after { opacity: 1; }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--grad-soft);
  border: 1px solid rgba(124, 92, 255, 0.28);
  display: grid;
  place-items: center;
  color: var(--primary);
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}
.feature h3 { font-size: 17px; margin-bottom: 9px; position: relative; z-index: 1; }
.feature p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.6; position: relative; z-index: 1; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; position: relative; }
.steps::before {
  content: "";
  position: absolute;
  top: 34px; left: 16%; right: 16%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
  z-index: 0;
}
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
  width: 68px; height: 68px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover .step-num {
  transform: scale(1.08);
  border-color: var(--primary);
  box-shadow: 0 0 0 8px rgba(124, 92, 255, 0.09), var(--glow);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 14.5px; margin: 0 auto; max-width: 280px; }
.step-visual {
  margin-top: 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px;
  font-family: monospace;
  font-size: 11.5px;
  color: #9ad;
  text-align: left;
  overflow-x: auto;
  white-space: nowrap;
}

/* Demo split */
.demo-split {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 56px;
  align-items: center;
}
.demo-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.demo-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.demo-list svg { color: var(--success); flex: none; margin-top: 3px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 760px; margin: 0 auto; }
.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 34px 30px;
  position: relative;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.plan:hover { transform: translateY(-4px); }
.plan-featured {
  border-color: rgba(124, 92, 255, 0.5);
  background: linear-gradient(180deg, rgba(124, 92, 255, 0.07), var(--card) 45%);
  box-shadow: 0 12px 50px rgba(124, 92, 255, 0.16);
}
.plan-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 15px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(124, 92, 255, 0.4);
}
.plan h3 { font-size: 19px; margin-bottom: 6px; }
.plan-desc { color: var(--text-3); font-size: 13.5px; margin: 0 0 22px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 26px; }
.plan-price .amount { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price .period { color: var(--text-3); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--text-2); }
.plan li svg { color: var(--success); flex: none; margin-top: 3px; }
.plan li.off { color: var(--text-3); }
.plan li.off svg { color: var(--text-3); }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; }
.quote {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}
.quote:hover { transform: translateY(-3px); border-color: rgba(124, 92, 255, 0.35); }
.stars { color: var(--warning); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.quote p { margin: 0 0 20px; color: var(--text); font-size: 15px; line-height: 1.65; flex: 1; }
.quote-by { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex: none;
}
.quote-by strong { display: block; font-size: 14px; font-weight: 600; }
.quote-by span { font-size: 12.5px; color: var(--text-3); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.faq-item.open { border-color: rgba(124, 92, 255, 0.4); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  color: var(--text);
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  text-align: left;
  line-height: 1.45;
}
.faq-q:hover { color: var(--primary); }
.faq-icon {
  margin-left: auto;
  flex: none;
  transition: transform 0.3s var(--ease), color 0.25s var(--ease);
  color: var(--text-3);
}
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a > div { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; line-height: 1.7; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(77, 141, 255, 0.09));
  border: 1px solid rgba(124, 92, 255, 0.28);
  border-radius: var(--r-xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: -50%;
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.25), transparent 55%);
  animation: pulse-glow 5s ease-in-out infinite;
}
@keyframes pulse-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 14px; letter-spacing: -0.03em; }
.cta-band p { color: var(--text-2); font-size: 17px; margin: 0 auto 30px; max-width: 480px; }

/* Footer */
footer {
  border-top: 1px solid var(--border-soft);
  padding: 56px 0 34px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 44px;
}
.footer-brand p { color: var(--text-3); font-size: 14px; margin: 14px 0 0; max-width: 280px; }
.footer-col h4 {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--text-3);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer-col a { display: block; color: var(--text-2); font-size: 14.5px; margin-bottom: 11px; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 72px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13.5px;
}

/* ==========================================================================
   Auth pages
   ========================================================================== */
.centered-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  position: relative;
  overflow: hidden;
}
.centered-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(124, 92, 255, 0.2), transparent 65%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(77, 141, 255, 0.13), transparent 60%);
  pointer-events: none;
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 38px 34px;
  box-shadow: var(--shadow-lg);
  animation: rise 0.5s var(--ease) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.auth-card .logo-mark { width: 44px; height: 44px; border-radius: 13px; font-size: 19px; margin: 0 auto; }
.auth-card h1 { font-size: 25px; text-align: center; margin: 20px 0 8px; letter-spacing: -0.02em; }
.auth-card > p.muted { text-align: center; margin: 0 0 28px; font-size: 14.5px; }
.auth-alt { text-align: center; margin: 22px 0 0; font-size: 14px; color: var(--text-2); }

.field { margin-bottom: 17px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text-2);
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  background: #0d0d15;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}
.field .hint { font-size: 12px; color: var(--text-3); margin-top: 6px; }

.alert {
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
  line-height: 1.5;
}
.alert.show { display: block; animation: rise 0.25s var(--ease); }
.alert-error { background: rgba(248, 113, 113, 0.11); border: 1px solid rgba(248, 113, 113, 0.35); color: #fca5a5; }
.alert-success { background: rgba(74, 222, 128, 0.11); border: 1px solid rgba(74, 222, 128, 0.35); color: #86efac; }

.spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Docs page */
.docs-body { padding: 120px 0 80px; }
.docs-body h2 { font-size: 26px; margin: 48px 0 16px; letter-spacing: -0.02em; }
.docs-body h3 { font-size: 18px; margin: 28px 0 10px; }
.docs-body p, .docs-body li { color: var(--text-2); font-size: 15px; line-height: 1.75; }
.docs-body pre { margin: 16px 0; }
.docs-body table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
.docs-body th, .docs-body td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
}
.docs-body th { color: var(--text); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.docs-body td { color: var(--text-2); }
.docs-body td code { white-space: nowrap; }

/* ==========================================================================
   v1.1 — warmer, human-friendly components (German landing page)
   ========================================================================== */

/* Skip link — keyboard users land here first */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* Bigger, friendlier hero checklist */
.hero-checks {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-2);
}
.hero-checks svg { color: var(--success); flex: none; }

/* ------------------------------------------------ browser preview frame */
.preview-frame {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 15px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}
.preview-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.preview-bar i:nth-child(1) { background: #ff5f57; }
.preview-bar i:nth-child(2) { background: #febc2e; }
.preview-bar i:nth-child(3) { background: #28c840; }
.preview-bar span {
  margin-left: 10px;
  font-size: 12.5px;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 12px;
  border-radius: 999px;
}
.preview-body { padding: 22px 20px 26px; }
.preview-hint {
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
  margin-bottom: 16px;
}
.preview-mount > div { margin: 0 auto; }

/* Loading skeleton so the page never looks broken while the form boots */
.form-skeleton {
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px;
  max-width: 480px;
}
.sk {
  display: block;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--card-2) 25%, #23233a 50%, var(--card-2) 75%);
  background-size: 260% 100%;
  animation: shimmer 1.5s infinite linear;
}
.sk-title { height: 22px; width: 55%; }
.sk-line { height: 13px; width: 78%; margin-bottom: 6px; }
.sk-input { height: 46px; }
.sk-area { height: 96px; }
.sk-btn { height: 50px; border-radius: 12px; margin-top: 4px; }
@keyframes shimmer { to { background-position: -260% 0; } }

/* ------------------------------------------------------- social proof */
.proof-strip {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.015);
  padding: 34px 0;
}
.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.proof b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(115deg, #a78bfa, #4d8dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.15;
}
.proof span { font-size: 13.5px; color: var(--text-3); }

/* ------------------------------------------------------ visual steps */
.steps-visual {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 12px;
}
.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px 26px 26px;
  position: relative;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.35);
}
.step-badge {
  position: absolute;
  top: -15px;
  left: 26px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--grad);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(124, 92, 255, 0.45);
}
.step-emoji { font-size: 38px; line-height: 1; margin: 8px 0 14px; }
.step-card h3 { font-size: 20px; margin-bottom: 9px; }
.step-card p { color: var(--text-2); font-size: 15px; margin: 0 0 18px; line-height: 1.6; }
.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  opacity: 0.6;
}

/* Little illustrations inside each step */
.step-art {
  margin-top: auto;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 92px;
  justify-content: center;
}
.art-field {
  height: 11px;
  border-radius: 5px;
  background: var(--card-2);
  display: block;
}
.art-field:nth-child(2) { width: 72%; }
.art-btn {
  background: var(--grad);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  border-radius: 7px;
  padding: 7px 0;
  text-align: center;
  margin-top: 3px;
}
.art-code {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: #9ad;
  background: var(--card-2);
  border-radius: 7px;
  padding: 9px 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.art-copy {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--success);
  background: rgba(74, 222, 128, 0.12);
  border-radius: 999px;
  padding: 4px 11px;
}
.art-mail { display: flex; align-items: center; gap: 11px; }
.art-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
  box-shadow: 0 0 0 0 rgba(124, 92, 255, 0.6);
  animation: ping 2s infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 11px rgba(124, 92, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 92, 255, 0); }
}
.art-mail b { display: block; font-size: 13px; }
.art-mail small { font-size: 11.5px; color: var(--text-3); }

.steps-note {
  text-align: center;
  margin: 40px 0 0;
  color: var(--text-2);
  font-size: 15.5px;
}
.steps-note a { font-weight: 600; }

/* ------------------------------------------------------------- demo */
.demo-info .btn { margin-top: 30px; }
.demo-list li { font-size: 15.5px; align-items: flex-start; }
.demo-list b { color: var(--text); font-weight: 650; }
.demo-form { min-width: 0; }

/* --------------------------------------------------------- audience */
.audience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.aud-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 26px;
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
}
.aud-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 92, 255, 0.4);
  background: var(--card-2);
}
.aud-emoji { font-size: 34px; line-height: 1; margin-bottom: 14px; }
.aud-card h3 { font-size: 18.5px; margin-bottom: 8px; }
.aud-card p { color: var(--text-2); font-size: 15px; margin: 0; line-height: 1.62; }

/* ------------------------------------------------------------ plans */
.plan-foot {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}

/* ------------------------------------------------------- help band */
.help-band {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.13), rgba(77, 141, 255, 0.07));
  border: 1px solid rgba(124, 92, 255, 0.3);
  border-radius: 22px;
  padding: 40px;
  display: flex;
  gap: 28px;
  align-items: center;
}
.help-emoji { font-size: 56px; line-height: 1; flex: none; }
.help-copy h2 { font-size: clamp(21px, 3vw, 28px); margin-bottom: 12px; }
.help-copy p {
  color: var(--text-2);
  font-size: 16px;
  margin: 0 0 22px;
  line-height: 1.65;
  max-width: 640px;
}

/* ------------------------------------------- onboarding (/willkommen) */
.ob-page { max-width: 820px; margin: 0 auto; padding: 46px 22px 80px; }
.ob-head { text-align: center; margin-bottom: 38px; }
.ob-emoji { font-size: 60px; line-height: 1; margin-bottom: 14px; }
.ob-head h1 { font-size: clamp(27px, 4.5vw, 38px); margin-bottom: 12px; letter-spacing: -0.03em; }
.ob-head p { color: var(--text-2); font-size: 17px; margin: 0 auto; max-width: 520px; line-height: 1.6; }
.ob-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 30px;
  margin-bottom: 20px;
}
.ob-card h2 {
  font-size: 19px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.ob-num {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ob-card > p { color: var(--text-2); font-size: 15.5px; margin: 0 0 20px; line-height: 1.6; }
.code-box {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  font-family: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: #9ad;
  word-break: break-all;
  line-height: 1.65;
  user-select: all;
}
.copy-btn {
  width: 100%;
  margin-top: 14px;
  font-size: 16px;
  padding: 15px 20px;
}
.copy-btn.done {
  background: rgba(74, 222, 128, 0.16) !important;
  background-image: none !important;
  color: var(--success) !important;
  box-shadow: none !important;
}
.where-list { display: grid; gap: 12px; margin-top: 6px; }
.where {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 16px;
}
.where-ico { font-size: 21px; line-height: 1.3; flex: none; }
.where b { display: block; font-size: 14.5px; margin-bottom: 2px; }
.where span { font-size: 14px; color: var(--text-2); line-height: 1.55; }
.ob-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.ob-actions .btn { flex: 1; min-width: 210px; }
.ob-preview {
  background: var(--bg-2);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  justify-content: center;
}

@media (max-width: 1020px) {
  .steps-visual { grid-template-columns: 1fr; gap: 30px; }
  .step-arrow { transform: rotate(90deg); padding: 2px 0; }
}

@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .proof b { font-size: 25px; }
  .help-band { flex-direction: column; text-align: center; padding: 32px 22px; gap: 18px; }
  .help-copy p { margin-left: auto; margin-right: auto; }
  .help-band .btn { width: 100%; }
  .step-card { padding: 28px 22px 22px; }
  .steps-visual { gap: 26px; }
  .aud-card { padding: 24px 22px; }
  .preview-body { padding: 18px 14px 20px; }
  .form-skeleton { padding: 22px; }
  .ob-page { padding: 34px 16px 60px; }
  .ob-card { padding: 24px 20px; border-radius: 16px; }
  .ob-actions .btn { min-width: 100%; }
  .code-box { font-size: 12px; padding: 15px 14px; }
  .hero-checks { gap: 9px 18px; }
  .hero-checks li { font-size: 14px; }
}

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .proof b { font-size: 23px; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { max-width: 100%; }
  .hero-visual { max-width: 520px; }
  .demo-split { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    flex-direction: column;
    gap: 4px;
    background: rgba(16, 16, 26, 0.97);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px;
    margin: 8px 0 0;
    box-shadow: var(--shadow-lg);
    animation: rise 0.22s var(--ease);
  }
  .nav.open .nav-links a { padding: 11px 12px; border-radius: var(--r-sm); width: 100%; }
  .nav.open .nav-links a:hover { background: rgba(255, 255, 255, 0.05); }
  .nav.open .nav-cta {
    display: flex;
    position: absolute;
    top: 100%; left: 16px; right: 16px;
    flex-direction: column;
    margin-top: 218px;
    gap: 8px;
  }
  .hero { padding: 120px 0 70px; }
  .section { padding: 68px 0; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { display: none; }
  .pricing { grid-template-columns: 1fr; max-width: 420px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { padding: 44px 24px; }
  .container { padding: 0 18px; }
  .auth-card { padding: 30px 24px; }
  .hero-actions .btn { flex: 1; min-width: 150px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
