/* ============================================
   RANKSTARZ — Demo 3 Design System
   Space Grotesk + Space Mono / Electric Blue
   ============================================ */

:root {
  --bg:           #060912;
  --text:         #e8eaf0;
  --accent:       #4f8ef7;
  --muted:        #4a5070;
  --card:         #0a0f1e;
  --border:       rgba(79, 142, 247, 0.1);
  --border-hover: rgba(79, 142, 247, 0.3);
  --font-body:    'Space Grotesk', sans-serif;
  --font-mono:    'Space Mono', monospace;
  --max-width:    1100px;
  --radius:       12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.text-accent { color: var(--accent); }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-primary:hover {
  box-shadow: 0 0 24px rgba(79, 142, 247, 0.35);
  transform: translateY(-1px);
}
.btn-ghost {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 28px;
  border-radius: 7px;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(79, 142, 247, 0.07);
  transform: translateY(-1px);
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 4px 14px;
  margin-bottom: 20px;
}

.section-h2 {
  font-size: clamp(26px, 3vw, 46px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 48px;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 9, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  flex-shrink: 0;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border-hover);
  padding: 8px 18px;
  border-radius: 7px;
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.nav-cta:hover {
  background: rgba(79, 142, 247, 0.1);
  box-shadow: 0 0 16px rgba(79, 142, 247, 0.15);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 144px 0 88px;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 28px;
  animation: fadeUp 0.55s ease both;
}
.blink-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  animation: blinkPulse 1.4s ease-in-out infinite;
}
@keyframes blinkPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(79, 142, 247, 0.7); }
  50%       { opacity: 0.15; box-shadow: none; }
}
.hero-headline {
  font-weight: 700;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  animation: fadeUp 0.55s ease 0.1s both;
}
.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 32px;
  animation: fadeUp 0.55s ease 0.2s both;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  animation: fadeUp 0.55s ease 0.3s both;
}
.cta-note {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  animation: fadeUp 0.55s ease 0.35s both;
}

/* ---- PHONE MOCKUP ---- */
.hero-right {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeUp 0.55s ease 0.4s both;
}
.phone-frame {
  width: 295px;
  background: #0c1123;
  border: 1.5px solid var(--border-hover);
  border-radius: 38px;
  padding: 14px 0 22px;
  box-shadow:
    0 0 0 6px rgba(79, 142, 247, 0.04),
    0 0 60px rgba(79, 142, 247, 0.1),
    0 28px 72px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px 10px;
}
.phone-time {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
}
.phone-status-icons {
  display: flex;
  gap: 5px;
  font-size: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 14px;
  border-bottom: 1px solid var(--border);
}
.phone-avatar {
  width: 36px; height: 36px;
  background: var(--accent);
  color: #ffffff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  flex-shrink: 0;
}
.phone-name {
  display: block;
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.phone-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 9px; color: var(--muted);
}
.phone-messages {
  padding: 14px 12px;
  display: flex; flex-direction: column; gap: 10px;
}
.sms-bubble {
  background: #111827;
  border: 1px solid var(--border);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 13px 8px;
}
.sms-bubble p {
  font-size: 12.5px; line-height: 1.55;
  color: var(--text); margin-bottom: 4px;
}
.sms-time {
  font-family: var(--font-mono);
  font-size: 9px; color: var(--muted);
  display: block; text-align: right;
}
.sms-cta-btn {
  display: block;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 600;
  text-align: center;
  padding: 9px 14px;
  border-radius: 7px;
  margin: 10px 0 8px;
  transition: box-shadow 0.2s;
}
.sms-cta-btn:hover { box-shadow: 0 0 16px rgba(79, 142, 247, 0.45); }
.sms-stars {
  display: flex; justify-content: center; gap: 3px;
  margin-bottom: 6px;
}
.phone-star {
  font-size: 17px; color: var(--accent);
  opacity: 0; display: inline-block;
  animation: starPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.phone-star:nth-child(1) { animation-delay: 1.5s; }
.phone-star:nth-child(2) { animation-delay: 1.85s; }
.phone-star:nth-child(3) { animation-delay: 2.2s; }
.phone-star:nth-child(4) { animation-delay: 2.55s; }
.phone-star:nth-child(5) { animation-delay: 2.9s; }
@keyframes starPop {
  0%   { opacity: 0; transform: scale(0.25) rotate(-15deg); }
  65%  { transform: scale(1.3) rotate(6deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* ---- METRICS BAR ---- */
.metrics-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  animation: fadeUp 0.55s ease 0.5s both;
}
.metric { text-align: center; padding: 0 32px; flex: 1; }
.metric-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 28px; font-weight: 700;
  color: var(--accent);
  line-height: 1; margin-bottom: 7px;
}
.metric-label { font-size: 12px; color: var(--muted); }
.metric-divider {
  width: 1px; height: 44px;
  background: var(--border); flex-shrink: 0;
}

/* ---- PROBLEM ---- */
.problem {
  padding: 100px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.problem-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 40px;
}
.problem-stat-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.problem-stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(79, 142, 247, 0.06);
}
.pstat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 48px; font-weight: 700;
  color: var(--accent);
  line-height: 1; margin-bottom: 10px;
}
.pstat-label { font-size: 15px; color: var(--muted); line-height: 1.5; }
.callout-inner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s;
}
.callout-inner:hover { border-color: var(--border-hover); }
.callout-icon { font-size: 32px; margin-bottom: 16px; }
.callout-inner p {
  font-size: 17px; font-style: italic;
  color: var(--text); margin-bottom: 12px; line-height: 1.6;
}
.callout-inner span {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted);
}

