/* =========================================================
   Tech Courses Landing Page — styles
   Edit the tokens in :root to rebrand the whole page.
   ========================================================= */
:root {
  --ground: #F3F1EC;
  --surface: #FFFFFF;
  --ink: #111316;
  --ink-2: #3A3F47;
  --muted: #4A4F57;
  --line: #DDD8CE;
  --line-soft: #E1DDD4;
  --tint: #EEEBE4;

  --accent: #2747F5;
  --accent-hover: #1A33C2;
  --lime: #C9F25C;

  --dark: #111316;
  --dark-2: #1A1D22;
  --dark-3: #20242A;
  --dark-line: #2E333B;
  --dark-text: #C7CBD2;
  --dark-muted: #A9AFB8;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
h1, h2, h3 { font-family: var(--font-display); }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: 24px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip-link:focus { top: 16px; color: #fff; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 20px) scale(.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }

.rise { animation: rise .8s var(--ease) both; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; }
.d4 { animation-delay: .55s; } .d5 { animation-delay: .7s; } .d6 { animation-delay: .85s; }
.floaty { animation: floaty 5s ease-in-out infinite; }

/* Scroll reveal (activated by script.js; content stays visible without JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 600 15px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; box-shadow: 0 12px 28px -10px rgba(39, 71, 245, .6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--ground); }
.btn-light { background: var(--ground); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); box-shadow: 0 12px 28px -12px rgba(0, 0, 0, .5); }

/* Click ripple */
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(243, 241, 236, .86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 8px 24px -20px rgba(17, 19, 22, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--ink); color: var(--lime); display: grid; place-items: center; font: 700 16px var(--font-mono); }
.brand-name { font: 700 20px var(--font-display); letter-spacing: -.02em; }
.nav-links { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.nav-link { position: relative; padding: 6px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav-link::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; padding: 0 14px; }
.mobile-menu { display: flex; flex-direction: column; gap: 6px; padding: 8px 24px 24px; animation: rise .35s ease both; }
.mobile-menu .nav-link { padding: 12px 0; font-size: 18px; }
.mobile-menu .btn { margin-top: 8px; }
.mobile-menu[hidden] { display: none; }

@media (max-width: 1100px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  padding-block: 88px 96px;
}
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.pill { align-self: flex-start; display: inline-flex; gap: 10px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font: 500 13px var(--font-mono); color: var(--ink-2); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-title { margin: 0; font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -.035em; }
.hero-title mark { background: var(--lime); color: inherit; padding: 0 .12em; border-radius: 8px; }
.hero-sub { margin: 0; max-width: 520px; font-size: 19px; line-height: 1.6; color: var(--ink-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; color: var(--ink-2); }
.hero-points li { display: flex; gap: 8px; align-items: center; }
.check { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-visual { position: relative; padding: 24px; }
.ring { position: absolute; width: 420px; height: 420px; right: -60px; top: -40px; opacity: .5; animation: spin 40s linear infinite; pointer-events: none; }
.ring circle { fill: none; stroke: #B9B3A6; stroke-width: 1.5; stroke-dasharray: 4 10; }
.code-card { position: relative; background: var(--dark); border-radius: 22px; box-shadow: 0 40px 80px -40px rgba(17, 19, 22, .7); overflow: hidden; transition: transform .4s var(--ease); }
.code-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid #2A2E35; }
.code-bar span { width: 12px; height: 12px; border-radius: 50%; background: #3A3F47; }
.code-bar em { margin-left: 10px; font: normal 13px var(--font-mono); color: #8C939D; }
.code { margin: 0; padding: 26px 24px 30px; font: 15px/1.9 var(--font-mono); color: #D7DBE0; white-space: pre-wrap; }
.code .line { display: block; opacity: 0; animation: rise .6s var(--ease) both; }
.code .line:nth-child(1) { animation-delay: .5s; } .code .line:nth-child(2) { animation-delay: .8s; }
.code .line:nth-child(3) { animation-delay: 1.1s; } .code .line:nth-child(4) { animation-delay: 1.4s; }
.code .line:nth-child(5) { animation-delay: 1.7s; }
.c-com { color: #8C939D; } .c-key { color: #9DB4FF; } .c-acc { color: var(--lime); } .c-str { color: #FFB380; }
.caret { display: inline-block; width: 9px; height: 18px; background: var(--lime); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
.float-badge { position: absolute; left: -6px; bottom: -14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 18px 30px -18px rgba(17, 19, 22, .4); }
.float-badge strong { display: block; font-size: 15px; }
.float-badge small { display: block; font-size: 13px; color: var(--muted); }
.float-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--lime); display: grid; place-items: center; }
.float-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }

/* ---------- Sections ---------- */
.section { padding-block: 100px; }
#courses.section { padding-top: 40px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 36px; }
.section-intro { display: flex; flex-direction: column; gap: 14px; max-width: 620px; }
.section-intro h2 { margin: 0; font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.03em; }
.section-intro p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.eyebrow { font: 500 13px var(--font-mono); color: var(--accent); letter-spacing: .08em; }
.eyebrow-lime { color: var(--lime); }

/* ---------- Course filter + cards ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #CFCAC0; background: var(--surface); color: var(--ink); font: 500 14px var(--font-body); cursor: pointer; transition: all .2s ease; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--ground); }

.course-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.course {
  background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 18px;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
  animation: rise .6s var(--ease) both;
}
.course:hover { transform: translateY(-8px); border-color: var(--ink); box-shadow: 0 24px 40px -24px rgba(17, 19, 22, .45); }
.course-top { display: flex; justify-content: space-between; align-items: center; }
.course-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--ink); display: grid; place-items: center; transition: transform .35s ease, background .3s ease, color .3s ease; }
.course-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.course:hover .course-icon { transform: rotate(-8deg) scale(1.08); background: var(--accent); color: #fff; }
.tag { font: 500 12px var(--font-mono); padding: 6px 10px; border-radius: 999px; background: var(--tint); color: var(--ink-2); }
.course h3 { margin: 0 0 8px; font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.course p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.skills li { font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.course-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.course-price s { color: var(--muted); font-size: 15px; }
.course-price strong { font: 700 26px var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.course-price small { color: var(--accent); font-weight: 600; }
.course-include { display: flex; gap: 10px; align-items: center; font-weight: 600; }
.course-include input { width: 18px; height: 18px; accent-color: var(--accent); }
.course-foot { margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.course-link { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.course-link .arr { transition: transform .2s ease; }
.course:hover .course-link .arr { transform: translateX(5px); }

/* ---------- How it works ---------- */
.band-light { background: var(--surface); border-block: 1px solid var(--line-soft); }
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.step { display: flex; flex-direction: column; gap: 16px; transition: transform .3s ease; }
.step:hover { transform: translateY(-4px); }
.num { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); color: var(--ground); display: grid; place-items: center; font: 600 18px var(--font-mono); transition: background .3s ease, color .3s ease; }
.step:hover .num { background: var(--lime); color: var(--ink); }
.step h3 { margin: 0; font-weight: 600; font-size: 21px; }
.step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

/* ---------- Packages ---------- */
.band-dark { background: var(--dark); color: var(--ground); }
.band-dark .section-intro p { color: var(--dark-text); }
.packages { display: flex; flex-direction: column; gap: 44px; }
.packages .section-head { margin-bottom: 0; }

.segmented { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--dark-2); border: 1.5px solid var(--dark-line); }
.seg { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: transparent; color: var(--dark-text); font: 600 14px var(--font-body); cursor: pointer; transition: all .2s ease; }
.seg.is-on { background: var(--ground); color: var(--ink); }

.pkg-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.pkg {
  position: relative; display: flex; flex-direction: column; gap: 22px;
  padding: 32px; border-radius: 24px; text-align: left;
  background: var(--dark-2); border: 1.5px solid var(--dark-line); color: var(--ground);
  font: inherit; cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.pkg:hover { transform: translateY(-6px); border-color: #6B7280; }
.pkg.is-on { border-color: var(--lime); background: var(--dark-3); box-shadow: 0 0 0 4px rgba(201, 242, 92, .18), 0 30px 50px -30px rgba(0, 0, 0, .8); }
.pkg-top { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.pkg-name { font: 600 24px var(--font-display); }
.pkg-badges { display: flex; gap: 12px; align-items: center; }
.badge { font: 500 12px var(--font-mono); padding: 6px 10px; border-radius: 999px; background: var(--lime); color: var(--ink); }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #6B7280; display: grid; place-items: center; transition: border-color .2s ease; }
.radio::after { content: ''; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.pkg.is-on .radio { border-color: var(--lime); }
.pkg.is-on .radio::after { transform: scale(1); }
.pkg-blurb { margin: 0; font-size: 15px; line-height: 1.55; color: var(--dark-text); }
.pkg-price { display: flex; align-items: baseline; gap: 8px; }
.pkg-price strong { font: 700 40px var(--font-display); letter-spacing: -.03em; transition: opacity .2s ease; }
.pkg-price span { font-size: 15px; color: var(--dark-muted); }
.pkg-features { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid var(--dark-line); display: flex; flex-direction: column; gap: 12px; width: 100%; }
.pkg-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: #E3E6EA; }
.pkg-features .check { stroke: var(--lime); margin-top: 2px; }
.pkg-cta { margin-top: auto; font: 600 14px var(--font-body); color: var(--lime); }

.addons-wrap h3 { margin: 0 0 16px; font-weight: 600; font-size: 20px; }
.addon-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.addon { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; border: 1.5px solid var(--dark-line); background: var(--dark-2); cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.addon:hover { border-color: #6B7280; }
.addon.is-on { border-color: var(--lime); background: var(--dark-3); }
.addon input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--lime); cursor: pointer; }
.addon-body { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.addon-head { display: flex; justify-content: space-between; gap: 12px; }
.addon-price { font: 500 14px var(--font-mono); color: var(--lime); white-space: nowrap; }
.addon-desc { font-size: 14px; line-height: 1.5; color: var(--dark-muted); }

.summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: stretch; gap: 24px; padding: 22px 26px; border-radius: var(--radius); background: var(--ground); color: var(--ink); }
.summary-copy { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: min(100%, 280px); }
.summary-copy strong { font: 600 22px var(--font-display); color: var(--ink); }
.summary-meta { margin: 0; color: var(--muted); }
.summary-label { font: 500 12px var(--font-mono); color: var(--muted); letter-spacing: .06em; }
.price-breakdown { display: grid; gap: 8px; margin: 8px 0 0; }
.price-breakdown div { display: flex; justify-content: space-between; gap: 16px; }
.price-breakdown dt { color: var(--muted); }
.price-breakdown dd { margin: 0; font-weight: 600; }
.summary-pay { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 8px; }
.summary-total { font: 700 28px var(--font-display); letter-spacing: -.03em; color: var(--ink); }
.summary-save:empty { display: none; }
.summary-save { color: var(--accent); font-weight: 700; }
.flash { animation: flash .5s ease; }
@keyframes flash { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }

/* ---------- CTA band ---------- */
.cta-section { padding-block: 100px; }
.cta { position: relative; overflow: hidden; border-radius: 28px; background: var(--accent); color: #fff; padding: clamp(36px, 6vw, 72px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; }
.cta .ring { width: 380px; height: 380px; top: auto; right: -90px; bottom: -150px; opacity: .35; }
.cta .ring circle { stroke: #fff; stroke-dasharray: 3 9; }
.cta-copy { position: relative; display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.cta-copy h2 { margin: 0; font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem); line-height: 1.08; letter-spacing: -.03em; }
.cta-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: #E6EAFF; }
.cta .btn { position: relative; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: var(--ground); }
.marquee-wrap { overflow: hidden; padding: 30px 0; border-bottom: 1px solid #2A2E35; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee { display: flex; gap: 56px; width: max-content; animation: marquee 28s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.plogo { font: 700 20px var(--font-display); color: #9BA1AA; letter-spacing: -.01em; white-space: nowrap; transition: color .2s ease; }
.plogo:hover { color: var(--ground); }

.footer-grid { display: grid; gap: 48px 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); padding-block: 48px 40px; border-top: 1px solid #2A2E35; margin-top: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 16px; }
.footer-col h3 { margin: 0 0 4px; font: 600 13px var(--font-mono); letter-spacing: .1em; color: var(--lime); }
.f-link { color: var(--dark-text); text-decoration: none; font-size: 15px; font-style: normal; transition: color .2s ease, padding .2s ease; }
a.f-link:hover { color: var(--lime); padding-left: 4px; }
.with-icon { display: flex; gap: 12px; align-items: flex-start; }
.with-icon svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f-muted { font-size: 14px; color: #8C939D; }
.f-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--dark-text); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social { width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--dark-line); display: grid; place-items: center; color: var(--ground); transition: all .25s ease; }
.social svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.social:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); transform: translateY(-3px) rotate(-6deg); }
.partner-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border: 1.5px solid var(--dark-line); border-radius: 14px; transition: border-color .25s ease, transform .25s ease; }
.partner-card:hover { border-color: var(--lime); transform: translateY(-3px); }
.partner-name { font: 700 24px var(--font-display); letter-spacing: .02em; color: var(--ground); transition: color .25s ease; }
.partner-card:hover .partner-name { color: var(--lime); }

.footer-brand { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-block: 56px 0; }
.brand-light, .brand-light:hover { color: var(--ground); }
.brand-light .brand-mark { background: var(--lime); color: var(--ink); }
.footer-tagline { margin: 0; font: 500 clamp(1.1rem, 2.2vw, 1.4rem)/1.35 var(--font-display); color: var(--dark-text); max-width: 520px; }
.footer-motto { color: var(--lime); font-family: var(--font-mono); font-size: 13px; letter-spacing: .02em; }
.btn-outline-light { align-self: flex-start; background: transparent; color: var(--ground); border-color: var(--dark-line); }
.btn-outline-light:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }

.newsletter { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 22px; margin-bottom: 40px; border-radius: 18px; border: 1.5px solid var(--dark-line); }
.newsletter label { flex: 1 1 260px; font: 600 17px var(--font-display); }
.field { flex: 1 1 200px; min-width: 0; min-height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--dark-line); background: var(--dark-2); color: var(--ground); font: 15px var(--font-body); transition: border-color .2s ease; }
.field::placeholder { color: #8C939D; }
.field:focus { border-color: var(--lime); outline: none; }

.footer-bottom { border-top: 1px solid #2A2E35; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; font-size: 14px; color: #8C939D; }
.legal { display: flex; flex-wrap: wrap; gap: 24px; }
.legal .f-link { font-size: 14px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 60; transform: translateX(-50%); display: flex; gap: 14px; align-items: center; padding: 10px 10px 10px 20px; max-width: calc(100vw - 32px); border-radius: 16px; background: var(--dark); color: var(--ground); box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .6); animation: pop .4s var(--ease) both; }
.toast[hidden] { display: none; }
.toast-icon { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; flex: none; }
.toast-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.toast-close { width: 44px; height: 44px; border: 0; background: transparent; color: var(--dark-text); font-size: 22px; cursor: pointer; border-radius: 10px; }
.toast-close:hover { background: var(--dark-2); }

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