/* =========================================================================
   Super1 — site styles
   Tokens, primitives, then page-specific components.
   ========================================================================= */

:root {
  --s1-red:        #B81D1D;
  --s1-red-soft:   #FCEBEB;
  --s1-red-deep:   #791F1F;
  --s1-ink:        #0A0A0A;
  --s1-ink-muted:  #555555;
  --s1-ink-soft:   #888888;
  --s1-paper:      #FFFFFF;
  --s1-paper-soft: #FAFAF8;
  --s1-line:       #E8E6E1;
  --s1-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --s1-radius-sm: 6px;
  --s1-radius-md: 10px;
  --s1-radius-lg: 14px;
  --s1-max:    1100px;
  --s1-pad-x:  24px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--s1-paper);
  color: var(--s1-ink);
  font-family: var(--s1-font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--s1-red); outline-offset: 3px; border-radius: 3px; }

/* Brand-aligned: every period across the site is red. */
.dot { color: var(--s1-red); }

/* ---------- Nav ---------- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--s1-max);
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--s1-pad-x);
  border-bottom: 0.5px solid var(--s1-line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--s1-ink);
}

.brand-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--s1-red);
  margin-left: 2px;
  transform: translateY(-0.5px);
}

.nav-links {
  display: flex;
  gap: 26px;
  font-size: 14px;
  color: var(--s1-ink-muted);
}

.nav-links a {
  transition: color 120ms ease;
  position: relative;
}
.nav-links a:hover { color: var(--s1-ink); }
.nav-links a.active { color: var(--s1-ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -22px;
  height: 2px;
  background: var(--s1-red);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 11px 22px;
  border-radius: var(--s1-radius-sm);
  border: 0.5px solid transparent;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease,
              border-color 140ms ease, transform 80ms ease;
  user-select: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(0.5px); }

.btn-primary { background: var(--s1-red); color: #ffffff; }
.btn-primary:hover { background: var(--s1-red-deep); }

.btn-secondary {
  background: var(--s1-paper);
  color: var(--s1-ink);
  border-color: #D4D4D4;
}
.btn-secondary:hover {
  background: var(--s1-paper-soft);
  border-color: #A8A8A8;
}

.nav-cta { font-size: 13px; padding: 8px 16px; }

/* ---------- Hero (landing page) ---------- */

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 14vh, 140px) var(--s1-pad-x);
  max-width: var(--s1-max);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: clamp(32px, 5.5vw, 48px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--s1-ink);
  margin: 0 0 20px;
  max-width: 640px;
  text-wrap: balance;
}

.hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--s1-ink-muted);
  line-height: 1.55;
  margin: 0 0 36px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Inner page layout ---------- */

.page {
  flex: 1 0 auto;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: clamp(56px, 9vh, 96px) var(--s1-pad-x) clamp(64px, 10vh, 120px);
}

.page-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--s1-red);
  margin: 0 0 14px;
}

.page-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--s1-ink);
  margin: 0 0 18px;
}

.page-lede {
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--s1-ink-muted);
  margin: 0 0 48px;
  max-width: 600px;
}

.page-section {
  margin-top: 48px;
}

.page-section h2 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--s1-ink);
  margin: 0 0 16px;
}

.page-section p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--s1-ink-muted);
  margin: 0 0 14px;
  max-width: 600px;
}

/* ---------- Slice list (Products page) ---------- */

.slice-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.slice-row {
  display: grid;
  grid-template-columns: 1.6fr 2fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 0.5px solid var(--s1-line);
}

.slice-row:last-child { border-bottom: none; }

.slice-name {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--s1-ink);
}

.slice-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--s1-ink-muted);
  max-width: 100%;
  overflow-wrap: break-word;
}

.status {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.status-pilot { background: var(--s1-red-soft); color: var(--s1-red-deep); }
.status-design { background: var(--s1-paper-soft); color: var(--s1-ink-muted); border: 0.5px solid var(--s1-line); }
.status-planned { background: transparent; color: var(--s1-ink-soft); border: 0.5px solid var(--s1-line); }

/* ---------- Principles list (Platform page) ---------- */

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.principle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.principle-num {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--s1-red);
}

.principle-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--s1-ink);
  margin: 0;
}

.principle-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--s1-ink-muted);
  margin: 0;
}

/* ---------- Footer ---------- */

.foot {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--s1-max);
  width: 100%;
  margin: 0 auto;
  padding: 18px var(--s1-pad-x);
  border-top: 0.5px solid var(--s1-line);
  font-size: 12px;
  color: var(--s1-ink-soft);
}

.foot-right {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--s1-red);
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .nav {
    padding: 14px max(18px, env(safe-area-inset-left)) 14px max(18px, env(safe-area-inset-right));
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .nav-links {
    order: 1;
    flex-basis: 100%;
  }
  .nav-links a.active::after { bottom: -6px; }
  .nav-cta { font-size: 12px; padding: 7px 13px; }
  .btn { min-height: 44px; }
  .hero { padding: 64px 20px 96px; }
  .foot {
    padding: 14px max(18px, env(safe-area-inset-left)) 14px max(18px, env(safe-area-inset-right));
  }
  .page { padding: 48px 20px 80px; }
  .slice-row {
    grid-template-columns: 1fr auto;
    gap: 8px 16px;
  }
  .slice-desc {
    grid-column: 1 / -1;
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 380px) {
  .hero-actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 280px; }
  .foot { flex-wrap: wrap; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .nav-cta, .hero-actions { display: none; }
}
