/* ============================================================
   abdelrhman_idk — Cybersecurity course landing page
   Elite security-researcher terminal aesthetic. RTL / Arabic.
   ============================================================ */

:root {
  /* Brand surface — deep near-black green */
  --bg:           #04150C;
  --bg-grad-a:    #0B3B22;
  --bg-grad-b:    #062213;
  --panel:        #081E11;
  --panel-2:      #0A2716;
  --panel-hi:     #0C2E1A;

  /* Accent — neon terminal green (CTAs / >_ / highlights only) */
  --accent:       #00E676;
  --accent-dim:   #00b85f;
  --accent-glow:  rgba(0, 230, 118, 0.35);

  /* Text */
  --headline:     #F3F8F4;
  --body:         #9DB8A8;
  --body-dim:     #6E8678;

  /* Lines */
  --border:       rgba(0, 230, 118, 0.14);
  --border-soft:  rgba(157, 184, 168, 0.12);

  --radius:       12px;
  --radius-lg:    16px;

  --maxw:         1120px;
  --gutter:       clamp(20px, 5vw, 40px);

  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.75;
  font-size: 17px;
  overflow-x: hidden;
  /* fixed atmospheric glow */
  background-image:
    radial-gradient(900px 600px at 12% -5%, rgba(11,59,34,0.55), transparent 60%),
    radial-gradient(800px 700px at 100% 8%, rgba(0,230,118,0.05), transparent 55%);
  background-attachment: fixed;
}

::selection { background: var(--accent); color: #042012; }

h1, h2, h3, h4 {
  color: var(--headline);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}

p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

.mono { font-family: var(--mono); }
.accent { color: var(--accent); }
/* English / latin technical terms keep LTR flow inside Arabic runs */
.en { unicode-bidi: isolate; direction: ltr; }

/* ---------- layout primitives ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

section { position: relative; }
.section-pad { padding-block: clamp(64px, 11vw, 130px); }

.eyebrow {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 0.5ch;
  margin-bottom: 18px;
  direction: ltr;
}
.eyebrow .prompt { opacity: 0.9; }
.eyebrow .label { color: var(--accent); }

.section-title {
  font-size: clamp(1.7rem, 4.6vw, 2.9rem);
  margin-bottom: 14px;
}
.section-intro {
  max-width: 58ch;
  color: var(--body);
  font-size: clamp(1rem, 2.4vw, 1.12rem);
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.02rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 15px 26px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6ch;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, border-color .2s ease;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #042012;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: #1cf088;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--headline);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-block { width: 100%; }
.btn-sm { padding: 10px 16px; font-size: 0.9rem; border-radius: 8px; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(12px);
  background: rgba(4, 21, 12, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(4,21,12,0.86); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo { height: 250px; display: block; }
.nav-links { display: none; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 0.95rem; color: var(--body);
  transition: color .2s ease; position: relative;
}
.nav-links a:hover { color: var(--headline); }
.nav-cta { display: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-toggle {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(0,230,118,0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  min-width: 42px;
  height: 34px;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .15s ease;
  direction: ltr;
}
.lang-toggle:hover { background: var(--accent); color: #042012; transform: translateY(-1px); }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding-top: clamp(40px, 7vw, 70px); padding-bottom: clamp(56px, 9vw, 100px); }
.hero-grid { display: grid; gap: clamp(36px, 5vw, 56px); align-items: center; }
@media (min-width: 940px) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}
.hero h1 {
  font-size: clamp(2.1rem, 7.2vw, 4rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--accent); }
.hero-sub {
  font-size: clamp(1.04rem, 2.6vw, 1.22rem);
  max-width: 40ch;
  margin-bottom: 32px;
  color: var(--body);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-ctas .btn { flex: 1 1 auto; min-width: 200px; }
@media (min-width: 560px) { .hero-ctas .btn { flex: 0 1 auto; } }

.trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--body-dim);
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}
.trust span { display: inline-flex; align-items: center; gap: 0.5ch; }

/* ---------- terminal ---------- */
.terminal {
  background: linear-gradient(180deg, #061B0F, #04140B);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,230,118,0.04);
  overflow: hidden;
  direction: ltr;
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-soft);
}
.term-dot { width: 11px; height: 11px; border-radius: 50%; background: #1f3a2a; }
.term-dot:nth-child(1) { background: #2a4634; }
.term-title {
  margin-inline-start: auto;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--body-dim);
  letter-spacing: 0.04em;
}
.term-body {
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.7vw, 0.98rem);
  line-height: 1.95;
  padding: 22px 20px 26px;
  min-height: 250px;
  color: var(--body);
  white-space: pre-wrap;
  word-break: break-word;
}
.term-line { display: block; }
.term-line .pr { color: var(--accent); }      /* $ */
.term-line .ar { color: var(--body-dim); }     /* > output marker */
.term-line .ok { color: var(--accent); }
.term-line .white { color: var(--headline); }
.cursor {
  display: inline-block;
  width: 9px; height: 1.05em;
  background: var(--accent);
  vertical-align: -0.18em;
  margin-inline-start: 2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- about ---------- */
.about-grid { display: grid; gap: clamp(28px, 5vw, 52px); align-items: start; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 320px 1fr; } }

.photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    repeating-linear-gradient(135deg, rgba(0,230,118,0.05) 0 12px, transparent 12px 24px),
    var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px;
  color: var(--body-dim);
  font-family: var(--mono);
  font-size: 0.78rem;
  text-align: center;
  padding: 20px;
}
.photo-slot .ring { width: 46px; height: 46px; border-radius: 50%; border: 1.5px dashed var(--border); }

