:root {
  --bg: #0e1416;
  --bg-top: #121a1c;
  --bg-accent: rgba(255, 255, 255, 0.04);
  --ink: #e8f2f0;
  --muted: #8aa3a0;
  --faint: #6b8380;
  --accent: #2bb5a8;
  --accent-2: #2bb5a8;
  --accent-dim: rgba(43, 181, 168, 0.14);
  --mark: color-mix(in srgb, #2bb5a8 82%, #e8f2f0);
  --line: rgba(232, 242, 240, 0.1);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --max: 1120px;
  --font: "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 640px at 18% -8%, rgba(43, 181, 168, 0.22), transparent 58%),
    radial-gradient(900px 520px at 100% 100%, rgba(108, 142, 240, 0.10), transparent 55%),
    linear-gradient(180deg, #121a1c 0%, #0e1416 55%);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.topbar {
  height: 3px;
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  background: color-mix(in srgb, var(--bg-top) 86%, transparent);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.brand .wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.15rem;
}

.nav a {
  color: var(--muted);
  font-size: 0.95rem;
  text-decoration: none;
}

.nav a:hover { color: var(--ink); }

.hero,
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 1rem;
}

.hero { padding-top: 3.5rem; text-align: center; }

.hero-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: 100%;
  margin: 0 0 1.75rem;
}

/* 64-col box-drawing wordmark: size to the viewport so it never overflows. */
.hero-logo .mark {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  white-space: pre;
  text-align: left;
  font-family: ui-monospace, "Cascadia Mono", Consolas, "DejaVu Sans Mono", monospace;
  font-size: min(18px, 1.85vw, calc((100vw - 2.5rem) / 42));
  line-height: 1.12;
  letter-spacing: 0;
  color: var(--mark);
  user-select: none;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
}

.hero-logo .tag {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.4rem; }

.lede,
.section-head p,
.stickdroid-copy > p {
  color: var(--muted);
  font-size: 1.12rem;
}

.lede {
  max-width: 38rem;
  margin: 1.15rem auto 0;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--accent);
  color: #04211e;
}

.btn-primary:hover { filter: brightness(1.06); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover { background: var(--accent-dim); }

.hero-shot {
  margin: 3.25rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow), 0 0 0 1px rgba(43, 181, 168, 0.08);
  position: relative;
}

.hero-shot img {
  width: 100%;
  background: #0e1416;
}

.slideshow .slides {
  position: relative;
  aspect-ratio: 1920 / 945;
  background: #0e1416;
}

.slideshow .slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.slideshow .slides img.is-active { opacity: 1; }

.slide-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.slide-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(232, 242, 240, 0.38);
}

.slide-dots button.is-active { background: var(--accent); }

.slide-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .slideshow .slides img { transition: none; }
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.25rem;
}

.section-head p { margin: 0.8rem 0 0; }

.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.features li {
  padding: 1.25rem 1.2rem 1.3rem;
  border-radius: 14px;
  background: var(--bg-accent);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.features p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.stickdroid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}

.stickdroid-copy .kicker { margin-bottom: 0.7rem; }
.stickdroid-copy h2 { margin-bottom: 0.9rem; }

.plain-list {
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.2rem;
  color: var(--ink);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.9rem;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent);
}

.phone-shot {
  margin: 0 auto;
  max-width: 320px;
  width: 100%;
}

.phone-shot figcaption {
  margin: 0.7rem 0 0;
  text-align: center;
  color: var(--faint);
  font-size: 0.82rem;
}

/* Simulated StickDroid UI — colours and layout from the app
   (primary #C8F0A8, background #121510, surface #1A1F16). */
.phone-device {
  --sd-bg: #121510;
  --sd-surface: #1A1F16;
  --sd-ink: #E8EDE3;
  --sd-primary: #C8F0A8;
  --sd-on-primary: #1A1F16;
  border-radius: 32px;
  padding: 10px;
  background: #070807;
  border: 1px solid rgba(232, 237, 227, 0.14);
  box-shadow: var(--shadow);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  height: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sd-bg);
  color: var(--sd-ink);
  font-family: Roboto, "Noto Sans", system-ui, sans-serif;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px 6px 10px 2px;
}

.app-titles { flex: 1; min-width: 0; padding-top: 2px; }

.app-name {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.2;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
  color: color-mix(in srgb, var(--sd-ink) 72%, transparent);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}

.app-status .e2e-cue {
  color: var(--sd-primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 10px;
}

.app-status .lock {
  flex: 0 0 auto;
  margin-top: 1px;
  color: var(--sd-primary);
}

.settings-link {
  color: var(--sd-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 8px 8px 4px;
  white-space: nowrap;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--sd-ink);
  padding: 0;
  flex: 0 0 auto;
}

.chat-log {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 12px 10px;
  overflow: hidden;
}

.bubble {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
}

.bubble p { margin: 0; }

.bubble.me {
  align-self: flex-end;
  background: color-mix(in srgb, var(--sd-primary) 20%, transparent);
}

.bubble.them {
  align-self: flex-start;
  background: var(--sd-surface);
}

.voice-cue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 4px;
  color: var(--sd-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.composer {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px 4px;
}

.composer-field {
  flex: 1;
  min-width: 0;
  margin: 0 2px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--sd-ink) 38%, transparent);
  border-radius: 4px;
  color: color-mix(in srgb, var(--sd-ink) 55%, transparent);
  font-size: 14px;
}

.composer .plus {
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.composer .mic { color: var(--sd-ink); }

.send-btn {
  margin-left: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sd-ink) 14%, var(--sd-surface));
  color: color-mix(in srgb, var(--sd-ink) 45%, transparent);
  font-size: 13px;
  font-weight: 600;
}

.home-bar {
  width: 92px;
  height: 4px;
  margin: 6px auto 8px;
  border-radius: 999px;
  background: var(--sd-ink);
  opacity: 0.85;
}

.download {
  text-align: center;
  padding-bottom: 3rem;
}

.download .section-head {
  margin-left: auto;
  margin-right: auto;
}

.download .fine {
  max-width: 36rem;
  margin: 1.4rem auto 0;
  color: var(--faint);
  font-size: 0.92rem;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.92rem;
}

.site-footer p { margin: 0; }

.footer-links {
  display: flex;
  gap: 1.1rem;
}

.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
  .stickdroid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .phone-shot { margin-top: 0.5rem; max-width: 320px; }
  .phone-screen { height: 580px; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 1rem; }
  .nav { gap: 0.25rem 0.8rem; }
  .hero, .section { padding-inline: 1rem; }
  .hero { padding-top: 2.75rem; }
  h1 { letter-spacing: -0.04em; }
  .features { grid-template-columns: 1fr; }
  .cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
