/* Rank Road Landing — palette from AppTheme.swift (dark) */

:root {
  --bg: #12121f;
  --bg-secondary: #1a1a2e;
  --surface: #252538;
  --surface-elevated: #2e2e45;
  --text-primary: #f5f3ff;
  --text-secondary: #a8a3c0;
  --brand: #00e676;
  --brand-dim: #00c853;
  --cyan: #18ffff;
  --purple: #b388ff;
  --pink: #ff4081;
  --orange: #ff9100;
  --border: rgba(179, 136, 255, 0.22);
  --border-strong: rgba(0, 230, 118, 0.35);
  --glow-green: rgba(0, 230, 118, 0.35);
  --glow-purple: rgba(179, 136, 255, 0.25);
  --radius: 20px;
  --radius-sm: 12px;
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-stat: 'Rajdhani', system-ui, sans-serif;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--cyan); text-decoration: none; transition: opacity 0.2s, color 0.2s; }
a:hover { opacity: 0.88; }

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.narrow { width: min(760px, 92vw); margin: 0 auto; }

/* Background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
  animation: orb-drift 18s ease-in-out infinite alternate;
}

.orb-purple {
  width: 400px; height: 400px;
  background: var(--purple);
  top: -140px; left: -120px;
}

.orb-cyan {
  width: 340px; height: 340px;
  background: var(--cyan);
  top: 38%; right: -100px;
  opacity: 0.18;
  animation-delay: -4s;
}

.orb-green {
  width: 300px; height: 300px;
  background: var(--brand);
  bottom: 8%; left: 18%;
  opacity: 0.16;
  animation-delay: -8s;
}

.orb-pink {
  width: 260px; height: 260px;
  background: var(--pink);
  bottom: 30%; right: 15%;
  opacity: 0.12;
  animation-delay: -12s;
}

@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(24px, -18px) scale(1.06); }
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(18, 18, 31, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo span {
  background: linear-gradient(135deg, var(--purple), var(--brand), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
}

.site-nav a:hover { color: var(--text-primary); opacity: 1; }

.nav-cta {
  background: linear-gradient(135deg, var(--brand-dim), var(--cyan));
  color: #0a0a12 !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 600 !important;
  opacity: 1 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 3rem) 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow, .section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.45rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--brand) 52%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--purple);
  margin-bottom: 1rem;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.04rem;
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 16px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

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

.btn-icon {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #00c853, #00b8d4);
  color: #fff;
  box-shadow: 0 8px 32px var(--glow-green);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: rgba(37, 37, 56, 0.6);
}

.hero-stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stats li {
  display: flex;
  flex-direction: column;
}

.hero-stats strong {
  font-family: var(--font-stat);
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.hero-stats span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Genre pills */
.genre-row {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.genre-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.genre-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.genre-pills li {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(37, 37, 56, 0.5);
  color: var(--text-secondary);
  transition: border-color 0.25s, color 0.25s;
}

.genre-pills li:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* Phone mock */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-frame {
  position: relative;
  width: min(290px, 80vw);
  aspect-ratio: 9/18.5;
  border-radius: 38px;
  padding: 10px;
  background: linear-gradient(155deg, var(--surface-elevated), var(--surface));
  border: 1px solid var(--border);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55), 0 0 70px var(--glow-purple);
}

.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 30px;
  background: var(--bg-secondary);
  padding: 2.2rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  overflow: hidden;
}

.screen-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  overflow: hidden;
}

.screen-tabs .tab {
  font-size: 0.55rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  color: var(--text-secondary);
  background: var(--surface);
  white-space: nowrap;
}

.screen-tabs .tab.active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--brand-dim), var(--cyan));
}

.screen-chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.38rem 0.65rem;
  background: var(--surface);
  border-radius: 999px;
  align-self: flex-start;
  border: 1px solid var(--border);
}

.screen-card {
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-green { background: linear-gradient(135deg, rgba(0,200,83,0.45), rgba(0,230,118,0.2)); }
.card-purple { background: linear-gradient(135deg, rgba(101,31,255,0.45), rgba(213,0,249,0.2)); }
.card-blue { background: linear-gradient(135deg, rgba(41,121,255,0.45), rgba(0,184,212,0.2)); }

.card-label { font-size: 0.65rem; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.05em; }
.card-value { font-family: var(--font-stat); font-weight: 700; font-size: 1.05rem; }

.screen-progress {
  margin-top: auto;
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  width: 68%;
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--brand));
  border-radius: 999px;
  animation: progress-pulse 3s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 0;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.18;
}

