@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,500&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #121212;
  --bg-raised: #1a1a1a;
  --panel: #161616;
  --line: #333333;
  --text: #F5F5F0;
  --text-dim: #9a988f;
  --text-faint: #5c5a52;
  --gold: #C5A059;
  --gold-bright: #ddbb7a;
  --burnt: #D95D39;
  --sage: #4A7C59;
}

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

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
  background:
    linear-gradient(var(--line-soft, rgba(51,51,51,.35)) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(51,51,51,.35) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, .serif { font-family: 'Lora', Georgia, serif; }
code, pre, .mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }

main, header, footer { position: relative; z-index: 1; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 32px; }


.glass {
  position: relative;
  background: linear-gradient(145deg, rgba(26,26,26,.6), rgba(18,18,18,.4));
  border: 1px solid rgba(245,245,240,.09);
  box-shadow: inset 0 1px 0 rgba(245,245,240,.06), 0 20px 44px -26px rgba(0,0,0,.7);
}
.glass::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(245,245,240,.1) 48%, rgba(197,160,89,.14) 52%, transparent 70%);
  background-size: 220% 220%; background-position: 120% -20%;
}
@keyframes glass-sheen {
  0%   { opacity: 0; background-position: 120% -20%; }
  20%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { opacity: 0; background-position: -20% 120%; }
}
.glass:hover::before { animation: glass-sheen .9s ease 1 both; }
.is-scrolling .glass::before { animation: none !important; opacity: 0; }
.is-scrolling .gate__card:hover { background: transparent; }
@media (prefers-reduced-motion: reduce) { .glass:hover::before { animation: none; } }

.site-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px; border-bottom: 1px solid var(--line);
  background: rgba(18,18,18,.86); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.site-nav .brand { display: flex; align-items: center; gap: 10px; }
.site-nav .brand img { height: 28px; width: auto; display: block; }
.site-nav .links { display: flex; gap: 28px; }
.site-nav a.brand { color: var(--text); }
.site-nav a { color: var(--text-dim); text-decoration: none; font-size: 14px; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }

.btn {
  display: inline-block; padding: 12px 22px; border: 1px solid var(--line);
  color: var(--text); text-decoration: none; font-size: 14px; background: transparent;
}
.btn-solid { background: var(--gold); color: #121212; border-color: var(--gold); font-weight: 600; }
.btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn-solid:hover { background: var(--gold-bright); color: #121212; }

.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; padding: 64px 32px 56px; max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 600; line-height: 1.2; }
.hero h1 .word { display: inline-block; }
.hero p.lede { margin-top: 16px; color: var(--text-dim); font-size: 15px; max-width: 44ch; }
.hero .cta-row { margin-top: 26px; display: flex; gap: 12px; }
.hero .portrait { border: 1px solid var(--line); aspect-ratio: 3/4; max-width: 260px; margin-left: auto; background: var(--panel); overflow: hidden; }
.hero .portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }

section { border-top: 1px solid var(--line); padding: 52px 32px; max-width: 1100px; margin: 0 auto; }
.section-head { max-width: 60ch; margin-bottom: 30px; }
.section-head h2 { font-size: 23px; font-weight: 600; }
.section-head p { color: var(--text-dim); margin-top: 10px; font-size: 14.5px; }

.figure { padding: 8px; overflow: hidden; }
.figure img { max-width: 100%; width: 100%; height: auto; display: block; image-rendering: -webkit-optimize-contrast; }
.figure figcaption { padding: 10px 4px 2px; font-size: 13px; color: var(--text-faint); }

.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.ledger th { color: var(--text-dim); font-weight: 600; background: var(--panel); }
.ledger td.pass { color: var(--sage); }

.terminal { overflow: hidden; }
.terminal-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid rgba(245,245,240,.09); background: rgba(0,0,0,.2); }
.terminal-title { font-family: 'JetBrains Mono', monospace; font-size: 13px; color: var(--text-dim); }
.terminal-tabs { display: flex; gap: 6px; margin-left: auto; }
.term-tab { background: transparent; border: 1px solid var(--line); color: var(--text-dim); font-size: 12px; padding: 5px 10px; cursor: pointer; }
.term-tab.active { color: var(--gold); border-color: var(--gold); }
.terminal-body { padding: 18px; font-family: 'JetBrains Mono', monospace; font-size: 13px; min-height: 180px; white-space: pre-wrap; }
.term-dim { color: var(--text-faint); }
.term-pass, .term-ok { color: var(--sage); }
.term-warn { color: var(--gold); }
.cursor { display: inline-block; width: 7px; height: 14px; background: var(--gold); margin-left: 2px; animation: blink 1s step-end infinite; vertical-align: -2px; }
@keyframes blink { 50% { opacity: 0; } }

.timeline { position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 1px; background: var(--line); }
.t-node { position: relative; padding-bottom: 56px; }
.t-node::before { content: ""; position: absolute; left: -36px; top: 4px; width: 14px; height: 14px; border: 1px solid var(--gold); background: var(--bg); }
.t-node h3 { font-size: 20px; margin-bottom: 8px; }
.t-node .t-date { color: var(--text-faint); font-size: 13px; margin-bottom: 10px; display: block; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; overflow: hidden; }
.pricing-card { padding: 32px; border-right: 1px solid rgba(245,245,240,.09); position: relative; z-index: 1; }
.pricing-card:last-child { border-right: none; }
.pricing-card .price { font-family: 'Lora', serif; font-size: 25px; color: var(--gold); margin: 8px 0 14px; }

footer { border-top: 1px solid var(--line); padding: 32px; display: flex; justify-content: space-between; color: var(--text-faint); font-size: 13px; }
footer a { color: var(--text-dim); text-decoration: none; margin-left: 18px; }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .03;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.hero { position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -10% -10% auto -10%; height: 420px; z-index: -1;
  background: radial-gradient(ellipse 60% 55% at 30% 20%, rgba(197,160,89,.08), transparent 70%);
}

.cursor-dot {
  position: fixed; top: 0; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold); pointer-events: none; z-index: 999; transform: translate(-50%, -50%);
  transition: width .2s ease, height .2s ease, background .2s ease; will-change: transform; opacity: .9;
}
.cursor-dot.hover { width: 28px; height: 28px; background: var(--text); }
@media (hover: none), (max-width: 860px) { .cursor-dot { display: none; } }

.reveal-text { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.reveal-image { opacity: 0; transform: scale(.96); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
.is-revealed { opacity: 1; transform: translateY(0) scale(1); }

.figure { transition: border-color .3s ease; }
.figure img { transition: transform .4s ease; }
.figure:hover { border-color: var(--gold); }
.figure:hover img { transform: scale(1.02); }
.pricing-card, .t-node, .doc-card { transition: border-color .3s ease; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 56px 20px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card { border-right: none; border-bottom: 1px solid var(--line); }
  .site-nav .links { gap: 16px; }
  section { padding: 48px 20px; }
}

@media (max-width: 900px) {
  .site-nav { flex-wrap: wrap; row-gap: 8px; }
  .site-nav .links { flex-wrap: wrap; gap: 6px 14px; width: 100%; }
  .site-nav a { font-size: 13px; }
}
