/* ============================================================
   DexDeals — site styles
   Identity: near-black + royal-blue diagonal wash, film grain,
   tall high-contrast chrome serif, editorial layout.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,500&family=Geist+Mono:wght@300;400;500;600&display=swap');

:root {
  --black: #0C1017;
  --panel: #12171E;
  --ink: #ECEFF5;
  --dim: #8B94A8;
  --faint: #4A536C;
  --royal: #0E3C78;
  --royal-deep: #082E5B;
  --blue: #2E6FD0;
  --chrome-1: #ffffff;
  --chrome-2: #bcd2f5;
  --line: rgba(150,185,255,0.13);
  --serif: 'General Sans', 'Inter', system-ui, sans-serif;
  --sans: 'General Sans', 'Inter', system-ui, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
::selection { background: rgba(46,111,208,0.4); color: #fff; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- textured backdrop ---------- */
.bg-field {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(14,60,120,0.55), transparent 60%),
    radial-gradient(1000px 900px at 8% 108%, rgba(8,46,91,0.5), transparent 62%),
    linear-gradient(160deg, #0A0D14 0%, #0C1017 50%, #090C12 100%);
}
.bg-field::before {
  /* diagonal royal wash streak, like the logo */
  content: ""; position: absolute; inset: -20%;
  background: linear-gradient(122deg, transparent 34%, rgba(12,52,110,0.45) 46%, rgba(8,20,44,0.1) 58%, transparent 66%);
  filter: blur(8px);
}
.bg-grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='260' height='260'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.04 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
}
.stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.stars i {
  position: absolute; width: 2px; height: 2px; border-radius: 50%;
  background: #cdddff; opacity: 0.5;
  box-shadow: 0 0 6px 1px rgba(160,200,255,0.6);
}

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section { position: relative; }

/* chrome wordmark / display serif */
.chrome {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em;
  color: var(--ink);
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 16px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; pointer-events: none;
}
.nav .wrap {
  pointer-events: auto;
  width: auto; max-width: calc(100% - 28px);
  display: flex; align-items: center; justify-content: center;
  height: auto; padding: 7px 8px;
  background: rgba(16, 22, 32, 0.48);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(160,190,240,0.16);
  border-radius: 999px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.42), inset 0 1px 0 rgba(255,255,255,0.08);
}
.nav .links { display: flex; align-items: center; gap: 24px; padding-left: 16px; }
.nav .links a { color: var(--dim); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav .links a:hover { color: var(--ink); }
.nav .links .btn-sm { color: var(--ink); }
.nav .btn { border-radius: 999px; padding: 9px 20px; font-size: 14px; }
.nav .btn-ghost { background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); color: #fff; box-shadow: none; }
.nav .btn-ghost:hover { background: rgba(255,255,255,0.17); border-color: rgba(255,255,255,0.30); transform: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 15px 30px; border-radius: 9px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .16s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn .arw { font-family: var(--mono); font-weight: 400; opacity: 0.6; }
.btn-primary {
  color: #0C1017; background: #F2F4F8;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
}
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,0.28); }
.btn-ghost {
  color: var(--ink); background: transparent;
  border: 1px solid rgba(150,180,235,0.30);
}
.btn-ghost:hover { background: rgba(255,255,255,0.05); border-color: rgba(160,195,255,0.5); }
.btn-sm { padding: 11px 22px; font-size: 14px; border-radius: 8px; }

/* ---------- CTA banner section ---------- */
.hero-cta { padding: 104px 0 46px; }
.cta-banner {
  position: relative; width: 95vw; max-width: 1540px; margin: 0 auto;
  min-height: 86vh;
  border-radius: 20px; overflow: hidden;
  background: var(--black) url('assets/cta.png') center center / cover no-repeat;
  border: 1px solid rgba(130,170,255,0.18);
  box-shadow: 0 40px 100px rgba(6,18,50,0.55);
}
.cta-banner .cta-access {
  position: absolute; left: 50%; top: 74%; transform: translate(-50%, -50%);
  z-index: 3;
  background: #fff; color: #0B0F16;
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  padding: 16px 42px; border-radius: 999px;
  box-shadow: none;
}
.cta-banner .cta-access .arw { opacity: 0.45; }
/* keep the centering transform while lifting on hover */
.cta-banner .cta-access:hover {
  transform: translate(-50%, calc(-50% - 2px));
  box-shadow: none;
}

