/* ════════════════════════════════════════════════════════════════
   Droid Dwarf · Square Up Circle — website
   Shared synthwave styling. Calm, minimal, dark violet + neon.
   ════════════════════════════════════════════════════════════════ */

:root {
  --bg-0: #0a0612;
  --bg-1: #120825;
  --bg-2: #1a0a3a;
  --bg-3: #2a1356;
  --panel: rgba(40, 18, 80, 0.42);
  --panel-line: rgba(200, 168, 255, 0.14);
  --panel-line-soft: rgba(200, 168, 255, 0.08);

  --cyan: #7df9ff;
  --mint: #9bffd4;
  --pink: #ff9ed8;
  --lavender: #c8a8ff;

  --text: #e8dcff;
  --text-dim: #9d8bc4;
  --text-faint: #6b5b8c;

  --maxw: 1140px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-0);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Ambient page background — soft violet glow + faint grain */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 22% 8%, rgba(91,46,168,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 30%, rgba(255,158,216,0.10) 0%, transparent 55%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(125,249,255,0.08) 0%, transparent 60%),
    var(--bg-0);
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 3px 3px;
  mix-blend-mode: screen;
  opacity: 0.5;
}

/* Drifting ambient squares */
.page-squares { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.page-squares .sq {
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  filter: drop-shadow(0 0 8px currentColor) drop-shadow(0 0 20px currentColor);
}

/* ── Layout helpers ───────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; position: relative; }
.section-sm { padding: 72px 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  background: var(--pink);
  transform: rotate(45deg);
  box-shadow: 0 0 10px var(--pink), 0 0 20px var(--pink);
}

h1, h2, h3 { font-weight: 200; letter-spacing: -0.01em; line-height: 1.08; color: #fff; }
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 21px; font-weight: 400; letter-spacing: 0; }

.lead { font-size: clamp(16px, 2vw, 19px); color: var(--text-dim); max-width: 52ch; text-wrap: pretty; }

.glow-cyan { color: var(--cyan); text-shadow: 0 0 18px rgba(125,249,255,0.5); }
.glow-soft { text-shadow: 0 0 22px rgba(199,168,255,0.5), 0 0 46px rgba(125,249,255,0.22); }

/* ── Top nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(10, 6, 18, 0.6);
  border-bottom: 1px solid var(--panel-line-soft);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-lock { display: flex; align-items: center; gap: 12px; }
.brand-lock .mark {
  width: 26px; height: 26px;
  border: 1.5px solid var(--cyan);
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(125,249,255,0.2), rgba(125,249,255,0.04));
  box-shadow: 0 0 12px rgba(125,249,255,0.6), inset 0 0 8px rgba(125,249,255,0.3);
  transform: rotate(8deg);
}
.brand-lock .name { font-size: 15px; font-weight: 400; letter-spacing: 0.02em; color: #fff; }
.brand-lock .name .amp { color: var(--cyan); font-style: italic; margin: 0 1px; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  transition: color 200ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 12px !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase;
  color: var(--cyan) !important;
  padding: 9px 16px;
  border: 1px solid rgba(125,249,255,0.4);
  border-radius: 10px;
  box-shadow: 0 0 18px rgba(125,249,255,0.15);
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease) !important;
}
.nav-cta:hover { background: rgba(125,249,255,0.1); box-shadow: 0 0 28px rgba(125,249,255,0.3); }
.nav-toggle { display: none; }

/* ── Buttons / store badges ───────────────────────────────────── */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid var(--panel-line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  transition: transform 220ms var(--ease), border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(125,249,255,0.4);
  box-shadow: 0 10px 30px rgba(91,46,168,0.3), 0 0 24px rgba(125,249,255,0.15);
}
.store-badge .ico { width: 26px; height: 26px; flex-shrink: 0; color: var(--text); }
.store-badge .txt { display: flex; flex-direction: column; line-height: 1.2; }
.store-badge .txt .small { font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-faint); }
.store-badge .txt .big { font-size: 15px; font-weight: 500; color: #fff; letter-spacing: 0.01em; }

.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--cyan);
  transition: gap 200ms var(--ease);
}
.pill-link:hover { gap: 12px; }
.pill-link .arrow {
  width: 16px; height: 1px; background: currentColor; position: relative;
}
.pill-link .arrow::after {
  content: ""; position: absolute; right: 0; top: 50%;
  width: 6px; height: 6px;
  border-right: 1px solid currentColor; border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding-top: 90px; padding-bottom: 90px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 0.85fr; gap: 56px; align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-copy .lead { margin-bottom: 34px; }
.hero-sub {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-sub .star { width: 7px; height: 7px; background: var(--mint); transform: rotate(45deg); box-shadow: 0 0 8px var(--mint); }

/* Phone embed — scales a native-size screen iframe (which carries its own
   iOS bezel) down to the display size. --s = scale factor. */
.phone-embed {
  position: relative;
  width: calc(390px * var(--s, 0.6));
  height: calc(844px * var(--s, 0.6));
  overflow: hidden;
  filter: drop-shadow(0 40px 80px rgba(0,0,0,0.55)) drop-shadow(0 0 70px rgba(91,46,168,0.3));
}
.phone-embed iframe {
  display: block;
  border: 0;
  width: 390px;
  height: 844px;
  transform: scale(var(--s, 0.6));
  transform-origin: top left;
  background: transparent;
}

.hero-phone { justify-self: center; }

/* ── Feature grid ─────────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 52px;
}
.feature-card {
  padding: 30px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(40,18,80,0.4) 0%, rgba(20,8,48,0.45) 100%);
  transition: transform 260ms var(--ease), border-color 260ms var(--ease);
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(200,168,255,0.28); }
.feature-card .ficon {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 12px;
  border: 1px solid var(--panel-line);
  margin-bottom: 20px;
  color: var(--cyan);
}
.feature-card .ficon svg { width: 22px; height: 22px; }
.feature-card.pink .ficon { color: var(--pink); }
.feature-card.mint .ficon { color: var(--mint); }
.feature-card.lav .ficon { color: var(--lavender); }
.feature-card h3 { margin-bottom: 10px; color: #fff; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ── Screens gallery ──────────────────────────────────────────── */
.gallery {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 32px;
  margin-top: 56px;
  flex-wrap: wrap;
}
.gallery .shot { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gallery .shot .label {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-faint);
}
.gallery .shot.featured { transform: translateY(-18px); }

/* ── CTA band ─────────────────────────────────────────────────── */
.cta-band { text-align: center; }
.cta-band .panel {
  padding: 64px 40px;
  border-radius: 28px;
  border: 1px solid var(--panel-line);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, rgba(125,249,255,0.1) 0%, transparent 60%),
    linear-gradient(180deg, rgba(40,18,80,0.5), rgba(20,8,48,0.5));
  position: relative;
  overflow: hidden;
}
.cta-band h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 32px; }
.cta-band .btn-row { justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--panel-line-soft);
  padding: 56px 0 40px;
  margin-top: 40px;
}
.footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer .col-brand .brand-lock { margin-bottom: 16px; }
.footer .col-brand p { font-size: 13px; color: var(--text-faint); max-width: 30ch; }
.footer .fcol h4 {
  font-size: 11px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--text-faint);
  font-weight: 400; margin-bottom: 16px;
}
.footer .fcol a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 11px; transition: color 180ms var(--ease); }
.footer .fcol a:hover { color: var(--cyan); }
.footer-base {
  border-top: 1px solid var(--panel-line-soft);
  margin-top: 44px; padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-base, .footer-base a {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; color: var(--text-faint);
}
.footer-base a:hover { color: var(--text-dim); }

/* ════════════════════════════════════════════════════════════════
   Document pages (privacy / support / press)
   ════════════════════════════════════════════════════════════════ */
.doc { padding-top: 64px; padding-bottom: 90px; }
.doc .wrap { max-width: 800px; }
.doc-head { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--panel-line); }
.doc-head h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 14px; }
.doc-head .updated {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.14em; color: var(--text-faint);
}
.doc-body h2 {
  font-size: 24px; font-weight: 400; color: #fff;
  margin: 44px 0 14px;
  display: flex; align-items: baseline; gap: 14px;
}
.doc-body h2 .n {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 13px; color: var(--cyan); font-weight: 400;
  text-shadow: 0 0 10px rgba(125,249,255,0.4);
}
.doc-body h3 { font-size: 17px; color: var(--text); margin: 26px 0 10px; }
.doc-body p { color: var(--text-dim); margin-bottom: 16px; font-size: 15.5px; }
.doc-body ul { list-style: none; margin: 0 0 18px; padding: 0; }
.doc-body li {
  position: relative;
  padding-left: 24px;
  color: var(--text-dim);
  margin-bottom: 11px;
  font-size: 15.5px;
}
.doc-body li::before {
  content: "";
  position: absolute; left: 4px; top: 10px;
  width: 6px; height: 6px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow: 0 0 6px rgba(125,249,255,0.4);
}
.doc-body a { color: var(--cyan); border-bottom: 1px solid rgba(125,249,255,0.3); transition: border-color 180ms; }
.doc-body a:hover { border-color: var(--cyan); }
.doc-body strong { color: var(--text); font-weight: 500; }

