:root{
  --launch-1:#0d214f;
  --launch-2:#1f5fb5;
  --launch-3:#21879c;
  --launch-4:#f5be62;
  --primary:#1a4594;
  --accent:#1aa188;
  --ink:#0f1a2b;
  --ink-soft:#23314c;
  --muted:#3d4d66;
  --surface:rgba(255,255,255,0.92);
  --surface-strong:rgba(255,255,255,0.97);
  --stroke:rgba(255,255,255,0.38);
  --danger:#d13b3b;
  --radius-xl:26px;
  --radius-lg:18px;
  --shadow:0 20px 42px rgba(6, 15, 36, 0.26);
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  min-height:100%;
}

body{
  font-family:"Avenir Next","Segoe UI",Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(76rem 52rem at 100% -15%, rgba(255,255,255,0.20), transparent 60%),
    radial-gradient(40rem 34rem at 10% 15%, rgba(245,190,98,0.18), transparent 60%),
    radial-gradient(64rem 44rem at -10% 110%, rgba(255,255,255,0.15), transparent 60%),
    linear-gradient(145deg,var(--launch-1),var(--launch-2) 48%,var(--launch-3));
  background-attachment:fixed;
  line-height:1.5;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size:34px 34px;
  mask-image:radial-gradient(circle at center, rgba(0,0,0,0.6), transparent 78%);
  opacity:0.25;
}

h1,h2,h3{
  font-family:"Iowan Old Style","Palatino Linotype","Book Antiqua",Georgia,serif;
  letter-spacing:-0.025em;
}

a{
  color:var(--primary);
}

.page{
  width:min(1100px,94vw);
  margin:0 auto;
  padding:30px 0 calc(max(96px,32vh) + var(--hash-scroll-room, 0px));
}

section[id]{
  scroll-margin-top:26px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  border:1px solid rgba(255,255,255,0.22);
  border-radius:16px;
  background:rgba(9,22,53,0.26);
  backdrop-filter:blur(12px);
  color:#fff;
  box-shadow:0 10px 26px rgba(5,14,34,0.18);
}

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

.brand-mark{
  width:42px;
  height:42px;
  border-radius:13px;
  display:grid;
  place-items:center;
  font-size:23px;
  color:#fff;
  background:linear-gradient(145deg,rgba(255,255,255,0.28),rgba(255,255,255,0.08));
  border:1px solid rgba(255,255,255,0.34);
}

.brand-icon{
  object-fit:cover;
  padding:0;
  background:none;
}

.brand h1{
  margin:0;
  font-size:1rem;
  font-weight:760;
  letter-spacing:0.01em;
  color:#fff;
}

.brand p{
  margin:1px 0 0;
  font-size:0.8rem;
  color:rgba(255,255,255,0.86);
}

.nav{
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
}

.nav a{
  color:#fff;
  text-decoration:none;
  font-weight:700;
  font-size:0.95rem;
  opacity:0.9;
  padding:8px 12px;
  border-radius:999px;
  transition:background .18s ease, opacity .18s ease, transform .18s ease;
}

.nav a:hover{
  opacity:1;
  background:rgba(255,255,255,0.14);
  transform:translateY(-1px);
}

.hero{
  margin-top:18px;
  padding:30px;
  border-radius:var(--radius-xl);
  background:
    radial-gradient(40rem 20rem at 0% 0%, rgba(33,135,156,0.12), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(247,250,255,0.94));
  border:1px solid rgba(255,255,255,0.7);
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
}

.hero::after{
  content:"";
  position:absolute;
  right:-60px;
  top:-70px;
  width:220px;
  height:220px;
  background:radial-gradient(circle, rgba(245,190,98,0.26), transparent 70%);
  pointer-events:none;
}

.hero-compact{
  padding:24px 26px;
}

.hero-layout{
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(300px,0.72fr);
  gap:22px;
  align-items:start;
}

.hero-copy{
  min-width:0;
}

.hero-layout-home{
  align-items:stretch;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 11px;
  border-radius:999px;
  background:rgba(33,135,156,0.14);
  color:var(--primary);
  font-size:0.78rem;
  font-weight:780;
  letter-spacing:0.03em;
  text-transform:uppercase;
}

.hero h2{
  margin:12px 0 8px;
  font-size:clamp(2rem,3.9vw,3.3rem);
  line-height:1.01;
  max-width:13ch;
  text-wrap:balance;
}

.page-home .hero h2{
  max-width:10ch;
  line-height:0.98;
}

.page-support .hero h2,
.page-doc .hero h2{
  max-width:16ch;
}

.hero p{
  margin:0 0 16px;
  color:var(--muted);
  font-size:1.06rem;
  max-width:66ch;
}

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

.store-badge{
  display:inline-flex;
  margin-top:8px;
}

.store-badge img{
  width:184px;
  max-width:100%;
  display:block;
}

