/* ================= Tengrius — tengrius.com =================
   DESIGN.md'ye birebir uyar. Tüm renkler CSS değişkeni üzerinden. */

:root {
  /* Backgrounds */
  --bg: #fafaf8;
  --surface: #ffffff;
  --surface-alt: #f1f0ec;
  --surface-hover: #f6f5f2;
  --ink-panel: #101318;

  /* Borders */
  --border: #e4e2dc;
  --border-hover: #b9b6ad;

  /* Text */
  --text: #14161a;
  --text-secondary: #565b66;
  --text-tertiary: #8a8f9a;
  --text-on-ink: #f4f4f2;

  /* Accent */
  --accent: #1f4fe0;
  --accent-hover: #173fc0;

  /* Ürün tint'leri — yalnız kart şeridi/ikon */
  --tint-coffee: #c4956a;
  --tint-erp: #a0453a;
  --tint-re: #3e6b4f;

  /* RGB variants */
  --bg-rgb: 250, 250, 248;
  --accent-rgb: 31, 79, 224;
  --ink-rgb: 20, 22, 26;

  /* Semantic */
  --success: #2e7d4f;
  --error: #b5482f;
  --warning: #b7791f;

  /* Fonts */
  --font-heading: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --ease-cinema: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(var(--accent-rgb), 0.15); }

/* ================= Tipografi ================= */

.hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.hero-h1 em { font-style: normal; color: var(--accent); }

.h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.h3 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.body-l { font-size: 18px; line-height: 1.6; color: var(--text-secondary); }
.body-s { font-size: 15px; color: var(--text-secondary); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mono { font-family: var(--font-mono); font-size: 13px; }

/* SplitText satır maskesi */
.line { display: block; overflow: hidden; }
.line-inner { display: block; transform: translateY(110%); }

/* ================= Nav ================= */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  background: transparent;
}
.nav.scrolled {
  background: rgba(var(--bg-rgb), 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.75rem 2rem;
}
.nav-links { display: flex; gap: 1.75rem; }
.nav-link {
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  text-decoration: none; transition: color 0.15s ease;
  padding: 0.5rem 0; min-height: 44px; display: inline-flex; align-items: center;
}
.nav-link:hover { color: var(--text); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--text); text-decoration: none;
  background: none; border: none; cursor: pointer; font: inherit;
}
.brand-name {
  font-family: var(--font-heading); font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.logo { width: 26px; height: 26px; color: var(--text); transition: transform 0.4s var(--ease-cinema); }
.brand:hover .logo { transform: rotate(45deg); }
.logo-lg { width: 34px; height: 34px; }

/* ================= Buttons ================= */

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 0.8rem 1.6rem;
  border-radius: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.5rem;
  text-decoration: none;
  min-height: 44px;
  border: none;
}
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(var(--accent-rgb), 0.28);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--text); background: var(--surface-hover); }
.btn-ghost:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ================= Hero — Constellation ================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid; place-items: center;
  overflow: hidden;
}

.hero-dotgrid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(var(--ink-rgb), 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 75%);
  pointer-events: none;
}

.constellation {
  position: absolute; inset: 0;
  perspective: 1400px;
  transform-style: preserve-3d;
  pointer-events: none;
}

.star-card {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  width: 220px;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 32px 64px rgba(var(--ink-rgb), 0.12);
  font-size: 13px;
}
/* z-derinliğine göre konum + blur (statik değerler — hareketli blur değil) */
.sc-1 { top: 16%; left: 8%;  filter: blur(0);   }
.sc-2 { top: 62%; left: 5%;  filter: blur(1.5px); opacity: 0.9; }
.sc-3 { top: 12%; left: 76%; filter: blur(3px); opacity: 0.75; width: 200px; }
.sc-4 { top: 74%; left: 72%; filter: blur(0.5px); width: 240px; }
.sc-5 { top: 38%; left: 84%; filter: blur(2px); opacity: 0.85; width: 190px; }
.sc-6 { top: 82%; left: 40%; filter: blur(4px); opacity: 0.6; width: 180px; }
.sc-7 { top: 8%;  left: 38%; filter: blur(0.8px); opacity: 0.92; width: 200px; }
.sc-8 { top: 44%; left: 2%;  filter: blur(2.5px); opacity: 0.8; width: 190px; }
.sc-9 { top: 60%; left: 86%; filter: blur(1.8px); opacity: 0.85; width: 200px; }