/* ---------- recon identity card (instructor avatar) ---------- */
.recon-card {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  display: flex; flex-direction: column; gap: 22px;
}
.recon-scope { position: relative; width: max-content; margin: 0 auto; padding: 16px 18px; }
.rc-corner { position: absolute; width: 14px; height: 14px; color: var(--accent); }
.rc-corner.tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.rc-corner.tr { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.rc-corner.bl { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.rc-corner.br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }
.recon-face {
  display: block;
  width: 200px;                /* tweak to size it inside the brackets */
  height: auto;
  margin: 0 auto;
  image-rendering: pixelated;  /* keeps the pixel art crisp when scaled */
  filter: drop-shadow(0 0 20px rgba(0, 230, 118, 0.35));  /* same green glow */
}
.recon-face span { width: 100%; height: 100%; }
.recon-face .on  { background: var(--accent); }
.recon-face .dim { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.recon-face .eye { background: color-mix(in srgb, var(--accent) 30%, #ffffff); }
.recon-acquired { margin: 0 0 14px; font-family: var(--mono); font-size: 0.76rem; color: var(--accent); letter-spacing: 0.04em; }
.recon-rows { display: grid; grid-template-columns: max-content 1fr; gap: 11px 16px; align-items: baseline; }
.recon-rows .rk { font-family: var(--mono); font-size: 0.72rem; color: var(--body-dim); letter-spacing: 0.05em; direction: ltr; }
.recon-rows .rv { font-size: 0.92rem; color: var(--body); line-height: 1.55; }
.recon-rows .rv.strong { color: var(--headline); font-weight: 600; }
.recon-rows .rv.accent { font-family: var(--mono); font-size: 0.86rem; color: var(--accent); }
.recon-status { display: inline-flex; align-items: center; gap: 8px; }
.recon-dot {
  flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(0,230,118,0.5);
  animation: reconPulse 1.8s ease-out infinite;
}
@keyframes reconPulse { 60% { box-shadow: 0 0 0 6px rgba(0,230,118,0); } 100% { box-shadow: 0 0 0 0 rgba(0,230,118,0); } }

.about-body p { margin-bottom: 18px; font-size: clamp(1.02rem, 2.4vw, 1.14rem); }
.about-body p:last-child { margin-bottom: 0; }
.about-creds { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cred {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--body);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  background: var(--panel);
}
.cred b { color: var(--accent); font-weight: 600; }

/* ---------- curriculum ---------- */
/* curriculum head: title row + badge */
.cur-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 18px; flex-wrap: wrap;
}
.cur-badge {
  flex: none;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--accent);
  background: rgba(0,230,118,0.07);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  margin-top: 6px;
}

.cur-grid {
  display: grid; gap: 16px;
  grid-template-columns: 1fr;
  margin-top: 38px;
}
@media (min-width: 620px) { .cur-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cur-grid { grid-template-columns: repeat(3, 1fr); } }

.scard {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.scard:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-2); }
.scard .sno {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  direction: ltr;
  display: inline-block;
}
.scard h3 { font-size: 1.16rem; margin-bottom: 10px; }
.scard-desc { font-size: 0.95rem; color: var(--body); line-height: 1.65; }

/* onboarding perk strip — premium standout */
.onboard-strip {
  margin-top: 22px;
  position: relative; overflow: hidden;
  background: linear-gradient(110deg, rgba(0,230,118,0.13), rgba(0,230,118,0.03) 60%);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 0 0 1px rgba(0,230,118,0.05), 0 18px 50px -30px var(--accent-glow);
}
.onboard-mark { display: flex; align-items: center; gap: 10px; flex: none; }
.onboard-mark .prompt { color: var(--accent); font-size: 1.3rem; }
.onboard-badge {
  font-size: 0.78rem; color: #042012; background: var(--accent);
  border-radius: 7px; padding: 6px 11px; font-weight: 600; direction: ltr;
}
.onboard-strip p {
  flex: 1 1 280px; margin: 0;
  font-size: clamp(1.02rem, 2.5vw, 1.18rem);
  color: var(--headline); font-weight: 500; line-height: 1.6;
}

/* python projects */
.py-block { margin-top: 44px; }
.py-title { font-size: clamp(1.3rem, 3.4vw, 1.7rem); margin: 6px 0 20px; }
.py-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.py-chip {
  font-family: var(--mono); font-size: 0.92rem; color: var(--accent);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 9px; padding: 11px 16px; direction: ltr;
  transition: border-color .2s ease, background .2s ease;
}
.py-chip:hover { border-color: var(--accent); background: var(--panel-2); }
.py-frame { color: var(--body); font-size: 1.02rem; max-width: 54ch; }

/* ---------- included ---------- */
.inc-grid {
  display: grid; gap: 16px; margin-top: 44px;
  grid-template-columns: 1fr;
}
@media (min-width: 620px) { .inc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .inc-grid { grid-template-columns: repeat(3, 1fr); } }
.inc {
  display: flex; gap: 15px; align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color .2s ease;
}
.inc:hover { border-color: var(--border); }
.inc .ic {
  flex: none; width: 42px; height: 42px; border-radius: 10px;
  background: rgba(0,230,118,0.08);
  display: grid; place-items: center; color: var(--accent);
}
.inc .ic svg { width: 22px; height: 22px; }
.inc h3 { font-size: 1.04rem; margin-bottom: 5px; }
.inc p { font-size: 0.92rem; color: var(--body); }

/* ---------- free session ---------- */
.free-panel {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(34px, 6vw, 60px);
  text-align: center;
  background: var(--panel);
  border: 1px solid transparent;
  overflow: hidden;
}
.free-panel::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 45%, var(--accent) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.6;
  pointer-events: none; /* glow overlay must never swallow clicks */
  animation: glowpulse 4s ease-in-out infinite;
}
@keyframes glowpulse { 50% { opacity: 1; } }
.free-panel h2 { font-size: clamp(1.5rem, 4.4vw, 2.4rem); margin-bottom: 14px; }
.free-panel p { max-width: 48ch; margin: 0 auto 12px; color: var(--body); font-size: clamp(1.02rem,2.5vw,1.14rem); }
.free-date {
  display: inline-flex; align-items: center; gap: 0.6ch;
  font-family: var(--mono); font-size: 0.92rem; color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 9px 18px; margin: 18px 0 26px;
  direction: ltr;
}
.free-note { font-family: var(--mono); font-size: 0.8rem; color: var(--body-dim); margin-top: 18px; }

