/* ============================================================
   Polter Click — polter-click.com
   Design tokens are lifted directly from the app icon's own
   material (design/favicon-set/polter-click.svg): a dark navy
   bevelled card holding one blue mark. The site reuses that
   exact card language for every panel on the page.
   ============================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-600-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/bricolage-grotesque-600-700.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-500-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-500-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-400-500-600.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}

:root {
  --void: #0b0b12;
  --void-2: #0e1122;
  --panel: #171a2c;
  --panel-2: #1e2233;
  --border: #262b42;
  --border-soft: #3a3f57;

  --ghost: #3d7bff;
  --ghost-dim: #2454c9;
  --ghost-glow: #8fb1ff;
  --eye: #1e2233;
  --eye-shine: #a6adc8;

  --ink: #eef0fb;
  --ink-muted: #9297b3;
  --ink-faint: #565b78;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --container: 1120px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 9px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* height:auto is what turns the width/height attributes into an aspect-ratio
   hint instead of a fixed pixel height — without it a `width:100%` image keeps
   its attribute height and stretches. */
img, svg { display: block; max-width: 100%; height: auto; }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  /* display type sets its own leading — body's 1.6 is far too airy for a headline */
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ghost-glow);
  margin: 0 0 14px;
}

/* the icon's own "bevelled card" material, reused everywhere */
.card-material {
  background: var(--panel-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
}
.card-material::before {
  content: '';
  position: absolute;
  inset: 0;
  height: 34%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent);
  pointer-events: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ghost-glow);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--ghost);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(61, 123, 255, 0.65);
}
.btn-primary:hover { box-shadow: 0 10px 28px -6px rgba(61, 123, 255, 0.8); }

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

.btn-small { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 11, 18, 0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--ink);
}
.nav-brand .mark { width: 30px; height: 30px; flex: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}
.nav-links a:hover { color: var(--ink); }
.nav-links li:last-child { display: flex; }
@media (max-width: 720px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero-ripples {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.ripple {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid var(--ghost-glow);
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  animation: ripple-out 2.6s cubic-bezier(0.2, 0.6, 0.35, 1) forwards;
}
@keyframes ripple-out {
  0% { opacity: 0.55; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(11); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-figure { order: -1; }
}

.hero h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--ghost-glow);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0 0 34px;
}
@media (max-width: 900px) {
  .hero-sub { margin-inline: auto; }
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-figure {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ghost-mark {
  width: min(320px, 80%);
  /* the mark's own proportions — the <svg> carries no viewBox (see index.html) */
  aspect-ratio: 146 / 167;
  filter: drop-shadow(0 30px 60px rgba(61, 123, 255, 0.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(1.2deg); }
}
.hero-figure .glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 123, 255, 0.28), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* ---------- flow strip ---------- */
.flow {
  padding: 0 0 88px;
}
.flow-card {
  padding: 28px 30px;
}
.flow-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-faint);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.flow-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1 1 220px;
  padding: 8px 22px;
  border-left: 2px solid var(--border-soft);
}
.flow-step:first-child { border-left: none; padding-left: 0; }
.flow-step .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--ghost-glow);
  display: block;
  margin-bottom: 6px;
}
.flow-step .value {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--ink);
}
@media (max-width: 720px) {
  .flow-step { border-left: none; border-top: 2px solid var(--border-soft); padding: 16px 0 0; }
  .flow-step:first-child { border-top: none; padding-top: 0; }
}

/* ---------- features ---------- */
.features { padding: 20px 0 100px; }
.section-head {
  max-width: 60ch;
  margin: 0 0 46px;
}
.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 14px;
}
.section-head p {
  color: var(--ink-muted);
  font-size: 1.02rem;
  margin: 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  padding: 26px 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  border-color: var(--ghost-dim);
  transform: translateY(-3px);
}
.feature-card .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(61, 123, 255, 0.14);
  color: var(--ghost-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-card .icon svg { width: 19px; height: 19px; }
.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.feature-card p {
  color: var(--ink-muted);
  font-size: 0.93rem;
  margin: 0;
  line-height: 1.55;
}

/* ---------- cta band ---------- */
.cta {
  padding: 0 0 110px;
}
.cta-card {
  padding: 56px 40px;
  text-align: center;
  background: radial-gradient(120% 140% at 50% -10%, rgba(61, 123, 255, 0.16), transparent 60%), var(--panel-2);
}
.cta-card h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 12px;
}
.cta-card p {
  color: var(--ink-muted);
  margin: 0 0 28px;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-note {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
}

/* ---------- intro / what it is ---------- */
.intro { padding: 8px 0 96px; }
.intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 44px;
  margin-top: 42px;
}
@media (max-width: 760px) {
  .intro-grid { grid-template-columns: 1fr; gap: 0; }
}
.intro-copy p {
  color: var(--ink-muted);
  margin: 0 0 16px;
}
.intro-copy strong { color: var(--ink); font-weight: 600; }
.intro-copy em { font-style: normal; color: var(--ghost-glow); }

/* a chip row naming what is in the box */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.pill-row li {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0;
}

/* ---------- screenshots on the landing page ---------- */
.shot { margin: 0; }
.shot img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: var(--void-2);
}
.shot figcaption {
  margin-top: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ink-faint);
}
.shot figcaption em { font-style: normal; color: var(--ink-muted); }
.shot a { display: block; }
.shot a img { transition: border-color 0.2s ease; }
.shot a:hover img { border-color: var(--ghost-dim); }
.shot-wide figcaption { max-width: 74ch; }

.watch { padding: 0 0 96px; }
.media-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 780px) {
  .media-2 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}

/* ---------- short FAQ on the landing page ---------- */
.questions { padding: 0 0 96px; }
.questions .faq { max-width: 820px; }
.questions .faq details:first-of-type { border-top: 1px solid var(--border); }
.questions-more { margin: 28px 0 0; }

/* ---------- FAQ ---------- */
.faq { margin-top: 22px; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq details[open] { background: rgba(255, 255, 255, 0.012); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 44px 18px 2px;
  position: relative;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.6px solid var(--ink-faint);
  border-bottom: 1.6px solid var(--ink-faint);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.18s ease;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--ghost-glow); }
.faq .answer { padding: 0 44px 20px 2px; }
.faq .answer p { margin: 0 0 10px; font-size: 0.95rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-muted);
  font-size: 0.9rem;
}
.footer-brand .mark { width: 20px; height: 20px; }
.footer-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
.footer-links a:hover { color: var(--ink); }
