:root{
  /* App bar surface tokens provided by you */
  --surface-light: #FFFFFF;
  --surface-dark:  #262739;
  --surface-hc-light: #FFFFFF;
  --surface-hc-dark:  #000000;

  --border-light: #D2D1DF;
  --border-dark:  #3C3F58;
  --border-hc-light: #000000;
  --border-hc-dark:  #FFFFFF;

  /* Premium palette (indigo/violet + obsidian) */
  --violet: #5B2DFF;
  --indigo: #2F2A7A;
  --obsidian: #111827;
  --slate: #9CA3AF;

  --radius-xl: 20px;
  --radius-lg: 16px;
  --shadow: 0 18px 48px rgba(0,0,0,.35);

  /* Defaults: Dark */
  --bg: var(--surface-dark);
  --fg: #F4F5FF;
  --muted: rgba(244,245,255,.72);
  --border: var(--border-dark);
  --topbar-border: rgba(255,255,255,.18);
  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.12);
  --input-bg: rgba(0,0,0,.18);
  --input-border: rgba(255,255,255,.14);
  --input-border-strong: rgba(255,255,255,.24);
  --input-text: rgba(244,245,255,.92);
  --btn-fg: #FFFFFF;
  --focus: #FFFFFF;
  --hero-lite: rgba(244,245,255,.9);

  /* Wordmark split */
  --brand-plane: #EDEBFF;
  --brand-stack: rgba(244,245,255,.86);

  /* Accent */
  --accent1: var(--violet);
  --accent2: #7C5CFF;
}

/* Auto-follow OS for light */
@media (prefers-color-scheme: light){
  html[data-theme="auto"]:root{
    --bg: var(--surface-light);
    --fg: #171827;
    --muted: rgba(23,24,39,.65);
    --border: var(--border-light);
    --topbar-border: rgba(0,0,0,.12);
    --card: #F7F7FB;
    --card-border: #E6E5F0;
    --input-bg: #FFFFFF;
    --input-border: #DAD9E8;
    --input-border-strong: rgba(23,24,39,.22);
    --input-text: rgba(23,24,39,.92);
    --btn-fg: #FFFFFF;
    --focus: #171827;
    --hero-lite: rgba(23,24,39,.8);
    --brand-plane: #2F2A7A;
    --brand-stack: #171827;
  }
}

html[data-theme="light"]{
  --bg: var(--surface-light);
  --fg: #171827;
  --muted: rgba(23,24,39,.65);
  --border: var(--border-light);
  --topbar-border: rgba(0,0,0,.12);
  --card: #F7F7FB;
  --card-border: #E6E5F0;
  --input-bg: #FFFFFF;
  --input-border: #DAD9E8;
  --input-border-strong: rgba(23,24,39,.22);
  --input-text: rgba(23,24,39,.92);
  --focus: #171827;
  --hero-lite: rgba(23,24,39,.8);
  --brand-plane: #2F2A7A;
  --brand-stack: #171827;
}

html[data-theme="dark"]{
  --bg: var(--surface-dark);
  --fg: #F4F5FF;
  --muted: rgba(244,245,255,.72);
  --border: var(--border-dark);
  --topbar-border: rgba(255,255,255,.18);
  --card: rgba(255,255,255,.06);
  --card-border: rgba(255,255,255,.12);
  --input-bg: rgba(0,0,0,.18);
  --input-border: rgba(255,255,255,.14);
  --input-border-strong: rgba(255,255,255,.24);
  --input-text: rgba(244,245,255,.92);
  --focus: #FFFFFF;
  --hero-lite: rgba(244,245,255,.9);
  --brand-plane: #EDEBFF;
  --brand-stack: rgba(244,245,255,.86);
}

html[data-theme="hc-light"]{
  --bg: var(--surface-hc-light);
  --fg: #000000;
  --muted: #000000;
  --border: var(--border-hc-light);
  --topbar-border: var(--border-hc-light);
  --card: #FFFFFF;
  --card-border: #000000;
  --input-bg: #FFFFFF;
  --input-border: #000000;
  --input-border-strong: #000000;
  --input-text: #000000;
  --focus: #000000;
  --hero-lite: #000000;
  --accent1: #000000;
  --accent2: #000000;
  --brand-plane: #000000;
  --brand-stack: #000000;
}

