:root {
  --page-bg: #f7f6ff;
  --surface: #ffffff;
  --surface-alt: #f3f2ff;
  --text: #111320;
  --muted: #5b6474;
  --accent: #5146ff;
  --accent-light: rgba(81, 70, 255, 0.12);
  --border: rgba(15, 23, 42, 0.08);
  --radius-lg: 32px;
  --radius-md: 24px;
  --radius-sm: 12px;
  --shadow-lg: 0 45px 120px -55px rgba(15, 23, 42, 0.6);
  --shadow-md: 0 24px 60px -40px rgba(15, 23, 42, 0.35);
  --shadow-sm: 0 12px 28px -20px rgba(15, 23, 42, 0.25);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--page-bg) 0%, #ffffff 45%);
  line-height: 1.6;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

.grid {
  display: grid;
  gap: 3rem;
}


.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  transition: transform 0.3s ease;
}

.site-header.header-hidden {
  transform: translateY(-110%);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
}

.logo {
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 1.8rem;
  font-size: 0.95rem;
  color: var(--muted);
  align-items: center;
}

.nav a {
  position: relative;
  padding-bottom: 0.4rem;
  color: inherit;
  transition: color 0.2s ease;
}

.nav-actions {
  display: none;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--accent);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a:focus {
  color: var(--text);
}

.nav a:hover::after,
.nav a:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.sign-in {
  color: var(--muted);
  font-weight: 500;
}

.sign-in:hover,
.sign-in:focus {
  color: var(--text);
}

.cta-button {
  background: linear-gradient(135deg, #6d5cff, #4835ff);
  color: #fff;
  padding: 0.72rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ghost-button,
.secondary-button {
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.ghost-button:hover,
.secondary-button:hover {
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.5);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #eef2ff;
  border: none;
}

.menu-toggle span {
  height: 2px;
  width: 20px;
  background: #312e81;
  border-radius: 99px;
  margin: 0 auto;
}

.hero {
  padding: 6.2rem 0 5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(109, 92, 255, 0.18), transparent 55%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 60%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
}

.hero-copy {
  max-width: 520px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(81, 70, 255, 0.08);
  color: var(--accent);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.1rem);
  line-height: 1.07;
  margin: 1.4rem 0 1.2rem;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.4rem;
}

.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.metric-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  min-width: 150px;
  box-shadow: var(--shadow-sm);
}

.metric-card .metric {
  font-size: 1.6rem;
  font-weight: 700;
  display: block;
  color: var(--text);
}

.metric-card .label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-visual {
  position: relative;
}

.browser-shell {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 246, 255, 0.95));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.browser-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.6rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.9rem;
  color: var(--muted);
}

.browser-domain {
  font-weight: 600;
  color: var(--text);
}

.browser-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(81, 70, 255, 0.08);
  color: var(--accent);
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.containment-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-left: 4px solid #f59e0b;
  padding: 1.5rem 1.8rem;
  display: grid;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3);
}

.banner-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.banner-icon {
  color: #f59e0b;
  flex-shrink: 0;
}

.banner-title {
  font-weight: 700;
  font-size: 1rem;
  color: #78350f;
}

.banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-size: 0.85rem;
}

.action-check {
  color: #15803d;
  font-weight: 500;
}

.banner-status {
  margin: 0;
  font-size: 0.85rem;
  color: #78350f;
}

.banner-status strong {
  font-weight: 600;
}

.banner-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.banner-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.banner-btn.primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.banner-btn.primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.banner-btn.secondary {
  background: #fff;
  color: #78350f;
  border: 1px solid #d97706;
}

.banner-btn.secondary:hover {
  background: #fffbeb;
}

.browser-body {
  padding: 2.2rem 2.4rem 2rem;
  display: grid;
  gap: 1.6rem;
  background: linear-gradient(180deg, rgba(81, 70, 255, 0.06), transparent);
}

.timeline {
  display: grid;
  gap: 1.5rem;
}

.timeline-item {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 90px 1fr;
  align-items: start;
}

.timestamp {
  font-family: 'SFMono-Regular', 'Fira Code', monospace;
  font-size: 0.85rem;
  color: rgba(17, 19, 32, 0.55);
}

