/* ===== Envision Resume — Premium Design System ===== */

/* ---------- Fonts ---------- */
/* Loaded via <link rel="preconnect"> + <link rel="stylesheet"> tags in each
   page's <head> (index.html, order.html, success.html) instead of @import,
   which blocks the render tree until the CSS itself finishes downloading. */

/* ---------- CSS Variables ---------- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(212, 175, 55, 0.3);

  /* Gold palette */
  --gold: #d4af37;
  --gold-light: #f0d060;
  --gold-dark: #b8941f;
  --gold-glow: rgba(212, 175, 55, 0.15);
  --gold-gradient: linear-gradient(135deg, #d4af37, #f0d060, #d4af37);

  /* Text */
  --text-primary: #f5f5f7;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;

  /* Accent */
  --accent-blue: #4a7dff;
  --accent-purple: #8b5cf6;
  --success: #34d399;
  --warning: #fbbf24;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Motion */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);

  /* Spacing */
  --section-padding: 120px 0;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.gradient-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: var(--gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

/* ---------- Background Effects ---------- */
.bg-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.bg-glow::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.04) 0%, transparent 70%);
  animation: glow-drift 15s ease-in-out infinite alternate;
}

.bg-glow::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(74, 125, 255, 0.03) 0%, transparent 70%);
  animation: glow-drift 12s ease-in-out infinite alternate-reverse;
}

@keyframes glow-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, -30px) scale(1.1); }
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #0a0a0f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 10px 24px;
  border-radius: 8px;
  background: var(--gold-gradient);
  color: #0a0a0f !important;
  font-weight: 700 !important;
  font-size: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.nav-cta::after {
  display: none !important;
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding: 180px 0 120px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(38px, 4vw, 56px);
  text-wrap: balance;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-title .highlight {
  position: relative;
  display: inline;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(212, 175, 55, 0.25);
  border-radius: 4px;
  z-index: -1;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat-value {
  font-size: 32px;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-visual {
  position: relative;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.hero-image-wrap img,
.hero-image-wrap video {
  width: 100%;
  display: block;
}

.hero-image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(212, 175, 55, 0.1);
  pointer-events: none;
}

/* Play Button Overlay */
.hero-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.4);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero-play-btn svg {
  margin-left: 3px; /* optical centering for play triangle */
}

.hero-image-wrap:hover .hero-play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.55);
}

.hero-play-btn::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 55, 0.3);
  animation: play-pulse 2s ease-in-out infinite;
}

@keyframes play-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0; }
}

