/* Emudroid — naden.co/emudroid
   Dark, playful landing page. Palette lifted from the app icon:
   Android green → electric blue on deep navy, over a halftone field.
   Type: DM Sans, same as the rest of naden.co. */

:root {
  --bg: #060d17;
  --bg-2: #0a1626;
  --card: #0d1c2e;
  --line: #1b3049;
  --line-soft: #142638;
  --fg: #f2f6fb;
  --fg-dim: #9db0c6;
  --fg-faint: #6d8199;

  --green: #3ddc84;
  --green-deep: #17b26a;
  --blue: #2ea8ff;
  --cyan: #5ce1e6;
  --grad: linear-gradient(115deg, var(--green) 0%, var(--cyan) 48%, var(--blue) 100%);
  --glow: rgba(61, 220, 132, 0.28);

  --radius: 16px;
  --radius-lg: 22px;
  --maxw: 1080px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  background: var(--fg); color: var(--bg) !important;
  font-size: 14px; font-weight: 600;
  transition: top 0.15s var(--ease);
}
.skip:focus { top: 12px; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* the halftone field from the app icon, very faint */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(146, 176, 209, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
}
body > * { position: relative; z-index: 1; }

/* height:auto matters — the <img> tags carry width/height attributes, and
   without it the height hint wins over max-width and squashes the picture. */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration: none; }
a:hover { color: var(--green); }
::selection { background: var(--green); color: #04140c; }

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { padding: 104px 0; border-top: 1px solid var(--line-soft); }
section:first-of-type { border-top: 0; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fg-faint); margin: 0 0 18px; font-weight: 600;
}
h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.08; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.7rem, 7vw, 4.8rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.015em; }
p { margin: 0 0 18px; color: var(--fg-dim); }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--fg-dim); max-width: 62ch; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.dim { color: var(--fg-faint); }

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 13, 23, 0.72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex; align-items: center; gap: 26px;
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; }
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--fg-dim); }
.nav-links a:hover { color: var(--fg); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  background: var(--grad); color: #04140c;
  border: 0; cursor: pointer;
  transition: box-shadow 0.22s var(--ease), filter 0.22s var(--ease);
  box-shadow: 0 8px 30px -10px var(--glow);
}
.btn:hover { color: #04140c; filter: brightness(1.07); box-shadow: 0 12px 38px -8px var(--glow); }
.btn--ghost {
  background: transparent; color: var(--fg);
  border: 1px solid var(--line); box-shadow: none;
}
.btn--ghost:hover { color: var(--fg); border-color: var(--green); box-shadow: none; }
.btn--sm { padding: 9px 17px; font-size: 14px; }

/* ---------- hero ---------- */

.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px);
  opacity: 0.5; pointer-events: none; z-index: -1;
}
.blob--1 { width: 520px; height: 520px; background: #17b26a; top: -160px; left: -140px; animation: drift 18s ease-in-out infinite; }
.blob--2 { width: 460px; height: 460px; background: #1d6fe0; top: -80px; right: -160px; animation: drift 22s ease-in-out infinite reverse; }
.blob--3 { width: 380px; height: 380px; background: #2ea8ff; top: 260px; right: 22%; opacity: 0.28; animation: drift 26s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(30px, 40px, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .blob { animation: none; } }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 15px 7px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(13, 28, 46, 0.7);
  font-size: 13.5px; color: var(--fg-dim); margin-bottom: 26px;
}
.pill b { color: var(--fg); font-weight: 600; }
/* the glow ring eats into the flex gap, so nudge the label away from the dot */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.18); margin-right: 5px; }

.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 22px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 0; align-items: center; }
.cta-note { font-size: 14px; color: var(--fg-faint); margin: 0; }

.shot {
  margin-top: 64px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(61, 220, 132, 0.06);
  overflow: hidden;
}
.shot img { width: 100%; height: auto; }

/* ---------- droid ---------- */

