/* ───────────────────────── Söyle — liquid glass over deep night ───────────────────────── */

:root {
  --bg: #070908;
  --green: #76B900;
  --green-soft: #8fd400;
  --green-glow: rgba(118, 185, 0, 0.34);
  --ink: #eef3e9;
  --ink-dim: rgba(238, 243, 233, 0.64);
  --ink-faint: rgba(238, 243, 233, 0.40);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.10);
  --line-hi: rgba(255, 255, 255, 0.20);
  --radius: 22px;
  --font-ui: "Figtree", -apple-system, sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-mono: "Fragment Mono", ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(118,185,0,.35); color: #fff; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ── atmosphere ───────────────────────────────────────────── */
.glow {
  position: fixed; pointer-events: none; z-index: 0;
  width: 70vmax; height: 70vmax; border-radius: 50%;
  filter: blur(90px); opacity: .55;
}
.glow-a {
  top: -32vmax; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(118,185,0,.20) 0%, rgba(118,185,0,.05) 45%, transparent 70%);
}
.glow-b {
  bottom: -45vmax; right: -25vmax;
  background: radial-gradient(circle, rgba(70,140,40,.13) 0%, transparent 65%);
}
.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── glass primitives ─────────────────────────────────────── */
.glass, .glass-strong {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  border: 1px solid var(--line);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.14),
    0 24px 60px -28px rgba(0,0,0,.75);
}
.glass-strong {
  background: var(--glass-2);
  border-color: var(--line-hi);
}

/* ── nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 100;
  display: flex; align-items: center; gap: 26px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  width: min(680px, calc(100vw - 32px));
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--ink-dim); font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .gh { display: block; opacity: .8; }
.nav-links a:hover .gh { opacity: 1; }

/* ── buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; color: #0b1004;
  background: linear-gradient(180deg, var(--green-soft), var(--green));
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 10px 30px -8px var(--green-glow);
  transition: transform .18s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 16px 44px -8px var(--green-glow); }
.btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%);
}
.btn:hover::after { animation: sheen .9s ease; }
@keyframes sheen { to { transform: translateX(120%); } }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-hero { padding: 17px 34px; font-size: 18px; animation: breathe 3.2s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 32px -8px var(--green-glow); }
  50%      { box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 14px 46px -6px rgba(118,185,0,.5); }
}

/* ── hero ─────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  max-width: 980px; margin: 0 auto;
  padding: 150px 24px 40px;
  text-align: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  color: var(--ink-dim);
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--glass);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.6s ease-in-out infinite; }
h1 {
  margin: 30px 0 22px;
  font-size: clamp(56px, 9.5vw, 116px);
  line-height: 1.02; letter-spacing: -0.035em;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
h1 .say { font-weight: 800; }
h1 .written, .h-written, .privacy-band em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  background: linear-gradient(120deg, #d9efb2 10%, var(--green-soft) 55%, #5f9a00 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .08em;
}
.sub {
  max-width: 560px; margin: 0 auto;
  font-size: 19px; font-weight: 400; color: var(--ink-dim);
}
.cta { margin-top: 38px; }
.cta-meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); letter-spacing: .03em; }

/* ── the pill (faithful CSS replica) ─────────────────────── */
.stage { margin-top: 64px; display: flex; flex-direction: column; align-items: center; gap: 26px; }
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 999px;
  background: rgba(8, 12, 7, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1.2px solid rgba(118,185,0,.7);
  box-shadow: 0 0 34px rgba(118,185,0,.30), 0 12px 28px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
}
.rec-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); animation: pulse 1.3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: .35; box-shadow: 0 0 2px var(--green); } 50% { opacity: 1; box-shadow: 0 0 12px var(--green); } }
.wave { display: flex; align-items: center; gap: 3.5px; height: 26px; }
.wave i { width: 3.6px; border-radius: 99px; background: var(--green); animation: bar 1.15s ease-in-out infinite; }
.wave i:nth-child(1) { animation-delay: -.10s; } .wave i:nth-child(2) { animation-delay: -.35s; }
.wave i:nth-child(3) { animation-delay: -.60s; } .wave i:nth-child(4) { animation-delay: -.85s; }
.wave i:nth-child(5) { animation-delay: -.50s; } .wave i:nth-child(6) { animation-delay: -.25s; }
.wave i:nth-child(7) { animation-delay: -.72s; }
@keyframes bar { 0%,100% { height: 7px; } 50% { height: 24px; } }
.pill-label { font-size: 14.5px; font-weight: 600; letter-spacing: .01em; }

