:root {
  --bg: #04070d;
  --navy: #0b1f3b;
  --ink: #111827;
  --muted: rgba(17, 24, 39, 0.72);
  --white: #ffffff;
  --paper: #f7f4ef;
  --line: rgba(11, 31, 59, 0.12);
  --line-strong: rgba(11, 31, 59, 0.18);
  --accent-1: #ff8a3d;
  --accent-2: #ff5b3d;
  --success: #1f8c48;
  --warning: #a46705;
  --danger: #c63535;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --focus: 0 0 0 3px rgba(255, 138, 61, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, rgba(255, 152, 0, 0.24), transparent 22%),
    radial-gradient(circle at 88% 24%, rgba(255, 64, 64, 0.16), transparent 28%),
    radial-gradient(circle at 82% 82%, rgba(0, 196, 164, 0.14), transparent 20%),
    linear-gradient(180deg, #05070d 0%, #05070c 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.container {
  width: min(1240px, calc(100% - 24px));
  margin: 0 auto;
}

.page-stack {
  display: grid;
  gap: 14px;
  padding: 10px 0 34px;
}

/* =============== Topbar =============== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(4, 7, 13, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-media {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.brand-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-logo-greyscale {
  opacity: 0;
  transition: opacity 180ms ease;
}

.brand:hover .brand-logo-greyscale,
.brand:focus-visible .brand-logo-greyscale {
  opacity: 1;
}

.brand-copy {
  display: grid;
  gap: 2px;
  color: var(--white);
}

.brand-copy strong {
  font-family: Sora, Inter, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-copy small {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.78rem;
}

.desktop-nav,
.desktop-ctas {
  display: none;
}

.desktop-nav {
  align-items: center;
  gap: 28px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.96rem;
}

.desktop-nav a:hover { color: var(--white); }

.cta-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn {
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 14px 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 100%);
  box-shadow: 0 16px 30px rgba(255, 91, 61, 0.22);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(11, 31, 59, 0.06);
  border: 1px solid rgba(11, 31, 59, 0.08);
}

.btn-topbar {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* =============== Mobile nav =============== */
.nav-toggle{
  display:flex;
  border: 1px solid rgba(11,31,59,.16);
  background: rgba(255,255,255,.65);
  border-radius: 14px;
  width: 44px;
  height: 44px;
  align-items:center;
  justify-content:center;
  box-shadow: 0 12px 30px rgba(11,31,59,.10);
  cursor:pointer;
}
.nav-toggle:focus{
  outline:none;
  box-shadow: var(--focus), 0 16px 44px rgba(11,31,59,.14);
}
.nav-toggle-bars{
  width: 18px;
  height: 14px;
  display:grid;
  gap: 3px;
}
.nav-toggle-bars span{
  display:block;
  height: 2px;
  border-radius: 999px;
  background: rgba(11,31,59,.88);
}

.mobile-nav{
  border-top: 1px solid var(--line);
  background: rgba(247,244,239,.92);
  backdrop-filter: blur(10px);
}
.mobile-nav-inner{
  padding: 12px 0 14px;
  display:grid;
  gap: 12px;
}
.mobile-links{
  display:grid;
  gap: 6px;
}
.mnav-link{
  display:block;
  padding: 10px 8px;
  border-radius: 12px;
  font-weight: 800;
  color: rgba(11,16,32,.78);
}
.mnav-link:hover{
  background: rgba(11,31,59,.05);
}
.mobile-ctas{
  display:grid;
  gap: 10px;
  align-items:start;
  justify-items:start;
}
.nav-scrim{
  position: fixed;
  inset: 0;
  background: rgba(5,7,12,.42);
  backdrop-filter: blur(1px);
  z-index: 45;
}

.surface-card {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.page-intro,
.page-cta,
.theme-light {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.975) 0%, rgba(247, 244, 239, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.68);
  color: var(--ink);
}

.theme-dark {
  background: linear-gradient(180deg, rgba(9, 18, 34, 0.98) 0%, rgba(6, 12, 24, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.94);
}

.page-intro,
.page-cta {
  display: grid;
  gap: 18px;
  padding: 24px 16px;
}

.page-intro-copy,
.page-cta-copy {
  display: grid;
  gap: 12px;
}

.section-kicker,
.micro-label {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-intro .section-kicker,
.page-cta .section-kicker,
.theme-light .section-kicker {
  color: rgba(11, 31, 59, 0.62);
}

.theme-dark .section-kicker {
  color: rgba(255, 255, 255, 0.62);
}

.page-intro h1,
.feature-copy h2,
.page-cta h2 {
  margin: 0;
  font-family: Sora, Inter, sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.page-intro h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  color: var(--navy);
  max-width: 9.4ch;
}

.intro-lead,
.page-cta-copy p {
  margin: 0;
  line-height: 1.7;
  max-width: 62ch;
  color: var(--muted);
}

.intro-actions,
.page-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-intro-visual {
  display: grid;
}

.intro-preview-grid {
  display: grid;
  gap: 10px;
}

.intro-preview-grid article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: rgba(11, 31, 59, 0.05);
  border: 1px solid rgba(11, 31, 59, 0.08);
}

.intro-preview-grid span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(11, 31, 59, 0.08);
  color: var(--navy);
  font-weight: 800;
}

.intro-preview-grid strong {
  color: var(--navy);
  font-size: 0.97rem;
}

.feature-hero {
  display: grid;
  gap: 22px;
  padding: 22px 16px;
  min-height: 100svh;
  align-items: center;
  scroll-margin-top: 92px;
}

.feature-copy {
  display: grid;
  gap: 8px;
}

.feature-copy h2 {
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  max-width: 14ch;
}

.theme-light .feature-copy h2 {
  color: var(--navy);
}

.theme-dark .feature-copy h2 {
  color: rgba(255, 255, 255, 0.96);
}

.micro-block {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-left: 14px;
  position: relative;
}

.micro-block::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 100%);
}