/* ---------- pricing ---------- */
.price-card {
  max-width: 460px; margin: 44px auto 0;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 44px);
  text-align: center;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8);
}
.price-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.78rem;
  color: var(--accent); letter-spacing: 0.04em; direction: ltr;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; margin-bottom: 26px;
  background: rgba(0,230,118,0.06);
}
.price-old { font-family: var(--mono); color: var(--body-dim); text-decoration: line-through; font-size: 1.1rem; }
.price-now { display: flex; align-items: baseline; justify-content: center; gap: 0.5ch; margin: 8px 0 4px; }
.price-now .num { font-family: var(--mono); font-size: clamp(3rem, 9vw, 4.2rem); font-weight: 700; color: var(--headline); line-height: 1; }
.price-now .cur { font-family: var(--mono); font-size: 1.1rem; color: var(--accent); }
.price-cond { color: var(--body); font-size: 0.98rem; margin-bottom: 4px; }
.price-inst { font-family: var(--mono); font-size: 0.86rem; color: var(--body-dim); margin-bottom: 26px; direction: ltr; }
.price-card .btn { margin-bottom: 18px; }
.pay-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.pay-badge {
  font-family: var(--mono); font-size: 0.78rem; color: var(--body);
  border: 1px solid var(--border-soft); border-radius: 8px; padding: 8px 13px;
  display: inline-flex; align-items: center; gap: 0.5ch; direction: ltr;
}
.pay-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

