/* ═══════════════════════════════════════════════════════════════════
   goodOK Landing — Modern, Mobile-First
   ═══════════════════════════════════════════════════════════════════ */

/* ─── Tokens (CSS Variables) ──────────────────────────────────────── */
:root {
  /* Brand */
  --brand: #6366F1;
  --brand-hover: #5558E0;
  --brand-light: rgba(99, 102, 241, 0.12);
  --accent: #EC4899;
  --gradient-brand: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #EC4899 100%);

  /* Light theme */
  --bg: #FAFAFB;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F4F4F7;
  --text: #0F0F12;
  --text-secondary: #5C5C66;
  --text-tertiary: #A1A1AA;
  --border: #E5E5EA;
  --border-strong: #D1D1D8;
  --shadow-sm: 0 1px 2px rgba(15, 15, 18, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 15, 18, 0.06);
  --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.12);
  --shadow-xl: 0 30px 80px rgba(99, 102, 241, 0.18);

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --space: 8px;

  /* Fonts */
  --font-display: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Dark theme */
:root[data-theme="dark"] {
  --bg: #0F0F12;
  --bg-elevated: #1A1A1F;
  --bg-subtle: #16161B;
  --text: #F4F4F7;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --border: #2A2A33;
  --border-strong: #3A3A45;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.25);
  --shadow-xl: 0 30px 80px rgba(99, 102, 241, 0.35);
  --brand-light: rgba(99, 102, 241, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0F12;
    --bg-elevated: #1A1A1F;
    --bg-subtle: #16161B;
    --text: #F4F4F7;
    --text-secondary: #A1A1AA;
    --text-tertiary: #71717A;
    --border: #2A2A33;
    --border-strong: #3A3A45;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(99, 102, 241, 0.25);
    --shadow-xl: 0 30px 80px rgba(99, 102, 241, 0.35);
    --brand-light: rgba(99, 102, 241, 0.18);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-feature-settings: "ss01" on, "cv11" on;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

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

img { max-width: 100%; height: auto; display: block; }

button {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

code {
  font-family: 'JetBrains Mono', 'Fira Code', ui-monospace, monospace;
  background: var(--bg-subtle);
  color: var(--brand);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.9em;
}

/* ─── Container ───────────────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
}

/* ─── Buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

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

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.4);
}
.btn-primary:hover {
  background: var(--brand-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.5);
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

/* ─── Header ──────────────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}

:root[data-theme="dark"] .site-header,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header {
    background: rgba(15, 15, 18, 0.7);
  }
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
}
.logo img { border-radius: 8px; }

.nav-desktop {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav-desktop a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}
.nav-desktop a:hover {
  background: var(--bg-subtle);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.theme-toggle:hover {
  background: var(--bg-subtle);
  color: var(--text);
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}

.header-cta { padding: 10px 16px; font-size: 14px; }

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  position: relative;
  align-items: center;
  justify-content: center;
}
.menu-toggle span {
  position: absolute;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
}
.menu-toggle span:nth-child(1) { transform: translateY(-6px); }
.menu-toggle span:nth-child(3) { transform: translateY(6px); }

.menu-toggle.open span:nth-child(1) { transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.nav-mobile a {
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
}
.nav-mobile a:hover { background: var(--bg-subtle); }
.nav-mobile .btn { margin-top: 8px; }
.nav-mobile.open { display: flex; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .header-cta { display: none; }
  .menu-toggle { display: flex; }
}

/* ─── Sections ────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
@media (max-width: 768px) { .section { padding: 60px 0; } }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.section-head p {
  font-size: 17px;
  color: var(--text-secondary);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-light);
  padding: 6px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* ─── Hero ────────────────────────────────────────────────────────── */
.hero {
  padding-top: 128px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.1) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.badge-row { margin-bottom: 20px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
}
.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 700;
  margin-bottom: 24px;
}
.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-value span {
  font-size: 0.7em;
  color: var(--text-secondary);
  font-weight: 500;
}
.stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Phone mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.phone-mockup {
  position: relative;
  width: 280px;
  height: 580px;
  transform: rotateY(-12deg) rotateX(4deg);
  transition: transform 0.5s var(--ease);
}
.phone-mockup:hover { transform: rotateY(-6deg) rotateX(2deg); }

.phone-glow {
  position: absolute;
  inset: -40px;
  background: var(--gradient-brand);
  border-radius: 60px;
  filter: blur(50px);
  opacity: 0.4;
  z-index: -1;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--bg-elevated);
  border-radius: 40px;
  border: 8px solid #1A1A1F;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
}

.phone-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 16px;
  border-bottom: 1px solid var(--border);
}
.phone-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: white;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-name { font-weight: 600; font-size: 14px; }
.phone-status { font-size: 12px; color: #10B981; }

.phone-chat {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-subtle);
}

.msg {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  animation: slideUp 0.4s var(--ease) backwards;
}
.msg-in {
  background: var(--bg-elevated);
  color: var(--text);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}
.msg-out {
  background: var(--brand);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 6px;
}
.msg-ai {
  background: var(--brand-light);
  color: var(--text);
  border: 1px solid var(--brand);
  align-self: flex-start;
  border-bottom-left-radius: 6px;
}

.msg-typing {
  padding: 12px 14px;
  display: flex;
  gap: 4px;
  align-self: flex-end;
}
.msg-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: typing 1.4s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
  40% { transform: translateY(-6px); opacity: 1; }
}

