/* ============================================================
   CELTAURY — "minima"
   Minimalism with the technical truth showing underneath.
   Terminal × Apple. Zero JavaScript. Zero third-party requests.
   ============================================================ */

:root {
  --bg: #FAFAF7;
  --ink: #141412;
  --ink-soft: #55554F;
  --hairline: #E3E3DC;
  --accent: #0E7B37;
  --accent-soft: rgba(14, 123, 55, 0.08);
  --chip-bg: #F1F1EC;
  --dot: rgba(20, 20, 18, 0.055);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
          Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
          Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101010;
    --ink: #ECECE7;
    --ink-soft: #9C9C94;
    --hairline: #262624;
    --accent: #52C97E;
    --accent-soft: rgba(82, 201, 126, 0.10);
    --chip-bg: #1A1A18;
    --dot: rgba(236, 236, 231, 0.05);
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; opacity: 1; }
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 28px;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--accent-soft); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}

.wordmark {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.wordmark:hover { color: var(--ink); }

/* Transparent brand mark, no tile — dark strokes on light, white on dark. */
.brand-mark {
  width: 40px;
  height: 40px;
  margin-right: 12px;
  display: inline-block;
}

.brand-mark--light { display: none; }

@media (prefers-color-scheme: dark) {
  .brand-mark--dark { display: none; }
  .brand-mark--light { display: inline-block; }
}

.cursor {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  margin-left: 3px;
  background: var(--accent);
  animation: blink 1.2s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.nav a {
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.nav a:hover { color: var(--accent); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--bg);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 12px 26px;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hairline);
}
.btn-ghost:hover { background: var(--accent-soft); color: var(--ink); border-color: var(--accent); }

.btn-small { padding: 7px 16px; font-size: 13.5px; margin-left: 8px; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ---------- hero ---------- */

.hero {
  padding: 108px 0 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 26px 26px;
}

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
}

.lede {
  margin-top: 26px;
  font-size: 1.19rem;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 33rem;
}

.hero .cta-row { margin-top: 36px; }

/* spec strip — the terminal underneath */

.spec-strip {
  margin: 84px 0 0;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.spec-strip > div {
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 14px 18px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}

.spec-strip dt {
  color: var(--ink-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.spec-strip dd { margin: 0; color: var(--ink); }
.spec-strip .ok { color: var(--accent); font-weight: 700; }

/* ---------- founding ---------- */

.founding { padding: 96px 0 0; }
.founding p {
  font-size: 1.45rem;
  line-height: 1.5;
  letter-spacing: -0.015em;
  max-width: 36rem;
  font-weight: 500;
}

/* ---------- sections ---------- */

.section {
  margin-top: 118px;
  padding-top: 40px;
  border-top: 1px solid var(--hairline);
}

.section-index {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.section h2 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-weight: 700;
}

.section-intro {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.section-close {
  margin-top: 40px;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 38rem;
}
.section-close a { color: var(--ink); font-weight: 500; }
.section-close a:hover { color: var(--accent); }

.balance {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2.1;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* philosophy points */

.points {
  margin-top: 44px;
  list-style: none;
  counter-reset: point;
}

.points li {
  counter-increment: point;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
}

.points li::before {
  content: counter(point, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  padding-top: 4px;
}

.points p { max-width: 34rem; }
.points strong { font-weight: 650; }

/* ---------- product ---------- */

.product-lede {
  margin-top: 14px;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  color: var(--accent);
  font-weight: 600;
}

.product-body {
  margin-top: 16px;
  max-width: 38rem;
  color: var(--ink-soft);
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.chips li {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.03em;
  padding: 6px 13px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--chip-bg);
  color: var(--ink);
}

/* product card — one glance, one row */

.mono-note {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.product-card {
  margin-top: 36px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 26px;
  align-items: center;
  background: color-mix(in srgb, var(--chip-bg) 55%, transparent);
}

.p-logo {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  display: block;
}

.p-info { min-width: 0; }

.p-desc { font-size: 1.08rem; font-weight: 550; }

.p-info .chips { margin-top: 12px; }
.p-info .mono-note { margin-top: 12px; font-size: 12.5px; }

.p-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-actions .btn { text-align: center; }

.p-inside {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

/* ---------- ladder ---------- */

.ladder {
  margin-top: 44px;
  list-style: none;
  counter-reset: rung;
}

.ladder li {
  counter-increment: rung;
  padding: 20px 0;
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 8px;
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

.ladder li::before {
  content: "0" counter(rung);
  font-family: var(--mono);
  font-size: 15px;
  color: var(--accent);
  padding-top: 3px;
}

.ladder span { color: var(--ink); font-weight: 600; }

.redlines {
  margin-top: 34px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--accent);
  padding: 16px 20px;
  border: 1px dashed var(--accent);
  border-radius: 6px;
  background: var(--accent-soft);
  max-width: 40rem;
  line-height: 2;
}

#support .cta-row { margin-top: 36px; }

/* ---------- contact ---------- */

.contact-list {
  list-style: none;
  margin-top: 44px;
}

.contact-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
  font-size: 1.02rem;
  align-items: baseline;
}

.contact-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }

/* ---------- footer ---------- */

/* Fixed dark surface (theme-independent): this is where the no-background
   white logo lives. A brand anchor, not a theme color. */

.site-footer {
  margin-top: 130px;
  background: #121210;
  border-top: 1px solid rgba(236, 236, 231, 0.14);
  padding: 46px 0 54px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-mark {
  width: 92px;
  height: 92px;
  display: block;
}

.footer-text p { font-size: 14.5px; color: #B9B9B0; }
.footer-text .mono-note { color: #8A8A81; }
.footer-text a { color: #ECECE7; }
.footer-text a:hover { color: #52C97E; }

/* ---------- responsive ---------- */

@media (max-width: 760px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .p-logo { width: 64px; height: 64px; }
  .p-actions { flex-direction: row; flex-wrap: wrap; }
  .points li, .ladder li { grid-template-columns: 44px 1fr; }
  .contact-list li { grid-template-columns: 1fr; gap: 4px; }
}

@media (max-width: 640px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding-top: 76px; }
  .founding p { font-size: 1.22rem; }
  body { font-size: 16px; }
  .section { margin-top: 88px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-mark { width: 68px; height: 68px; }
}
