/* ============================================================
   ARCHISWIPED ELITE — The Dream Project
   Editorial cinematic stylesheet
   ============================================================ */

:root {
  --amber: #E8760A;
  --amber-bright: #FF8C00;
  --gold: #C9A84C;
  --ink: #1A1A1A;
  --body: #333333;
  --tertiary: #999999;
  --bone: #F5F0E8;
  --card-warm: #FAF8F5;
  --card-warmer: #FDFBF8;
  --pain-bg: #F7F5F2;
  --display: 'Anton', 'Arial Narrow', sans-serif;
  --sans: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: clip; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: #fff;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }

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

/* ---------- shared type ---------- */
.section-headline {
  font-family: var(--display);
  font-weight: 400;
  color: var(--ink);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: none;
}
.section-sub { font-size: 1.05rem; color: var(--body); margin-top: 14px; }
.section-header { margin-bottom: 56px; position: relative; }
.section-header.center { text-align: center; }
.accent-rule {
  width: 200px; height: 3px; margin: 26px auto 0;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  border-radius: 2px;
}
.underlined {
  display: inline-block;
  background-image: linear-gradient(90deg, var(--gold), rgba(201,168,76,0));
  background-repeat: no-repeat;
  background-size: 60% 4px;
  background-position: 0 96%;
  padding-bottom: 8px;
}

/* ============================================================
   TOP NAV
   ============================================================ */
#topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px min(5vw, 56px);
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.nav-brand {
  font-weight: 600; letter-spacing: 0.3em; font-size: 0.88rem;
  color: var(--bone); text-decoration: none;
  transition: color 0.4s ease;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.86rem; font-weight: 500; letter-spacing: 0.06em;
  color: rgba(245, 240, 232, 0.85); text-decoration: none;
  padding-bottom: 3px;
  background-image: linear-gradient(90deg, var(--amber), var(--amber-bright));
  background-repeat: no-repeat;
  background-size: 0% 2px;
  background-position: left bottom;
  transition: color 0.3s ease, background-size 0.35s ease;
}
.nav-links a:hover { color: #fff; background-size: 100% 2px; }
.nav-links .nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--amber), var(--amber-bright));
  padding: 9px 22px; border-radius: 5px;
  background-size: auto;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.nav-links .nav-cta:hover {
  box-shadow: 0 4px 22px rgba(255, 140, 0, 0.5);
  transform: translateY(-1px);
  background-size: auto;
}
/* Frosted background lives on a pseudo-element: a backdrop-filter on
   #topnav itself would become the containing block for the fixed
   mobile drawer and clip it to the bar's height. */
#topnav::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.4s ease, background 0.4s ease;
}
#topnav.scrolled { padding-top: 13px; padding-bottom: 13px; }
#topnav.scrolled::before {
  opacity: 1;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(26, 26, 26, 0.07), 0 8px 30px rgba(26, 26, 26, 0.05);
}
#topnav.scrolled .nav-brand { color: var(--ink); }
#topnav.scrolled .nav-links a { color: var(--body); }
#topnav.scrolled .nav-links a:hover { color: var(--ink); }
#topnav.scrolled .nav-links .nav-cta { color: #fff; }
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 34px; padding: 8px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; border-radius: 1px;
  background: var(--bone);
  transition: background 0.4s ease, transform 0.3s ease, opacity 0.3s ease;
}
#topnav.scrolled .nav-toggle span, #topnav.menu-open .nav-toggle span { background: var(--ink); }
#topnav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
#topnav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
#topnav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- CTA button ---------- */
.cta-btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, var(--amber), var(--amber-bright));
  padding: 19px 46px;
  border-radius: 6px;
  box-shadow: 0 6px 28px rgba(232, 118, 10, 0.35);
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}
.cta-btn:hover {
  box-shadow: 0 8px 44px rgba(255, 140, 0, 0.65), 0 0 0 1px rgba(255,180,80,0.4) inset;
  transform: translateY(-2px);
}
.cta-btn .arrow { display: inline-block; margin-left: 8px; transition: transform 0.3s ease; }
.cta-btn:hover .arrow { transform: translateX(5px); }

/* ---------- dark video sections shared ---------- */
.scrub-section { position: relative; }
.sticky-frame {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: hidden;
  background: #0c0a08;
}
.scrub-canvas { width: 100%; height: 100%; }
.scrub-video-fallback { display: none; width: 100%; height: 100%; object-fit: cover; }

.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