.typeline { font-family: var(--font-mono); font-size: 15px; color: var(--ink-dim); display: flex; align-items: baseline; }
.typed {
  overflow: hidden; white-space: nowrap; display: inline-block;
  max-width: 0;
  animation: typing 3.2s steps(46, end) .9s forwards;
}
@keyframes typing { to { max-width: 46ch; } }
.caret { width: 8px; height: 1.15em; margin-left: 2px; background: var(--green); align-self: center; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── demo window ─────────────────────────────────────────── */
.demo { position: relative; z-index: 1; max-width: 860px; margin: 90px auto 0; padding: 0 24px; }
.window { border-radius: var(--radius); overflow: hidden; }
.window-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.window-title { margin-left: 10px; font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-mono); }
.window video, .window img { width: 100%; height: auto; }

/* ── sections / headings ─────────────────────────────────── */
section { position: relative; z-index: 1; }
.how, .features, .install, .faq { max-width: 1020px; margin: 0 auto; padding: 120px 24px 0; }
h2 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 44px; text-align: center; }
.h-say { font-weight: 800; }

/* ── cards ───────────────────────────────────────────────── */
.card {
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(118,185,0,.38); background: rgba(118,185,0,.05); }
.card h3 { font-size: 18.5px; font-weight: 700; margin: 14px 0 8px; letter-spacing: -.01em; }
.card p { font-size: 15px; color: var(--ink-dim); }
.card .num {
  font-family: var(--font-display); font-style: italic;
  font-size: 46px; line-height: 1; color: var(--green);
  opacity: .9; display: block;
}
.card > svg { width: 30px; height: 30px; stroke: var(--green); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step-visual { height: 64px; display: flex; align-items: center; margin-top: 18px; }
.keycap {
  font-family: var(--font-ui); font-size: 24px; font-weight: 600;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  width: 64px; height: 58px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,.05));
  border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 5px 0 rgba(0,0,0,.45), 0 8px 18px rgba(0,0,0,.4);
}
.keycap small { font-size: 9.5px; font-weight: 500; color: var(--ink-faint); letter-spacing: .06em; }
.kbd-inline {
  font-family: var(--font-ui); font-size: .95em; font-weight: 700;
  padding: 1px 9px 2px; border-radius: 7px;
  background: rgba(255,255,255,.09); border: 1px solid var(--line-hi);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 2px 0 rgba(0,0,0,.4);
}
.mini-wave { display: flex; gap: 4px; align-items: center; height: 40px; }
.mini-wave i { width: 4.5px; border-radius: 99px; background: var(--green); animation: bar 1.2s ease-in-out infinite; }
.mini-wave i:nth-child(1) { animation-delay: -.2s; } .mini-wave i:nth-child(2) { animation-delay: -.5s; }
.mini-wave i:nth-child(3) { animation-delay: -.8s; } .mini-wave i:nth-child(4) { animation-delay: -.35s; }
.mini-wave i:nth-child(5) { animation-delay: -.65s; }
.typed-mini { font-family: var(--font-mono); font-size: 22px; color: var(--green-soft); }
.typed-mini::after { content: "▌"; animation: blink 1s steps(1) infinite; }

/* ── privacy band ────────────────────────────────────────── */
.privacy { max-width: 1020px; margin: 120px auto 0; padding: 0 24px; }
.privacy-band {
  border-radius: 28px; padding: 64px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.privacy-band::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(118,185,0,.16), transparent 55%);
  pointer-events: none;
}
.privacy-band h2 { margin-bottom: 18px; font-size: clamp(30px, 4.6vw, 48px); }
.privacy-band p { max-width: 600px; margin: 0 auto; color: var(--ink-dim); font-size: 16.5px; position: relative; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; position: relative; }
.badges li {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .03em;
  padding: 7px 16px; border-radius: 999px;
  border: 1px solid rgba(118,185,0,.4); color: var(--green-soft);
  background: rgba(118,185,0,.07);
}