.section-lead {
  color: var(--text-secondary);
  font-size: 1.04rem;
  max-width: 660px;
  margin-bottom: 3rem;
}

/* Features */
.features {
  background: linear-gradient(180deg, transparent, rgba(26, 26, 46, 0.55) 25%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.15rem;
}

.feature-card {
  position: relative;
  background: rgba(37, 37, 56, 0.55);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem 1.75rem 1.75rem;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0, 230, 118, 0.08), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.32), 0 0 28px var(--glow-green);
  transform: translateY(-4px);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-size: 1.4rem;
  color: var(--purple);
  opacity: 0.35;
}

.feature-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: 0.65rem;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.91rem;
  line-height: 1.58;
}

/* Path demo */
.path-demo {
  background: linear-gradient(180deg, transparent, rgba(37, 37, 56, 0.35) 40%, transparent);
}

.demo-card {
  background: rgba(37, 37, 56, 0.65);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.demo-stage-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

#demo-stage-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

#demo-stage-index {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.demo-stage-desc {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.demo-metric {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.demo-metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.demo-metric-value {
  font-family: var(--font-stat);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.2;
}

.demo-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--surface);
  border-radius: 999px;
  outline: none;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.demo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 0 16px var(--glow-green);
  border: 2px solid var(--bg);
  cursor: grab;
}

.demo-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  box-shadow: 0 0 16px var(--glow-green);
  border: 2px solid var(--bg);
  cursor: grab;
}

.demo-track-labels {
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}

.demo-track-labels span {
  font-size: 0.68rem;
  color: var(--text-secondary);
  text-align: center;
  flex: 1;
}

.demo-progress {
  height: 8px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.demo-progress-fill {
  height: 100%;
  width: 16.66%;
  background: linear-gradient(90deg, var(--purple), var(--brand), var(--cyan));
  border-radius: 999px;
  transition: width 0.35s ease;
}

.demo-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-style: italic;
}

/* Pillars */
.pillars { padding-top: 2rem; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}

.pillar-card {
  padding: 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(26, 26, 46, 0.6);
}

.pillar-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 3rem;
  align-items: start;
}

.about-tagline {
  margin-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  font-size: 1rem;
}

.about-copy p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.disclaimer {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(37, 37, 56, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem !important;
  color: var(--text-secondary) !important;
}

.disclaimer strong { color: var(--orange); }

/* Privacy */
.privacy { background: rgba(26, 26, 46, 0.45); }

.effective-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.policy-block { margin-bottom: 2rem; }

.policy-block h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.policy-block p, .policy-block li {
  color: var(--text-secondary);
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
}

.policy-block ul {
  padding-left: 1.25rem;
  margin-top: 0.5rem;
}

/* Contact */
.contact-card {
  background: rgba(37, 37, 56, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.contact-card h2 { margin-bottom: 0.75rem; }
.contact-card > p { color: var(--text-secondary); margin-bottom: 0.5rem; }

.reply-time {
  font-size: 0.9rem;
  margin-bottom: 2rem !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.contact-item a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brand);
  word-break: break-word;
}

.contact-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

/* CTA bar */
.cta-bar {
  position: relative;
  z-index: 1;
  padding: 0 0 4rem;
}

.cta-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.75rem 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(0, 200, 83, 0.12), rgba(179, 136, 255, 0.1));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 0.25rem;
}

.cta-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
}

.footer-logo span { color: var(--brand); }

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

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Mobile */
@media (max-width: 900px) {
  .hero-grid,
  .about-grid,
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual { order: -1; }
  .phone-frame { width: 250px; }

  .demo-metrics {
    grid-template-columns: 1fr;
  }

  .nav-toggle { display: flex; }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(18, 18, 31, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

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

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

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

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

  .cta-bar-inner .btn { width: 100%; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats { gap: 1.25rem; }
  .contact-card, .demo-card { padding: 1.5rem; }
  .demo-track-labels span { font-size: 0.6rem; }
}
