/* ScreenHole marketing site — dark, gradient, brand-consistent with the app. */

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

:root {
  --bg-0: #16142a;
  --bg-1: #1f1c3a;
  --bg-2: #3d295a;
  --text: #f4f4f8;
  --muted: #9a9aa2;
  --accent: #5aa0ff;
  --max: 1080px;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, rgba(174, 137, 230, 0.32), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(255, 159, 122, 0.28), transparent 55%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
}

a {
  color: inherit;
}

/* ───── Layout ─────────────────────────────────────────────────────────── */

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

.header {
  padding: 22px 0;
}

.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #ff6b6b,
    #feca57,
    #48dbfb,
    #ff9ff3,
    #54a0ff,
    #5f27cd,
    #ff6b6b
  );
}

.brand-mark.spin {
  animation: spin 4s linear infinite;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
  transition: color 0.15s ease;
}

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

/* ───── Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding: 80px 0 100px;
  text-align: center;
}

/* Animate the conic-gradient's start angle (not the element transform), so
   the ring spins while the face inside stays still. */
@property --ring-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-mark {
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  border-radius: 50%;
  background: conic-gradient(
    from var(--ring-angle, 0deg),
    #ff6b6b,
    #feca57,
    #48dbfb,
    #ff9ff3,
    #54a0ff,
    #5f27cd,
    #ff6b6b
  );
  animation: ring-spin 4s linear infinite;
  position: relative;
  filter: drop-shadow(0 20px 50px rgba(95, 39, 205, 0.45));
}

@keyframes ring-spin {
  from { --ring-angle: 0deg; }
  to { --ring-angle: 360deg; }
}

.hero-face {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  object-fit: cover;
  background: #06050d;
}

/* Audio-reactive-style bars around the ring. Bars are generated and
   randomised in JS (index.html); CSS just defines their look + animation. */
.hero-mark .pulse {
  position: absolute;
  inset: -40px;
  pointer-events: none;
}

.hero-mark .pulse .bar {
  position: absolute;
  left: calc(50% - 1.5px);
  bottom: 50%;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: var(--color, #48dbfb);
  box-shadow: 0 0 6px var(--color, #48dbfb);
  opacity: 0.4;
  transform-origin: 50% 100%;
  transform: rotate(var(--bar-angle, 0deg)) translateY(-84px);
  animation: bar-pulse var(--duration, 1.4s) ease-in-out var(--delay, 0s) infinite;
}

@keyframes bar-pulse {
  0%, 100% { height: 4px; opacity: 0.25; }
  50% { height: var(--max-len, 20px); opacity: 0.9; }
}

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.05;
  margin-bottom: 18px;
}

.hero h1 .accent {
  background: linear-gradient(120deg, #ff9ff3 0%, #48dbfb 60%, #54a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .tagline {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.78);
  max-width: 680px;
  margin: 0 auto 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, #5aa0ff, #3b7be2);
  color: #fff;
  box-shadow: 0 12px 30px rgba(59, 123, 226, 0.45);
}

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

.btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.13);
}

.hero .meta {
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

/* ───── Features ───────────────────────────────────────────────────────── */

.features {
  padding: 60px 0 80px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px 24px;
}

.feature h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.55;
}

.feature .icon {
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(72, 219, 251, 0.22), rgba(95, 39, 205, 0.22));
  border: 1px solid rgba(72, 219, 251, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

@media (max-width: 760px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 44px;
  }
  .hero-mark {
    width: 120px;
    height: 120px;
  }
}

/* ───── Shortcuts band ─────────────────────────────────────────────────── */

.shortcuts {
  padding: 50px 0 80px;
}

.shortcuts h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 28px;
}

.kbd-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

.kbd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
}

kbd {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #f0f0f4;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 4px 8px;
}

.kbd-item .lbl {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ───── Privacy + support pages ───────────────────────────────────────── */

.page {
  padding: 60px 0 100px;
}

.page h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.page .updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
}

.page h2 {
  font-size: 17px;
  font-weight: 700;
  margin: 28px 0 10px;
}

.page p,
.page li {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.65;
}

.page ul {
  list-style: none;
  padding-left: 0;
}

.page ul li::before {
  content: '·';
  margin-right: 10px;
  color: var(--muted);
}

.page a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(90, 160, 255, 0.4);
}

.page a:hover {
  border-bottom-color: var(--accent);
}

/* ───── Footer ─────────────────────────────────────────────────────────── */

footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 28px 0;
  font-size: 13px;
  color: var(--muted);
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

footer .links {
  display: flex;
  gap: 22px;
}

footer a {
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* ───── Misc ───────────────────────────────────────────────────────────── */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