.fade-top, .fade-bottom {
  position: absolute; left: 0; right: 0; height: 90px;
  pointer-events: none; z-index: 4;
}
.fade-top { top: 0; background: linear-gradient(to bottom, #ffffff, rgba(255,255,255,0)); }
.fade-bottom { bottom: 0; background: linear-gradient(to top, #ffffff, rgba(255,255,255,0)); }

.overlay-panel {
  position: relative;
  padding: 72px 84px;
  max-width: 980px;
  text-align: center;
}
/* Whisper-soft scrim: long multi-stop falloff so no edge is ever visible */
.overlay-panel::before {
  content: '';
  position: absolute;
  inset: -18vh -14vw;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(ellipse 62% 58% at center,
    rgba(8, 6, 4, 0.44) 0%,
    rgba(8, 6, 4, 0.40) 18%,
    rgba(8, 6, 4, 0.33) 34%,
    rgba(8, 6, 4, 0.25) 48%,
    rgba(8, 6, 4, 0.17) 61%,
    rgba(8, 6, 4, 0.10) 73%,
    rgba(8, 6, 4, 0.05) 84%,
    rgba(8, 6, 4, 0.02) 93%,
    rgba(8, 6, 4, 0) 100%);
}
.overlay-panel h1, .overlay-panel h2, .overlay-panel p {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.hero-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.pre-headline {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--bone);
  display: inline-block;
  padding-bottom: 12px;
  background-image: linear-gradient(90deg, var(--gold), var(--gold));
  background-repeat: no-repeat;
  background-size: 64px 2px;
  background-position: center bottom;
  margin-bottom: 30px;
  opacity: 0;
}
.hero-headline {
  font-family: var(--display);
  font-weight: 400;
  color: var(--bone);
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: 0.012em;
  max-width: 860px;
  margin: 0 auto 26px;
  opacity: 0;
}
.hero-headline .hl { color: var(--amber-bright); }
.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  color: rgba(245, 240, 232, 0.85);
  margin-bottom: 38px;
  opacity: 0;
}
.hero-overlay .cta-btn { opacity: 0; transform: translateY(14px); }
.trust-line {
  margin-top: 26px;
  font-size: 0.84rem;
  color: rgba(245, 240, 232, 0.6);
  letter-spacing: 0.04em;
  opacity: 0;
}
.trust-line.dim { color: rgba(245, 240, 232, 0.5); opacity: 1; }

.scroll-hint {
  position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%);
}
.scroll-hint span {
  display: block; width: 22px; height: 36px;
  border: 2px solid rgba(245,240,232,0.55); border-radius: 12px;
  position: relative;
}
.scroll-hint span::after {
  content: ''; position: absolute; top: 6px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 2px;
  background: var(--amber-bright);
  animation: hint 1.8s ease-in-out infinite;
}
@keyframes hint { 0%,100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(12px); opacity: 0.2; } }

/* ============================================================
   SECTION 2 — STATS
   ============================================================ */
#stats {
  padding: 110px 0 100px;
  border-top: 1px solid #EFEBE6;
  background: #fff;
}
.stats-row { display: flex; justify-content: space-between; gap: 32px; }
.stat { flex: 1; text-align: center; }
.stat-number {
  font-family: var(--display);
  font-size: clamp(3rem, 5vw, 4.6rem);
  color: var(--ink);
  line-height: 1;
}
.stat-rule {
  width: 44px; height: 2px; margin: 18px auto 14px;
  background: var(--amber);
}
.stat-label { font-size: 0.95rem; color: var(--body); font-weight: 500; }

/* ============================================================
   SECTION 3 — PROBLEM
   ============================================================ */
#problem { padding: 130px 0 140px; position: relative; background: #fff; }
.bg-accent { position: absolute; pointer-events: none; }
.bg-circle {
  width: 560px; height: 560px; border-radius: 50%;
  border: 1.5px solid rgba(232, 118, 10, 0.07);
  top: -120px; right: -180px;
}
.bg-circle::after {
  content: ''; position: absolute; inset: 70px; border-radius: 50%;
  border: 1.5px solid rgba(201, 168, 76, 0.06);
}
.problem-grid {
  display: grid; grid-template-columns: 55fr 45fr; gap: 72px;
  align-items: center; position: relative;
}
.problem-body { margin-top: 30px; font-size: 1.08rem; line-height: 1.85; }
.problem-pullquote {
  margin-top: 34px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--amber);
  border-left: 3px solid var(--gold);
  padding-left: 22px;
  line-height: 1.5;
}
.pain-card {
  background: var(--pain-bg);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 46px 40px;
  box-shadow: 0 18px 50px rgba(60, 40, 10, 0.07);
}
.pain-item {
  display: flex; align-items: baseline; gap: 14px;
  font-size: 1.02rem; font-weight: 500; color: var(--body);
  padding: 15px 0;
  opacity: 0; transform: translateY(14px);
}
.pain-item + .pain-item { border-top: 1px solid rgba(26,26,26,0.06); }
.pain-x { color: var(--amber); font-size: 0.85rem; flex-shrink: 0; }