.hero-pills{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.hero-pill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.9);
  border:1px solid rgba(26,69,148,0.10);
  color:var(--primary);
  font-size:0.86rem;
  font-weight:700;
  box-shadow:0 8px 18px rgba(10,24,56,0.05);
}

.hero-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
}

.metric-card{
  padding:14px 14px 15px;
  border-radius:18px;
  background:rgba(255,255,255,0.84);
  border:1px solid rgba(26,69,148,0.08);
  box-shadow:0 10px 22px rgba(10,24,56,0.05);
}

.metric-card strong{
  display:block;
  margin-bottom:6px;
  color:var(--ink);
  font-size:0.96rem;
}

.metric-card p{
  margin:0;
  font-size:0.92rem;
  color:var(--muted);
  line-height:1.48;
}

.btn{
  border:0;
  border-radius:999px;
  padding:12px 17px;
  font-size:0.95rem;
  text-decoration:none;
  font-weight:760;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .18s ease, box-shadow .22s ease, opacity .2s ease;
}

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

.btn-block{
  width:100%;
}

.btn-primary{
  color:#fff;
  background:linear-gradient(120deg,var(--primary),var(--accent) 70%,var(--launch-4));
  box-shadow:0 12px 24px rgba(26,69,148,0.24);
}

.btn-secondary{
  color:var(--primary);
  background:rgba(255,255,255,0.78);
  border:1px solid rgba(26,69,148,0.24);
}

.app-card{
  padding:20px;
  border-radius:22px;
  background:linear-gradient(165deg,rgba(13,33,79,0.96),rgba(31,95,181,0.88));
  color:#fff;
  box-shadow:0 16px 32px rgba(6,15,36,0.22);
}

.app-card-compact{
  padding:18px;
}

.app-icon{
  width:84px;
  height:84px;
  border-radius:22px;
  display:block;
  object-fit:cover;
  box-shadow:0 14px 26px rgba(0,0,0,0.22);
}

.app-card-copy{
  margin-top:14px;
}

.app-card-label{
  display:inline-block;
  margin-bottom:8px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(255,255,255,0.14);
  font-size:0.74rem;
  font-weight:780;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.app-card h3{
  margin:0;
  font-size:1.3rem;
}

.app-card p{
  margin:8px 0 0;
  color:rgba(255,255,255,0.86);
}

.app-card a{
  color:#fff;
}

.device-preview{
  min-width:0;
  width:min(100%,360px);
  margin-left:auto;
}

.device-shell{
  position:relative;
  height:100%;
  min-height:340px;
  padding:16px;
  border-radius:28px;
  background:
    linear-gradient(180deg,rgba(255,255,255,0.98),rgba(238,244,255,0.96)),
    linear-gradient(140deg,rgba(13,33,79,0.12),rgba(33,135,156,0.08));
  border:1px solid rgba(26,69,148,0.12);
  box-shadow:
    0 24px 40px rgba(10,24,56,0.14),
    inset 0 1px 0 rgba(255,255,255,0.8);
  overflow:hidden;
}

.device-shell::before{
  content:"";
  position:absolute;
  top:12px;
  left:50%;
  width:120px;
  height:22px;
  transform:translateX(-50%);
  border-radius:999px;
  background:rgba(15,26,43,0.08);
}

.device-status{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-top:6px;
  color:#5b6a82;
  font-size:0.74rem;
  font-weight:700;
  letter-spacing:0.03em;
  text-transform:uppercase;
}

.device-header{
  display:flex;
  gap:12px;
  align-items:center;
  margin-top:14px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(130deg,var(--launch-1),var(--launch-2));
  color:#fff;
}

.device-app-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  object-fit:cover;
  flex:0 0 auto;
  box-shadow:0 12px 20px rgba(0,0,0,0.18);
}

.device-header strong{
  display:block;
  margin-bottom:4px;
  font-size:0.94rem;
}

.device-header p{
  margin:0;
  color:rgba(255,255,255,0.88);
  font-size:0.82rem;
  line-height:1.4;
}

.device-stack{
  display:grid;
  gap:10px;
  margin-top:12px;
}

.device-card{
  padding:13px;
  border-radius:16px;
  background:rgba(255,255,255,0.88);
  border:1px solid rgba(26,69,148,0.10);
  box-shadow:0 10px 24px rgba(10,24,56,0.08);
}

.device-label{
  display:inline-flex;
  margin-bottom:6px;
  color:var(--accent);
  font-size:0.74rem;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.device-card strong{
  display:block;
  margin-bottom:3px;
  font-size:0.94rem;
}

.device-card p{
  margin:0;
  color:var(--muted);
  font-size:0.84rem;
  line-height:1.42;
}

.device-row{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

.device-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
}

.device-list li{
  margin:4px 0;
  line-height:1.42;
}

.stat-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:16px;
}

