@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef3f7;
  --surface-3: #e8eef5;
  --border: rgba(15, 23, 42, 0.12);
  --border-strong: rgba(17, 134, 202, 0.28);
  --accent: #1186ca;
  --accent-soft: rgba(17, 134, 202, 0.1);
  --accent-glow: rgba(17, 134, 202, 0.18);
  --text: #101820;
  --muted: #5a6673;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  --hero-tint-primary: rgba(17, 134, 202, 0.12);
  --hero-tint-secondary: rgba(17, 134, 202, 0.08);
  --page-sheen: rgba(255, 255, 255, 0.58);
  --grid-line: rgba(15, 23, 42, 0.05);
  --grid-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 85%);
  --header-bg: rgba(246, 248, 251, 0.8);
  --nav-pill-bg: rgba(15, 23, 42, 0.05);
  --surface-tint-top: rgba(255, 255, 255, 0.92);
  --surface-tint-bottom: rgba(255, 255, 255, 0.72);
  --frame-overlay: rgba(17, 134, 202, 0.05);
  --hero-glow-mid: rgba(17, 134, 202, 0.06);
  --logo-ring: rgba(17, 134, 202, 0.18);
  --btn-secondary-bg: rgba(15, 23, 42, 0.04);
  --metric-bg: rgba(255, 255, 255, 0.72);
  --footer-bg: rgba(15, 23, 42, 0.04);
  --accent-contrast: #06131b;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #212121;
  --surface: #171717;
  --surface-2: #1d1d1d;
  --surface-3: #262626;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(66, 183, 246, 0.34);
  --accent: #42b7f6;
  --accent-soft: rgba(66, 183, 246, 0.12);
  --accent-glow: rgba(66, 183, 246, 0.22);
  --text: #f5f7fa;
  --muted: #a1a8ae;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  --hero-tint-primary: rgba(66, 183, 246, 0.12);
  --hero-tint-secondary: rgba(66, 183, 246, 0.08);
  --page-sheen: rgba(255, 255, 255, 0.02);
  --grid-line: rgba(255, 255, 255, 0.02);
  --grid-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
  --header-bg: rgba(33, 33, 33, 0.78);
  --nav-pill-bg: rgba(255, 255, 255, 0.04);
  --surface-tint-top: rgba(255, 255, 255, 0.03);
  --surface-tint-bottom: rgba(255, 255, 255, 0.015);
  --frame-overlay: rgba(66, 183, 246, 0.07);
  --hero-glow-mid: rgba(66, 183, 246, 0.03);
  --logo-ring: rgba(66, 183, 246, 0.15);
  --btn-secondary-bg: rgba(255, 255, 255, 0.04);
  --metric-bg: rgba(0, 0, 0, 0.16);
  --footer-bg: rgba(0, 0, 0, 0.08);
  --accent-contrast: #111111;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --bg: #212121;
    --surface: #171717;
    --surface-2: #1d1d1d;
    --surface-3: #262626;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(66, 183, 246, 0.34);
    --accent: #42b7f6;
    --accent-soft: rgba(66, 183, 246, 0.12);
    --accent-glow: rgba(66, 183, 246, 0.22);
    --text: #f5f7fa;
    --muted: #a1a8ae;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    --hero-tint-primary: rgba(66, 183, 246, 0.12);
    --hero-tint-secondary: rgba(66, 183, 246, 0.08);
    --page-sheen: rgba(255, 255, 255, 0.02);
    --grid-line: rgba(255, 255, 255, 0.02);
    --grid-mask: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 85%);
    --header-bg: rgba(33, 33, 33, 0.78);
    --nav-pill-bg: rgba(255, 255, 255, 0.04);
    --surface-tint-top: rgba(255, 255, 255, 0.03);
    --surface-tint-bottom: rgba(255, 255, 255, 0.015);
    --frame-overlay: rgba(66, 183, 246, 0.07);
    --hero-glow-mid: rgba(66, 183, 246, 0.03);
    --logo-ring: rgba(66, 183, 246, 0.15);
    --btn-secondary-bg: rgba(255, 255, 255, 0.04);
    --metric-bg: rgba(0, 0, 0, 0.16);
    --footer-bg: rgba(0, 0, 0, 0.08);
    --accent-contrast: #111111;
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, var(--hero-tint-primary), transparent 28%),
    radial-gradient(circle at 85% 20%, var(--hero-tint-secondary), transparent 20%),
    linear-gradient(180deg, var(--page-sheen), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 100% 88px, 88px 100%;
  mask-image: var(--grid-mask);
}

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

img {
  display: block;
  max-width: 100%;
}

