:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #5eead4;
  --primary-glow: rgba(13, 148, 136, 0.18);
  --amber: #d97706;
  --amber-surface: #fef3c7;
  --amber-ink: #b45309;
  --surface: #fafaf8;
  --surface-elevated: #ffffff;
  --ink: #1e293b;
  --ink-muted: #64748b;
  --logo-tint: #ccfbf1;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.1);
  --radius-sm: 0.5rem;
  --radius-md: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --content: 44rem;
  --content-wide: 68rem;
  --nav-height: 4rem;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, var(--primary-glow), transparent 70%),
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: auto, 3rem 3rem, 3rem 3rem;
  opacity: 0.35;
}

a {
  color: var(--primary-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--primary);
}

img,
svg {
  display: block;
}

/* ── Nav ── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 1.5rem;
  background: rgba(250, 250, 248, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  color: inherit;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}

.nav-brand:hover {
  color: inherit;
}

.nav-brand .logo-sm {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-sm);
  background: var(--logo-tint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  transition: color 150ms ease, background 150ms ease;
}

.nav-link:hover {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.04);
}

/* ── Layout ── */

.page {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.page-narrow {
  max-width: var(--content);
}

/* ── Brand / Logo ── */

.logo {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: var(--radius-lg);
  background: var(--logo-tint);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-md);
}

.wordmark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.wordmark-sm {
  font-size: 1.375rem;
}

.wordmark .o-cell {
  display: inline-block;
  width: 0.68em;
  height: 0.68em;
  margin: 0 0.02em;
  vertical-align: -0.07em;
  border: 2.5px solid var(--primary);
  border-radius: 4px;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.o-cell-sm {
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin: 0 0.02em;
  vertical-align: -0.05em;
  border: 2px solid var(--primary);
  border-radius: 3px;
  background: var(--primary);
}

.tagline {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ── Hero ── */

.hero-panel {
  position: relative;
  margin-top: 2rem;
  margin-bottom: 3rem;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-xl);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: center;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, var(--primary-glow), transparent 55%);
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
}

.hero-panel .logo {
  margin: 0 auto 1.25rem;
}

.hero-panel h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.hero-panel .lead {
  margin: 0 auto 1.75rem;
  max-width: 32rem;
  font-size: 1.0625rem;
  color: var(--ink-muted);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-teal {
  background: var(--logo-tint);
  color: var(--primary-dark);
}

.badge-amber {
  background: var(--amber-surface);
  color: var(--amber-ink);
}

/* ── Buttons ── */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.375rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease;
}

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

.button-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.button-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.button-secondary {
  background: var(--surface-elevated);
  color: var(--ink);
  border: 1px solid var(--border);
}

.button-secondary:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ── Section headings ── */

.section-head {
  margin-bottom: 1.25rem;
}

.section-head h2 {
  margin: 0 0 0.375rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.feature {
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.feature:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 2.25rem;
  height: 2.25rem;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-sm);
  background: var(--logo-tint);
  display: grid;
  place-items: center;
  color: var(--primary-dark);
  font-size: 1.125rem;
}

.feature h3 {
  margin: 0 0 0.375rem;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* ── Cards ── */

.card {
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.card-highlight {
  border-color: rgba(13, 148, 136, 0.25);
  background: linear-gradient(135deg, var(--surface-elevated) 0%, rgba(204, 251, 241, 0.35) 100%);
}

.card h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.card p,
.card li {
  margin: 0 0 0.75rem;
  color: var(--ink);
}

.card p:last-child,
.card li:last-child {
  margin-bottom: 0;
}

.card ul {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.card li {
  margin-bottom: 0.5rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--ink-muted);
}

/* ── Hub app cards ── */

.app-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.app-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.375rem 1.5rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.app-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: inherit;
}

.app-card-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-md);
  background: var(--logo-tint);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.app-card-body h3 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.app-card-body p {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.app-card-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: var(--ink-muted);
}

.app-card-arrow {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 600;
}

/* ── Privacy layout ── */

.privacy-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
}

.privacy-toc {
  display: none;
}

.privacy-toc nav {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  padding: 1.25rem;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.privacy-toc h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.privacy-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.privacy-toc li {
  margin-bottom: 0.375rem;
}

.privacy-toc a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.privacy-toc a:hover {
  color: var(--primary);
}

.policy-section {
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

.policy-section h2 {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.policy-num {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
  flex-shrink: 0;
}

/* ── Footer ── */

.site-footer {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: 2rem 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 500;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}

/* ── Responsive ── */

@media (min-width: 56rem) {
  .privacy-layout {
    grid-template-columns: 14rem 1fr;
    align-items: start;
  }

  .privacy-toc {
    display: block;
  }
}

@media (max-width: 40rem) {
  .app-card {
    grid-template-columns: auto 1fr;
  }

  .app-card-arrow {
    display: none;
  }

  .nav-link-hide-mobile {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #111113;
    --surface-elevated: #1a1a1e;
    --ink: #f1f5f9;
    --ink-muted: #94a3b8;
    --border: #2a2a32;
    --logo-tint: #134e4a;
    --primary-glow: rgba(94, 234, 212, 0.12);
    --amber-surface: #422006;
    --amber-ink: #fbbf24;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.35);
  }

  body::before {
    opacity: 0.2;
  }

  .nav {
    background: rgba(17, 17, 19, 0.85);
  }

  .card-highlight {
    background: linear-gradient(135deg, var(--surface-elevated) 0%, rgba(19, 78, 74, 0.4) 100%);
  }

  .app-card-tags span {
    background: rgba(255, 255, 255, 0.06);
  }

  .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
  }
}