/* ---- HOW IT WORKS — VERTICAL TIMELINE ---- */
.how { padding: 100px 0; }
.how .section-h2 { margin-bottom: 56px; }
.timeline {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px; bottom: 48px;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin-bottom: 48px;
  position: relative;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(79, 142, 247, 0.12);
  border: 1.5px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: background 0.2s, box-shadow 0.2s;
}
.timeline-item:hover .timeline-dot {
  background: rgba(79, 142, 247, 0.2);
  box-shadow: 0 0 16px rgba(79, 142, 247, 0.2);
}
.timeline-content { padding-top: 10px; }
.timeline-content h3 {
  font-size: 17px; font-weight: 600;
  margin-bottom: 8px;
}
.timeline-content p { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* ---- FEATURES ---- */
.features {
  padding: 100px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.feature:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(79, 142, 247, 0.06);
}
.feature-icon { font-size: 26px; margin-bottom: 14px; }
.feature h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ---- TESTIMONIALS ---- */
.proof { padding: 100px 0; }
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.testimonial:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 24px rgba(79, 142, 247, 0.06);
}
.stars {
  color: var(--accent);
  font-size: 15px;
  margin-bottom: 14px;
  letter-spacing: 3px;
}
.testimonial p {
  color: var(--muted);
  font-style: italic;
  margin-bottom: 20px;
  line-height: 1.7; font-size: 15px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar {
  width: 40px; height: 40px;
  background: rgba(79, 142, 247, 0.12);
  color: var(--accent);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 14px; font-weight: 600; }
.testimonial-author span { font-size: 12px; color: var(--muted); }

/* ---- PRICING ---- */
.pricing {
  padding: 100px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.pricing-card {
  max-width: 440px;
  margin: 0 auto;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  position: relative;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pricing-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 48px rgba(79, 142, 247, 0.09);
}
.pricing-badge {
  position: absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.price { margin-bottom: 12px; }
.price-amount {
  font-family: var(--font-mono);
  font-size: 72px; font-weight: 700;
  color: var(--accent); line-height: 1;
}
.price-period { font-size: 18px; color: var(--muted); }
.price-desc { color: var(--muted); margin-bottom: 28px; font-size: 15px; }
.price-features { list-style: none; text-align: left; margin-bottom: 32px; }
.price-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--text);
}
.price-features li:last-child { border-bottom: none; }
.price-note {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px; color: var(--accent);
}

/* ---- WAITLIST ---- */
.waitlist {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image:
    linear-gradient(rgba(79, 142, 247, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 142, 247, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.waitlist-inner { position: relative; z-index: 1; }
.waitlist h2 {
  font-size: clamp(30px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.waitlist-sub {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 40px;
}
.waitlist-form { max-width: 500px; margin: 0 auto 16px; }
.form-row { display: flex; gap: 12px; }
.form-input {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 14px 18px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input:focus {
  border-color: var(--border-hover);
  box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.08);
}
.form-input::placeholder { color: var(--muted); }
.form-btn { flex-shrink: 0; }
.form-message {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 13px; min-height: 20px;
}
.form-message.success { color: #4ade80; }
.form-message.error   { color: #f87171; }
.form-disclaimer {
  font-family: var(--font-mono);
  font-size: 12px; color: var(--muted); margin-top: 8px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.footer-inner {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px; text-align: center;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 14px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ---- LEGAL PAGES ---- */
.page { padding: 120px 0 80px; max-width: 720px; margin: 0 auto; }
.page h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.page .updated {
  font-family: var(--font-mono);
  color: var(--muted); font-size: 13px; margin-bottom: 48px;
}
.page h2 {
  font-size: 18px; font-weight: 600;
  margin: 36px 0 12px; color: var(--text);
}
.page p, .page li {
  color: var(--muted); font-size: 15px;
  line-height: 1.8; margin-bottom: 12px;
}
.page ul { padding-left: 20px; }
.page a { color: var(--accent); }
.page a:hover { text-decoration: underline; }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero-layout { grid-template-columns: 1fr; gap: 52px; }
  .hero-left { align-items: center; text-align: center; }
  .hero-cta { justify-content: center; }
  .cta-note { text-align: center; }
  .nav-links { display: none; }
}
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .testimonials { grid-template-columns: 1fr; }
  .problem-stats { grid-template-columns: 1fr; }
  .metrics-bar { padding: 24px 16px; flex-wrap: wrap; gap: 28px 0; }
  .metric { min-width: 50%; padding: 0 12px; }
  .metric-divider { display: none; }
  .form-row { flex-direction: column; }
  .form-btn { width: 100%; text-align: center; }
  .phone-frame { width: 260px; }
  .timeline::before { left: 23px; }
}