/* ---------- enrollment steps ---------- */
.steps { display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  display: flex; flex-direction: column;
}
.step-cmd {
  font-family: var(--mono); font-size: 0.86rem; color: var(--accent);
  direction: ltr; margin-bottom: 16px; display: flex; align-items: center; gap: 0.5ch;
}
.step-cmd .n { color: var(--headline); }
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { font-size: 0.94rem; color: var(--body); margin-bottom: 18px; }
.step .spacer { flex: 1; }

.copy-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: 9px;
  padding: 11px 14px; margin-bottom: 10px; direction: ltr;
}
.copy-row .cv { font-family: var(--mono); font-size: 0.92rem; color: var(--headline); }
.copy-row .ck { font-family: var(--mono); font-size: 0.68rem; color: var(--body-dim); display: block; }
.copy-btn {
  flex: none; font-family: var(--mono); font-size: 0.74rem; cursor: pointer;
  background: rgba(0,230,118,0.08); color: var(--accent);
  border: 1px solid var(--border); border-radius: 7px; padding: 7px 11px;
  transition: background .2s ease, color .2s ease;
}
.copy-btn:hover { background: var(--accent); color: #042012; }
.copy-btn.copied { background: var(--accent); color: #042012; }

/* ---------- affiliate teaser (landing) ---------- */
.aff-teaser {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 60px);
  text-align: center;
  position: relative; overflow: hidden;
}
.aff-teaser .section-intro { margin-inline: auto; }
.aff-teaser-btn { margin-top: 28px; }

/* ---------- faq ---------- */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.faq-item {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s ease;
}
.faq-item.open { border-color: var(--border); }
.faq-q {
  width: 100%; text-align: start; cursor: pointer;
  background: none; border: none; color: var(--headline);
  font-family: var(--sans); font-weight: 600; font-size: clamp(1rem, 2.6vw, 1.14rem);
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .pm {
  flex: none; width: 24px; height: 24px; position: relative; color: var(--accent);
  transition: transform .25s ease;
}
.faq-item.open .faq-q .pm { transform: rotate(45deg); }
.faq-q .pm::before, .faq-q .pm::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  left: 50%; top: 50%; transform: translate(-50%,-50%); /* physical left: the icon is symmetric, RTL-safe */
}
.faq-q .pm::before { width: 14px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 14px; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--body); font-size: 1rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border-soft); padding-block: 56px; }
.footer-inner { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
@media (min-width: 720px) { .footer-inner { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer-logo { height: 300px; }
.footer-tag { color: var(--body); font-size: 0.98rem; margin-top: 14px; max-width: 36ch; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border-soft);
  display: grid; place-items: center; color: var(--body);
  transition: color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; }
.footer-copy {
  font-family: var(--mono); font-size: 0.78rem; color: var(--body-dim);
  direction: ltr; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border-soft);
}

/* ---------- modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,10,6,0.78);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.modal-overlay.show { opacity: 1; pointer-events: auto; }
.modal {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 460px;
  padding: clamp(26px, 5vw, 38px);
  position: relative;
  transform: translateY(16px) scale(0.98);
  transition: transform .25s ease;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.show .modal { transform: none; }
.modal-close {
  position: absolute; inset-inline-end: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border-soft);
  color: var(--body); font-size: 1.1rem; display: grid; place-items: center;
  transition: color .2s, border-color .2s;
}
.modal-close:hover { color: var(--accent); border-color: var(--accent); }
.modal .eyebrow { margin-bottom: 12px; }
.modal h3 { font-size: 1.4rem; margin-bottom: 8px; }
.modal > p { color: var(--body); font-size: 0.98rem; margin-bottom: 22px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; color: var(--body); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem;
  background: var(--bg); color: var(--headline);
  border: 1px solid var(--border-soft); border-radius: 9px;
  padding: 12px 14px; outline: none; transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 74px; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--body-dim); }
/* affiliate / discount code field (enroll modal) */
.code-field { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.code-row { display: flex; gap: 10px; direction: ltr; }
.code-row .code-input {
  flex: 1; min-width: 0;
  font-family: var(--mono); font-size: 0.95rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  direction: ltr; text-align: left;
}
.code-row .code-input::placeholder { text-transform: uppercase; letter-spacing: 0.08em; }
.code-apply {
  flex: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.84rem; font-weight: 600;
  background: rgba(0,230,118,0.08); color: var(--accent);
  border: 1px solid var(--border); border-radius: 9px; padding: 0 18px;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.code-apply:hover { background: var(--accent); border-color: var(--accent); color: #042012; }
.code-status { margin-top: 10px; font-size: 0.88rem; line-height: 1.6; }
.code-status.checking { color: var(--body-dim); font-family: var(--mono); font-size: 0.8rem; }
.code-status.checking::after {
  content: "▌"; color: var(--accent);
  margin-inline-start: 2px;
  animation: blink 1s steps(1) infinite;
}
/* the discount line is the brightest element in the block */
.code-status.valid { color: var(--accent); font-weight: 700; font-size: 1.02rem; }
.code-status.invalid, .code-status.error { color: #ffb347; }

/* ---------- payment success screen ---------- */
.pay-screen .pay-sub { color: var(--body); margin: 10px 0 0; }
.pay-badge {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: 0.84rem; font-weight: 600; color: var(--accent);
  background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.25);
  border-radius: 999px; padding: 6px 14px;
}
.pay-options {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin: 20px 0 0; text-align: center;
}
.pay-opt {
  background: var(--bg); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 16px 10px 14px;
  display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.pay-label { font-size: 0.82rem; color: var(--body-dim); }
.pay-price {
  direction: ltr; /* numerals always read LTR, struck price first */
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--mono); white-space: nowrap;
}
.pay-price .mult { font-size: 0.95rem; color: var(--body-dim); }
.pay-price .was { font-size: 0.92rem; color: var(--body-dim); text-decoration-color: rgba(255,107,107,0.7); }
.pay-price .amt { font-size: 1.7rem; font-weight: 600; color: var(--headline); line-height: 1; }
.pay-price .pcur { font-size: 0.75rem; color: var(--body-dim); }
.pay-transfer { color: var(--body); font-size: 0.92rem; margin: 22px 0 0; }
.pay-number-row { display: flex; gap: 10px; margin-top: 12px; direction: ltr; }
.pay-number {
  flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1.02rem; letter-spacing: 0.06em; color: var(--accent);
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px;
}
.pay-note { color: var(--body-dim); font-size: 0.82rem; margin: 12px 0 14px; }
@media (max-width: 420px) {
  .pay-options { grid-template-columns: 1fr; }
}

.modal-success { text-align: center; padding: 10px 0; }
.modal-success .check {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(0,230,118,0.12); color: var(--accent);
  display: grid; place-items: center; font-size: 1.8rem;
}

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
  .cursor, .free-panel::before { animation: none; }
}

/* toast */
.toast {
  position: fixed; inset-block-end: 24px; inset-inline-start: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--accent); color: #042012; font-family: var(--mono); font-size: 0.86rem; font-weight: 600;
  padding: 11px 20px; border-radius: 10px; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   AFFILIATE PAGE
   ============================================================ */
.aff-hero { padding-top: clamp(48px, 8vw, 90px); padding-bottom: clamp(20px, 4vw, 40px); }
.aff-hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.15; margin-bottom: 22px; max-width: 18ch; }
.aff-hero .aff-intro { max-width: 56ch; font-size: clamp(1.04rem, 2.6vw, 1.2rem); color: var(--body); }

/* win-win card */
.winwin {
  display: grid; gap: 0;
  grid-template-columns: 1fr;
  margin: clamp(36px, 6vw, 56px) 0 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
@media (min-width: 720px) { .winwin { grid-template-columns: 1fr 1fr; } }
.winwin-half {
  padding: clamp(30px, 5vw, 48px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 6px;
}
.winwin-half.them { background: var(--panel); }
.winwin-half.you {
  background: linear-gradient(160deg, rgba(0,230,118,0.12), rgba(0,230,118,0.03));
  border-top: 1px solid var(--border);
}
@media (min-width: 720px) {
  .winwin-half.you { border-top: none; border-inline-start: 1px solid var(--border); }
}
.winwin-label { font-family: var(--mono); font-size: 0.86rem; color: var(--body-dim); letter-spacing: 0.02em; }
.winwin-big {
  font-family: var(--mono); font-weight: 700; line-height: 1;
  font-size: clamp(3.4rem, 12vw, 5.2rem);
  color: var(--headline); direction: ltr; margin: 4px 0;
}
.winwin-half.you .winwin-big { color: var(--accent); }
.winwin-unit { font-family: var(--mono); font-size: 1rem; color: var(--accent); }
.winwin-sub { font-size: 0.96rem; color: var(--body); }
.winwin-x {
  display: none;
}
.aff-example { text-align: center; max-width: 60ch; margin: 0 auto 28px; color: var(--body); font-size: 0.98rem; }
.aff-paynote {
  font-family: var(--mono); font-size: 0.8rem; color: var(--body-dim); line-height: 1.7;
  max-width: 68ch; margin: 0 auto; text-align: center;
  border-top: 1px solid var(--border-soft); padding-top: 22px;
}

/* affiliate form */
.aff-form-wrap {
  max-width: 620px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 44px);
}
.aff-form-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .aff-form-grid { grid-template-columns: 1fr 1fr; } }
.aff-form-grid .field.full { grid-column: 1 / -1; }
.field .err { display: none; color: #ff6b6b; font-size: 0.8rem; margin-top: 6px; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #ff6b6b; }
.field.invalid .err { display: block; }

/* link to the affiliate terms page (inside checkbox labels) */
.terms-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.terms-link:hover { color: #1cf088; }

/* rules / checkboxes */
.rules { margin-top: 8px; }
.rules-title { font-family: var(--mono); font-size: 0.82rem; color: var(--accent); margin-bottom: 14px; direction: ltr; }
.check-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; margin-bottom: 10px; cursor: pointer;
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: 9px;
  transition: border-color .2s ease;
}
.check-row:hover { border-color: var(--border); }
.check-row.invalid { border-color: #ff6b6b; }
.check-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-box {
  flex: none; width: 22px; height: 22px; border-radius: 6px;
  border: 1.5px solid var(--border); background: var(--panel);
  display: grid; place-items: center; transition: background .15s ease, border-color .15s ease;
}
.check-box::after {
  content: "✓"; color: #042012; font-size: 0.82rem; font-weight: 700;
  opacity: 0; transform: scale(0.5); transition: opacity .15s ease, transform .15s ease;
}
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check-row input:checked + .check-box::after { opacity: 1; transform: scale(1); }
.check-row input:focus-visible + .check-box { box-shadow: 0 0 0 3px var(--accent-glow); }
.check-text { font-size: 0.95rem; color: var(--body); line-height: 1.55; }

/* affiliate success state */
.aff-success { max-width: 620px; margin: 0 auto; text-align: center; }
.aff-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  background: rgba(0,230,118,0.12); color: var(--accent);
  display: grid; place-items: center; font-size: 1.9rem;
}
.code-terminal {
  background: linear-gradient(180deg, #061B0F, #04140B);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  margin: 24px auto; max-width: 480px; overflow: hidden;
  box-shadow: 0 18px 50px -28px var(--accent-glow);
}
.code-terminal .term-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px;
  border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,0.02);
}
.code-terminal .term-dot { width: 10px; height: 10px; border-radius: 50%; background: #2a4634; }
.code-body { padding: 22px 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; direction: ltr; flex-wrap: wrap; }
.code-body .codeline { font-family: var(--mono); font-size: clamp(1rem, 4vw, 1.35rem); color: var(--body); }
.code-body .codeval { color: var(--accent); font-weight: 700; letter-spacing: 0.06em; }
.aff-next {
  font-size: 0.98rem; color: var(--body); max-width: 48ch; margin: 0 auto 26px;
}
.share-box {
  background: var(--bg); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 20px; max-width: 480px; margin: 0 auto; text-align: start;
}
.share-box .share-hint { font-family: var(--mono); font-size: 0.78rem; color: var(--body-dim); margin-bottom: 12px; }
.share-box .promo { font-size: 0.96rem; color: var(--body); line-height: 1.7; margin-bottom: 16px; }
.share-box .promo .code-hl { color: var(--accent); font-family: var(--mono); font-weight: 600; }

/* retry note */
.retry-note {
  color: #ffb347; font-size: 0.9rem; text-align: center; margin: 14px auto 0; max-width: 44ch;
}

/* ============================================================
   AFFILIATE TERMS PAGE
   ============================================================ */
.terms-hero { padding-top: clamp(48px, 8vw, 90px); padding-bottom: clamp(12px, 3vw, 28px); }
.terms-hero h1 { font-size: clamp(1.8rem, 5.2vw, 3rem); line-height: 1.18; margin-bottom: 14px; max-width: 24ch; }
.terms-updated { font-family: var(--mono); font-size: 0.8rem; color: var(--body-dim); }
.terms-list { max-width: 760px; display: flex; flex-direction: column; gap: 14px; }
.terms-sec {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: border-color .2s ease;
}
.terms-sec:hover { border-color: var(--border); }
.terms-num {
  font-family: var(--mono); font-size: 0.78rem; color: var(--accent);
  letter-spacing: 0.04em; direction: ltr; display: inline-block; margin-bottom: 10px;
}
.terms-sec h2 { font-size: 1.12rem; margin-bottom: 8px; }
.terms-sec p { color: var(--body); font-size: 0.97rem; line-height: 1.75; }
.terms-agree {
  max-width: 760px; margin-top: 28px;
  font-family: var(--mono); font-size: 0.84rem; color: var(--accent);
  border-top: 1px solid var(--border-soft); padding-top: 22px;
}