.msg:nth-child(1) { animation-delay: 0.2s; }
.msg:nth-child(2) { animation-delay: 0.5s; }
.msg:nth-child(3) { animation-delay: 0.8s; }
.msg:nth-child(4) { animation-delay: 1.1s; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-mockup {
    transform: none;
    width: 240px;
    height: 480px;
  }
  .phone-mockup:hover { transform: none; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ─── Features ────────────────────────────────────────────────────── */
.features { background: var(--bg-subtle); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-brand);
  transform: translateX(-100%);
  transition: transform 0.4s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::before { transform: translateX(0); }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* ─── AI Section ──────────────────────────────────────────────────── */
.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.ai-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 20px;
}
.ai-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.ai-features {
  list-style: none;
  display: grid;
  gap: 12px;
}
.ai-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.ai-demo { display: flex; justify-content: center; }

.chat-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.chat-card-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--brand-light);
  color: var(--brand);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
}
.chat-card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 240px;
}

@media (max-width: 900px) {
  .ai-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* ─── Studio ──────────────────────────────────────────────────────── */
.studio { background: var(--bg-subtle); }

.studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.studio-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.studio-card:hover {
  transform: translateY(-6px) rotateX(4deg);
  box-shadow: var(--shadow-lg);
}

.studio-emoji {
  font-size: 48px;
  margin-bottom: 16px;
  filter: drop-shadow(0 6px 12px rgba(99, 102, 241, 0.2));
}
.studio-card h3 { font-size: 18px; margin-bottom: 8px; }
.studio-card p { color: var(--text-secondary); font-size: 14px; }

/* ─── Pricing ─────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.price-card {
  position: relative;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s var(--ease);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.price-card-featured {
  border-color: var(--brand);
  transform: scale(1.04);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--brand-light) 100%);
}
.price-card-featured:hover { transform: scale(1.04) translateY(-4px); }

.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-brand);
  color: white;
  padding: 6px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}

.price-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1;
}
.price-value span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
}

.price-sub {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.price-features {
  list-style: none;
  display: grid;
  gap: 10px;
  text-align: left;
  margin-bottom: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.price-features li {
  font-size: 14px;
  color: var(--text);
}

.price-card .btn { width: 100%; }

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.faq-container { max-width: 800px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s;
  overflow: hidden;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item[open] {
  border-color: var(--brand);
  box-shadow: var(--shadow-md);
}

.faq-item summary {
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-body {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 15px;
}

/* ─── Alpha badge variant ─────────────────────────────────────────── */
.badge-alpha {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.12));
  border-color: var(--brand);
  color: var(--brand);
  font-weight: 600;
}
.badge-alpha .badge-dot { background: var(--brand); box-shadow: 0 0 8px var(--brand); }

/* ─── Alpha form section ──────────────────────────────────────────── */
.alpha-form-section {
  background: var(--bg-subtle);
  position: relative;
  overflow: hidden;
}
.alpha-form-section::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -20%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, transparent 70%);
  filter: blur(60px);
  z-index: 0;
}

.alpha-form-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
}

.alpha-form-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.alpha-form-text > p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.alpha-perks {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}
.alpha-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}

.alpha-howto {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 8px;
  overflow: hidden;
  transition: all 0.2s;
}
.alpha-howto:hover { border-color: var(--brand); }
.alpha-howto summary {
  padding: 16px 20px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}
.alpha-howto summary::-webkit-details-marker { display: none; }
.alpha-howto summary::before {
  content: "?";
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.alpha-howto-body {
  padding: 0 20px 16px 56px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
}

/* Form itself */
.alpha-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-field label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.form-field input {
  font: inherit;
  font-family: var(--font-body);
  background: var(--bg-subtle);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text);
  font-size: 16px; /* 16+ — iOS не зумит */
  transition: all 0.2s var(--ease);
}
.form-field input::placeholder { color: var(--text-tertiary); }
.form-field input:hover { border-color: var(--border-strong); }
.form-field input:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 4px var(--brand-light);
}
.form-field input.error {
  border-color: #EF4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.form-hint {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
  position: relative;
}
.form-submit[disabled] {
  opacity: 0.6;
  pointer-events: none;
}
.form-submit.loading .submit-label::after {
  content: "...";
  animation: dots 1.2s infinite;
}
@keyframes dots {
  0%, 20% { content: "."; }
  40% { content: ".."; }
  60%, 100% { content: "..."; }
}

.form-status {
  font-size: 14px;
  line-height: 1.5;
  padding: 0;
  border-radius: var(--radius-sm);
  text-align: center;
  display: none;
}
.form-status.show { display: block; padding: 12px 16px; }
.form-status.success {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.form-status.error {
  background: rgba(239, 68, 68, 0.12);
  color: #DC2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.form-privacy {
  font-size: 12px;
  color: var(--text-tertiary);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 900px) {
  .alpha-form-inner { grid-template-columns: 1fr; gap: 40px; }
  .alpha-form { padding: 24px; }
}

/* ─── Install CTA ─────────────────────────────────────────────────── */
.install {
  background: var(--bg-subtle);
}

.install-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.install-text h2 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 16px;
}
.install-text p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.install-actions { margin-bottom: 16px; }

.install-note {
  font-size: 14px;
  color: var(--text-tertiary);
}

.install-qr {
  background: var(--bg-elevated);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  justify-self: center;
}
.install-qr img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
}
.install-qr-label {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .install-inner { grid-template-columns: 1fr; gap: 40px; }
  .install-qr { max-width: 280px; margin: 0 auto; }
}

/* ─── Footer ──────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 64px 0 24px;
  margin-top: 40px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-tagline {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}
.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.footer-socials a:hover {
  background: var(--brand);
  color: white;
  transform: translateY(-2px);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-tertiary);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
}

/* ─── Scroll-reveal animations ────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─── Selection ───────────────────────────────────────────────────── */
::selection {
  background: var(--brand);
  color: white;
}
