:root {
  color-scheme: dark;
  --bg-deep: #06080f;
  --bg-mid: #0b1020;
  --bg-card: rgba(15, 22, 41, 0.6);
  --panel: rgba(15, 23, 42, 0.5);
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-alt: #a78bfa;
  --text-primary: #f5f7fb;
  --text-secondary: #94a3b8;
  --text-muted: #6b7689;
  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.1);
  --max-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text-primary);
  font-family:
    'Inter',
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-feature-settings:
    'cv11' on,
    'ss01' on,
    'ss03' on;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  background: var(--bg-deep);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: #7dd3fc;
}

img {
  max-width: 100%;
  height: auto;
}

.smart-hub-shell {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(56, 189, 248, 0.12), transparent 60%),
    radial-gradient(1000px 600px at 95% 0%, rgba(167, 139, 250, 0.1), transparent 55%),
    linear-gradient(180deg, #06080f 0%, #0a0f1e 60%, #070a14 100%);
}

.ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-one {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 30%, transparent 80%);
}

.ambient-two {
  background:
    radial-gradient(700px 350px at 80% 100%, rgba(56, 189, 248, 0.1), transparent 70%),
    radial-gradient(500px 300px at 10% 80%, rgba(167, 139, 250, 0.08), transparent 70%);
}

/* ---------- Header / hero ---------- */
.hero-shell,
.page-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.hero-shell {
  padding-top: 28px;
  padding-bottom: 96px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 96px;
}

.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.topbar-brand:hover {
  color: var(--text-primary);
}

.topbar-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.topbar-brand span {
  display: grid;
  gap: 1px;
}

.topbar-brand strong {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.topbar-brand small {
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.2;
}

.page-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-link {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.hero-center {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 24px;
  padding: 6px 14px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 10%, #c7d2fe 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description {
  max-width: 720px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.65;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  transition: transform 0.2s ease;
}

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

.store-badge {
  display: block;
  width: auto;
  height: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 160px;
  padding: 14px 20px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: left;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.stat-pill:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.stat-value {
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.stat-label {
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ---------- Sections ---------- */
.page-content {
  padding-bottom: 64px;
}

.smart-section {
  padding: 80px 0;
  border-top: 1px solid var(--border);
}

.page-content > .smart-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.section-tag {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 16px;
  color: var(--text-primary);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 760px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section-lead-spaced {
  margin-top: 16px;
}

.section-subtitle {
  margin: 36px 0 14px;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 36px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    rgba(15, 23, 42, 0.45);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.3);
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.04), rgba(255, 255, 255, 0)),
    rgba(15, 23, 42, 0.55);
}

.feature-card h3 {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.65;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent);
  font-size: 1.05rem;
}

.card-icon--sm {
  width: 38px;
  height: 38px;
  font-size: 0.95rem;
}

/* ---------- Protocol grid ---------- */
.protocol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}

.protocol-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.4);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

.protocol-card:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.3);
}

.protocol-card h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.protocol-card p {
  margin: 2px 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

/* ---------- Section links ---------- */
.section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.mt-4 {
  margin-top: 24px;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition:
    transform 0.2s,
    background 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.section-links a:hover {
  transform: translateY(-1px);
}

.link-primary {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  box-shadow: 0 8px 24px -10px rgba(14, 165, 233, 0.6);
}

.link-primary:hover {
  color: white;
  filter: brightness(1.05);
}

.link-secondary {
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
}

.link-secondary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

/* ---------- Legal documents ---------- */
.legal-document {
  display: grid;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto;
}

.legal-document .smart-section {
  padding: 28px 30px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.45);
}

.legal-block h2 {
  margin: 0 0 10px;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.legal-block p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

.legal-block p + p {
  margin-top: 12px;
}

.hero-legal {
  margin: 22px auto 0;
  color: var(--text-secondary);
  font-size: 0.94rem;
}

.hero-legal a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Brand link / hero brand ---------- */
.brand-link {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
}

.brand-logo {
  width: auto;
  height: 76px;
}

/* ---------- Footer ---------- */
.shell-footer {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  padding: 60px 32px 24px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(6, 8, 15, 0.7) 100%);
  color: var(--text-secondary);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-logo {
  width: auto;
  height: 44px;
}

.footer-brand p {
  max-width: 380px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links h4 {
  margin: 0 0 4px;
  color: var(--text-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: var(--max-w);
  margin: 36px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
}

.footer-bottom-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .feature-grid,
  .protocol-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px;
    text-align: center;
  }

  .page-nav {
    justify-content: center;
  }

  .hero-shell {
    padding-top: 22px;
    padding-bottom: 64px;
  }

  .smart-section {
    padding: 56px 0;
  }

  .feature-grid,
  .protocol-grid {
    grid-template-columns: 1fr;
  }

  .legal-document .smart-section {
    padding: 22px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: left;
  }

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

  .stat-pill {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }
}

@media (max-width: 480px) {
  .hero-shell,
  .page-content {
    padding-left: 18px;
    padding-right: 18px;
  }

  .shell-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .store-badge {
    height: 48px;
  }

  .stat-pill {
    flex: 1 1 100%;
  }
}