.stat-card{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,0.14);
  border:1px solid rgba(255,255,255,0.18);
  backdrop-filter:blur(10px);
  color:#fff;
  box-shadow:0 12px 24px rgba(5,14,34,0.12);
}

.stat-card:nth-child(1){
  background:linear-gradient(180deg,rgba(255,255,255,0.20),rgba(255,255,255,0.10));
}

.stat-card:nth-child(2){
  background:linear-gradient(180deg,rgba(26,161,136,0.22),rgba(255,255,255,0.08));
}

.stat-card:nth-child(3){
  background:linear-gradient(180deg,rgba(245,190,98,0.18),rgba(255,255,255,0.08));
}

.stat-card:nth-child(4){
  background:linear-gradient(180deg,rgba(31,95,181,0.20),rgba(255,255,255,0.08));
}

.stat-label{
  display:block;
  margin-bottom:10px;
  color:rgba(255,255,255,0.72);
  font-size:0.77rem;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
}

.stat-card strong{
  display:block;
  margin-bottom:6px;
  font-size:1.08rem;
}

.stat-card p{
  margin:0;
  color:rgba(255,255,255,0.88);
  line-height:1.5;
}

.section{
  margin-top:16px;
  padding:24px;
  border-radius:24px;
  background:var(--surface-strong);
  border:1px solid rgba(255,255,255,0.72);
  box-shadow:0 14px 32px rgba(6,15,36,0.18);
  position:relative;
  overflow:hidden;
}

.section::before{
  content:"";
  position:absolute;
  inset:auto -40px -60px auto;
  width:180px;
  height:180px;
  border-radius:999px;
  background:radial-gradient(circle, rgba(26,161,136,0.12), transparent 68%);
  pointer-events:none;
}

.section-contrast{
  background:
    radial-gradient(26rem 18rem at 100% 0%, rgba(245,190,98,0.12), transparent 60%),
    linear-gradient(160deg, rgba(13,33,79,0.98), rgba(23,63,136,0.96));
  color:#fff;
}

.section-contrast::before{
  background:radial-gradient(circle, rgba(255,255,255,0.16), transparent 68%);
}

.section-cta{
  background:
    radial-gradient(24rem 18rem at 100% 0%, rgba(245,190,98,0.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,249,255,0.96));
}

.section-head{
  max-width:760px;
  margin-bottom:18px;
}

.section-head-tight{
  max-width:520px;
}

.section-kicker{
  display:inline-flex;
  margin-bottom:10px;
  color:var(--accent);
  font-size:0.8rem;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
}

.section-head h2{
  margin:0 0 8px;
  font-size:clamp(1.5rem,2.3vw,2.15rem);
  line-height:1.16;
}

.section-head p{
  margin:0;
  color:var(--muted);
  font-size:1rem;
  line-height:1.6;
}

.section-contrast .section-kicker,
.section-contrast .feature-eyebrow{
  color:#9de3d4;
}

.section-contrast .section-head h2,
.section-contrast .section-head p{
  color:#fff;
}

.section-split{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,0.95fr);
  gap:24px;
  align-items:start;
}

.feature-grid,
.role-grid,
.step-grid{
  display:grid;
  gap:14px;
}

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

.role-grid{
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.step-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}