.mini-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  color: var(--text-tertiary); margin-bottom: 8px;
}
.mini-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 3px 0; color: var(--text);
}
.mini-row strong { font-weight: 600; white-space: nowrap; }
.mini-row strong small { font-weight: 400; color: var(--text-tertiary); }
.mini-row.muted { color: var(--text-tertiary); font-size: 12px; }
.mini-trend { font-size: 11px; font-family: var(--font-mono); margin-top: 6px; }
.mini-trend.up { color: var(--success); }
.mini-badge {
  display: inline-block; margin-top: 6px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em; padding: 2px 8px;
  border: 1px solid var(--border); border-radius: 999px; color: var(--text-tertiary);
}
.mini-ticker { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-secondary); }
.mini-bar { height: 4px; background: var(--surface-alt); border-radius: 4px; margin-top: 8px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.mini-otp { display: flex; gap: 6px; margin-top: 6px; }
.mini-otp span {
  width: 20px; height: 24px; border: 1px solid var(--border); border-radius: 5px;
  display: grid; place-items: center; color: var(--text-tertiary); font-size: 14px;
}

.hero-center {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1.5rem;
}
.hero-center .eyebrow { margin-bottom: 1.5rem; }
.hero-lead {
  font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: var(--text-secondary);
  max-width: 560px; margin: 1.75rem auto 0;
}
.hero-ctas { display: flex; gap: 0.9rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }

.hero-points {
  list-style: none;
  display: flex; justify-content: center; gap: 2.25rem;
  margin-top: 2.25rem; flex-wrap: wrap;
  text-align: left;
}
.hero-points li { display: flex; flex-direction: column; gap: 0.2rem; max-width: 200px; }
.hero-points strong {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--accent);
}
.hero-points span { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

.hero-guarantee {
  display: flex; flex-direction: column; gap: 0.2rem; align-items: center;
  margin: 1.75rem auto 0; max-width: 560px;
  text-align: center;
}
.hero-guarantee strong {
  font-size: 11px; font-weight: 500; letter-spacing: 0.14em;
  color: var(--accent);
}
.hero-guarantee span { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--text-tertiary);
}
.scroll-hint-text { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; }
.scroll-hint-line {
  width: 1px; height: 44px; background: var(--border-hover); position: relative; overflow: hidden;
}
.scroll-hint-line::after {
  content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--text); animation: hint-drop 2s ease-in-out infinite;
}
@keyframes hint-drop { to { top: 110%; } }

/* ================= Manifesto ================= */

.manifesto {
  min-height: 90vh;
  display: grid; place-items: center;
  padding: 8rem 2rem;
}
.manifesto-panel {
  max-width: 720px;
  text-align: left;
}
.manifesto-panel .h2 { margin: 1.25rem 0 1.75rem; }
.manifesto-panel .body-l + .body-l { margin-top: 1.25rem; }

/* ================= Pin Swap — Ürünler ================= */

.pin-swap { height: 300vh; position: relative; }
.pin-swap-inner {
  position: sticky; top: 0; height: 100vh;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 4rem;
  align-items: center; padding: 0 2rem;
}
.pin-left .h2 { margin: 1.5rem 0 1.25rem; min-height: 2.3em; }
.pin-body { min-height: 5em; }
.pin-meta { margin: 1.25rem 0 1.75rem; }
.pin-progress { display: flex; gap: 8px; margin-top: 1.5rem; }
.pin-dot {
  width: 28px; height: 3px; border-radius: 3px; background: var(--border);
  transition: background-color 0.3s ease;
}
.pin-dot.active { background: var(--text); }

.pin-right { position: relative; height: 480px; }
.scene {
  position: absolute; inset: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateY(14px) scale(0.985);
}
.scene.is-active { opacity: 1; pointer-events: auto; transform: none; }

.scene-panel {
  position: relative; height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 32px 64px rgba(var(--ink-rgb), 0.12);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.scene-tint { position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--tint); }
.scene-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 1.25rem; border-bottom: 1px solid var(--border);
}
.scene-title { font-family: var(--font-heading); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.scene-rows { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 0.4rem; }
.scene-row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1rem; align-items: baseline;
  padding: 0.8rem 0.9rem; border-radius: 10px;
  transition: background-color 0.15s ease;
  font-size: 15px;
}
.scene-row:hover { background: var(--surface-hover); }
.scene-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.scene-row .mono { color: var(--text-tertiary); }
.spark { font-size: 11px; }
.spark.up { color: var(--success); }
.spark.down { color: var(--error); }
.scene-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.25rem; border-top: 1px solid var(--border);
  color: var(--text-tertiary); font-size: 13px;
}

