/* Repscroll-style landing — demo layout */
:root {
  --bg: #0a0b0f;
  --bg-elevated: #12141c;
  --surface: #181b26;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f4f8;
  --muted: #9898a8;
  --accent: #ff6b35;
  --accent-soft: rgba(255, 107, 53, 0.15);
  --accent-2: #7c5cff;
  --app-lime: #c4ff4a;
  --radius: 16px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Instrument Sans", var(--font);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--accent);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 22%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.logo-img--lg {
  width: 40px;
  height: 40px;
}

.hero-app-icon {
  display: block;
  width: 88px;
  height: 88px;
  margin: 0 0 1.25rem;
  border-radius: 22%;
  object-fit: cover;
  box-shadow:
    0 0 0 1px var(--border),
    0 16px 48px rgba(0, 0, 0, 0.45);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin-inline: auto;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-nav {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff8f5c);
  color: #0a0b0f;
  box-shadow: 0 8px 32px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.45);
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 6rem);
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(124, 92, 255, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 107, 53, 0.12), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

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

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 53, 0.25);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--accent), #ffb347);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero screenshot gallery */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-gallery {
  width: min(320px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  touch-action: pan-y;
}

.phone-frame {
  width: 100%;
  aspect-ratio: 9 / 18.5;
  background: linear-gradient(160deg, #2a2d3a, #12141c);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px rgba(0, 0, 0, 0.5);
}

.phone-notch {
  width: 36%;
  height: 24px;
  margin: 0 auto 8px;
  background: #0a0b0f;
  border-radius: 0 0 14px 14px;
}

.hero-gallery-viewport {
  height: calc(100% - 36px);
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  padding: 0;
  position: relative;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  transition: opacity 0.65s ease;
  pointer-events: none;
  user-select: none;
}

.hero-slide.is-active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}

.hero-gallery-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
}

.hero-gallery-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 2px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.hero-gallery-arrow:hover {
  border-color: var(--app-lime);
  color: var(--app-lime);
}

.hero-gallery-arrow:focus-visible {
  outline: 2px solid var(--app-lime);
  outline-offset: 2px;
}

.hero-gallery-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-gallery-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.hero-gallery-dot:hover {
  background: var(--muted);
}

.hero-gallery-dot.is-active {
  background: var(--app-lime);
  box-shadow: 0 0 12px rgba(196, 255, 74, 0.45);
  transform: scale(1.15);
}

.hero-gallery-dot:focus-visible {
  outline: 2px solid var(--app-lime);
  outline-offset: 2px;
}

/* Steps */
.steps {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

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

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.step-card:hover {
  border-color: rgba(255, 107, 53, 0.35);
  transform: translateY(-2px);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bg);
  background: var(--accent);
  border-radius: 8px;
}

.step-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Features */
.features {
  padding: clamp(3rem, 8vw, 5rem) 0;
  background: linear-gradient(180deg, transparent, rgba(124, 92, 255, 0.06));
  border-top: 1px solid var(--border);
}

.section-head {
  max-width: 560px;
  margin-bottom: 2.5rem;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Reviews */
.reviews {
  padding: clamp(3rem, 8vw, 5rem) 0;
  border-top: 1px solid var(--border);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

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

.review-card {
  margin: 0;
  padding: 1.5rem 1.6rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  display: flex;
  flex-direction: column;
}

.review-card:nth-child(2) {
  border-left-color: var(--accent-2);
}

.review-card:nth-child(3) {
  border-left-color: #3ecf8e;
}

.review-card:nth-child(4) {
  border-left-color: #ffb347;
}

.review-card p {
  margin: 0 0 1.1rem;
  flex: 1;
  font-size: 1rem;
  line-height: 1.62;
  font-style: italic;
  color: #e8e8ee;
}

.review-card footer {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.review-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 1rem;
}

.review-role {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Footer */
.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--border);
  background: #060709;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

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

.footer-brand p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.logo--footer {
  font-size: 1.25rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.footer-note a {
  color: var(--muted);
  text-decoration: underline;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.25rem 1.5rem;
    background: rgba(10, 11, 15, 0.97);
    border-bottom: 1px solid var(--border);
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border);
  }

  .site-nav .btn-nav {
    margin-top: 0.75rem;
    text-align: center;
    justify-content: center;
    border-bottom: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Legal pages (Privacy, Terms) */
.legal-main {
  padding: clamp(2rem, 5vw, 3rem) 0 clamp(4rem, 10vw, 6rem);
  min-height: 50vh;
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-back {
  margin: 0 0 1.75rem;
}

.legal-back a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
}

.legal-back a:hover {
  color: var(--accent);
  text-decoration: none;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.legal-updated {
  margin: 0 0 2rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal-doc h2 {
  margin: 2.25rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.legal-doc p,
.legal-doc li {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
}

.legal-doc ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.legal-doc strong {
  color: #d8d8e4;
  font-weight: 600;
}