.feature-card,
.role-card,
.step-card{
  padding:18px;
  border-radius:20px;
  background:linear-gradient(180deg,#ffffff,#f7faff);
  border:1px solid rgba(26,69,148,0.10);
  box-shadow:0 10px 22px rgba(10,24,56,0.06);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.feature-card:hover,
.role-card:hover,
.step-card:hover,
.card:hover{
  transform:translateY(-3px);
  border-color:rgba(26,69,148,0.18);
  box-shadow:0 16px 28px rgba(10,24,56,0.10);
}

.feature-eyebrow{
  display:inline-flex;
  margin-bottom:10px;
  color:var(--primary);
  font-size:0.78rem;
  font-weight:800;
  letter-spacing:0.04em;
  text-transform:uppercase;
}

.feature-card h3,
.role-card h3,
.step-card h3{
  margin:0 0 8px;
  font-size:1.05rem;
}

.feature-card p,
.role-card p,
.step-card p{
  margin:0;
  color:var(--muted);
  line-height:1.58;
}

.step-number{
  display:inline-grid;
  place-items:center;
  width:34px;
  height:34px;
  margin-bottom:12px;
  border-radius:999px;
  background:linear-gradient(120deg,var(--primary),var(--accent));
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 18px rgba(26,69,148,0.18);
}

.ops-grid{
  display:grid;
  gap:14px;
}

.ops-panel{
  padding:20px;
  border-radius:22px;
  background:rgba(255,255,255,0.94);
  color:var(--ink);
  border:1px solid rgba(255,255,255,0.16);
  box-shadow:0 14px 28px rgba(6,15,36,0.12);
}

.ops-panel-dark{
  background:linear-gradient(155deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06));
  color:#fff;
  border:1px solid rgba(255,255,255,0.14);
}

.ops-panel h3{
  margin:0 0 8px;
  font-size:1.18rem;
}

.ops-panel p{
  margin:0;
  color:inherit;
  opacity:0.9;
  line-height:1.58;
}

.feature-list{
  margin:16px 0 0;
  padding-left:18px;
  color:rgba(255,255,255,0.9);
}

.feature-list li{
  margin:7px 0;
  line-height:1.45;
}

.grid{
  margin-top:16px;
  display:grid;
  gap:14px;
  grid-template-columns:repeat(12,minmax(0,1fr));
}

.card{
  grid-column:span 6;
  padding:18px;
  border-radius:var(--radius-lg);
  background:linear-gradient(180deg,rgba(255,255,255,0.96),rgba(245,249,255,0.92));
  border:1px solid rgba(255,255,255,0.68);
  box-shadow:0 14px 32px rgba(6,15,36,0.2);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card h3{
  margin:0 0 7px;
  font-size:1.02rem;
}

.card p{
  margin:0;
  color:var(--muted);
  font-size:0.95rem;
  line-height:1.46;
}

.list{
  margin:8px 0 0;
  padding-left:17px;
  color:var(--muted);
}

.list li{
  margin:6px 0;
  line-height:1.43;
}

.full{
  grid-column:span 12;
}

.copy{
  margin-top:16px;
  padding:22px 24px;
  border-radius:22px;
  background:var(--surface-strong);
  border:1px solid rgba(255,255,255,0.68);
  box-shadow:0 14px 32px rgba(6,15,36,0.14);
}

.copy h2{
  margin:0 0 8px;
  font-size:1.5rem;
}

.copy h3{
  margin:20px 0 8px;
  font-size:1.08rem;
}

.copy p,
.copy li{
  color:var(--muted);
  line-height:1.58;
}

.copy ul{
  margin:8px 0 0;
  padding-left:18px;
}

.copy-shell{
  position:relative;
}

.copy-kicker{
  display:inline-flex;
  margin-bottom:10px;
  color:var(--primary);
  font-size:0.78rem;
  font-weight:800;
  letter-spacing:0.05em;
  text-transform:uppercase;
}

.section-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.doc-layout{
  display:grid;
  grid-template-columns:minmax(220px,0.34fr) minmax(0,1fr);
  gap:16px;
  align-items:start;
}

.doc-copy{
  margin-top:0;
}

.doc-sidecard,
.doc-rail-card{
  padding:20px;
  border-radius:22px;
  background:linear-gradient(180deg,rgba(13,33,79,0.95),rgba(31,95,181,0.90));
  color:#fff;
  box-shadow:0 14px 28px rgba(6,15,36,0.2);
}

.doc-sidecard h3,
.doc-rail-card h3{
  margin:0 0 8px;
  font-size:1.2rem;
}

.doc-sidecard p,
.doc-rail-card p{
  margin:0 0 14px;
  color:rgba(255,255,255,0.88);
  line-height:1.56;
}

.doc-meta-list{
  margin:14px 0 0;
  padding-left:18px;
  color:rgba(255,255,255,0.9);
}

.doc-meta-list li{
  margin:8px 0;
  line-height:1.5;
}

.doc-rail{
  position:sticky;
  top:18px;
}

.notice{
  margin-top:10px;
  border-left:4px solid var(--accent);
  background:rgba(26,161,136,0.08);
  border-radius:12px;
  padding:12px 12px;
  color:var(--muted);
}

.danger{
  border-left-color:var(--danger);
  background:rgba(209,59,59,0.08);
}

.footer{
  margin:20px auto 0;
  color:rgba(255,255,255,0.9);
  text-align:center;
  font-size:0.85rem;
}

.footer a{
  color:#fff;
}

@media (max-width:900px){
  .page{
    width:min(1100px,95vw);
    padding-top:14px;
  }

  .hero{
    padding:20px;
  }

  .grid{
    margin-top:12px;
  }

  .card{
    grid-column:span 12;
  }

  .topbar{
    align-items:flex-start;
    flex-direction:column;
  }

  .nav{
    gap:12px;
  }

  .hero-layout{
    grid-template-columns:1fr;
  }

  .hero h2{
    max-width:none;
  }

  .hero-metrics,
  .section-split,
  .doc-layout{
    grid-template-columns:1fr;
  }

  .device-row,
  .feature-grid,
  .role-grid,
  .step-grid,
  .stat-strip{
    grid-template-columns:1fr;
  }

  .section{
    padding:20px;
  }

  .app-card{
    order:-1;
  }

  .doc-rail{
    position:static;
  }
}