.callout {
  margin: 24px 0;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(40,18,80,0.45), rgba(20,8,48,0.4));
}
.callout p:last-child { margin-bottom: 0; }
.callout.cyan { border-color: rgba(125,249,255,0.28); }

.toc {
  position: sticky; top: 88px;
  font-size: 13px;
}

/* Data table for privacy */
.data-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; }
.data-table th, .data-table td {
  text-align: left; padding: 13px 16px; font-size: 14px;
  border-bottom: 1px solid var(--panel-line-soft);
  vertical-align: top;
}
.data-table th {
  font-weight: 400; color: var(--text-faint);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
}
.data-table td { color: var(--text-dim); }
.data-table td:first-child { color: var(--text); font-weight: 400; white-space: nowrap; }

/* Back link */
.back-link {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 36px;
  transition: color 180ms var(--ease);
}
.back-link:hover { color: var(--text); }
.back-link .chev { width: 8px; height: 8px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }

/* Support cards */
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 8px 0 40px; }
.support-card {
  padding: 30px 28px;
  border-radius: var(--radius);
  border: 1px solid var(--panel-line);
  background: linear-gradient(180deg, rgba(40,18,80,0.4), rgba(20,8,48,0.45));
}
.support-card .ficon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--panel-line); margin-bottom: 18px; color: var(--cyan); }
.support-card.pink .ficon { color: var(--pink); }
.support-card h3 { margin-bottom: 8px; }
.support-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 16px; }
.support-email {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 14px; color: var(--cyan);
  border-bottom: 1px solid rgba(125,249,255,0.3);
}