.micro-label {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--accent-1);
}

.micro-copy {
  margin: 0;
  line-height: 1.68;
  font-size: 1rem;
}

.theme-light .micro-copy {
  color: var(--muted);
}

.theme-dark .micro-copy {
  color: rgba(255, 255, 255, 0.78);
}

.feature-demo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.demo-shell {
  width: 100%;
  padding: 18px;
  border-radius: 26px;
}

.theme-light .demo-shell {
  background: linear-gradient(180deg, rgba(11, 31, 59, 0.08), rgba(11, 31, 59, 0.04));
  border: 1px solid rgba(11, 31, 59, 0.08);
}

.theme-dark .demo-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.demo-shell.portrait {
  max-width: 430px;
}

.demo-shell.landscape {
  max-width: 780px;
}

.demo-placeholder {
  border-radius: 20px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  text-align: center;
  padding: 24px;
}

.theme-light .demo-placeholder {
  background: linear-gradient(135deg, rgba(11, 31, 59, 0.03) 0%, rgba(11, 31, 59, 0.06) 100%);
  border: 1.5px dashed rgba(11, 31, 59, 0.18);
  color: rgba(11, 31, 59, 0.82);
}

.theme-dark .demo-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.06) 100%);
  border: 1.5px dashed rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.84);
}

.demo-shell.portrait .demo-placeholder {
  min-height: 620px;
}

.demo-shell.landscape .demo-placeholder {
  min-height: 440px;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
}

.theme-light .demo-badge {
  background: rgba(11, 31, 59, 0.08);
  color: rgba(11, 31, 59, 0.7);
}

.theme-dark .demo-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.76);
}

.demo-placeholder strong {
  font-family: Sora, Inter, sans-serif;
  font-size: 1.06rem;
}

.demo-placeholder code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92rem;
}

.demo-media {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.page-cta h2 {
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  color: var(--navy);
  max-width: 15ch;
}

.site-footer {
  padding: 0 0 26px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.footer-inner p,
.footer-inner small {
  margin: 0;
}

@media (min-width: 760px) {
  .container {
    width: min(1240px, calc(100% - 32px));
  }

  .intro-actions,
  .page-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (min-width: 980px) {
  .nav-toggle {
    display: none;
  }

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

  .desktop-ctas {
    display: inline-flex;
  }

  .page-stack {
    gap: 18px;
    padding: 14px 0 44px;
  }

  .page-intro,
  .page-cta,
  .feature-hero {
    padding: 30px 28px;
  }

  .page-intro {
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    align-items: center;
    min-height: 78svh;
  }

  .feature-hero {
    grid-template-columns: minmax(0, 0.42fr) minmax(420px, 0.58fr);
    gap: 36px;
  }

  .page-intro h1 {
    max-width: 8.3ch;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
}

@media (max-width: 979px) {
  .desktop-nav,
  .desktop-ctas {
    display: none;
  }
}