/* Video Lightbox */
.video-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.video-lightbox.active {
  display: flex;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  animation: lightbox-fade-in 0.3s ease-out;
}

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox-content {
  position: relative;
  z-index: 1;
  width: 90%;
  max-width: 900px;
  animation: lightbox-scale-in 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes lightbox-scale-in {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-content video {
  width: 100%;
  border-radius: 16px;
  display: block;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
  line-height: 1;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.hero-float-card {
  position: absolute;
  background: rgba(18, 18, 26, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  will-change: transform;
}

.hero-float-card.card-ats {
  bottom: -20px;
  left: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-float-card.card-video {
  top: -20px;
  right: -20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.float-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.float-icon.green {
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
}

.float-icon.gold {
  background: var(--gold-glow);
  color: var(--gold);
}

.float-icon svg {
  display: block;
  margin: auto;
}

.float-label {
  font-size: 12px;
  color: var(--text-muted);
}

.float-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

  50% { transform: translateY(-10px); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0a0a0f;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 12px;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.how-it-works .section-header {
  text-align: center;
  margin-bottom: 80px;
}

.how-it-works .section-subtitle {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.step-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s;
}

.step-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-8px);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold-glow);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--gold);
  margin: 0 auto 24px;
}

.step-icon {
  font-size: 40px;
  margin-bottom: 16px;
  color: var(--gold);
}

.step-icon svg {
  display: block;
  margin: auto;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Features ---------- */
.features {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

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

.features .section-subtitle {
  margin: 0 auto;
}

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

.feature-card {
  padding: 36px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.4s;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--gold-glow);
  color: var(--gold);
}

.feature-icon svg {
  display: block;
  margin: auto;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---------- Pricing ---------- */
.pricing {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.pricing .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing .section-subtitle {
  margin: 0 auto;
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  padding: 48px 40px;
  border-radius: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  /* transform is written per-mousemove by the tilt JS — transitioning it
     smears each cursor movement through 400ms and lags the pointer */
  transition: border-color 0.4s, box-shadow 0.4s, background 0.4s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  /* transform belongs to the rAF tilt (script.js) — a hover transform here
     snaps the card before the lerp catches up */
  border-color: var(--border-glow);
}

.pricing-card.featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05), rgba(212, 175, 55, 0.01));
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.pricing-popular {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--gold-gradient);
  color: #0a0a0f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pricing-tier {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.pricing-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-amount {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
}

.pricing-amount .dollar {
  font-size: 28px;
  vertical-align: top;
  margin-right: 2px;
  color: var(--text-secondary);
}

.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 36px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li .check {
  color: var(--success);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
}

.pricing-guarantee {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ---------- Before/After ---------- */
.transformation {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.transformation .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.transformation .section-subtitle {
  margin: 0 auto;
}

.transform-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.transform-card {
  padding: 40px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.transform-card.before {
  opacity: 0.7;
}

.transform-card.after {
  border-color: var(--gold);
  box-shadow: 0 0 60px rgba(212, 175, 55, 0.1);
}

.transform-card h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.transform-card.before h3 {
  color: var(--text-muted);
}

.transform-card.after h3 {
  color: var(--gold);
}

  50% { opacity: 1; transform: scale(1.2); }
}

.transform-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-secondary);
}

.transform-item .icon {
  font-size: 18px;
  flex-shrink: 0;
}

.transform-item .icon svg {
  display: block;
}

.transform-card.before .transform-item .icon {
  color: var(--text-muted);
}

.transform-card.after .transform-item .icon {
  color: var(--gold);
}

/* ---------- FAQ ---------- */
.faq {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.faq .section-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq .section-subtitle {
  margin: 0 auto;
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--gold);
}

.faq-question .icon {
  font-size: 20px;
  color: var(--gold);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-inner {
  padding: 0 0 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 600px;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

/* ---------- Pricing Subtitle ---------- */
.pricing-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin: -4px 0 8px;
  font-style: italic;
  opacity: 0.8;
}

/* ---------- Real Example ---------- */
.real-example {
  padding: var(--section-padding);
  position: relative;
  z-index: 1;
}

.real-example .section-header {
  text-align: center;
  margin-bottom: 40px;
}

.real-example .section-subtitle {
  margin: 0 auto;
}

.real-example-cta {
  text-align: center;
}

.real-example-link {
  margin-top: 16px;
  font-size: 14px;
}

.real-example-link a {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.real-example-link a:hover {
  color: var(--gold);
}

.real-example-card {
  display: block;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  position: relative;
  max-width: 640px;
  width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.real-example-card img {
  display: block;
  width: 100%;
  height: auto;
}

.real-example-card:hover,
.real-example-card:focus-visible {
  border-color: var(--gold);
  box-shadow: 0 12px 48px rgba(212, 175, 55, 0.15);
}

.real-example-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.75);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  transition: transform 0.2s;
}

.real-example-card:hover .real-example-play {
  transform: translate(-50%, -50%) scale(1.08);
}

.ats-trust-line {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- CTA ---------- */
.cta-inner {
  text-align: center;
  padding: 80px 40px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(74, 125, 255, 0.04));
  border: 1px solid var(--border-glow);
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05), transparent 50%);
  animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

.cta-badge {
  display: inline-block;
  background: var(--gold-gradient);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 24px;
  border-radius: 100px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.cta-inner .section-title {
  position: relative;
  z-index: 1;
}

.cta-inner .section-subtitle {
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cta-reassurance {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 20px;
  position: relative;
  z-index: 1;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

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

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gold-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #0a0a0f;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.3s;
}

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

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

/* ---------- Animations (scroll-reveal) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 968px) {
  /* Below the two-column hero, the offset float cards clip off-viewport.
     Selectors must out-rank .hero-float-card.card-ats { display:flex }. */
  .hero-float-card,
  .hero-float-card.card-ats,
  .hero-float-card.card-video {
    display: none;
  }

  /* Phones lead with the product, not a text wall */
  .hero-visual { order: -1; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-description {
    margin: 0 auto 40px;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .steps {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  .pricing-cards {
    grid-template-columns: 1fr;
    max-width: 480px;
  }


  .transform-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  }

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 40px;
    gap: 24px;
    z-index: 999;
  }

  .hero {
    padding: 140px 0 80px;
  }

  .hero-stats {
    gap: 24px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Order Wizard — Package 3 additions ===== */

/* Disabled buttons: no hover lift, no glow, clearly inert */
.btn:disabled,
.btn[disabled] {
  opacity: .4;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Visible keyboard focus ring across the order page's interactive elements */
.btn:focus-visible,
.order-page a:focus-visible,
.order-page input:focus-visible,
.order-page textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* Inline error banner — replaces alert() for order-wizard errors */
.wizard-error {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(239, 68, 68, .08);
  border: 1px solid rgba(239, 68, 68, .35);
  color: #f5f5f7;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 14px;
  line-height: 1.5;
}

.wizard-error-message {
  flex: 1;
}

.wizard-error-dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  opacity: .7;
  border-radius: 6px;
  transition: opacity .2s, background .2s;
}

.wizard-error-dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.06);
}

.wizard-error .btn {
  flex-shrink: 0;
  padding: 8px 16px;
  font-size: 13px;
}

/* "What's missing" hint shown under a wizard step's nav when Continue is disabled */
.step-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  text-align: center;
}

/* Red border state for invalid inputs (e.g. malformed email) */
.input-group input.input-error,
.input-error {
  border-color: rgba(239, 68, 68, .6);
}

/* Inline validation message inside an upload zone (wrong file type) */
.upload-zone .zone-error {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #ef4444;
}

/* Checkout trust line under the Stripe checkout button */
.checkout-trust {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

/* Reused pricing-card check pattern inside the order review summary */
.review-field .check {
  color: var(--success);
  font-size: 16px;
}


/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}


/* ========== Act 2: hero choreography ========== */
/* Initial offsets live under no-preference so reduced-motion (and no-JS via
   the .no-js fallback in script.js failing closed) never hides content. */
@media (prefers-reduced-motion: no-preference) {
  body.js .line-mask .line {
    transform: translateY(110%);
    transition: transform 1.2s var(--ease-out-expo);
  }
  body.js .line-mask .line-2 { transition-delay: 0.12s; }
  body.js.is-ready .line-mask .line { transform: translateY(0); }

  body.js .rise {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
    transition-delay: var(--rise-delay, 0s);
  }
  body.js.is-ready .rise {
    opacity: 1;
    transform: translateY(0);
  }
}

.line-mask { display: block; overflow: hidden; }
.line-mask .line { display: block; }
/* keep the gradient + underline working inside the mask */
.line-mask .line.gradient-text { display: inline-block; }

/* ========== Act 2: paper-to-film morph ========== */
@media (min-width: 969px) {
  .transformation { height: 240vh; }
  .transformation .morph-sticky {
    position: sticky;
    top: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
  }
}

.morph-card {
  position: relative;
  width: 280px;
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  perspective: 900px;
}

.morph-paper,
.morph-film {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.morph-paper {
  background: #f5f2ea;
  color: #1a1a1f;
  padding: 26px 22px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.paper-name {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #14141a;
}

.paper-role {
  font-size: 11px;
  color: #6b6b70;
  margin: 4px 0 18px;
}

.paper-line {
  height: 7px;
  border-radius: 4px;
  background: #d9d4c8;
  margin-bottom: 11px;
}

.paper-line.w-90 { width: 90%; }
.paper-line.w-85 { width: 85%; }
.paper-line.w-80 { width: 80%; }
.paper-line.w-75 { width: 75%; }
.paper-line.w-70 { width: 70%; }
.paper-line.w-60 { width: 60%; }

.morph-film {
  overflow: hidden;
  border: 1px solid var(--border-glow);
  background: var(--bg-secondary);
  box-shadow: 0 24px 60px rgba(212, 175, 55, 0.12);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.morph-film img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.film-play {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(10, 10, 15, 0.72);
  border: 1px solid var(--gold);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 3px;
}

@media (max-width: 968px) {
  /* Static on mobile: show the finished film state between the two lists */
  .morph-card { width: 240px; margin: 8px auto; }
  .morph-paper { display: none; }
  .morph-film { opacity: 1; }
}

.pricing-secure {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- Legal pages ---------- */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px 24px 100px;
}

.legal-page h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.legal-page h2 {
  font-size: 20px;
  margin: 36px 0 12px;
  color: var(--gold-light);
}

.legal-page p, .legal-page li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

.legal-page ul { padding-left: 22px; }

.legal-page a { color: var(--gold); text-decoration: underline; }


/* Morph fallback: reduced-motion and no-JS get the finished film state and a
   normal-height section — never 1.4 viewports of dead pinned scroll. */
@media (prefers-reduced-motion: reduce) {
  .transformation { height: auto !important; }
  .transformation .morph-sticky { position: static; min-height: 0; }
  .morph-paper { display: none; }
  .morph-film { opacity: 1 !important; }
}

body:not(.js) .transformation { height: auto !important; }
body:not(.js) .transformation .morph-sticky { position: static; min-height: 0; }
body:not(.js) .morph-paper { display: none; }
body:not(.js) .morph-film { opacity: 1 !important; }

/* ========== Act 3: the paper world ========== */
/* The page performs the product: it opens as a paper resume (light, factual,
   document-world) and becomes a film (the existing dark cinema styling) as
   you scroll. The transformation pin is the pivot — its background is lerped
   by the morph driver in sync with the paper-to-film card flip. */

:root {
  --paper-bg: #f6f3ec;
  --paper-bg-card: #ffffff;
  --paper-fg: #16161c;
  --paper-fg-secondary: #4c4c55;
  --paper-fg-muted: #77776f;
  --paper-border: rgba(20, 20, 26, 0.1);
  --gold-on-paper: linear-gradient(135deg, #a8841b, #c9a22e, #a8841b);
}

.theme-paper {
  background: var(--paper-bg);
  color: var(--paper-fg);
}

.theme-paper .section-title,
.theme-paper h1,
.theme-paper h2,
.theme-paper h3 { color: var(--paper-fg); }

.theme-paper .section-subtitle,
.theme-paper .hero-description,
.theme-paper p { color: var(--paper-fg-secondary); }

.theme-paper .gradient-text {
  background: var(--gold-on-paper);
  -webkit-background-clip: text;
  background-clip: text;
}

.theme-paper .badge {
  background: rgba(168, 132, 27, 0.08);
  border-color: rgba(168, 132, 27, 0.35);
  color: #8a6d16;
}

.theme-paper .btn-secondary {
  background: var(--paper-bg-card);
  color: var(--paper-fg);
  border: 1px solid var(--paper-border);
}

.theme-paper .btn-secondary:hover {
  background: #f1ede2;
  border-color: rgba(20, 20, 26, 0.2);
}

.theme-paper .hero-stats { border-top-color: var(--paper-border); }
.theme-paper .hero-stat-value { background: var(--gold-on-paper); -webkit-background-clip: text; background-clip: text; }
.theme-paper .hero-stat-label { color: var(--paper-fg-muted); }

/* The film frame floats dark on paper — the contrast IS the pitch */
.theme-paper .hero-image-wrap {
  border-color: rgba(20, 20, 26, 0.15);
  box-shadow: 0 40px 90px rgba(20, 20, 26, 0.35);
  background: #0a0a0f;
}

.theme-paper .hero-float-card {
  background: var(--paper-bg-card);
  border-color: var(--paper-border);
  box-shadow: 0 12px 32px rgba(20, 20, 26, 0.12);
  color: var(--paper-fg);
}
.theme-paper .float-label { color: var(--paper-fg-muted); }

.theme-paper .real-example-card {
  border-color: rgba(20, 20, 26, 0.2);
  background: #0a0a0f;
  box-shadow: 0 24px 60px rgba(20, 20, 26, 0.25);
}
.theme-paper .real-example-link a { color: var(--paper-fg-secondary); border-bottom-color: var(--paper-border); }
.theme-paper .real-example-link a:hover { color: #8a6d16; }
.theme-paper .ats-trust-line { color: var(--paper-fg-muted); }
.theme-paper .section-label { color: #8a6d16; }

.theme-paper .step-card {
  background: var(--paper-bg-card);
  border: 1px solid var(--paper-border);
  box-shadow: 0 10px 30px rgba(20, 20, 26, 0.07);
}
.theme-paper .step-card:hover { border-color: rgba(20, 20, 26, 0.18); }
.theme-paper .step-card p { color: var(--paper-fg-secondary); }
.theme-paper .step-number { color: #8a6d16; }

/* Nav over paper: dark text until the world turns */
.nav.nav-paper .nav-links a { color: var(--paper-fg-secondary); }
.nav.nav-paper .nav-links a:hover { color: var(--paper-fg); }
.nav.nav-paper .nav-logo { color: var(--paper-fg); }
.nav.nav-paper.scrolled {
  background: rgba(246, 243, 236, 0.9);
  border-bottom-color: var(--paper-border);
}
.nav.nav-paper .nav-mobile-toggle span { background: var(--paper-fg); }

/* The pivot: the transformation's sticky stage carries the lerped ground.
   --morph-bg / --morph-fg are written by the morph driver each frame. */
.transformation {
  background: var(--morph-bg, var(--paper-bg));
}
.transformation .section-title { color: var(--morph-fg, var(--paper-fg)); }
.transformation .section-subtitle { color: var(--morph-fg-soft, var(--paper-fg-secondary)); }

/* Before-card belongs to the paper world, After-card to the cinema world */
.transform-card.before {
  background: var(--paper-bg-card);
  border: 1px solid var(--paper-border);
  color: var(--paper-fg);
}
.transform-card.before h3 { color: var(--paper-fg-muted); }
.transform-card.before .transform-item { color: var(--paper-fg-secondary); }

/* Static fallbacks: mobile, reduced-motion, and no-JS get a hard world-split
   at the transformation (paper above, cinema below) — the identity survives
   without any animation. */
@media (max-width: 968px) {
  .transformation { background: var(--bg-primary); }
  .transformation .section-title { color: var(--text-primary); }
  .transformation .section-subtitle { color: var(--text-secondary); }
}
@media (prefers-reduced-motion: reduce) {
  .transformation { background: var(--bg-primary) !important; }
  .transformation .section-title { color: var(--text-primary) !important; }
  .transformation .section-subtitle { color: var(--text-secondary) !important; }
}
body:not(.js) .transformation { background: var(--bg-primary); }
body:not(.js) .transformation .section-title { color: var(--text-primary); }
body:not(.js) .transformation .section-subtitle { color: var(--text-secondary); }