/* ============================================================
   SECTION 4 — SYSTEM
   ============================================================ */
#system { padding: 130px 0 140px; position: relative; background: #fff; }
.bg-dots {
  inset: 60px 0 auto auto; width: 300px; height: 300px; left: -60px; top: 40px;
  background-image: radial-gradient(rgba(26,26,26,0.05) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; position: relative; }
.pillar {
  background: linear-gradient(180deg, var(--card-warm), var(--card-warmer));
  border-top: 3px solid var(--amber);
  border-radius: 10px;
  padding: 46px 38px 44px;
  box-shadow: 0 14px 40px rgba(60, 40, 10, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0; transform: translateY(36px);
}
.pillar:hover { transform: translateY(-8px) !important; box-shadow: 0 26px 60px rgba(60, 40, 10, 0.14); }
.pillar-num {
  font-family: var(--display);
  font-size: 2.6rem;
  background: linear-gradient(135deg, var(--amber), var(--amber-bright));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 20px;
}
.pillar-title {
  font-family: var(--display); font-weight: 400;
  font-size: 1.42rem; letter-spacing: 0.03em;
  text-transform: uppercase; color: var(--ink);
  margin-bottom: 16px;
}
.pillar-desc { font-size: 1rem; line-height: 1.75; }
.system-tagline {
  text-align: center; margin-top: 64px;
  font-size: 1.18rem; color: var(--ink); font-weight: 500;
}
.system-tagline em { color: var(--amber); font-style: normal; font-weight: 700; }

/* ============================================================
   SECTION 5 — WALKTHROUGH
   ============================================================ */
.walkthrough-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 140px 6vw 64px;
  text-align: center;
  background: linear-gradient(to top, rgba(8,6,4,0.72), rgba(8,6,4,0));
}
.walkthrough-caption p {
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  letter-spacing: 0.14em;
  color: var(--bone);
  font-weight: 500;
}

/* ============================================================
   SECTION 6 — RESULTS
   ============================================================ */
#results { padding: 130px 0 140px; position: relative; background: #fff; }
.bg-lines {
  right: -40px; top: 100px; width: 260px; height: 260px;
  background-image: repeating-linear-gradient(45deg, rgba(232,118,10,0.05) 0 1.5px, transparent 1.5px 18px);
}
.result-cards { display: flex; flex-direction: column; gap: 30px; position: relative; }
.result-card {
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  align-items: center;
  background: var(--card-warmer);
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  padding: 44px 52px;
  box-shadow: 0 18px 48px rgba(60, 40, 10, 0.09);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0; transform: translateY(34px);
}
.result-card:hover { transform: translateY(-6px) !important; box-shadow: 0 28px 64px rgba(60, 40, 10, 0.14); }
.result-name {
  font-family: var(--display); font-weight: 400;
  font-size: 1.5rem; letter-spacing: 0.02em; color: var(--ink);
  margin-bottom: 12px;
}
.result-desc { font-size: 1.02rem; line-height: 1.75; max-width: 640px; }
.result-value {
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 3.2rem);
  color: var(--amber);
  text-align: right;
  line-height: 1.05;
  white-space: nowrap;
}
.result-value span { display: block; font-size: 0.42em; color: var(--gold); letter-spacing: 0.06em; margin-top: 6px; }
.results-closing {
  margin-top: 56px;
  font-size: 1.16rem; font-weight: 600; color: var(--amber);
  max-width: 820px; line-height: 1.7;
}

/* ============================================================
   SECTION 7 — ABOUT
   ============================================================ */
#about { padding: 130px 0 140px; background: #fff; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px;
  align-items: center;
}
.about-media { position: relative; }
.about-video, .about-canvas {
  width: 100%; border-radius: 14px;
  border: 1px solid var(--gold);
  box-shadow: 0 30px 70px rgba(60, 40, 10, 0.16);
  background: #171310;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.about-name {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.1rem, 3.4vw, 3rem); color: var(--ink);
  letter-spacing: 0.01em;
}
.about-title {
  margin-top: 10px;
  color: var(--amber); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.86rem;
}
.gold-rule { width: 80px; height: 1.5px; background: var(--gold); margin: 26px 0 28px; }
.about-body { font-size: 1.05rem; line-height: 1.85; }
.about-body + .about-body { margin-top: 20px; }