.timeline-title {
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.timeline-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.browser-footer {
  padding: 1.2rem 1.6rem 1.6rem;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: flex-end;
}

.footer-button {
  border: none;
  border-radius: 999px;
  background: #1c1f4a;
  color: #fff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust {
  padding: 3rem 0;
  background: var(--surface-alt);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.trust-icon {
  width: 56px;
  height: 56px;
  background: rgba(81, 70, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.trust-item span {
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.split {
  padding: 5rem 0;
}

.split .grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat {
  display: block;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--accent);
}

.label {
  font-size: 0.85rem;
  color: var(--muted);
}

.demo-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(99, 102, 241, 0.08);
}

.demo-card h3 {
  margin-top: 0;
}

.demo-card ol {
  padding-left: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 1.4rem;
  list-style: none;
}

.demo-card li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--muted);
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 600;
  display: grid;
  place-items: center;
}

.features {
  padding: 5rem 0;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.08), transparent);
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
}

.section-heading p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-grid article {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.feature-grid h3 {
  margin-top: 0;
}

.personas {
  padding: 5rem 0;
}

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

.persona-grid article {
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow-sm);
}

.architecture {
  padding: 5rem 0;
  background: var(--surface-alt);
}

.architecture .grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  display: grid;
  gap: 0.9rem;
  color: var(--muted);
}

.checklist li::before {
  content: '✔';
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.6rem;
}

.diagram-card {
  background: #0f172a;
  color: #f8fafc;
  border-radius: var(--radius-md);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.diagram-flow {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
}

.diagram-node {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 0.9rem 1.3rem;
  border-radius: 999px;
  width: 100%;
  text-align: center;
}

.diagram-arrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(148, 163, 184, 0.6);
}

.pricing {
  padding: 5rem 0;
}

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

.pricing-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 2.4rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 2rem;
  color: var(--muted);
  display: grid;
  gap: 0.9rem;
}

.pricing-card .price {
  font-size: 2.5rem;
  font-weight: 700;
}

.pricing-card .price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.pricing-card.featured {
  border: 1px solid rgba(99, 102, 241, 0.4);
  box-shadow: var(--shadow-md);
}

.pricing-card .tag {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.metrics {
  padding: 5rem 0;
  background: #0f172a;
  color: #f8fafc;
}

.metrics .grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.metric-list {
  display: grid;
  gap: 1.6rem;
}

.metric {
  font-size: 2.6rem;
  font-weight: 700;
}

.metric + .label {
  color: rgba(226, 232, 240, 0.8);
}

.cta {
  padding: 5rem 0 6rem;
  background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.2), transparent 50%),
    #fff;
  text-align: center;
}

.cta-form {
  margin: 2rem auto 1rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.2rem;
  max-width: 480px;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(99, 102, 241, 0.12);
}

.cta-form input {
  padding: 1rem 1.4rem;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
  transition: all 0.2s ease;
}

.cta-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(81, 70, 255, 0.1);
}

.cta-form input::placeholder {
  color: #94a3b8;
}

.cta-form button {
  padding: 1.1rem 1.8rem;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #6d5cff, #4835ff);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 14px 0 rgba(81, 70, 255, 0.4);
  transition: all 0.2s ease;
  width: 100%;
}

.cta-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(81, 70, 255, 0.5);
}

.cta-form button:active {
  transform: translateY(0);
}

.form-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.form-status {
  min-height: 1.2rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-status.success {
  color: #166534;
}

.form-status.error {
  color: #b91c1c;
}

.site-footer {
  background: #0b1220;
  color: rgba(203, 213, 225, 0.8);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.site-footer .logo {
  color: #fff;
}

.site-footer h4 {
  color: #fff;
  margin-bottom: 0.7rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.footer-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

.meta-links {
  display: flex;
  gap: 1.2rem;
}

@media (max-width: 880px) {
  .nav {
    position: absolute;
    inset: 72px 1.5rem auto;
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: none;
    flex-direction: column;
    gap: 1.2rem;
  }

  .nav.open {
    display: flex;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions {
    display: none;
  }

  .nav-actions {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.4rem;
  }

  .nav-actions .sign-in {
    text-align: center;
    color: var(--muted);
  }

  .nav-actions .cta-button {
    justify-content: center;
  }

  .site-header .container {
    position: relative;
  }
}

@media (max-width: 640px) {
  .demo-card,
  .diagram-card,
  .pricing-card,
  .feature-grid article,
  .persona-grid article {
    border-radius: 20px;
  }

  .hero {
    padding-top: 4rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-form {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timestamp {
    order: -1;
  }

  .browser-footer {
    justify-content: center;
  }
}
