:root {
  --bg: #151515;
  --surface: #1c1c1c;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.55);
  --accent-1: #6aace8;
  --accent-2: #2060cc;
  --accent-3: #1448b0;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: "Syne", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 15%, #232323 0%, var(--bg) 60%);
  padding: 64px 24px;
}

.platform-switch {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
}

.platform-switch:hover {
  color: var(--text);
}

.product-hunt-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  line-height: 0;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.product-hunt-badge img {
  display: block;
  width: 160px;
  height: auto;
}

.product-hunt-badge:hover {
  opacity: 1;
}

/* ---------- Platform chooser (hub page) ---------- */

.platform-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 160px;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.platform-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.24);
}

.platform-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
}

.platform-detail {
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  max-width: 480px;
}

.hero-icon {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  animation: drop-in 0.7s ease both;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 7vw, 48px);
  letter-spacing: -0.01em;
  white-space: nowrap;
  animation: fade-up 0.7s ease 0.1s both;
}

.hero-tagline {
  font-size: 18px;
  color: var(--text-dim);
  animation: fade-up 0.7s ease 0.2s both;
}

.badge {
  margin-top: 8px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-dim);
  animation: fade-up 0.7s ease 0.3s both;
}

.app-store-badge {
  display: inline-block;
  margin-top: 8px;
  animation: fade-up 0.7s ease 0.3s both;
}

.app-store-badge img {
  display: block;
  height: 48px;
  width: auto;
}

/* ---------- Hero screenshot ---------- */

.hero-screenshot-wrap {
  margin: 12px 0;
  width: min(280px, 70vw);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  animation: fade-up 0.8s ease 0.15s both, float 5s ease-in-out infinite;
}

.hero-screenshot {
  display: block;
  width: 100%;
}

/* ---------- Shared section styles ---------- */

section {
  width: 100%;
}

.section-inner {
  padding: 96px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.section-alt {
  background: var(--surface);
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 48px;
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Theme carousel ---------- */

.theme-carousel {
  overflow: hidden;
  padding: 16px 0 4px;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.theme-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: carousel-scroll 28s linear infinite;
}

.theme-carousel:hover .theme-track {
  animation-play-state: paused;
}

.theme-shot {
  margin: 0;
  flex: 0 0 auto;
  width: 180px;
  text-align: center;
  transition: transform 0.3s ease;
}

.theme-shot-frame {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

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

.theme-shot figcaption {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dim);
}

.theme-shot:hover {
  transform: translateY(-6px) scale(1.03);
}

.theme-note {
  text-align: center;
  margin-top: 36px;
  font-size: 14px;
}

/* ---------- Library panel ---------- */

.library-panel {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  background: var(--surface);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  padding: 36px;
  margin-bottom: 40px;
}

.library-shelf {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 100%;
}

.spine {
  flex: 1;
  height: 55%;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: height 0.4s ease;
}

.spine:nth-child(2) { height: 75%; }
.spine:nth-child(3) { height: 40%; }
.spine:nth-child(4) { height: 90%; }
.spine:nth-child(5) { height: 60%; }
.spine:nth-child(6) { height: 100%; }
.spine:nth-child(7) { height: 70%; }
.spine:nth-child(8) { height: 50%; }

.library-panel:hover .spine {
  height: 100%;
}

.library-headline {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 12px;
}

.library-copy {
  max-width: 560px;
  margin-bottom: 28px;
}

.library-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 32px;
  margin: 0;
}

.library-spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.library-spec-row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.library-spec-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--text);
}

/* ---------- Features ---------- */

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

.feature-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}

.feature-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ---------- Mission pillars ---------- */

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

.pillar-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.pillar-card.is-blue:hover {
  border-color: rgba(106, 172, 232, 0.4);
}

.pillar-card.is-green:hover {
  border-color: rgba(121, 224, 138, 0.4);
}

.pillar-card.is-pink:hover {
  border-color: rgba(255, 143, 184, 0.4);
}

