:root {
  --bg: #0a0a0a;
  --bg-purple: #0d0615;
  --panel: rgba(20, 10, 35, 0.6);
  --panel-strong: rgba(10, 5, 20, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --line-accent: rgba(168, 85, 247, 0.25);
  --text: #fafafa;
  --muted: #a1a1aa;
  --accent: #facc15;
  --accent-glow: rgba(250, 204, 21, 0.15);
  --purple: #a855f7;
  --purple-light: #c084fc;
  --purple-dark: #7c3aed;
  --shadow: 0 32px 64px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 80% at 50% -30%, rgba(168, 85, 247, 0.4), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 50%, rgba(124, 58, 237, 0.25), transparent 50%),
    radial-gradient(ellipse 60% 50% at 0% 70%, rgba(139, 92, 246, 0.2), transparent 50%),
    radial-gradient(ellipse 50% 40% at 70% 90%, rgba(168, 85, 247, 0.15), transparent 50%);
  background-attachment: fixed;
}

.page-shell {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

/* Header */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(40px) saturate(120%);
  -webkit-backdrop-filter: blur(40px) saturate(120%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.brand-name {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.topnav a:hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 100px 0 80px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(250, 204, 21, 0.2);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

h1 {
  margin: 24px 0;
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  line-height: 1;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text) 0%, var(--muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 36px 0 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
}

.button-primary {
  color: #0a0a0a;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 32px rgba(250, 204, 21, 0.25);
}

.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px var(--accent-glow), 0 12px 40px rgba(250, 204, 21, 0.3);
}

.button-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-accent);
}

.hero-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

/* Hero Panel - App Preview */
.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.app-preview {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(124, 58, 237, 0.1) 100%
  );
  border: 1px solid rgba(168, 85, 247, 0.2);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.4),
    0 0 120px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-pill {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--accent);
  color: #0a0a0a;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.signal {
  color: var(--purple-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.preview-problem {
  margin-top: 20px;
  padding: 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.preview-label {
  color: var(--purple-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.preview-body {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.preview-flow {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.preview-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: border-color 0.2s;
}

.flow-step:hover {
  border-color: var(--line-accent);
}

.flow-index {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  flex-shrink: 0;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--bg);
  background: linear-gradient(135deg, var(--purple), var(--purple-dark));
}

.flow-step h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.flow-step p {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Features */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 40px 0 80px;
}

.feature-card {
  padding: 32px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: var(--line-accent);
  transform: translateY(-4px);
}

.feature-kicker {
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-card h2 {
  font-size: 1.35rem;
  margin: 12px 0;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.section-heading-left {
  text-align: left;
}

.section-heading-left .eyebrow {
  margin: 0;
}

.ai-system {
  padding: 20px 0 80px;
}

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

.ai-card {
  padding: 30px;
}

.ai-card h3 {
  margin: 12px 0;
  font-size: 1.25rem;
}

.ai-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Workflow Section */
.workflow {
  padding: 60px 0;
}

.section-heading {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading .eyebrow {
  margin: 0 auto;
}

.section-heading h2 {
  margin-top: 20px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.workflow-card {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s;
}

.workflow-card:hover {
  border-color: var(--line-accent);
  background: rgba(168, 85, 247, 0.05);
}

.workflow-number {
  display: inline-block;
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.workflow-card h3 {
  margin: 16px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
}

.workflow-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.signal-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  padding: 20px 0 40px;
  align-items: stretch;
}

.signal-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
}

.signal-copy p {
  color: var(--muted);
  max-width: 560px;
  line-height: 1.8;
}

.signal-list {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.signal-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.signal-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.signal-item strong {
  font-size: 1rem;
}

.signal-item span {
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* CTA Band */
.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 60px 0;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid rgba(168, 85, 247, 0.2);
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 50%,
    rgba(124, 58, 237, 0.08) 100%
  );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15), transparent 60%);
  pointer-events: none;
}

.cta-copy {
  position: relative;
}

.cta-band h2 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  max-width: 500px;
}

.cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
  position: relative;
}

/* Footer */
.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding: 48px 0 24px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 360px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Legal Pages */
.legal-shell {
  padding-bottom: 80px;
}

.legal-page {
  padding-top: 60px;
}

.legal-hero {
  max-width: 720px;
  margin-bottom: 32px;
}

.legal-title {
  margin: 16px 0 12px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.legal-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-card {
  padding: 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 100%
  );
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.legal-card h2 {
  margin: 32px 0 12px;
  font-size: 1.25rem;
}

.legal-card h2:first-child {
  margin-top: 0;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.8;
}

.legal-card a {
  color: var(--purple-light);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 60px;
    padding: 80px 0 60px;
  }

  .hero-panel {
    justify-content: center;
  }

  .app-preview {
    max-width: 100%;
  }

  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-grid,
  .signal-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell {
    width: calc(100% - 32px);
  }

  .topbar {
    position: relative;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-radius: 28px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .topnav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
  }

  .topbar.nav-open .topnav {
    display: flex;
  }

  .topbar.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .topbar.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .topnav a {
    justify-content: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .feature-strip {
    grid-template-columns: 1fr;
  }

  .ai-grid {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    flex-direction: column;
    text-align: center;
    padding: 40px 28px;
  }

  .cta-band h2 {
    max-width: none;
  }

  .footer {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 1.1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
}