/* ---------- what it is ---------- */
.about { padding: 96px 0 30px; }
.about .lead-row { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 64px; align-items: start; }
.about h2 { font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; }
.about h2 em { font-style: normal; color: #9ec3ff; }
.about .lead { color: var(--dim); font-size: 18.5px; line-height: 1.66; }
.about .lead + .lead { margin-top: 20px; }
.about .lead strong { color: var(--ink); font-weight: 600; }
.about .contrast { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 56px; }
.about .cbox { border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px 26px; background: rgba(16,24,42,0.4); }
.about .cbox h4 { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 18px; }
.about .cbox.yes h4 { color: var(--blue); }
.about .cbox.no h4 { color: var(--faint); }
.about .cbox ul { list-style: none; }
.about .cbox li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; font-size: 16px; line-height: 1.45; color: var(--ink); border-bottom: 1px solid var(--line); }
.about .cbox li:last-child { border-bottom: none; }
.about .cbox li::before { content: ""; flex: none; margin-top: 9px; }
.about .cbox.yes li::before { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 8px 1px rgba(46,111,208,0.5); }
.about .cbox.no li { color: var(--dim); }
.about .cbox.no li::before { width: 11px; height: 2px; background: var(--faint); margin-top: 11px; }

/* ---------- generic section head ---------- */
.sec-head { max-width: 760px; margin-bottom: 54px; }
.sec-head h2 {
  font-family: var(--sans); font-weight: 600; font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.02em; line-height: 1.1;
}
.sec-head h2 em { font-style: normal; font-weight: 600; color: #9ec3ff; }
.sec-head p { color: var(--dim); font-size: 18px; margin-top: 18px; max-width: 620px; }

/* ---------- problem (editorial two-col) ---------- */
.problem { padding: 40px 0 30px; }
.problem .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.problem .big {
  font-family: var(--serif); font-weight: 600; font-size: clamp(27px, 3.2vw, 38px);
  line-height: 1.2; letter-spacing: -0.02em;
}
.problem .big span { color: var(--blue); font-style: normal; }
.problem .body p { color: var(--dim); font-size: 17.5px; margin-bottom: 20px; }
.problem .body p strong { color: var(--ink); font-weight: 600; }

/* stat row */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-top: 64px; }
.stats .cell { background: rgba(8,12,24,0.7); padding: 34px 30px; }
.stats .num { font-family: var(--serif); font-size: 52px; font-weight: 600; line-height: 1; }
.stats .lbl { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); margin-top: 14px; }

