:root {
  color-scheme: light dark;
  --bg: #f4f6f8;
  --surface: rgba(255, 255, 255, 0.74);
  --surface-strong: #ffffff;
  --text: #10131a;
  --muted: #69707d;
  --line: rgba(16, 19, 26, 0.10);
  --line-strong: rgba(16, 19, 26, 0.16);
  --accent: #2d6cff;
  --accent-2: #67a4ff;
  --accent-soft: rgba(45, 108, 255, 0.10);
  --shadow: 0 24px 70px rgba(22, 31, 52, 0.08);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1180px;
}

html[data-theme="dark"] {
  --bg: #0b0d12;
  --surface: rgba(18, 21, 29, 0.74);
  --surface-strong: #12151d;
  --text: #f3f5f7;
  --muted: #969eaa;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --accent: #6b96ff;
  --accent-2: #8eb6ff;
  --accent-soft: rgba(107, 150, 255, 0.14);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d12;
    --surface: rgba(18, 21, 29, 0.74);
    --surface-strong: #12151d;
    --text: #f3f5f7;
    --muted: #969eaa;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.15);
    --accent: #6b96ff;
    --accent-2: #8eb6ff;
    --accent-soft: rgba(107, 150, 255, 0.14);
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 180ms ease, color 180ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    color-mix(in srgb, var(--bg) 94%, transparent),
    color-mix(in srgb, var(--bg) 70%, transparent) 32%,
    color-mix(in srgb, var(--bg) 88%, transparent)
  );
  z-index: -2;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: -0.045em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(255,255,255,.42), transparent 26%),
    linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 28%, transparent);
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.26);
}

.brand-mark span {
  font-size: 15px;
  letter-spacing: -0.06em;
  position: relative;
  z-index: 1;
}

.brand-word {
  font-size: 22px;
}

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

.build-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
}

.theme-toggle:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 3px;
}

.theme-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.moon-icon {
  display: none;
}

html[data-theme="dark"] .sun-icon {
  display: none;
}

html[data-theme="dark"] .moon-icon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .sun-icon {
    display: none;
  }

  :root:not([data-theme="light"]) .moon-icon {
    display: block;
  }
}

.hero {
  padding: clamp(30px, 5vw, 64px) 0 clamp(46px, 6vw, 72px);
  max-width: 930px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow-line {
  width: 34px;
  height: 1px;
  background: var(--accent);
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(58px, 9.6vw, 122px);
  line-height: 0.88;
  letter-spacing: -0.075em;
  font-weight: 760;
  text-wrap: balance;
}

.hero h1 span {
  color: var(--accent);
}

.hero-copy {
  max-width: 720px;
  margin: 38px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.15vw, 25px);
  line-height: 1.5;
  letter-spacing: -0.025em;
}

.hero-meta {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.build-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 680;
  color: var(--text);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 36%, transparent);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 34%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.meta-separator {
  color: var(--line-strong);
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.principle-card,
.signal-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(22px);
  box-shadow: var(--shadow);
}

.principle-card {
  min-height: 235px;
  padding: 26px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 180ms ease, border-color 180ms ease;
}

.principle-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.card-index {
  margin-bottom: auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0.12em;
}

.principle-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.principle-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 15px;
}

.signal-panel {
  min-height: 360px;
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5vw, 58px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
  position: relative;
}

.signal-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--accent-soft), transparent 42%);
  pointer-events: none;
}

.signal-copy,
.signal-visual {
  position: relative;
  z-index: 1;
}

.signal-kicker {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-copy h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 58px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.signal-copy p {
  max-width: 570px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.signal-visual {
  width: min(100%, 290px);
  aspect-ratio: 1;
  margin-left: auto;
  display: grid;
  place-items: center;
}

.core-mark {
  width: 94px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background:
    radial-gradient(circle at 70% 18%, rgba(255,255,255,.44), transparent 26%),
    linear-gradient(145deg, var(--accent-2), var(--accent));
  color: white;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.07em;
  box-shadow:
    0 24px 60px color-mix(in srgb, var(--accent) 28%, transparent),
    inset 0 0 0 1px rgba(255,255,255,.24);
}

.orbit {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.orbit-one {
  width: 72%;
  height: 72%;
  animation: rotate 18s linear infinite;
}

.orbit-one::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  top: 12%;
  left: 14%;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 22px var(--accent);
}

.orbit-two {
  width: 100%;
  height: 100%;
  border-style: dashed;
  opacity: .55;
  animation: rotate 32s linear infinite reverse;
}

@keyframes rotate {
  to { transform: rotate(360deg); }
}

.site-footer {
  min-height: 118px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.footer-dot {
  color: var(--line-strong);
}

.ambient {
  position: fixed;
  z-index: -3;
  width: 42vw;
  height: 42vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .12;
  pointer-events: none;
  background: var(--accent);
}

.ambient-one {
  top: -22vw;
  right: -10vw;
}

.ambient-two {
  bottom: -28vw;
  left: -20vw;
  opacity: .07;
}

@media (max-width: 820px) {
  .page-shell {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    min-height: 70px;
  }

  .build-status {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle-card {
    min-height: 190px;
  }

  .signal-panel {
    grid-template-columns: 1fr;
  }

  .signal-visual {
    margin: 10px auto 0;
    width: min(72vw, 260px);
  }
}

@media (max-width: 520px) {
  body {
    background-size: 36px 36px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-word {
    font-size: 20px;
  }

  .hero {
    padding-top: 42px;
    padding-bottom: 58px;
  }

  .hero h1 {
    font-size: clamp(52px, 18vw, 82px);
  }

  .hero-copy {
    margin-top: 28px;
    font-size: 18px;
  }

  .meta-separator {
    display: none;
  }

  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .signal-panel {
    padding: 28px 24px 34px;
  }

  .site-footer {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 34px 0 38px;
  }

  .footer-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
