:root {
  --primary: #1976d2;
  --primary-light: #90caf9;
  --accent: #03dac6;
  --bg: #fafafa;
  --bg-elev: #ffffff;
  --text: #1a1a1a;
  --text-muted: #5b6470;
  --border: #e2e6eb;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --radius: 14px;
  --max-w: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --primary: #90caf9;
    --primary-light: #1976d2;
    --bg: #121212;
    --bg-elev: #1c1f24;
    --text: #ececec;
    --text-muted: #a0a8b3;
    --border: #2a2f36;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--text);
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}

.nav-links a:hover {
  color: var(--primary);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  margin: 5px auto;
  transition: transform 0.2s, opacity 0.2s;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links li {
    width: 100%;
  }
  .nav-links a {
    display: block;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
  }
  .nav.open .nav-links {
    max-height: 320px;
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
}

.btn-primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(25, 118, 210, 0.45);
}

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

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--primary);
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 64px;
  background:
    radial-gradient(ellipse at 20% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
    radial-gradient(ellipse at 80% 30%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 55%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}

.hero h1 {
  font-size: clamp(36px, 5.2vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero .lede {
  font-size: 19px;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-art {
  display: flex;
  justify-content: center;
}

.hero-art .art-frame {
  width: 280px;
  height: 280px;
  border-radius: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 30px 80px rgba(25, 118, 210, 0.35);
}

.hero-art img {
  width: 168px;
  height: 168px;
  border-radius: 36px;
}

@media (max-width: 768px) {
  .hero {
    padding: 56px 0 40px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero .lede {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
}

/* ---------- Sections ---------- */
section {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
  font-size: 17px;
}

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

.feature {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.feature h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.feature p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* ---------- Screenshots ---------- */
.shots {
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--primary) 4%, transparent));
}

.shots-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  justify-items: center;
}

.shot {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19;
  border-radius: 28px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.shot-label {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 0 16px;
}

.shot-label small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: 0.7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 768px) {
  .shots-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Premium ---------- */
.pricing {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.plan {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: relative;
}

.plan.featured {
  border-color: var(--primary);
  border-width: 2px;
}

.plan .badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.plan .price {
  font-size: 32px;
  font-weight: 700;
  margin: 8px 0 20px;
}

.plan .price small {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--text);
  font-size: 15px;
}

.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 8px;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 720px) {
  .pricing {
    grid-template-columns: 1fr;
  }
}

/* ---------- Support ---------- */
.support-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 720px;
  margin: 0 auto;
}

.support-card h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.support-card p {
  color: var(--text-muted);
  margin: 0 0 24px;
}

.support-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  font-size: 14px;
  color: var(--text-muted);
}

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

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

/* ---------- Privacy page ---------- */
.legal {
  padding: 56px 0 80px;
}

.legal-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  box-shadow: var(--shadow);
}

.legal h1 {
  margin: 0 0 8px;
  font-size: 32px;
}

.legal .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.legal h2 {
  margin: 36px 0 12px;
  font-size: 22px;
}

.legal h3 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.legal p,
.legal li {
  color: var(--text);
}

.legal hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.legal th,
.legal td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal th {
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}

@media (max-width: 600px) {
  .legal-inner {
    padding: 28px 20px;
  }
}
