/* Palmo landing page — flat, solid surfaces, crisp borders. No blur, no glass. */

:root {
  --bg: #0D110E;
  --surface: #141A16;
  --surface-2: #1A211C;
  --surface-3: #222C25;
  --border: #28342B;
  --border-strong: #37473B;
  --text: #ECEFF4;
  --muted: #8FA394;
  --faint: #62735F;
  --accent: #A3E635;
  --accent-hover: #B8EC5C;
  --accent-press: #8FD12A;
  --success: #34D399;
  --warn: #FB923C;
  --purple: #2DD4BF;
  --danger: #FF5D5D;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd {
  font-family: var(--font);
  font-size: 0.85em;
  font-weight: 600;
  color: var(--text);
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 7px;
}
strong { font-weight: 600; color: var(--text); }
em { font-style: normal; color: var(--text); font-weight: 500; }

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin: 0 auto; }
.wrap-narrow { width: min(820px, calc(100% - 48px)); }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: #0B1A0E; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; border-radius: 11px; border: 1px solid transparent;
  padding: 12px 20px; font-size: 15px; line-height: 1.2; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .1s ease, color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { background: var(--accent); color: #0B1A0E; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-primary:active { background: var(--accent-press); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-3); border-color: #46594C; }
.btn-lg { padding: 15px 24px; font-size: 16px; border-radius: 13px; }
.btn-sm { padding: 9px 14px; font-size: 14px; border-radius: 9px; }
.link { color: var(--accent); font-weight: 500; }
.link:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot-ok { background: var(--success); }

/* ------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.brand img { border-radius: 8px; }
.brand-sm { font-size: 15px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  color: var(--muted); font-weight: 500; font-size: 14px; padding: 8px 12px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
@media (max-width: 760px) { .nav-links { display: none; } .nav-inner { gap: 16px; } .nav-inner .btn { margin-left: auto; } }

/* ------------------------------------------------------------- hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; opacity: .22;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; position: relative; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px 7px 12px; margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(44px, 6.2vw, 76px); line-height: 1.0; letter-spacing: -0.035em; font-weight: 800;
  margin-bottom: 24px;
}
.lede { font-size: 19px; line-height: 1.55; color: var(--muted); max-width: 54ch; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.meta { color: var(--faint); font-size: 13.5px; }
.meta.mono { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }

/* app mock */
.hero-visual { position: relative; }
.appmock {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8);
}
.appmock-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--border); background: var(--surface); }
.appmock-logo img { border-radius: 5px; }
.appmock-title { font-weight: 700; font-size: 13.5px; }
.appmock-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 11px 4px 9px; color: var(--text); }
.appmock-body { padding: 14px; display: grid; gap: 12px; background: var(--bg); }
.appmock-cam { position: relative; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; }
.appmock-cam svg { width: 100%; height: 100%; }
#hand-joints circle { fill: #ECEFF4; stroke-width: 1.5; }
.appmock-chip {
  position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
  background: rgba(14,16,19,.92); border-radius: 999px; padding: 6px 13px 6px 11px; font-size: 12.5px; font-weight: 600;
}
.appmock-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.mcard {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 8px 8px; min-width: 0;
  transition: border-color .25s ease, background .25s ease;
}
.mcard b { font-size: 10.5px; letter-spacing: -0.01em; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; transition: color .25s ease; }
.mcard-ico { display: block; width: 20px; height: 20px; color: var(--muted); transition: color .25s ease; }
.mcard-ico svg { width: 100%; height: 100%; }
.mcard.active { border-color: var(--g, var(--accent)); background: color-mix(in srgb, var(--g, var(--accent)) 10%, var(--surface)); }
.mcard.active b, .mcard.active .mcard-ico { color: var(--g, var(--accent)); }
.hero-cursor {
  position: absolute; width: 26px; height: 26px; left: 62%; top: 30%; pointer-events: none; z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.6));
  transition: left .9s cubic-bezier(.2,.7,.2,1), top .9s cubic-bezier(.2,.7,.2,1);
}
.hero-cursor svg { fill: #fff; stroke: #0D110E; stroke-width: 1.2; }
@media (max-width: 960px) {
  .hero { padding: 56px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-cursor { display: none; }
}
@media (max-width: 520px) {
  .appmock-cards { grid-template-columns: repeat(3, 1fr); }
  .appmock-cards .mcard:nth-child(n+4) { display: none; }
}

/* ------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.kicker { color: var(--accent); font-weight: 600; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 750; margin-bottom: 16px; }
.sub { color: var(--muted); font-size: 17px; max-width: 64ch; }
@media (max-width: 760px) { .section { padding: 64px 0; } .section-head { margin-bottom: 36px; } }

/* gestures */
.gesture-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 26px 24px;
  display: flex; flex-direction: column; gap: 12px; position: relative;
  transition: border-color .2s ease, transform .2s ease;
}
.gcard:hover { border-color: var(--c); transform: translateY(-2px); }
.gcard-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) 14%, var(--surface)); border: 1px solid color-mix(in srgb, var(--c) 35%, var(--border)); }
.gcard-ico svg { width: 26px; height: 26px; }
.gcard h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.015em; margin-top: 6px; }
.gcard p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.gtag { margin-top: auto; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--c); letter-spacing: .04em; text-transform: uppercase;
  padding-top: 10px; }
.section-alt .gcard { background: var(--surface-2); }
@media (max-width: 960px) { .gesture-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gesture-grid { grid-template-columns: 1fr; } }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: grid; gap: 12px; align-content: start; }
.feat-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--accent); background: var(--surface-3); border: 1px solid var(--border-strong); }
.feat-ico svg { width: 22px; height: 22px; }
.feat h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-top: 4px; }
.feat p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 960px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feat-grid { grid-template-columns: 1fr; } }

/* flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.flow-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: relative; display: grid; gap: 10px; align-content: start; }
.flow-num { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; font-size: 14px;
  background: var(--accent); color: #0B1A0E; margin-bottom: 8px; }
.flow-step h3 { font-size: 17px; font-weight: 700; }
.flow-step p { color: var(--muted); font-size: 14.5px; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; right: -16px; top: 42px; width: 16px; height: 1px; background: var(--border-strong);
}
@media (max-width: 960px) { .flow { grid-template-columns: repeat(2, 1fr); } .flow-step:nth-child(2)::after { display: none; } }
@media (max-width: 600px) { .flow { grid-template-columns: 1fr; } .flow-step::after { display: none !important; } }

/* download */
.dl-card { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.dl-main, .dl-side { background: var(--surface-2); border: 1px solid var(--border); border-radius: 18px; padding: 40px; }
.dl-main { display: grid; gap: 16px; justify-items: start; align-content: start; }
.dl-logo { border-radius: 16px; }
.dl-main h2 { margin-bottom: 0; }
.dl-main .btn { margin-top: 6px; }
.dl-side h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 20px; }
.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--muted); font-size: 15px; line-height: 1.55; }
.check { width: 22px; height: 22px; border-radius: 50%; background: color-mix(in srgb, var(--success) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--success) 45%, var(--border)); position: relative; top: 1px; }
.check::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 9px; border: solid var(--success); border-width: 0 2px 2px 0; transform: rotate(45deg); }
@media (max-width: 860px) { .dl-card { grid-template-columns: 1fr; } .dl-main, .dl-side { padding: 28px; } }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; padding: 18px 54px 18px 22px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { background: var(--surface-2); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.faq p { color: var(--muted); padding: 0 22px 20px; font-size: 15px; line-height: 1.65; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
.footer-inner p { flex: 1; min-width: 240px; }