/* ================= Badges ================= */

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-secondary); background: var(--surface);
}
.badge-live { border-color: rgba(46, 125, 79, 0.4); color: var(--success); }
.badge-live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--success); animation: pulse 2s ease-in-out infinite;
}
.badge-dev { border-color: rgba(183, 121, 31, 0.4); color: var(--warning); }
@keyframes pulse { 50% { opacity: 0.4; } }

/* ================= Ink (WebGL) panel ================= */

.ink {
  position: relative;
  background: var(--ink-panel);
  color: var(--text-on-ink);
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 8rem 2rem;
  overflow: hidden;
}
.webgl-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block;
}
.ink-content { position: relative; z-index: 2; max-width: 720px; text-align: center; }
.ink-content .h2 { color: var(--text-on-ink); margin: 1.25rem 0 1.5rem; }
.ink-content .body-l { color: rgba(244, 244, 242, 0.72); }
.ink .eyebrow { color: rgba(244, 244, 242, 0.5); }

.ghost-title { position: relative; display: inline-block; }
.ghost-title::before {
  content: attr(data-ghost);
  position: absolute; left: 5px; top: 5px;
  color: var(--accent);
  opacity: 0.35;
  filter: blur(10px);
  z-index: -1;
}

.ink-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2.25rem; }
.chip {
  padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid rgba(244, 244, 242, 0.18);
  color: rgba(244, 244, 242, 0.75);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: rgba(244, 244, 242, 0.5); color: var(--text-on-ink); }

/* ================= Stats ================= */

.stats {
  max-width: 1160px; margin: 0 auto;
  padding: 8rem 2rem;
  text-align: center;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
  margin: 3rem 0 4.5rem;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-tertiary); margin-top: 0.5rem;
}

/* ================= Çözümler (yetenek kataloğu) ================= */

.cap-head { text-align: center; margin-bottom: 3rem; }
.cap-head .h2 { margin-top: 1.25rem; }
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: left; }
.cap-card { gap: 0.5rem; }

.cap-demo {
  position: relative; width: 100%; height: 148px;
  margin-top: 1.1rem;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.cap-frame { position: absolute; inset: 0; padding: 0.9rem 1.1rem; opacity: 0; }
.cap-demo.static .cap-frame { opacity: 1; }
.cap-demo:not(.static) .f1 { animation: cap-cycle 12s ease-in-out infinite; }
.cap-demo:not(.static) .f2 { animation: cap-cycle 12s ease-in-out infinite 4s; }
.cap-demo:not(.static) .f3 { animation: cap-cycle 12s ease-in-out infinite 8s; }
@keyframes cap-cycle {
  0% { opacity: 0; transform: translateY(6px); }
  4%, 29% { opacity: 1; transform: translateY(0); }
  33%, 100% { opacity: 0; transform: translateY(-6px); }
}

.demo-filter {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 11px;
  padding: 0.3rem 0.7rem; margin: 0.35rem 0 0.5rem;
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 999px; color: var(--text);
}
.demo-filter i { font-style: normal; color: var(--text-tertiary); }

.demo-bubble {
  margin-top: 0.6rem; max-width: 220px;
  background: rgba(46, 125, 79, 0.10);
  border: 1px solid rgba(46, 125, 79, 0.35);
  border-radius: 12px 12px 12px 3px;
  padding: 0.6rem 0.9rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.demo-bubble span { font-size: 12px; color: var(--text-secondary); }
.demo-bubble strong { font-weight: 600; color: var(--text); }
.demo-bubble em { font-style: normal; font-size: 11px; color: var(--success); align-self: flex-end; }

.demo-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin: 0.7rem 0 0.5rem; }
.demo-bars i { flex: 1; height: var(--h); background: var(--accent); opacity: 0.85; border-radius: 4px 4px 0 0; }
.demo-bars i:last-child { opacity: 1; }

.demo-up { color: var(--success); font-style: normal; font-size: 11px; }
.demo-ok { color: var(--success); }
.demo-late { color: var(--error); }

.cap-wide { grid-column: 1 / -1; }
.demo-chat { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; max-width: 460px; }
.demo-msg {
  padding: 0.5rem 0.9rem; border-radius: 12px; font-size: 12.5px; line-height: 1.5;
  width: fit-content; max-width: 90%;
}
.demo-msg.user { background: var(--surface); border: 1px solid var(--border); align-self: flex-start; }
.demo-msg.ai {
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  align-self: flex-end; color: var(--text);
}

/* ================= Cards ================= */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 50%),
              rgba(var(--accent-rgb), 0.07), transparent 55%);
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 48px rgba(var(--ink-rgb), 0.10);
}
.card:focus-within, a.card:focus-visible { border-color: var(--accent); outline: none; }
.card-tint { position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px 3px 0 0; }
.card .badge { margin-top: 0.5rem; }

