/* Yörünge — design system v2: clean, light editorial base, dark accent sections, one accent colour */
:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --surface2: #faf9f5;
  --ink: #0f1115;
  --soft: #3d4250;
  --mute: #7a7f8c;
  --line: rgba(15, 17, 21, .08);
  --line2: rgba(15, 17, 21, .15);
  --glass: rgba(15, 17, 21, .035);
  --glass2: rgba(15, 17, 21, .06);
  --turq: #0e9f9a;
  --turq2: #0b7f7b;
  --turq-soft: #e2f3f1;
  --red: #e30a17;
  --gold: #e8a23a;
  --ok: #138a5c;
  --wait: #b86e00;
  --err: #cf3131;
  --night: #0d1014;
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --shadow: 0 1px 2px rgba(15,17,21,.04), 0 12px 40px -12px rgba(15,17,21,.14);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
.dark {
  --bg: #0d1014; --surface: #15191f; --surface2: #1a1f26; --ink: #f3f1ea; --soft: #c5c8cf; --mute: #8a8f9b;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16); --glass: rgba(255,255,255,.05); --glass2: rgba(255,255,255,.09);
  --turq: #3cc7bf; --turq2: #6fdad3; --turq-soft: rgba(60,199,191,.14);
  --ok: #3ccf8e; --wait: #f0b14a; --err: #ff6b6b;
  background: var(--bg); color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--turq); color: #fff; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.turq { color: var(--turq); } .red { color: var(--red); } .muted { color: var(--mute); }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .02em; text-transform: uppercase; }

/* subtle grain — only inside dark sections */
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 80; width: min(1240px, calc(100% - 28px));
  display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.72); backdrop-filter: blur(16px) saturate(1.6); -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border: 1px solid rgba(15,17,21,.06); box-shadow: 0 8px 30px -12px rgba(15,17,21,.18); color: #0f1115; transition: transform .6s var(--ease); }
.nav.hide { transform: translate(-50%, -140%); }
.brand { display: flex; align-items: center; gap: 9px; font: 600 16px var(--display); letter-spacing: -.02em; margin-right: auto; white-space: nowrap; }
.brand-mark { width: 24px; height: 24px; flex: none; }
.brand .full { color: #7a7f8c; font-weight: 500; }
.nav a.lnk { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500; color: #3d4250; transition: background .3s, color .3s; white-space: nowrap; }
.nav a.lnk:hover { color: #0f1115; background: rgba(15,17,21,.05); }
.nav a.lnk.on { color: #0f1115; background: rgba(15,17,21,.07); }
.nav .cta { margin-left: 8px; background: #0f1115; color: #f4f2ec; }
@media (max-width: 860px) { .nav a.lnk.hide-m { display: none; } .brand .full { display: none; } }
@media (max-width: 560px) { .nav { padding-left: 14px; } .nav a.lnk { padding: 7px 10px; font-size: 13px; } .nav a.lnk:not(.on) { display: none; } .nav a.btn.hide-m { display: none; } .nav .cta { display: inline-flex !important; } }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; white-space: nowrap;
  font: 600 14.5px var(--body); letter-spacing: -.005em; background: var(--ink); color: var(--bg); overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), color .3s; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--turq); transform: translateY(101%); transition: transform .55s var(--ease); }
.btn:hover::after { transform: none; }
.btn:hover { color: #fff; }
.btn .arr { display: inline-grid; place-items: center; width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn.sm { padding: 9px 16px; font-size: 13.5px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost::after { background: var(--glass2); }
.btn.ghost:hover { color: var(--ink); }
.btn.red { background: var(--red); color: #fff; }
.btn.red::after { background: #b80812; }
.btn:disabled { opacity: .4; pointer-events: none; }

/* ---------- labels ---------- */
.eyebrow { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px; row-gap: 2px; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--turq); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--glass2); color: var(--soft); white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.chip.wait { background: color-mix(in srgb, var(--wait) 13%, transparent); color: var(--wait); }
.chip.err { background: color-mix(in srgb, var(--err) 12%, transparent); color: var(--err); }
.chip.turq { background: var(--turq-soft); color: var(--turq2); }
.chip.plain::before { display: none; }

.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font: 600 12.5px var(--display); color: #0b4f4c; background: #d4efec; }

/* ---------- motion helpers (used where GSAP is not) ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.in .w > span { transform: none; }
.tilt { transition: transform .6s var(--ease); will-change: transform; }

/* ---------- toasts ---------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 130; display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }
.toast { display: flex; gap: 12px; align-items: center; max-width: 380px; padding: 10px 18px 10px 10px; border-radius: 999px; background: #0f1115; color: #f3f1ea; box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); animation: tin .6s var(--ease) both; font-size: 13.5px; }
.toast .ic { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #3cc7bf; color: #062a28; flex: none; font-weight: 700; }
.toast b { display: block; font-size: 13.5px; font-weight: 600; }
.toast span { color: #9aa0ab; font-size: 12.5px; }
.toast.out { animation: tout .5s var(--ease) both; }
@keyframes tin { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes tout { to { opacity: 0; transform: translateY(10px); } }

.demo-strip { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: flex; gap: 10px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 999px; background: rgba(255,255,255,.85); border: 1px solid rgba(15,17,21,.08); backdrop-filter: blur(12px); font-size: 12.5px; color: #5b606c; box-shadow: 0 8px 24px -10px rgba(15,17,21,.2); }
.demo-strip .live { width: 7px; height: 7px; border-radius: 50%; background: #16a06a; box-shadow: 0 0 0 0 rgba(22,160,106,.5); animation: pulse 2s infinite; }
.demo-strip .btn { color: #0f1115; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(22,160,106,0); } 100% { box-shadow: 0 0 0 0 rgba(22,160,106,0); } }
@media (max-width: 640px) { .demo-strip { display: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .split .w > span { transition-duration: .01s; } }
