/* tavsin.xyz — editorial, monochrome, typography-led. No AI-template patterns. */

:root {
  --bg: #08090c;
  --bg-2: #0c0e12;
  --surface: #101218;
  --line: #1a1c24;
  --line-2: #232631;
  --text: #f3f4f7;
  --muted: #a8acb8;
  --faint: #62656e;
  --accent: #ffffff;
  --sky: #7dd3fc;
  --ok: #6ee7b7;
  --maxw: 1180px;
  --r: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(125, 211, 252, 0.25); color: var(--text); }

a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.04; }
em { font-style: normal; color: var(--muted); }
strong { font-weight: 600; color: var(--text); }
code { font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; font-size: 0.92em; color: var(--text); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: #000; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; top: 16px; }

/* ── KICKER ── editorial section labels, never decorated chips */
.kicker { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 22px; }

/* ── LINKS ── */
.link-q { color: var(--text); font-weight: 500; font-size: 15px; transition: color 0.15s; }
.link-q:hover { color: var(--sky); }
.link-arrow::after { content: " →"; transition: transform 0.2s; display: inline-block; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}
.btn:hover { border-color: var(--text); }
.btn-primary { background: var(--text); color: #08090c; border-color: transparent; }
.btn-primary:hover { background: #fff; }

/* ── NAV ── */
.nav {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, background 0.2s, backdrop-filter 0.2s;
}
.nav.scrolled { background: rgba(8, 9, 12, 0.78); backdrop-filter: saturate(150%) blur(18px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; height: 64px; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark { display: inline-block; }
.brand-name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; margin-left: 8px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-toggle { display: none; margin-left: auto; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 22px; height: 1.5px; background: var(--text); border-radius: 1px; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 32px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav-mobile a { color: var(--text); padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 500; }
.nav-mobile a.btn { border-bottom: 0; margin-top: 14px; justify-content: center; color: #08090c; }
.nav-mobile.open { display: flex; }

/* ── HERO ── massive, monochrome, no gradient text */
.hero { position: relative; padding: 110px 0 80px; overflow: hidden; }
.hero-aura {
  position: absolute; inset: -300px 50% auto -200px; width: 900px; height: 900px;
  background: radial-gradient(closest-side, rgba(56, 189, 248, 0.10), transparent 70%);
  filter: blur(10px); z-index: -1; pointer-events: none;
  animation: drift 28s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0, 0); }
  50%  { transform: translate(60px, 40px); }
  100% { transform: translate(-40px, 80px); }
}
.hero-h1 {
  font-size: clamp(54px, 9.2vw, 132px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 28px;
  max-width: 14ch;
}
.hero-h1 em { color: var(--muted); }
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 56ch; font-weight: 400; line-height: 1.5; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 40px; flex-wrap: wrap; }
.hero-meta { margin-top: 28px; font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: 0.02em; color: var(--faint); }

/* ── THESIS ── one editorial line */
.thesis { padding: 140px 0 120px; border-top: 1px solid var(--line); }
.thesis-line { font-size: clamp(24px, 2.6vw, 34px); font-weight: 400; letter-spacing: -0.025em; line-height: 1.3; color: var(--text); max-width: 28ch; }
.thesis-line { color: var(--muted); }
.thesis-line { /* first sentence emphasis via :first-line not possible reliably — handled inline */ }

/* ── MOMENTS ── full editorial sections, two columns on desktop */
.moment { padding: 90px 0 110px; border-top: 1px solid var(--line); }
.moment-alt { background: var(--bg-2); }
.moment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 88px; align-items: center; }
.moment-alt .moment-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.moment-copy h2 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -0.04em; margin: 0 0 22px; max-width: 18ch; }
.moment-copy p { font-size: 17.5px; color: var(--muted); max-width: 52ch; margin-bottom: 22px; line-height: 1.6; }

/* ── TERMINAL ── refined, not chrome-heavy */
.terminal {
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #06070a;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.02);
}
.terminal-head { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.018); }
.terminal-head span { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.terminal-body {
  margin: 0; padding: 22px 24px; font-family: "JetBrains Mono", monospace; font-size: 13px;
  line-height: 1.75; color: var(--text); overflow-x: auto; white-space: pre;
}
.tc-prompt { color: var(--sky); }
.tc-cmd { color: var(--text); }
.tc-ok { color: var(--ok); }
.tc-path { color: #c9d1e0; }
.tc-num { color: #fbbf24; }
.tc-muted { color: var(--faint); }
.tc-hi { color: var(--sky); }
.tc-key { color: var(--muted); }

/* ── MEMORY CARD ── editorial, not a "feature card" */
.memo {
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface);
  padding: 28px 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.memo-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.memo-tag { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ok); }
.memo-date { font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--faint); }
.memo-title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; margin: 0 0 14px; }
.memo-body { font-size: 15px; color: var(--muted); line-height: 1.65; margin: 0 0 22px; }
.memo-body code { color: var(--text); background: rgba(255, 255, 255, 0.04); padding: 1px 6px; border-radius: 5px; }
.memo-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-family: "JetBrains Mono", monospace; font-size: 11px; color: var(--faint); }
.memo-pill { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* ── METRIC ── editorial, no stat cards */
.metric { padding: 140px 0 140px; border-top: 1px solid var(--line); }
.metric-h { font-size: clamp(32px, 4.2vw, 56px); letter-spacing: -0.04em; line-height: 1.05; max-width: 22ch; margin: 0 auto 28px; }
.metric-body { font-size: 18px; color: var(--muted); max-width: 56ch; margin: 0 auto; line-height: 1.65; }

/* ── PRINCIPLES ── one column of typographic statements */
.principles { padding: 110px 0 130px; border-top: 1px solid var(--line); }
.section-h { font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.04em; max-width: 22ch; margin: 0 0 64px; }
.principle-list { display: grid; gap: 0; }
.principle { padding: 38px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 280px 1fr; gap: 56px; align-items: baseline; }
.principle:first-child { border-top: 1px solid var(--line); }
.principle:last-child { border-bottom: 1px solid var(--line); }
.principle h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.025em; margin: 0; }
.principle p { font-size: 16.5px; color: var(--muted); line-height: 1.6; max-width: 56ch; }

/* ── START ── code block as section content */
.start { padding: 110px 0 140px; border-top: 1px solid var(--line); }
.code {
  display: block;
  border: 1px solid var(--line-2);
  background: #06070a;
  border-radius: 12px;
  padding: 26px 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text);
  overflow-x: auto;
  margin: 32px 0 24px;
}
.code-line { display: block; white-space: pre; }
.code-prompt { color: var(--sky); margin-right: 14px; }
.code-comment { color: var(--faint); margin-left: 20px; }
.start-foot { font-size: 14.5px; color: var(--faint); }
.start-foot a { color: var(--muted); border-bottom: 1px solid var(--line-2); padding-bottom: 1px; }
.start-foot a:hover { color: var(--text); border-bottom-color: var(--text); }

/* ── FOOTER ── one hairline, that's it */
.footer { padding: 64px 0 56px; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 36px; align-items: center; }
.footer-links { display: flex; gap: 28px; justify-content: center; }
.footer-links a { color: var(--muted); font-size: 14.5px; transition: color 0.15s; }
.footer-links a:hover { color: var(--text); }
.footer-base { color: var(--faint); font-size: 13px; margin: 0; text-align: right; }

/* ── REVEAL — very subtle, no swoosh */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ── RESPONSIVE ── */
@media (max-width: 980px) {
  .moment-grid, .moment-alt .moment-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 80px 0 64px; }
  .thesis { padding: 96px 0 84px; }
  .moment { padding: 72px 0 84px; }
  .metric { padding: 96px 0 96px; }
  .principles { padding: 84px 0 100px; }
  .start { padding: 84px 0 100px; }
  .principle { grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 22px; text-align: center; }
  .footer-base { text-align: center; }
  .footer-links { flex-wrap: wrap; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .container { padding: 0 24px; }
  .hero-h1 { font-size: clamp(44px, 12vw, 72px); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-aura { animation: none; }
  html { scroll-behavior: auto; }
}