/* ============================================================
   SECTION 8 — WHO THIS IS FOR
   ============================================================ */
#who { padding: 120px 0 140px; background: #fff; }
#who .section-headline { position: relative; display: inline-block; padding-bottom: 14px; }
.who-underline {
  position: absolute; left: 0; bottom: 0;
  width: 46%; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--amber), var(--amber-bright));
  transform: scaleX(0); transform-origin: left center;
}
.who-list { max-width: 940px; }
.who-item {
  display: flex; gap: 22px; align-items: baseline;
  padding: 26px 10px;
  border-bottom: 1px solid #F0ECE6;
  opacity: 0; transform: translateX(-28px);
}
.who-item:last-child { border-bottom: none; }
.who-check {
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--amber-bright));
  color: #fff; font-size: 0.85rem; font-weight: 700;
  transform: translateY(6px);
}
.who-item p { font-size: 1.05rem; line-height: 1.7; }
.who-item strong { color: var(--ink); }

/* ============================================================
   SECTION 9 — CTA CLOSE
   ============================================================ */
#cta .sticky-frame { background: #0a0c12; }
.cta-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: center; justify-content: center;
}
.cta-headline {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(2.2rem, 4.6vw, 3.9rem);
  color: var(--bone); line-height: 1.14;
  margin-bottom: 24px;
}
.cta-sub {
  font-size: clamp(0.98rem, 1.5vw, 1.14rem);
  color: rgba(245, 240, 232, 0.82);
  line-height: 1.75;
  max-width: 720px; margin: 0 auto 40px;
}

/* ============================================================
   SECTION 10 — FOOTER
   ============================================================ */
#footer {
  background: #fff;
  border-top: 1px solid #EFEBE6;
  text-align: center;
  padding: 80px 6vw 70px;
}
.footer-brand {
  font-weight: 600; letter-spacing: 0.34em; color: var(--ink);
  font-size: 1.02rem;
}
.footer-email { margin-top: 18px; font-size: 0.98rem; }
.footer-email a { color: var(--body); text-decoration: none; }
.footer-email a:hover { color: var(--amber); }
.footer-closing {
  margin-top: 34px;
  font-style: italic; color: var(--tertiary); font-size: 0.9rem;
}
.footer-legal {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid #F0ECE6;
  display: flex; justify-content: center; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 0.84rem;
}
.footer-legal a { color: var(--tertiary); text-decoration: none; transition: color 0.3s ease; }
.footer-legal a:hover { color: var(--amber); }
.footer-legal span { color: #D8D2C8; }
.footer-copyright { margin-top: 16px; font-size: 0.78rem; color: #B8B2A8; }

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 820px) {
  #topnav { padding: 16px 5vw; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(78vw, 320px);
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    box-shadow: -18px 0 50px rgba(26, 26, 26, 0.14);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: 80px 38px 60px;
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #topnav.menu-open .nav-links { transform: translateX(0); }
  .nav-links a {
    color: var(--ink); font-size: 1.15rem; font-weight: 600;
    padding: 12px 0;
  }
  .nav-links .nav-cta { margin-top: 18px; padding: 14px 30px; color: #fff; }
  .overlay-panel { padding: 48px 24px; }
  .overlay-panel::before { inset: -12vh -18vw; }
  .hero-headline { font-size: clamp(1.9rem, 8.4vw, 2.6rem); }
  .cta-btn { display: block; width: 100%; text-align: center; }
  .scroll-hint { display: none; }

  .stats-row { flex-wrap: wrap; gap: 44px 0; }
  .stat { flex: 0 0 50%; }

  #problem, #system, #results, #about, #who { padding: 84px 0 90px; }
  .problem-grid, .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .pillars { grid-template-columns: 1fr; gap: 24px; }
  .pillar { transform: translateY(24px); }

  .result-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 8px; }
  .result-value { text-align: left; order: -1; margin-bottom: 10px; }

  .walkthrough-caption p { letter-spacing: 0.08em; }
  .who-item { gap: 16px; padding: 22px 4px; }
  .bg-circle, .bg-dots, .bg-lines { display: none; }
}