.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--panel-line-soft);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer; list-style: none;
  padding: 18px 4px; font-size: 16px; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; background: var(--cyan); box-shadow: 0 0 6px var(--cyan);
}
.faq summary .plus::before { left: 6px; top: 0; width: 1.5px; height: 14px; transition: opacity 200ms; }
.faq summary .plus::after { left: 0; top: 6px; width: 14px; height: 1.5px; }
.faq details[open] summary .plus::before { opacity: 0; }
.faq details p { padding: 0 4px 20px; color: var(--text-dim); font-size: 15px; }

/* Press kit */
.press-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 8px 0 40px; border: 1px solid var(--panel-line); border-radius: var(--radius); overflow: hidden; }
.press-facts .fact { padding: 22px 26px; border-bottom: 1px solid var(--panel-line-soft); }
.press-facts .fact:nth-child(odd) { border-right: 1px solid var(--panel-line-soft); }
.press-facts .fact .k { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 7px; }
.press-facts .fact .v { font-size: 16px; color: var(--text); }
.press-facts .fact .v.cyan { color: var(--cyan); }

.asset-row { display: flex; gap: 18px; flex-wrap: wrap; margin: 10px 0 34px; }
.asset-tile {
  border-radius: 16px; border: 1px solid var(--panel-line); overflow: hidden;
  background: var(--panel); padding: 16px;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.asset-tile .cap { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); }

/* ── Reveal-on-scroll ─────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-copy .eyebrow, .hero-copy .btn-row, .hero-copy .hero-sub { justify-content: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr; gap: 32px; }
  .support-grid, .press-facts { grid-template-columns: 1fr; }
  .press-facts .fact:nth-child(odd) { border-right: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .gallery .shot.featured { transform: none; }
}