.droid { display: inline-block; animation: bob 3.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50%      { transform: translateY(-7px) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) { .droid { animation: none; } }

/* ---------- device line ---------- */

.device-line {
  margin: 30px 0 0;
  text-align: center;
  font-size: 15px;
  line-height: 1.9;
  color: var(--fg-faint);
}

/* ---------- split rows ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--flip .split-copy { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split--flip .split-copy { order: 0; }
}
.split img { border-radius: var(--radius-lg); border: 1px solid var(--line); }

.checks { list-style: none; padding: 0; margin: 26px 0 0; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--fg-dim); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 12.5px;
  width: 5px; height: 8px; border: solid #04140c; border-width: 0 2px 2px 0;
  transform: rotate(43deg);
}
.checks b { color: var(--fg); font-weight: 600; }

/* ---------- speed ---------- */

.race { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 40px; }
@media (max-width: 720px) { .race { grid-template-columns: 1fr; } }
.racer {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: var(--card);
}
.racer--win { border-color: rgba(61, 220, 132, 0.5); background: linear-gradient(180deg, rgba(23, 178, 106, 0.14), rgba(13, 28, 46, 0.9)); }
.racer .who { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-faint); }
.racer .what { font-size: 1.35rem; font-weight: 650; margin: 6px 0 18px; letter-spacing: -0.02em; }
.bar { height: 12px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; }
.racer--win .bar span { background: var(--grad); width: 100%; }
.racer--lose .bar span { background: #35536f; width: 62%; }
.racer .verdict { margin: 14px 0 0; font-size: 14.5px; }
.racer--win .verdict { color: var(--green); font-weight: 600; }

/* ---------- marquee ---------- */

.marquee {
  margin-top: 40px; overflow: hidden; position: relative;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
.treat {
  white-space: nowrap; padding: 9px 18px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--fg-dim); font-size: 15px;
  background: rgba(13, 28, 46, 0.6);
}
.treat--on { color: #04140c; border-color: transparent; background: var(--grad); font-weight: 650; }

/* ---------- faq ---------- */

.faq { margin-top: 34px; border-top: 1px solid var(--line-soft); }
.faq details { border-bottom: 1px solid var(--line-soft); }
.faq summary {
  cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
/* a "+" that collapses into a "−" as the answer opens */
.faq summary::after {
  content: ""; flex: 0 0 auto; width: 14px; height: 14px; margin-top: 5px;
  background:
    linear-gradient(var(--green), var(--green)) center / 14px 2px no-repeat,
    linear-gradient(var(--green), var(--green)) center / 2px 14px no-repeat;
  transition: background-size 0.32s var(--ease);
}
.faq details[open] summary::after { background-size: 14px 2px, 2px 0; }
@media (prefers-reduced-motion: reduce) {
  .faq summary::after { transition: none; }
}
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 0 20px; margin: 0; max-width: 74ch; }

/* ---------- closer ---------- */

.closer { text-align: center; }
.closer h2 { max-width: 20ch; margin: 0 auto; }
.closer .lede { margin: 20px auto 0; }
.closer .cta-row { justify-content: center; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line-soft); padding: 46px 0 60px; }
.foot { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.foot p { margin: 0; font-size: 14.5px; color: var(--fg-faint); }
.foot a { color: var(--fg-dim); }
.foot a:hover { color: var(--green); }

/* ---------- terminal panel ---------- */

.term {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0b1a2b, #081422);
  overflow: hidden;
  box-shadow: 0 34px 80px -44px rgba(0, 0, 0, 0.95);
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; }
.term-bar i:nth-child(1) { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font-size: 12.5px; color: var(--fg-faint); }
.term pre { margin: 0; padding: 22px 20px 26px; overflow-x: auto; }
.term code {
  font-family: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px; line-height: 1.75; color: var(--fg); white-space: pre;
}
.c-dim { color: var(--fg-faint); }
.c-grn { color: var(--green); }
.caret { color: var(--green); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

/* the droid sits inline in a heading */
.droid { display: inline-block; vertical-align: -3px; margin-right: 8px; }

/* keeps the marquee's duplicated half out of the flex flow */
.dup { display: contents; }


/* ---------- prose (privacy / support) ---------- */

.prose { max-width: 720px; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(2rem, 4.4vw, 2.7rem); margin-bottom: 14px; }
.prose .updated { color: var(--fg-faint); font-size: 14px; margin: 0 0 44px; }
.prose h2 { font-size: 1.25rem; margin: 46px 0 12px; }
.prose h3 { margin: 32px 0 8px; }
.prose p, .prose li { color: var(--fg-dim); font-size: 16px; }
.prose a { color: var(--green); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--fg); }
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px; background: var(--card);
  border: 1px solid var(--line-soft); border-radius: 5px; padding: 1px 5px;
  color: var(--fg);
}
.back { display: inline-block; margin-bottom: 34px; font-size: 14px; color: var(--fg-faint); }
.back:hover { color: var(--green); }

/* the nav CTA on the prose pages */
.nav-cta {
  font-size: 14px; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--fg) !important;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-cta:hover { border-color: var(--green); background: rgba(61, 220, 132, 0.10); }

.foot-legal { margin: 34px 0 0; padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--fg-faint); }
.foot-legal a { color: var(--fg-faint); }
.foot-legal a:hover { color: var(--green); }
