/* ────────────────────────────────────────────────────────────
   Perseus Technology — marketing site v2 (2026-07)
   Shares theme tokens + mechanism with perseus-shop.css:
   data-theme attr, localStorage "perseus-theme", light default.
   Product/shop pages keep their own stylesheets.
   ──────────────────────────────────────────────────────────── */

/* ── Fonts (self-hosted, latin subsets) ── */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter-var.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono-var.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ── Theme tokens (aligned with perseus-shop.css) ── */
:root {
  --bg: #ffffff;
  --bg-alt: #f7f8fb;
  --panel: #ffffff;
  --line: #e6e8ef;
  --line-hover: #cfd3de;
  --text: #0e1321;
  --text-soft: #2a3144;
  --muted: #6b7385;
  --accent: #b08b2e;
  --accent-hover: #8d6e20;
  --accent-soft: rgba(176, 139, 46, 0.08);
  --blue: #2a5cc6;
  --navy-deep: #0a0f1a;
  --shadow: 0 4px 18px rgba(14, 19, 33, 0.06);
  --shadow-lg: 0 16px 48px rgba(14, 19, 33, 0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --header-bg: rgba(255, 255, 255, 0.85);
}
[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-alt: #0f1524;
  --panel: #0f1524;
  --line: rgba(255, 255, 255, 0.08);
  --line-hover: rgba(255, 255, 255, 0.16);
  --text: #f0f2f5;
  --text-soft: #e0e3eb;
  --muted: #8a95a8;
  --accent: #c9a84c;
  --accent-hover: #d5b862;
  --accent-soft: rgba(201, 168, 76, 0.12);
  --blue: #5b8ad4;
  --navy-deep: #070b13;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.40);
  --header-bg: rgba(10, 15, 26, 0.85);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}
::selection { background: var(--accent); color: var(--bg); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mono { font-family: 'JetBrains Mono', 'Consolas', monospace; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.page { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }
section { scroll-margin-top: 90px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px;
  border-radius: 0 0 8px 0; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  width: min(1140px, calc(100% - 48px)); margin: 0 auto;
  padding: 13px 0; display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 0.86rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-sub { font-family: 'JetBrains Mono', monospace; font-size: 0.64rem; color: var(--muted); letter-spacing: 0.04em; }
.site-nav { margin-left: auto; display: flex; gap: 2px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  font-size: 0.84rem; color: var(--muted); padding: 7px 11px; border-radius: 8px;
  white-space: nowrap; transition: color 0.15s, background 0.15s;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--accent-soft); text-decoration: none; }
.lang-switch {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; flex-shrink: 0;
}
.lang-switch a { color: var(--muted); padding: 5px 10px; }
.lang-switch a:hover { text-decoration: none; color: var(--text); }
.lang-switch a.active { background: var(--text); color: var(--bg); }
.theme-toggle {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.theme-toggle:hover { color: var(--text); border-color: var(--line-hover); }
.theme-toggle svg { width: 15px; height: 15px; }
.icon-sun { display: none; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ── Type helpers ── */
.eyebrow {
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em;
}
.section-label {
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
}
h1, h2 { letter-spacing: -0.025em; line-height: 1.12; font-weight: 700; }

/* ── Hero ── */
.hero { padding: 76px 0 64px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); margin: 18px 0 20px; max-width: 17ch; }
.hero h1 .gold { color: var(--accent); }
.hero-lead { color: var(--muted); font-size: 1.05rem; line-height: 1.75; max-width: 54ch; }
.hero-lead strong { color: var(--text-soft); font-weight: 600; }
.hero-actions { display: flex; gap: 10px; margin-top: 30px; flex-wrap: wrap; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 34px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.7rem; color: var(--muted);
}
.trust-row span::before { content: "✓ "; color: var(--accent); }

/* Mark panel — navy in both themes; the brand anchor */
.mark-panel {
  border-radius: 20px; padding: 40px 36px 32px; text-align: center;
  background:
    radial-gradient(120% 100% at 50% 0%, #16223f 0%, var(--navy-deep) 70%);
  border: 1px solid rgba(201, 168, 76, 0.22);
  box-shadow: var(--shadow-lg);
}
.mark-panel img { width: min(240px, 70%); margin: 0 auto 26px; filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5)); }
.principles { display: grid; gap: 8px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 22px; }
.principles div {
  font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: #c9a84c;
}
.principles div span { color: rgba(240,242,245,0.55); letter-spacing: 0.02em; text-transform: none; display: block; font-size: 0.7rem; margin-top: 1px; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 0.78rem; font-weight: 500;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line-hover);
  color: var(--text); background: transparent; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { text-decoration: none; border-color: var(--text); }
.btn-solid { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
[data-theme="dark"] .btn-solid { background: var(--accent); border-color: var(--accent); color: var(--navy-deep); }
[data-theme="dark"] .btn-solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ── Sections ── */
.section { padding: 68px 0; border-top: 1px solid var(--line); }
.section-head { margin-bottom: 38px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 12px; }

/* ── Product cards ── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.product-card {
  display: flex; flex-direction: column; padding: 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  box-shadow: var(--shadow); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { border-color: var(--line-hover); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card h3 { font-size: 1.12rem; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.01em; }
.product-card > p { font-size: 0.88rem; color: var(--muted); line-height: 1.65; }
.product-feats { list-style: none; margin: 16px 0 20px; display: grid; gap: 7px; flex: 1; }
.product-feats li {
  font-size: 0.82rem; color: var(--text-soft); padding-left: 20px; position: relative;
}
.product-feats li::before {
  content: "▸"; position: absolute; left: 2px; color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
}
.product-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding-top: 16px;
}
.price { font-family: 'JetBrains Mono', monospace; font-size: 0.95rem; font-weight: 600; }
.price small { font-size: 0.7rem; color: var(--muted); font-weight: 400; }
.product-cta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.probono {
  margin-top: 26px; padding: 18px 22px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); border-left: 3px solid var(--accent);
  background: var(--accent-soft); font-size: 0.86rem; color: var(--text-soft);
}

/* ── Services ── */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc {
  padding: 28px; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin: 0 -1px -1px 0;
}
.svc h3 { font-size: 1rem; font-weight: 700; margin: 12px 0 8px; }
.svc p { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

/* ── Founder band ── */
.founder-band {
  display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: center;
  padding: 36px; border: 1px solid var(--line); border-radius: 20px; background: var(--bg-alt);
}
.founder-band img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.founder-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin: 12px 0 14px; max-width: 24ch; }
.founder-band p { color: var(--muted); font-size: 0.95rem; line-height: 1.75; max-width: 60ch; }
.founder-links { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

/* ── Stats (about page) ── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-box { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat-box strong { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; display: block; }
.stat-box strong em { font-style: normal; color: var(--accent); }
.stat-box span {
  font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-top: 6px;
}

/* ── About layout ── */
.about-hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1fr 320px; gap: 52px; align-items: start; }
.about-hero h1 { font-size: clamp(2rem, 4.2vw, 3rem); margin: 16px 0 20px; }
.about-hero .hero-lead { margin-bottom: 14px; }
.about-portrait img { width: 100%; border-radius: 18px; box-shadow: var(--shadow-lg); }
.about-portrait figcaption {
  margin-top: 12px; text-align: center; font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase;
}

/* ── Timeline ── */
.timeline { position: relative; padding-left: 28px; max-width: 720px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 30px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -28px; top: 7px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line-hover);
}
.tl-item.now::before { background: var(--accent); border-color: var(--accent); }
.tl-date { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 4px; }
.tl-title { font-size: 0.98rem; font-weight: 600; }
.tl-desc { font-size: 0.86rem; color: var(--muted); margin-top: 5px; max-width: 58ch; line-height: 1.7; }

/* ── Expertise grid (about) ── */
.exp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.exp-item { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.exp-item h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.exp-item p { font-size: 0.85rem; color: var(--muted); line-height: 1.7; }

/* ── Contact strip ── */
.contact-strip {
  margin: 68px 0; padding: 44px 40px; border-radius: 20px; text-align: center;
  background: radial-gradient(120% 140% at 50% 0%, #16223f 0%, var(--navy-deep) 75%);
  border: 1px solid rgba(201, 168, 76, 0.22); color: #f0f2f5;
}
.contact-strip h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 12px; }
.contact-strip p { color: rgba(240, 242, 245, 0.65); max-width: 52ch; margin: 0 auto 26px; }
.contact-strip .btn-solid { background: #c9a84c; border-color: #c9a84c; color: #0a0f1a; }
.contact-strip .btn-solid:hover { background: #d5b862; border-color: #d5b862; }
.contact-strip .contact-alt { margin-top: 18px; font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; color: rgba(240,242,245,0.5); }
.contact-strip .contact-alt a { color: #c9a84c; }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--line); padding: 32px 0 44px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: baseline;
  font-size: 0.8rem; color: var(--muted);
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-note { width: 100%; font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; color: var(--muted); opacity: 0.7; margin-top: 2px; }

/* ── Reveal ── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .product-card, .btn { transition: none; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .mark-panel { max-width: 460px; }
  .about-hero { grid-template-columns: 1fr; gap: 36px; }
  .about-portrait { max-width: 280px; }
  .founder-band { grid-template-columns: 1fr; gap: 28px; }
  .founder-band img { max-width: 260px; }
}
@media (max-width: 640px) {
  .page, .header-inner { width: calc(100% - 40px); }
  .section { padding: 52px 0; }
  .brand-text { display: none; }
  .brand img { width: 38px; }
  .contact-strip { padding: 36px 24px; }
  .founder-band { padding: 26px; }
}

/* ── Print ── */
@media print {
  .site-header, .theme-toggle, .skip-link, .contact-strip .btn { display: none !important; }
  body { background: #fff; color: #000; }
  .section { border: none; }
}