html[data-theme="hc-dark"]{
  --bg: var(--surface-hc-dark);
  --fg: #FFFFFF;
  --muted: #FFFFFF;
  --border: var(--border-hc-dark);
  --topbar-border: var(--border-hc-dark);
  --card: #000000;
  --card-border: #FFFFFF;
  --input-bg: #000000;
  --input-border: #FFFFFF;
  --input-border-strong: #FFFFFF;
  --input-text: #FFFFFF;
  --focus: #FFFFFF;
  --hero-lite: #FFFFFF;
  --accent1: #FFFFFF;
  --accent2: #FFFFFF;
  --brand-plane: #FFFFFF;
  --brand-stack: #FFFFFF;
}

*{ box-sizing: border-box; }
html,body{ height: 100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  /* Background: layered gradients + subtle parchment grain */
  background:
    radial-gradient(1200px 900px at 98% 8%, rgba(91,45,255,.32), transparent 62%),
    radial-gradient(980px 760px at 12% 18%, rgba(124,92,255,.14), transparent 60%),
    radial-gradient(900px 720px at 92% 85%, rgba(43,42,122,.22), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.035), transparent 30%),
    var(--bg);
  color: var(--fg);
  position: relative;
  display:flex;
  flex-direction:column;
}

/* Parchment-like grain layer (very subtle) */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image: url("assets/noise.svg");
  background-repeat: repeat;
  opacity: .09;
  mix-blend-mode: overlay;
  z-index: 0;
}

/* Soft vignette for depth */
body::after{
  content:"";
  position:fixed;
  inset:-20px;
  pointer-events:none;
  background:
    radial-gradient(1100px 800px at 50% 40%, transparent 50%, rgba(0,0,0,.28) 100%);
  opacity:.55;
  z-index: 0;
}

/* Ensure content stays above background layers */
.topbar,
.main,
.footer{
  position: relative;
  z-index: 1;
}

.container{
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.topbar{
  height: 64px;
  background: var(--bg);
  border-bottom: 1px solid var(--topbar-border);
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding: 0 36px;
}

.brand{
  height: 64px;
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color: inherit;
  user-select:none;
}
.brand__mark{
  flex:0 0 auto;
  width: 40px;
  height: 40px;
}
.brand__name{
  font-weight: 800;
  letter-spacing: -0.015em;
  font-size: 16px;
}

/* subtle split coloring without adding a second span */
.brand__name{
  background: linear-gradient(90deg, var(--brand-plane), var(--brand-plane) 45%, var(--brand-stack) 55%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.main{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 44px 0;
}

.hero{
  text-align:center;
  padding: 28px 0 10px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.hero__headline{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 14px;
  flex-wrap:wrap;
}

.hero__badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  background: radial-gradient(110% 110% at 20% 10%, rgba(91,45,255,.45), transparent 55%),
              radial-gradient(90% 90% at 80% 20%, rgba(124,92,255,.35), transparent 60%),
              rgba(255,255,255,.04);
  border: 1px solid var(--card-border);
  box-shadow: 0 16px 34px rgba(0,0,0,.26);
  margin: 0;
}

.hero__title{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero__title-lite{
  font-weight: 500;
  color: var(--hero-lite);
}

.hero__sub{
  margin: 12px auto 0;
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted);
}

.card{
  width: min(640px, 100%);
  margin: 22px auto 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: 0 20px 46px rgba(0,0,0,.28);
  text-align:left;
}

.notify{
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

input[type="email"]{
  flex: 1 1 260px;
  min-width: 220px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--input-border-strong);
  background: var(--input-bg);
  color: var(--input-text);
  outline: none;
}

input[type="email"]::placeholder{ color: silver; }
html[data-theme="light"] input[type="email"]::placeholder,
html[data-theme="auto"] input[type="email"]::placeholder{ color: silver; }
html[data-theme="hc-light"] input[type="email"]::placeholder,
html[data-theme="hc-dark"] input[type="email"]::placeholder{ color: var(--muted); }

input[type="email"]:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button{
  flex: 0 0 auto;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  color: var(--btn-fg);
  font-weight: 800;
  cursor: pointer;
}

html[data-theme="hc-light"] button,
html[data-theme="hc-dark"] button{
  background: transparent;
  border: 2px solid var(--border);
  color: var(--fg);
}

button:focus-visible{
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

button:hover{
  filter: brightness(1.07);
}

.bullets{
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.fineprint{
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer{
  border-top: 1px solid var(--border);
  padding: 16px 28px;
  color: var(--muted);
  font-size: 13px;
  display:flex;
  justify-content:center;
}

.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;
}

@media (max-width: 720px){
  .theme{ display:none; }
  .hero__badge{ width: 72px; height: 72px; }
  .hero__headline{ gap: 10px; }
  .card{ padding: 16px; }
}
