/* Night sky palette from the brand tokens (StarByte-Software/website PR #2, src/assets/brand/tokens.json). */
@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

/* Dark by default; light from the system unless the theme button chose dark; data-theme (theme.js) wins either way. */
:root {
  color-scheme: dark;
  --bg: #0d0c1a;
  --bg-header: rgba(13, 12, 26, 0.82);
  --surface: #161525;
  --line: #313142;
  --fg: #ededf6;
  --fg-2: #b8b8ce;
  --fg-3: #9696ab;
  --action: #afb7ff;
  --action-hover: #c4ccff;
  --on-action: #121428;
  --star: #f2c36a;
  --glow: rgba(167, 137, 240, 0.22);
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --bg: #f6f6fb;
    --bg-header: rgba(246, 246, 251, 0.85);
    --surface: #ffffff;
    --line: #dddde6;
    --fg: #191928;
    --fg-2: #4b4b5d;
    --fg-3: #676777;
    --action: #433fa6;
    --action-hover: #3d3a98;
    --on-action: #ffffff;
    --star: #a18100;
    --glow: rgba(90, 57, 194, 0.12);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f6fb;
  --bg-header: rgba(246, 246, 251, 0.85);
  --surface: #ffffff;
  --line: #dddde6;
  --fg: #191928;
  --fg-2: #4b4b5d;
  --fg-3: #676777;
  --action: #433fa6;
  --action-hover: #3d3a98;
  --on-action: #ffffff;
  --star: #a18100;
  --glow: rgba(90, 57, 194, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  background:
    radial-gradient(70rem 40rem at 75% -10rem, var(--glow), transparent 70%) no-repeat,
    var(--bg);
  color: var(--fg-2);
  font: 400 1.0625rem/1.65 Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

a { color: var(--action); text-underline-offset: 0.2em; }
a:hover { color: var(--action-hover); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { color: var(--fg); letter-spacing: -0.02em; text-wrap: balance; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--action);
  color: var(--on-action);
  border-radius: 8px;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  min-height: 44px;
  white-space: nowrap;
}
.brand:hover { color: var(--fg); }
.brand-sub { color: var(--fg-3); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav a {
  color: var(--fg-2);
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  padding: 0.6rem 0.6rem;
  border-radius: 8px;
  white-space: nowrap;
}
.nav a:hover { color: var(--fg); background: var(--surface); }
.nav-phone { display: none; }
@media (min-width: 52rem) { .nav-phone { display: inline-block; } }
@media (max-width: 26rem) {
  .brand-sub { display: none; }
  .top-inner { gap: 0.5rem; }
  .nav { gap: 0; }
  .nav a { padding: 0.6rem 0.45rem; font-size: 0.875rem; }
}

.theme {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
}
.theme:hover { color: var(--fg); background: var(--surface); }
.theme svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}
.theme[data-state="system"] .i-system,
.theme[data-state="light"] .i-light,
.theme[data-state="dark"] .i-dark { display: block; }

/* Hero */
.hero { position: relative; padding-top: clamp(3.5rem, 12vh, 7.5rem); padding-bottom: 4rem; }
/* Decorative mark that fills the hero's right half on wide screens. */
.hero-mark { display: none; }
@media (min-width: 64rem) {
  .hero-mark {
    display: block;
    position: absolute;
    right: 2rem;
    top: 50%;
    width: clamp(16rem, 28vw, 22rem);
    height: auto;
    transform: translateY(-50%);
    opacity: 0.9;
    pointer-events: none;
  }
}
.hero h1 {
  max-width: 15ch;
  margin: 0 0 1.5rem;
  font-size: clamp(2.375rem, 6vw, 4.25rem);
  line-height: 1.05;
  font-weight: 750;
}
.hero p { margin: 0 0 1rem; max-width: 40rem; }
.lede { color: var(--fg); font-size: 1.3125rem; line-height: 1.5; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--action);
  color: var(--on-action);
  font-weight: 650;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.button:hover { background: var(--action-hover); color: var(--on-action); }
.button-quiet { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
.button-quiet:hover { background: var(--surface); color: var(--fg); }

/* Sections */
.band { padding-top: 3.5rem; padding-bottom: 3.5rem; border-top: 1px solid var(--line); }

.band h2 {
  max-width: 36rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
}
/* The one gold accent: a small star before each section heading. */
.band h2::before {
  content: "";
  display: block;
  width: 0.7rem;
  height: 0.7rem;
  margin-bottom: 0.9rem;
  background: var(--star);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

.band p { margin: 0 0 1rem; max-width: 40rem; }

.cols { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 52rem) { .cols { grid-template-columns: 1fr 1fr; } }

.how .cols > div {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}
.how h3 { margin: 0 0 0.6rem; font-size: 1.125rem; font-weight: 650; }
.how p { margin: 0; }

.contact dl {
  max-width: 44rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.contact dl > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 1rem;
  padding: 0.6rem 1.25rem;
}
.contact dl > div + div { border-top: 1px solid var(--line); }
.contact dt { color: var(--fg-3); font-size: 0.9375rem; }
.contact dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.contact dd a { display: inline-block; padding: 0.5rem 0; }

.foot {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--fg-3);
  font-size: 0.875rem;
}
.foot p { margin: 0 0 0.35rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