/* ── features grid ───────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ── install ─────────────────────────────────────────────── */
.install-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.inline-link { color: var(--green-soft); font-weight: 600; border-bottom: 1px solid rgba(118,185,0,.4); }
.inline-link:hover { border-bottom-color: var(--green-soft); }
.drag-visual { display: flex; align-items: center; gap: 16px; margin: 16px 0 14px; }
.drag-visual img { border-radius: 10px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.5)); }
.drag-visual .arrow { width: 30px; stroke: var(--ink-dim); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.drag-visual .folder { width: 42px; stroke: var(--green); fill: rgba(118,185,0,.12); stroke-width: 1.6; stroke-linejoin: round; }
.install-note { text-align: center; margin-top: 30px; font-size: 14px; color: var(--ink-faint); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── tour ────────────────────────────────────────────────── */
.tour {
  max-width: 980px; margin: 110px auto 0; padding: 0 24px;
  display: flex; gap: 28px; justify-content: center; align-items: flex-start;
}
.shot { border-radius: var(--radius); overflow: hidden; padding: 10px; max-width: 430px; transform: rotate(-1.4deg); }
.shot-b { transform: rotate(1.6deg) translateY(26px); max-width: 360px; }
.shot img { border-radius: calc(var(--radius) - 8px); }

/* ── faq ─────────────────────────────────────────────────── */
.faq { max-width: 720px; padding-bottom: 20px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
details { border-radius: 16px; padding: 0 22px; overflow: hidden; }
summary {
  cursor: pointer; list-style: none;
  padding: 19px 0; font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; font-family: var(--font-display); font-size: 26px; color: var(--green);
  transition: transform .25s ease; line-height: 1;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink-dim); font-size: 15px; }
details p strong { color: var(--ink); }

/* ── footer ──────────────────────────────────────────────── */
.footer { position: relative; z-index: 1; max-width: 1020px; margin: 110px auto 30px; padding: 0 24px; }
.footer-inner {
  border-radius: var(--radius); padding: 34px 38px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.f-brand { display: flex; align-items: center; gap: 13px; }
.f-brand img { border-radius: 8px; }
.f-brand div { display: flex; flex-direction: column; line-height: 1.35; }
.f-brand span { font-size: 12.5px; color: var(--ink-faint); font-family: var(--font-display); font-style: italic; }
.f-links { display: flex; gap: 24px; font-size: 14px; font-weight: 500; color: var(--ink-dim); }
.f-links a:hover { color: var(--green-soft); }
.f-fine { font-size: 12px; color: var(--ink-faint); text-align: right; line-height: 1.6; }

/* ── reveals ─────────────────────────────────────────────── */
.reveal { opacity: 0; animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
.reveal.d1 { animation-delay: .12s; } .reveal.d2 { animation-delay: .24s; }
.reveal.d3 { animation-delay: .38s; } .reveal.d4 { animation-delay: .55s; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
/* Progressive enhancement: sections hide only when JS is confirmed running —
   without JS the whole page stays visible. */
.js .reveal-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.js .reveal-on-scroll.d1 { transition-delay: .1s; } .js .reveal-on-scroll.d2 { transition-delay: .2s; }
.js .reveal-on-scroll.in { opacity: 1; transform: none; }

/* ── responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .steps, .grid, .install-steps { grid-template-columns: 1fr; }
  .tour { flex-direction: column; align-items: center; }
  .shot, .shot-b { transform: none; max-width: 460px; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .hero { padding-top: 120px; }
  h1 { font-size: clamp(44px, 13vw, 64px); }
  .sub { font-size: 16.5px; }
  .typeline { font-size: 12px; }
  .privacy-band { padding: 44px 24px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .f-fine { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .typed { max-width: 46ch; }
  .reveal, .reveal-on-scroll { opacity: 1; transform: none; }
}