code {
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.header-inner,
.container,
.footer-inner,
.footer-bottom {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon,
.footer-icon {
  box-shadow: 0 0 0 1px var(--logo-ring);
}

.brand-icon {
  width: 32px;
  height: auto;
  border-radius: 9px;
  flex-shrink: 0;
}

.footer-icon {
  width: 42px;
  height: auto;
  border-radius: 12px;
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--nav-pill-bg);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  width: 52px;
  min-width: 52px;
  min-height: 32px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--btn-secondary-bg);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.theme-toggle[data-theme-state="dark"] {
  background: var(--accent-soft);
  border-color: var(--border-strong);
}

.theme-toggle-thumb {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--text);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.18);
  transform: translateX(0);
  transition: transform 0.18s ease, background 0.18s ease;
}

.theme-toggle[data-theme-state="dark"] .theme-toggle-thumb {
  transform: translateX(20px);
  background: var(--accent);
}

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

main {
  flex: 1;
}

.container {
  padding: 32px 0 72px;
}

.frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, var(--surface-tint-top), var(--surface-tint-bottom)),
    var(--surface);
  box-shadow: var(--shadow);
}

.frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, transparent 0 48%, var(--frame-overlay) 100%);
}

.hero-panel,
.page-hero,
.detail-card,
.callout-panel,
.story-card,
.app-card {
  padding: 28px;
}

.hero-panel {
  display: grid;
  gap: 28px;
  min-height: 560px;
  align-content: space-between;
}

.hero-panel::before,
.page-hero::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -18%;
  width: 52%;
  aspect-ratio: 1;
  background:
    radial-gradient(circle, var(--accent-glow) 0, var(--hero-glow-mid) 45%, transparent 72%);
  filter: blur(18px);
}

.hero-top,
.tag-row,
.action-row,
.card-header,
.section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-top {
  justify-content: space-between;
}

.tag,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-label {
  margin-bottom: 14px;
}

.micro-copy {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-link,
.inline-link,
.strong-link {
  color: var(--accent);
}

.hero-link:hover,
.inline-link:hover,
.strong-link:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-copy,
.page-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  max-width: 780px;
}

.hero-brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  width: fit-content;
}

.hero-mark {
  width: clamp(108px, 15vw, 136px);
  height: auto;
}

.hero-brand-name {
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.06em;
  font-weight: 700;
}

.hero-copy h1,
.page-hero-copy h1 {
  font-size: clamp(2.9rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
  font-weight: 700;
  max-width: 10ch;
}

.page-hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  max-width: 12ch;
}

.hero-copy p,
.page-hero-copy p,
.detail-card p,
.story-card p,
.app-card p,
.metric-card p,
.footer-brand p {
  color: var(--muted);
  font-size: 1.05rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.96rem;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

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

.btn-primary {
  border-color: transparent;
  background: var(--accent);
  color: var(--accent-contrast);
}

.btn-secondary {
  background: var(--btn-secondary-bg);
}

.metric-grid,
.section-grid,
.apps-grid,
.content-grid,
.policy-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--metric-bg);
}

.metric-card strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-grid {
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-block {
  margin-top: 42px;
}

.section-heading {
  margin-bottom: 22px;
  justify-content: space-between;
}

.section-heading h2 {
  width: 100%;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.section-heading p {
  max-width: 720px;
  color: var(--muted);
}

.story-card h3,
.app-card h2,
.detail-card h2 {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 12px;
}

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

.app-card,
.detail-card,
.story-card,
.callout-panel {
  display: grid;
  gap: 14px;
}

.card-actions,
.link-stack {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.bullet-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text);
}

.bullet-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.callout-panel {
  margin-top: 24px;
  align-items: center;
  justify-content: space-between;
}

.compact-hero {
  min-height: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 22px 0 30px;
  background: var(--footer-bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}

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

.footer-title {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.footer-links,
.footer-bottom {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-bottom {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  padding-top: 18px;
  border-top: 1px solid var(--border);
  justify-content: space-between;
  font-size: 0.92rem;
}

@media (max-width: 980px) {
  .metric-grid,
  .section-grid,
  .apps-grid,
  .content-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .header-inner,
  .footer-inner,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .hero-panel {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .header-inner,
  .container,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 28px, 1160px);
  }

  .header-actions {
    gap: 12px;
  }

  .hero-panel,
  .page-hero,
  .detail-card,
  .callout-panel,
  .story-card,
  .app-card {
    padding: 22px;
  }

  .site-nav {
    width: calc(100% - 54px);
  }

  .hero-brand-lockup {
    gap: 18px;
  }

  .hero-mark {
    width: clamp(88px, 26vw, 112px);
  }

  .hero-brand-name {
    font-size: clamp(2.9rem, 12vw, 3.8rem);
  }

  .hero-copy h1,
  .page-hero-copy h1 {
    max-width: 100%;
  }

  .action-row,
  .card-actions,
  .link-stack {
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
