/* ============================================
   ScaleVoyager — Homepage (main.css)
   Page-specific styles only.
   Always load after assets/css/token.css
   No hardcoded hex values — use token vars.
   ============================================ */

/* ── Layout container ── */
.container {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0 100px;
}

/* Fix token.css specificity: .nav-links a overrides .btn-dark color */
.nav-links a.btn-dark { color: var(--white); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
  pointer-events: none;
}

.hero-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 80px 0 80px 100px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 50%;
  gap: 40px;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.hero-content {
  max-width: 580px;
}

.hero-tag {
  margin-bottom: var(--space-6);
  animation: fadeUp 0.5s ease both;
}

.hero h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin-bottom: var(--space-5);
  animation: fadeUp 0.5s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--brand-blue);
}

.hero-sub {
  font-size: var(--text-md);
  line-height: 1.75;
  color: var(--ink-secondary);
  max-width: 480px;
  margin-bottom: var(--space-10);
  animation: fadeUp 0.5s 0.2s ease both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.3s ease both;
}

.hero-stat-row {
  display: flex;
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
  animation: fadeUp 0.5s 0.4s ease both;
}

.stat-item {
  flex: 1;
  padding-right: var(--space-6);
}

.stat-item + .stat-item {
  padding-left: var(--space-6);
  padding-right: var(--space-6);
  border-left: 1px solid var(--border);
}

.stat-item:last-child {
  padding-right: 0;
}

.stat-num {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -1px;
}

.stat-label {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  margin-top: var(--space-1);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Hero visual ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(90, 43, 221, 0.12));
  transform-origin: left center;
}

.hero-visual-badge {
  position: absolute;
  background: var(--surface-card);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.hero-visual-badge.badge-top    { top: -16px; right: -24px; }
.hero-visual-badge.badge-bottom { bottom: -16px; left: -24px; }

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}

.badge-dot.green { background: #22c55e; }

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

/* ── Section header ── */
.section-header {
  margin-bottom: var(--space-12);
}

/* ── Services ── */
.services {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--brand-blue-light);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-blue-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  flex-shrink: 0;
}

.service-icon svg { width: 22px; height: 22px; color: var(--brand-blue); }

.service-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.3px;
  color: var(--ink);
}

.service-card p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: var(--ink-secondary);
  flex: 1;
}

.service-price {
  display: inline-block;
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--brand-blue);
  background: var(--brand-blue-light);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* ── How it works ── */
.how {
  padding: 100px 0;
  border-top: 1px solid var(--border);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.step {
  padding: var(--space-10) var(--space-8);
  border-right: 1px solid var(--border);
  background: var(--surface-card);
  transition: background var(--ease-base);
}

.step:hover   { background: var(--surface); }
.step:last-child { border-right: none; }

.step-num {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: var(--space-5);
  letter-spacing: -1px;
}

.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--ink);
}

.step p {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* ── Why us (dark section) ── */
.why {
  padding: 100px 0;
  background: var(--dark-bg);
}

.why .label  { color: #a78bfa; }
.why .heading { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.why-item {
  padding: var(--space-8);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  background: var(--dark-surface);
  transition: border-color var(--ease-base), background var(--ease-base);
}

.why-item:hover {
  border-color: rgba(90, 43, 221, 0.5);
  background: rgba(90, 43, 221, 0.08);
}

.why-icon {
  width: 40px;
  height: 40px;
  background: rgba(90, 43, 221, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
}

.why-icon svg { width: 18px; height: 18px; color: #ffffff; }

.why-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--white);
  letter-spacing: -0.2px;
}

.why-item p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.5);
}

/* ── Transparency Box ── */
.transparency-box {
  margin-top: var(--space-8);
  padding: var(--space-5);
  background: var(--brand-blue-light);
  border: 1px solid rgba(90, 43, 221, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  animation: fadeUp 0.5s 0.5s ease both;
}

.transparency-icon {
  color: var(--brand-blue);
  flex-shrink: 0;
  margin-top: 2px;
}
.transparency-icon svg { width: 20px; height: 20px; }

.transparency-box p {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--brand-blue-dark);
  margin: 0;
}

/* ── Qualifications ── */
.qualifications {
  padding: 100px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.qualifications-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.qual-card {
  padding: var(--space-8);
}

.qual-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.qual-icon.yes { color: #059669; }
.qual-icon.no { color: #DC2626; }
.qual-icon svg { width: 24px; height: 24px; }

.qual-card h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--ink);
}

.qual-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.qual-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--ink-secondary);
  line-height: 1.5;
}

.qual-list li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}
.qual-yes .qual-list li svg { color: #059669; }
.qual-no .qual-list li svg { color: #DC2626; }

.text-center { text-align: center; }
.section-header.text-center .heading { margin: 0 auto; }

/* ── CTA section ── */
.cta-section {
  padding: 100px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 100%, var(--brand-blue-light) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
}

.cta-section .heading {
  font-size: clamp(30px, 4.5vw, 50px);
  max-width: 580px;
  margin: 0 auto var(--space-5);
}

.cta-section .cta-body {
  font-size: var(--text-md);
  color: var(--ink-secondary);
  max-width: 440px;
  margin: 0 auto var(--space-8);
  line-height: 1.65;
}

/* ── Scarcity Tracker ── */
.scarcity-tracker {
  max-width: 320px;
  margin: var(--space-6) auto 0;
  text-align: center;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.progress-fill {
  height: 100%;
  background: var(--brand-blue);
  border-radius: var(--radius-pill);
  transition: width 1s ease-in-out;
}

.scarcity-text {
  font-size: var(--text-xs);
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.scarcity-text strong {
  color: var(--brand-blue);
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  .container   { padding: 0 32px; }
  .hero-inner  { grid-template-columns: 1fr; gap: 0; padding-bottom: 60px; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2) { border-right: none; }
  .step:nth-child(1),
  .step:nth-child(2) { border-bottom: 1px solid var(--border); }
  .qualifications-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .hero-inner { padding: 48px 20px 60px; }
  .services-grid, .qualifications-grid, .why-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; border-radius: var(--radius-md); }
  .step { border-right: none !important; border-bottom: 1px solid var(--border); }
  .step:last-child { border-bottom: none; }
  .hero-stat-row { flex-direction: column; }
  .stat-item {
    padding: var(--space-5) 0 !important;
    border-left: none !important;
    border-bottom: 1px solid var(--border);
  }
  .stat-item:last-child { border-bottom: none; }
  .services, .how, .why, .cta-section { padding: 70px 0; }
}