/* ================= Footer ================= */

.footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 4rem 2rem 2rem;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem;
  flex-wrap: wrap;
}
.footer-brand { position: relative; }
.footer-cols { display: flex; gap: 4rem; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-head { color: var(--text-tertiary); letter-spacing: 0.14em; font-size: 11px; }
.footer-muted { color: var(--text-tertiary); font-size: 15px; }
.footer-base {
  max-width: 1160px; margin: 3rem auto 0;
  padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--text-tertiary); font-size: 13px;
}

/* ================= Links ================= */

.link {
  color: var(--accent);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size 0.25s ease;
  width: fit-content;
}
.link:hover, .link:focus-visible { background-size: 100% 1.5px; outline: none; }

/* ================= Gizli detay ================= */

.coffee-toast {
  position: fixed; bottom: 1.5rem; left: 50%;
  transform: translate(-50%, 150%);
  background: var(--text); color: var(--bg);
  padding: 0.8rem 1.4rem; border-radius: 12px;
  font-size: 14px;
  box-shadow: 0 24px 48px rgba(var(--ink-rgb), 0.3);
  transition: transform 0.5s var(--ease-cinema);
  z-index: 60;
  white-space: nowrap;
}
.coffee-toast.show { transform: translate(-50%, 0); }
.coffee-toast a { color: var(--bg); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ClickSpark parçacığı */
.spark-particle {
  position: fixed; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); pointer-events: none; z-index: 100;
}

/* ================= Reveal başlangıç durumları (JS ile animlenir) ================= */

html.js .reveal, html.js .float-in { opacity: 0; }
html.js .reveal { transform: translateY(16px); }
html.js .float-in { transform: translateY(28px); }

/* ================= Responsive ================= */

@media (max-width: 1024px) {
  .sc-3, .sc-6, .sc-9 { display: none; }
  .pin-swap-inner { gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav { padding: 0.9rem 1.25rem; }
  .nav-links { display: none; }

  /* Constellation → 3 statik kart kolajı (metin üstte, kartlar altta) */
  .hero { min-height: auto; padding: 7.5rem 0 4rem; display: flex; flex-direction: column; align-items: stretch; gap: 3rem; }
  .hero-center { order: -1; }
  .constellation {
    position: static; inset: auto; height: auto; perspective: none;
    display: flex; flex-direction: column; gap: 1rem;
    padding: 0 1.25rem; pointer-events: auto;
  }
  .star-card { position: static; width: 100%; filter: none !important; opacity: 1 !important; }
  .hero-h1 { white-space: normal; font-size: clamp(36px, 11vw, 44px); }
  .hero-points { flex-direction: column; gap: 1.1rem; align-items: flex-start; padding: 0 0.25rem; }
  .hero-points li { max-width: none; }
  .hero-guarantee { margin-top: 1.75rem; }
  .sc-3, .sc-5, .sc-6, .sc-7, .sc-8, .sc-9 { display: none; }
  .scroll-hint { display: none; }

  .manifesto { padding: 5rem 1.25rem; min-height: auto; }

  /* Pin-swap → düz akış */
  .pin-swap { height: auto; padding: 5rem 0; }
  .pin-swap-inner {
    position: static; height: auto;
    grid-template-columns: 1fr; gap: 2rem; padding: 0 1.25rem;
  }
  .pin-left .h2, .pin-body { min-height: 0; }
  .pin-progress { display: none; }
  .pin-right { height: auto; display: flex; flex-direction: column; gap: 1.5rem; }
  .scene { position: static; opacity: 1; pointer-events: auto; transform: none; }
  .scene-panel { height: auto; }
  .scene-rows { gap: 0.15rem; padding: 1rem 0; }

  .ink { min-height: auto; padding: 5rem 1.25rem; }
  .webgl-canvas { display: none; }

  .stats { padding: 5rem 1.25rem; }
  .stats-grid { grid-template-columns: 1fr; gap: 2.5rem; margin: 2.5rem 0 3rem; }
  .cap-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; }
  .coffee-toast { white-space: normal; width: calc(100% - 2.5rem); text-align: center; }
}

/* ================= Reduced motion ================= */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
  html.js .reveal, html.js .float-in { opacity: 1; transform: none; }
  .line-inner { transform: none; }
  /* Geçişli demo durur, ilk kare sabit gösterilir */
  .cap-demo:not(.static) .cap-frame { opacity: 0 !important; }
  .cap-demo:not(.static) .f1 { opacity: 1 !important; transform: none !important; }
}