.pillar-card.is-gold:hover {
  border-color: rgba(255, 226, 138, 0.4);
}

.pillar-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
}

.pillar-icon svg {
  width: 100%;
  height: 100%;
}

.pillar-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

/* ---------- Screenshots ---------- */

.screenshots-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 56px;
  align-items: center;
}

.screenshot-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 461 / 1000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.screenshot-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.screenshot-slide.is-active {
  opacity: 1;
}

.screenshots-title {
  text-align: left;
}

.screenshots-text {
  margin: 16px 0 24px;
  font-size: 16px;
  max-width: 480px;
}

/* ---------- Feedback ---------- */

.feedback-carousel {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  grid-template-areas: "prev viewport next";
  align-items: center;
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}

.feedback-prev {
  grid-area: prev;
}

.feedback-next {
  grid-area: next;
}

.feedback-viewport {
  grid-area: viewport;
  overflow: hidden;
  min-width: 0;
}

.feedback-track {
  display: flex;
  transition: transform 0.4s ease;
}

.feedback-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  margin: 0;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 28px 32px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
}

.feedback-quote {
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

.feedback-quote::before {
  content: "“";
}

.feedback-quote::after {
  content: "”";
}

.feedback-author {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.feedback-name {
  font-weight: 700;
  font-size: 14px;
}

.feedback-role {
  font-weight: 400;
  color: var(--text-dim);
}

.feedback-source {
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}

.feedback-source:hover {
  color: var(--text);
}

.feedback-arrow {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--text-dim);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.feedback-arrow:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.5);
}

.feedback-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.feedback-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: background 0.3s ease;
}

.feedback-dot.is-active {
  background: var(--text);
}

/* ---------- Support ---------- */

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 18px 22px;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--text-dim);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  margin-top: 14px;
}

.support-contact {
  text-align: center;
  margin-top: 36px;
  font-size: 16px;
}

.support-contact a {
  color: var(--accent-1);
}

/* ---------- Footer ---------- */

.footer {
  text-align: center;
  padding: 48px 24px 64px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-copyright {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-link {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
}

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

.footer-product-hunt {
  position: static;
  display: inline-block;
  margin-top: 20px;
}

/* ---------- Legal pages ---------- */

.legal-header {
  padding: 64px 24px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.legal-back {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--text);
}

.legal-title {
  font-size: clamp(28px, 5vw, 40px);
}

.legal-updated {
  margin-top: 10px;
  font-size: 14px;
}

.legal {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.legal p {
  color: var(--text);
  margin-bottom: 18px;
}

.legal ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--text);
}

.legal li {
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 20px;
  margin-top: 40px;
  margin-bottom: 14px;
}

.legal a {
  color: var(--accent-1);
}

/* ---------- Animations ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drop-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes carousel-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .hero-icon,
  .hero-title,
  .hero-tagline,
  .hero-screenshot-wrap,
  .badge,
  .app-store-badge,
  .product-hunt-badge {
    animation: none;
  }
  .theme-track {
    animation: none;
  }
  .fade-in {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }
  .theme-shot {
    width: 130px;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .library-panel {
    grid-template-columns: 1fr;
    padding: 24px;
  }
  .library-shelf {
    height: 40px;
  }
  .library-specs {
    grid-template-columns: 1fr;
  }
  .screenshots-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .screenshot-stage {
    width: 200px;
    margin: 0 auto;
  }
  .screenshots-title {
    text-align: center;
  }
  .screenshots-text {
    margin-left: auto;
    margin-right: auto;
  }
  section {
    padding: 72px 20px;
  }
  .product-hunt-badge:not(.footer-product-hunt) img {
    width: 110px;
  }
  .feedback-carousel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "viewport viewport"
      "prev next";
    row-gap: 20px;
  }
  .feedback-prev {
    justify-self: start;
  }
  .feedback-next {
    justify-self: end;
  }
  .feedback-card {
    padding: 22px 20px;
    min-height: 0;
  }
}
