/* ===========================================================
   PDRight — Concept G "Focus"
   Premium dark, readable, conversion-first.
   =========================================================== */

:root {
  --bg-top: #0C0F17;
  --bg-bottom: #070910;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.14);

  --text: #EAECEF;
  --muted: #98A1B2;        /* ~7:1 on #0C0F17 */
  --accent: #6D7CFF;
  --accent-soft: rgba(109, 124, 255, 0.16);
  --accent-glow: rgba(109, 124, 255, 0.35);

  --font-head: "General Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --maxw-narrow: 760px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--text);
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: var(--maxw-narrow); }
.center { text-align: center; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  min-height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}
.btn .icon { transition: transform 0.2s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(109,124,255,0.5), 0 8px 30px -8px var(--accent-glow);
}
.btn-primary:hover {
  background: #7d8aff;
  box-shadow: 0 0 0 1px rgba(109,124,255,0.7), 0 12px 38px -8px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease);
}
.btn-link:hover { color: var(--text); }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
}
.site-header.scrolled {
  background: rgba(8, 10, 16, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--hairline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.wordmark {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  color: var(--text);
}
.wordmark-sm { font-size: 0.95rem; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 8px;
}
.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 140px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 92vw);
  height: 520px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, rgba(109,124,255,0.06) 42%, transparent 70%);
  filter: blur(20px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; max-width: 880px; }

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

h1 {
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 28px;
}

.trust-line {
  font-size: 0.95rem;
  color: var(--muted);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  max-width: 56ch;
}

/* ---------- Reframe ---------- */
.reframe { padding: clamp(48px, 8vw, 88px) 0; }
.reframe-line {
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.reframe-line { color: var(--text); }
.reframe-body {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Section heads ---------- */
.section-head { margin-bottom: 40px; }
.section-head h2,
.offer h2,
.reframe-line {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.section-head .eyebrow { margin-bottom: 14px; }

/* ---------- How it works ---------- */
.how { padding: clamp(40px, 7vw, 80px) 0; }
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover {
  border-color: var(--hairline-strong);
  background: var(--surface-2);
  transform: translateY(-3px);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(109,124,255,0.35);
  color: var(--accent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.step p { color: var(--muted); font-size: 1rem; }

/* ---------- Offer ---------- */
.offer { padding: clamp(40px, 7vw, 80px) 0; }
.offer-panel {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(109,124,255,0.10) 0%, transparent 60%),
    var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(32px, 5vw, 52px);
  position: relative;
  overflow: hidden;
}
.offer-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(180deg, rgba(109,124,255,0.45), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.offer-panel .eyebrow { margin-bottom: 14px; }
.offer-panel h2 { margin-bottom: 26px; }

.benefits {
  list-style: none;
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}
.benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text);
}
.icon.check {
  flex: none;
  color: var(--accent);
  margin-top: 2px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.price-amount {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--text);
}
.price-unit { color: var(--muted); font-size: 1rem; }
.price-note {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 28px;
}

.differentiator {
  text-align: center;
  margin-top: 28px;
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.05rem;
}

/* ---------- Final CTA ---------- */
.final-cta {
  padding: clamp(64px, 10vw, 120px) 0;
}
.final-cta h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 18px;
}
.final-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0 auto 32px;
  max-width: 52ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-copy { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}
.footer-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s var(--ease);
}
.footer-nav a:hover { color: var(--text); }

/* ---------- Concept pill ---------- */
.concept-pill {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 150;
  background: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  color: var(--muted);
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 14px;
  border-radius: 999px;
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-inner { height: 60px; }
  h1 br { display: none; }
  .hero { padding-top: 64px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover .icon { transform: none; }
  .hero-glow { opacity: 0.35; }
  * { transition: none !important; }
}