/* ---------- product blocks ---------- */
.guides { padding: 100px 0; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.guide {
  position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: rgba(16, 24, 42, 0.5);
  padding: 38px 38px 34px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .3s;
}
.guide:hover { transform: translateY(-4px); border-color: rgba(120,165,255,0.4); box-shadow: 0 30px 70px rgba(10,30,90,0.4); }
.guide::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(160,200,255,0.6), transparent); }
.guide .tag { font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--blue); }
.guide h3 { font-family: var(--serif); font-weight: 600; font-size: 34px; line-height: 1.05; margin: 16px 0 6px; }
.guide .sub { color: var(--dim); font-size: 16.5px; min-height: 52px; }
.guide ul { list-style: none; margin: 22px 0 0; }
.guide li { display: flex; align-items: baseline; gap: 14px; padding: 12px 0; line-height: 1.3; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.guide li:last-child { border-bottom: none; }
.guide li .n { font-family: var(--mono); font-size: 12px; color: var(--faint); padding-top: 3px; min-width: 22px; }
.guide li .m { margin-left: auto; font-family: var(--mono); font-size: 12.5px; color: var(--dim); white-space: nowrap; padding-top: 2px; }
.guide .foot { margin-top: 26px; padding: 0; border-top: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.guide .price { font-family: var(--serif); font-size: 40px; font-weight: 600; }
.guide .price small { font-family: var(--mono); font-size: 13px; color: var(--dim); letter-spacing: 0.1em; display: block; margin-top: 2px; }

/* ---------- convert / bottom ---------- */
.convert { padding: 40px 0 110px; }
.convert-inner {
  position: relative; border: 1px solid rgba(120,165,255,0.28); border-radius: 18px; overflow: hidden;
  padding: 70px 60px; text-align: center;
  background: radial-gradient(900px 500px at 50% -30%, rgba(14,60,120,0.55), transparent 62%), rgba(9,13,22,0.72);
}
.convert-inner h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.02em; }
.convert-inner p { color: var(--dim); font-size: 18px; margin: 20px auto 0; max-width: 540px; }

/* 3-tier pricing */
.tiers { display: grid; grid-template-columns: 1fr 1.06fr 1fr; gap: 18px; margin-top: 48px; text-align: left; align-items: stretch; }
.tier {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px 30px;
  background: rgba(11,16,28,0.66); transition: border-color .25s, transform .2s;
}
.tier:hover { border-color: rgba(140,180,255,0.45); transform: translateY(-3px); }
.tier h4 { font-family: var(--sans); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.tier .td { color: var(--dim); font-size: 14.5px; line-height: 1.55; margin: 11px 0 24px; }
.tier .tbottom { margin-top: auto; }
.tier .tprice { font-family: var(--sans); font-weight: 700; font-size: 33px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 9px; }
.tier .tprice span { font-family: var(--mono); font-size: 11.5px; font-weight: 400; letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.tier .strike { font-family: var(--mono); font-size: 12.5px; color: var(--faint); text-decoration: line-through; margin-top: 7px; }
.tier .btn { margin-top: 18px; width: 100%; }

.tier-best {
  border-color: rgba(130,175,255,0.6);
  background: radial-gradient(500px 300px at 50% -20%, rgba(20,70,150,0.5), transparent 70%), rgba(13,20,38,0.8);
  box-shadow: 0 24px 60px rgba(12,40,100,0.4);
}
.tier .best-tag {
  align-self: flex-start; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 15px;
  display: inline-flex; align-items: center; gap: 9px;
}
.tier .best-tag::before { content: ""; width: 16px; height: 2px; background: var(--blue); display: inline-block; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 46px 0 60px; }
.foot .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.foot .mark { font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; }
.foot .note { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; color: var(--faint); }
.foot .links { display: flex; gap: 26px; }
.foot .links a { color: var(--dim); font-size: 14px; text-decoration: none; }
.foot .links a:hover { color: var(--ink); }
.foot .byline { display: inline-block; margin-top: 8px; }
.foot .byline a { color: var(--dim); text-decoration: none; }
.foot .byline a:hover { color: var(--ink); }

/* ---------- misc / page 2 ---------- */
.pagehead { padding: 132px 0 24px; }
.pagehead .wordmark-sm { font-family: var(--serif); font-weight: 600; text-transform: uppercase; font-size: clamp(40px, 8vw, 96px); line-height: 0.9; letter-spacing: 0.01em; }
.module { border-top: 1px solid var(--line); padding: 40px 0; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; }
.module:last-of-type { border-bottom: 1px solid var(--line); }
.module .mnum { font-family: var(--mono); font-size: 13px; color: var(--faint); letter-spacing: 0.2em; }
.module h3 { font-family: var(--serif); font-weight: 600; font-size: 30px; margin: 12px 0 10px; }
.module .mmeta { font-family: var(--mono); font-size: 12.5px; color: var(--dim); letter-spacing: 0.14em; text-transform: uppercase; }
.module p { color: var(--dim); font-size: 16.5px; }
.module .lessons { list-style: none; margin-top: 18px; }
.module .lessons li { padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 15px; color: var(--ink); display: flex; gap: 12px; }
.module .lessons li .lm { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.course-band { padding: 66px 0 20px; }
.course-band h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 5vw, 54px); }
.course-band .cprice { font-family: var(--mono); font-size: 14px; color: var(--blue); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 10px; }

/* ---------- scroll reveal + polish ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s cubic-bezier(.2,.7,.2,1), transform .75s cubic-bezier(.2,.7,.2,1); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.module .mindex { font-family: var(--serif); font-weight: 600; font-size: 60px; line-height: 1; color: rgba(150,185,255,0.22); }

@media (max-width: 900px) {
  .problem .grid, .guide-grid, .module, .stats,
  .about .lead-row, .about .contrast, .tiers { grid-template-columns: 1fr; }
  .nav .links a:not(.btn-sm) { display: none; }
  .about { padding: 64px 0 20px; }
  .about .lead-row { gap: 22px; }
  .about .contrast { margin-top: 34px; }
  .problem .grid { gap: 28px; }
  .convert-inner { padding: 48px 24px; }
  .cta-banner { min-height: 62vh; }
  .cta-banner .cta-access { font-size: 15px; padding: 14px 34px; }
}
