/* ─── Tokens ─────────────────────────────────────────────────── */
:root {
  --color-bg: #000000;
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.10);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: rgba(255, 255, 255, 0.70);
  --color-text-muted: rgba(255, 255, 255, 0.50);

  --gradient-electric: linear-gradient(135deg, #F97316, #EC4899, #7B3FE4);
  --gradient-cosmic: linear-gradient(135deg, #EC4899, #8B5CF6, #6B8FE8);
  --gradient-active: var(--gradient-electric);

  --color-strike: #FF9400;
  --color-spare: #2DD4BF;
  --color-split: #FF408D;
  --color-pace-ahead: rgb(20, 122, 61);
  --color-pace-behind: rgb(173, 46, 41);
}

@media (prefers-color-scheme: light) {
  :root {
    --color-bg: #F5F5F7;
    --color-surface: rgba(0, 0, 0, 0.04);
    --color-border: rgba(0, 0, 0, 0.08);
    --color-text-primary: #1A1A1A;
    --color-text-secondary: rgba(0, 0, 0, 0.70);
    --color-text-muted: rgba(0, 0, 0, 0.48);
    --gradient-active: var(--gradient-cosmic);
  }
}

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--color-bg);
  color: var(--color-text-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── Gradient Text ──────────────────────────────────────────── */
.gradient-text {
  background: var(--gradient-active);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--gradient-active);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  padding: 13px 28px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn-ghost:hover {
  border-color: var(--color-text-secondary);
  background: rgba(255, 255, 255, 0.13);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: light) {
  .btn-ghost {
    border-color: rgba(0, 0, 0, 0.30);
    background: rgba(0, 0, 0, 0.05);
  }
  .btn-ghost:hover {
    border-color: rgba(0, 0, 0, 0.50);
    background: rgba(0, 0, 0, 0.09);
  }
}

/* ─── Layout Helpers ─────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Accent Bar ─────────────────────────────────────────────── */
.accent-bar {
  width: 48px;
  height: 3px;
  background: var(--gradient-active);
  border-radius: 999px;
  margin-bottom: 20px;
}

/* ─── Hero ───────────────────────────────────────────────────── */
#hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 24px 40px;
}

.hero-wordmark {
  margin-bottom: 40px;
}

.hero-wordmark img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

.wordmark-dark  { display: block; }
.wordmark-light { display: none; }

@media (prefers-color-scheme: light) {
  .wordmark-dark  { display: none; }
  .wordmark-light { display: block; }
}

.hero-headline {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  max-width: 720px;
  margin-bottom: 24px;
}

.hero-subhead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin-bottom: 40px;
}

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

/* ─── Features ───────────────────────────────────────────────── */
#features {
  padding: 64px 0 96px;
  border-top: 1px solid var(--color-border);
}

#features .section-header {
  text-align: center;
  margin-bottom: 56px;
}

#features .section-header .accent-bar {
  margin: 0 auto 20px;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--gradient-active);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
}

.feature-icon i,
.feature-icon svg {
  color: #ffffff;
  width: 24px;
  height: 24px;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── Testimonials ───────────────────────────────────────────── */
#testimonials {
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
}

#testimonials .section-header {
  text-align: center;
  margin-bottom: 56px;
}

#testimonials .section-header .accent-bar {
  margin: 0 auto 20px;
}

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

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.testimonial-quote {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: var(--color-text-primary);
  flex: 1;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 2rem;
  line-height: 0;
  vertical-align: -0.5rem;
  margin-right: 2px;
  background: var(--gradient-active);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-weight: 800;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.testimonial-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.testimonial-tag {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── Screenshots ────────────────────────────────────────────── */
#screenshots {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

#screenshots .section-header {
  text-align: center;
  margin-bottom: 64px;
}

#screenshots .section-header .accent-bar {
  margin: 0 auto 20px;
}

.screenshots-arc {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.arc-phone {
  flex: 0 0 auto;
  position: relative;
  margin: 0 -20px;
}

.arc-phone img {
  height: 480px;
  width: auto;
  display: block;
}

.arc-phone--outer-left {
  transform: rotate(-7deg) translateY(48px);
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.40));
}

.arc-phone--inner-left {
  transform: rotate(-3.5deg) translateY(20px);
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.arc-phone--center {
  transform: rotate(0deg) translateY(0);
  z-index: 5;
  filter: drop-shadow(0 32px 64px rgba(0, 0, 0, 0.60));
  margin: 0 -16px;
}

.arc-phone--inner-right {
  transform: rotate(3.5deg) translateY(20px);
  z-index: 2;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.arc-phone--outer-right {
  transform: rotate(7deg) translateY(48px);
  z-index: 1;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.40));
}

@media (prefers-color-scheme: light) {
  .arc-phone--outer-left  { filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18)); }
  .arc-phone--inner-left  { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.20)); }
  .arc-phone--center      { filter: drop-shadow(0 24px 56px rgba(0, 0, 0, 0.25)); }
  .arc-phone--inner-right { filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.20)); }
  .arc-phone--outer-right { filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.18)); }
}

/* ─── Privacy Page ───────────────────────────────────────────── */
.privacy-page {
  min-height: 100vh;
  padding: 64px 0 96px;
}

.privacy-page-wordmark {
  margin-bottom: 64px;
}

.privacy-page-wordmark a {
  display: inline-block;
}

.privacy-page-wordmark img {
  height: 70px;
  width: auto;
}

.privacy-back {
  display: inline-block;
  margin-top: 40px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ─── Privacy ────────────────────────────────────────────────── */
#privacy {
  padding: 96px 0;
  border-top: 1px solid var(--color-border);
}

.privacy-inner {
  max-width: 640px;
}

.privacy-inner h2 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.privacy-inner h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 8px;
}

.privacy-inner p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 0;
}

/* ─── Contact Form ───────────────────────────────────────────── */
.contact-form {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 480px;
}

.contact-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form-field label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-form-field input,
.contact-form-field textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-primary);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px 16px;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s ease;
}

.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
  border-color: rgba(249, 115, 22, 0.5);
}

@media (prefers-color-scheme: light) {
  .contact-form-field input:focus,
  .contact-form-field textarea:focus {
    border-color: rgba(139, 92, 246, 0.5);
  }
}

.contact-success {
  margin-top: 32px;
  max-width: 480px;
  padding: 20px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.6;
}

.contact-success p {
  margin: 0;
  color: var(--color-text-secondary);
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-tagline {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-right a {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  body {
    overflow-x: unset;
  }

  #hero        { padding: 64px 24px 48px; }
  #screenshots { padding: 24px 0 16px; }
  #screenshots .section-header { margin-bottom: 32px; }
  #features    { padding: 48px 0; }
  #testimonials { padding: 48px 0; }
  #privacy     { padding: 48px 0; }
  footer       { padding: 32px 0; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Collapse arc to a horizontal scroll strip on mobile */
  .screenshots-arc {
    display: flex;
    overflow-x: auto;
    overflow: hidden;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0 24px 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .screenshots-arc::-webkit-scrollbar {
    display: none;
  }

  /* First/last phone padding so edges don't clip */
  .screenshots-arc .arc-phone:first-child { margin-left: 0; }
  .screenshots-arc .arc-phone:last-child  { margin-right: 24px; }

  .arc-phone {
    flex: 0 0 auto;
    margin: 0 8px;
    transform: none !important;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)) !important;
  }

  .arc-phone img {
    height: 320px;
    width: auto;
  }
}

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

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .arc-phone img {
    height: 380px;
  }
}
