:root {
  color-scheme: light dark;
  --primary: #4285f4;
  --primary-variant: #1976d2;
  --primary-dark: #0d47a1;
  --on-primary: #ffffff;
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-card: #ffffff;
  --text: #212121;
  --text-secondary: #757575;
  --text-tertiary: #9e9e9e;
  --border: #e0e0e0;
  --divider: #e0e0e0;
  --support: #4285f4;
  --resistance: #e53e3e;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-chip: 16px;
  --nav-h: 68px;
  --wrap: 1120px;
  --shadow: 0 10px 28px rgba(33, 33, 33, 0.08);
  --shadow-lg: 0 18px 48px rgba(13, 71, 161, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --surface: #1e1e1e;
    --surface-card: #1e1e1e;
    --text: #ffffff;
    --text-secondary: #b3b3b3;
    --text-tertiary: #8a8a8a;
    --border: #2c2c2c;
    --divider: #2c2c2c;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-card: #1e1e1e;
  --text: #ffffff;
  --text-secondary: #b3b3b3;
  --text-tertiary: #8a8a8a;
  --border: #2c2c2c;
  --divider: #2c2c2c;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  background: var(--bg);
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: var(--on-primary);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--divider);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  place-items: center;
  gap: 5px;
}

.nav-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

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

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: var(--radius-btn);
  background: var(--primary);
  color: var(--on-primary) !important;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 10%, transparent), transparent 42%),
    linear-gradient(var(--divider) 1px, transparent 1px),
    linear-gradient(90deg, var(--divider) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.eyebrow {
  margin: 22px 0 8px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
}

.hero h1,
.section-title,
.cta h2 {
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.lede {
  margin: 0 0 24px;
  color: var(--text-secondary);
  font-size: 1.08rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-chip);
  background: var(--surface);
  color: var(--text);
  font-size: 0.92rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
}

.dot.red {
  background: var(--resistance);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.store-badges a,
.store-soon {
  display: inline-block;
  line-height: 0;
}

.store-badges img {
  height: 44px;
  width: auto;
}

.store-soon {
  position: relative;
  cursor: default;
}

.store-soon-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 6;
  width: max-content;
  max-width: 230px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #212121;
  color: #fff;
  font-size: 0.8rem;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.15s ease;
}

.store-soon-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  border: 6px solid transparent;
  border-top-color: #212121;
  transform: translateX(-50%);
}

.store-soon:hover .store-soon-tip,
.store-soon:focus .store-soon-tip,
.store-soon:focus-visible .store-soon-tip {
  opacity: 1;
}

.store-soon-label {
  position: absolute;
  top: -8px;
  right: -8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.section {
  padding: 72px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

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

.feature-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-secondary);
}

.about {
  background: var(--surface);
  border-block: 1px solid var(--divider);
}

.about-copy {
  max-width: 760px;
  margin: 0 auto;
}

.about-copy h3 {
  margin: 28px 0 8px;
  font-size: 1.15rem;
}

.about-copy h3:first-child {
  margin-top: 0;
}

.about-copy p,
.about-copy ul {
  color: var(--text-secondary);
}

.about-copy ul {
  padding-left: 1.2rem;
}

.disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-btn);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.shots-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.shot {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.shot.portrait {
  width: min(240px, 72vw);
  border-radius: 28px;
}

.shot.landscape {
  width: min(860px, 100%);
  margin: 24px auto 0;
  border-radius: 18px;
}

.shot img {
  display: block;
  width: 100%;
}

.shot img.shot-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot img.shot-light {
    display: none;
  }

  :root:not([data-theme="light"]) .shot img.shot-dark {
    display: block;
  }
}

:root[data-theme="dark"] .shot img.shot-light {
  display: none;
}

:root[data-theme="dark"] .shot img.shot-dark {
  display: block;
}

.theme-switch {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.theme-switch button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
}

.theme-switch svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: currentColor;
}

.theme-switch button[data-theme="light"] svg,
.theme-switch button[data-theme="system"] svg {
  fill: none;
}

.theme-switch button:hover,
.theme-switch button:focus-visible {
  color: var(--text);
  background: var(--bg);
}

.theme-switch button[aria-pressed="true"] {
  background: var(--primary);
  color: var(--on-primary);
}

.shot figcaption {
  padding: 10px 12px 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  text-align: center;
}

.cta {
  padding: 28px 0 88px;
}

.cta-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 28px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.16), transparent 40%),
    linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--on-primary);
  box-shadow: var(--shadow-lg);
}

.cta-card img.cta-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 16px;
}

.cta-card .lede {
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
}

.cta-card .store-soon-label {
  background: #fff;
  color: var(--primary-dark);
}

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--divider);
  color: var(--text-secondary);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 420px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
}

.footer-brand p {
  margin: 4px 0 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
  align-items: center;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--text);
}

.copyright {
  width: 100%;
  margin: 20px 0 0;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

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

  .nav-burger {
    display: grid;
  }

  .nav {
    position: absolute;
    top: var(--nav-h);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 20px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--divider);
  }

  .nav a {
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
  }

  .nav-cta {
    justify-content: center;
    margin-top: 12px;
    border: 0;
  }

  .nav-toggle:checked ~ .nav {
    display: flex;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 48px 0 56px;
  }

  .section {
    padding: 56px 0;
  }

  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }
}
