:root {
  color-scheme: light;
  --ink: #17201c;
  --muted: #5d6862;
  --paper: #f4f3eb;
  --surface: #fffefa;
  --line: #d9ded8;
  --studio: #164c3b;
  --studio-soft: #dfece6;
  --coin: #8a6818;
  --coin-soft: #f3ead1;
  --kartum: #167049;
  --kartum-soft: #dff1e7;
  --danger: #8c2e2e;
  --radius-sm: 14px;
  --radius-md: 22px;
  --shadow: 0 22px 64px rgba(23, 32, 28, 0.08);
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 18px;
  --space-4: 24px;
  --space-5: 36px;
  --space-6: 56px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -4%, rgba(61, 128, 98, 0.16), transparent 34rem),
    var(--paper);
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--studio); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible {
  outline: 3px solid #2e75b6;
  outline-offset: 4px;
  border-radius: 6px;
}
.shell { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.site-header { padding: 20px 0; }
.header-row, .footer-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; color: var(--ink); font-weight: 780; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.desktop-nav { display: flex; align-items: center; gap: 22px; }
.desktop-nav a { min-height: 44px; display: inline-flex; align-items: center; font-size: 15px; font-weight: 650; }
.mobile-nav { display: none; }
.mobile-nav summary { min-height: 44px; display: grid; place-items: center; cursor: pointer; font-weight: 700; }
.mobile-nav div { display: grid; gap: 8px; padding: 12px 0; }
.mobile-nav a { min-height: 44px; display: flex; align-items: center; }
.hero { padding: 66px 0 74px; }
.eyebrow { margin: 0 0 14px; color: var(--studio); font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; line-height: 1.12; letter-spacing: -.035em; }
h1 { max-width: 900px; margin-bottom: 22px; font-size: clamp(42px, 7vw, 78px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(20px, 2.5vw, 28px); line-height: 1.45; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--studio); border-radius: 999px; background: var(--studio); color: white; font-weight: 750; text-decoration: none; }
.button.secondary { background: transparent; color: var(--studio); }
.section { padding: 0 0 72px; }
.section-heading { max-width: 760px; margin-bottom: 28px; }
.section-heading p { color: var(--muted); }
.app-grid, .principle-grid, .support-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.principle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow); }
.app-card { position: relative; overflow: hidden; padding: clamp(26px, 4vw, 42px); }
.app-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--app-accent); }
.app-card.coin { --app-accent: var(--coin); --app-soft: var(--coin-soft); }
.app-card.kartum { --app-accent: var(--kartum); --app-soft: var(--kartum-soft); }
.app-card .eyebrow { color: var(--app-accent); }
.app-card h2 { margin-bottom: 14px; }
.app-card p { color: var(--muted); }
.status { display: inline-flex; margin: 8px 0 22px; padding: 7px 12px; border-radius: 999px; background: var(--app-soft); color: var(--app-accent); font-size: 14px; font-weight: 750; }
.feature-list { margin: 0 0 24px; padding-left: 1.2em; }
.feature-list li + li { margin-top: 7px; }
.principle { padding: 26px; }
.principle h3 { margin-bottom: 8px; font-size: 21px; }
.principle p { margin: 0; color: var(--muted); }
.product-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: 28px; align-items: stretch; }
.product-panel { padding: clamp(28px, 5vw, 54px); }
.trust-panel { padding: 28px; background: var(--studio-soft); }
.trust-panel h2 { font-size: 24px; }
.route-list { display: grid; gap: 12px; }
.route-list a { min-height: 46px; display: flex; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 700; }
.notice { padding: 18px 20px; border-left: 5px solid var(--danger); border-radius: var(--radius-sm); background: #faece9; }
.breadcrumbs { padding-top: 12px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { color: inherit; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.faq summary { min-height: 52px; display: flex; align-items: center; padding: 12px 18px; cursor: pointer; font-weight: 750; }
.faq details p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.site-footer { padding: 30px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.footer-row p { margin: 0; }
.not-found { min-height: 55vh; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 780px) {
  .shell { width: min(100% - 28px, 1160px); }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { padding: 40px 0 52px; }
  .app-grid, .principle-grid, .support-grid, .product-hero { grid-template-columns: 1fr; }
  .section { padding-bottom: 52px; }
  .footer-row { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 390px) {
  body { font-size: 16px; }
  .app-card, .product-panel { padding: 24px 20px; }
  .actions { display: grid; }
}
