/* ── CSS Variables ─────────────────────────────────────────────────── */
:root {
  --background:  hsl(0,0%,100%);
  --foreground:  hsl(224,45%,12%);
  --primary:     #0058fb;
  --primary-fg:  hsl(0,0%,100%);
  --secondary:   #2b7cff;
  --secondary-fg:hsl(0,0%,100%);
  --card:        hsl(0,0%,100%);
  --muted:       hsl(220,20%,95%);
  --border:      hsl(220,20%,88%);
  --radius:      0.75rem;
  --section-bg:  hsl(0,0%,100%);
  --section-bg-2:hsl(210,40%,98%);
  --section-bg-3:hsl(210,30%,96%);
  --section-line:rgba(0,0,0,.08);
  --section-green:rgba(0, 88, 251, .05);
  --section-cyan:rgba(0,150,180,.045);
  --band-emerald:#eef4ff;
  --band-cyan:hsl(189,45%,95%);
  --band-graphite:hsl(220,15%,95%);
  --band-ink:hsl(224,30%,96%);
  --band-support:#f3f7ff;
  --band-warm:hsl(230,20%,96%);

  /* Dark-mode values, reused for the hero and final-CTA sections */
  --background-dark:  hsl(224,71%,4%);
  --foreground-dark:  hsl(213,31%,91%);
  --primary-dark:     #0058fb;
  --primary-fg-dark:  hsl(0,0%,100%);
  --secondary-dark:   #7aa8ff;
  --secondary-fg-dark:hsl(224,71%,4%);
  --card-dark:        hsl(224,71%,7%);
  --muted-dark:       hsl(224,71%,12%);
  --border-dark:      hsl(224,71%,12%);
  --section-line-dark:rgba(255,255,255,.065);

  /* Shared button tokens — keep every CTA/button family visually consistent */
  --btn-radius:      8px;
  --btn-weight:      800;
  --btn-height:      3.35rem;
  --btn-padding:     .8rem 1.35rem;
  --btn-font-size:   1rem;
  --btn-dark-bg:     hsl(224, 38%, 13%);
  --btn-dark-bg-hover: hsl(224, 38%, 18%);
  --btn-dark-border: hsl(220, 18%, 18%);
  --btn-light-bg:    #fff;
  --btn-light-border:var(--primary);
  --btn-shadow:      none;

  /* Shared font-weight scale — Plus Jakarta Sans loads 400/500/600/700/800 */
  --fw-body:     500;
  --fw-medium:   600;
  --fw-heading:  700;
  --fw-emphasis: 800;
}

/* Hero and final-CTA stay dark for visual bookending against the light sections */
.hero-section,
.cta-section,
.wa-section {
  --background:  var(--background-dark);
  --foreground:  var(--foreground-dark);
  --primary:     var(--primary-dark);
  --primary-fg:  var(--primary-fg-dark);
  --secondary:   var(--secondary-dark);
  --secondary-fg:var(--secondary-fg-dark);
  --card:        var(--card-dark);
  --muted:       var(--muted-dark);
  --border:      var(--border-dark);
  --section-line:var(--section-line-dark);
  background-color: var(--background);
  color: var(--foreground);
}

/* ── Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

::selection { background: var(--primary); color: var(--primary-fg); }

/* ── Typography ────────────────────────────────────────────────────── */
.font-display, h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Custom Utilities ──────────────────────────────────────────────── */
.text-gradient {
  color: var(--primary);
}

.hero-gradient-text {
  color: var(--primary);
}

.glass-panel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

.eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: var(--fw-emphasis);
  text-transform: none;
  color: var(--primary);
}

/* ── Gradient Border Card ──────────────────────────────────────────── */
.gradient-border-card { position: relative; }
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: rgba(255,255,255,0.1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.3s;
  opacity: 0;
}
.gradient-border-card:hover::before { opacity: 1; }

/* ── Cyberpunk Corner Cuts ─────────────────────────────────────────── */
.cyber-card {
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.cyber-card-sm {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* ── Scroll Progress Bar ───────────────────────────────────────────── */
#scroll-progress {
  width: 0%;
  height: 2px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transform-origin: left;
  background: linear-gradient(90deg, #0058fb, #7aa8ff, #0058fb);
  transition: none;
}

/* ── Mobile Sticky Bar ─────────────────────────────────────────────── */
#mobile-sticky-bar {
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22,1,0.36,1);
}
#mobile-sticky-bar.visible { transform: translateY(0); }

/* ── Accordion ─────────────────────────────────────────────────────── */
.accordion-item { border-radius: 8px; overflow: hidden; transition: border-color 0.2s; }
.accordion-header {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  gap: 1rem;
  transition: color 0.2s;
}
.accordion-header:hover { color: var(--primary); }
.accordion-header::marker, .accordion-header::-webkit-details-marker { display: none; }
.accordion-chevron { width: 1rem; height: 1rem; flex-shrink: 0; transition: transform 0.3s; }
.accordion-item[open] .accordion-chevron { transform: rotate(180deg); }
.accordion-item[open] .accordion-header { color: var(--primary); }
.accordion-body { color: var(--muted-fg); }

/* ── Navbar links ──────────────────────────────────────────────────── */
.nav-link { position: relative; }
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: .875rem;
  right: .875rem;
  height: 2px;
  border-radius: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.22,1,0.36,1);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link:hover { color: var(--foreground); }

/* ── Magnetic button ───────────────────────────────────────────────── */
.magnetic-btn { transition: transform 0.2s cubic-bezier(0.22,1,0.36,1); display: inline-block; }

/* ── Step connector line ───────────────────────────────────────────── */
.step-line {
  position: absolute;
  left: 39px;
  top: 3.5rem;
  bottom: 3.5rem;
  width: 2px;
  border-left: 2px dashed rgba(0, 88, 251, 0.2);
}

/* ── Scrollbar ─────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--background); }
::-webkit-scrollbar-thumb { background: hsl(224,71%,16%); border-radius: 3px; }

/* ── Responsive nav hide ───────────────────────────────────────────── */
@media (min-width: 768px) {
  #mobile-sticky-bar { display: none; }
}

/* ============================================================
   UTILITY CSS — replaces Tailwind CDN
   Breakpoints: sm ≥640  md ≥768  lg ≥1024  xl ≥1280
   ============================================================ */

/* --- Display --- */
.flex         { display: flex; }
.inline-flex  { display: inline-flex; }
.grid         { display: grid; }
.block        { display: block; }
.inline-block { display: inline-block; }
.hidden       { display: none; }

/* --- Flexbox --- */
.flex-col      { flex-direction: column; }
.flex-row      { flex-direction: row; }
.flex-wrap     { flex-wrap: wrap; }
.flex-1        { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-center  { justify-content: center; }
.justify-between { justify-content: space-between; }
.self-center     { align-self: center; }

.-space-x-2 > * + * { margin-left: -0.5rem; }

/* --- Grid --- */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed    { position: fixed; }

.inset-0  { top: 0; right: 0; bottom: 0; left: 0; }
.top-0    { top: 0; }
.bottom-0 { bottom: 0; }
.left-0   { left: 0; }
.right-0  { right: 0; }

.z-0  { z-index: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-45 { z-index: 45; }
.z-50 { z-index: 50; }

/* --- Overflow --- */
.overflow-hidden   { overflow: hidden; }
.overflow-x-hidden { overflow-x: hidden; }

/* --- Pointer / Cursor --- */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.cursor-pointer      { cursor: pointer; }

/* --- Sizing --- */
.w-fit        { width: fit-content; }
.w-full       { width: 100%; }
.h-full       { height: 100%; }
.min-h-screen { min-height: 100vh; }

.w-2   { width: 0.5rem; }
.w-3   { width: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.w-4   { width: 1rem; }
.w-5   { width: 1.25rem; }
.w-6   { width: 1.5rem; }
.w-7   { width: 1.75rem; }
.w-8   { width: 2rem; }
.w-12  { width: 3rem; }
.w-16  { width: 4rem; }
.w-28  { width: 7rem; }

.h-2  { height: 0.5rem; }
.h-3  { height: 0.75rem; }
.h-3\.5 { height: 0.875rem; }
.h-4  { height: 1rem; }
.h-5  { height: 1.25rem; }
.h-6  { height: 1.5rem; }
.h-7  { height: 1.75rem; }
.h-8  { height: 2rem; }
.h-9  { height: 2.25rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }

.max-w-xl   { max-width: 36rem; }
.max-w-2xl  { max-width: 42rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-52ch { max-width: 52ch; }

/* --- Container --- */
.container { width: 100%; max-width: 80rem; padding-left: 1.5rem; padding-right: 1.5rem; }

/* --- Gap --- */
.gap-0\.5 { gap: 0.125rem; }
.gap-1    { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2    { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3    { gap: 0.75rem; }
.gap-4    { gap: 1rem; }
.gap-5    { gap: 1.25rem; }
.gap-6    { gap: 1.5rem; }
.gap-10   { gap: 2.5rem; }
.gap-14   { gap: 3.5rem; }
.gap-16   { gap: 4rem; }
.gap-x-6  { column-gap: 1.5rem; }
.gap-y-2  { row-gap: 0.5rem; }
.gap-y-10 { row-gap: 2.5rem; }

/* --- Padding --- */
.p-4  { padding: 1rem; }
.p-6  { padding: 1.5rem; }
.p-7  { padding: 1.75rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-16 { padding: 4rem; }

.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3    { padding-left: 0.75rem;  padding-right: 0.75rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.px-4    { padding-left: 1rem;     padding-right: 1rem; }
.px-5    { padding-left: 1.25rem;  padding-right: 1.25rem; }
.px-6    { padding-left: 1.5rem;   padding-right: 1.5rem; }
.px-8    { padding-left: 2rem;     padding-right: 2rem; }
.px-9    { padding-left: 2.25rem;  padding-right: 2.25rem; }
.px-10   { padding-left: 2.5rem;   padding-right: 2.5rem; }
.px-14   { padding-left: 3.5rem;   padding-right: 3.5rem; }

.py-1    { padding-top: 0.25rem;   padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem;  padding-bottom: 0.375rem; }
.py-2    { padding-top: 0.5rem;    padding-bottom: 0.5rem; }
.py-3    { padding-top: 0.75rem;   padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem;  padding-bottom: 0.875rem; }
.py-4    { padding-top: 1rem;      padding-bottom: 1rem; }
.py-5    { padding-top: 1.25rem;   padding-bottom: 1.25rem; }
.py-7    { padding-top: 1.75rem;   padding-bottom: 1.75rem; }
.py-14   { padding-top: 3.5rem;    padding-bottom: 3.5rem; }
.py-20   { padding-top: 5rem;      padding-bottom: 5rem; }
.py-24   { padding-top: 6rem;      padding-bottom: 6rem; }
.py-28   { padding-top: 7rem;      padding-bottom: 7rem; }
.py-32   { padding-top: 8rem;      padding-bottom: 8rem; }

.pt-1  { padding-top: 0.25rem; }
.pt-4  { padding-top: 1rem; }
.pt-5  { padding-top: 1.25rem; }
.pt-8  { padding-top: 2rem; }
.pt-10 { padding-top: 2.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-24 { padding-top: 6rem; }

.pb-3  { padding-bottom: 0.75rem; }
.pb-4  { padding-bottom: 1rem; }
.pb-10 { padding-bottom: 2.5rem; }
.pb-20 { padding-bottom: 5rem; }

.pl-1  { padding-left: 0.25rem; }
.pl-6  { padding-left: 1.5rem; }
.pr-4  { padding-right: 1rem; }

/* --- Margin --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-auto { margin-left: auto; }
.mb-2  { margin-bottom: 0.5rem; }
.mb-3  { margin-bottom: 0.75rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mb-7  { margin-bottom: 1.75rem; }
.mb-8  { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-14 { margin-bottom: 3.5rem; }
.mb-16 { margin-bottom: 4rem; }

.mt-2  { margin-top: 0.5rem; }
.mt-3  { margin-top: 0.75rem; }
.mt-4  { margin-top: 1rem; }
.mt-5  { margin-top: 1.25rem; }
.mt-8  { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

/* --- Typography --- */
.font-medium   { font-weight: var(--fw-body); }
.font-semibold { font-weight: var(--fw-medium); }
.font-bold     { font-weight: var(--fw-heading); }
.font-black    { font-weight: var(--fw-emphasis); }

.text-10px { font-size: 10px; }
.text-xs   { font-size: 0.75rem;  line-height: 1rem; }
.text-sm   { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem;     line-height: 1.5rem; }
.text-lg   { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl   { font-size: 1.25rem;  line-height: 1.75rem; }
.text-2xl  { font-size: 1.5rem;   line-height: 2rem; }
.text-3xl  { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl  { font-size: 2.25rem;  line-height: 2.5rem; }
.text-5xl  { font-size: 3rem;     line-height: 1; }
.text-6xl  { font-size: 3.75rem;  line-height: 1; }
.text-7xl  { font-size: 4.5rem;   line-height: 1; }
.text-8xl  { font-size: 6rem;     line-height: 1; }

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.text-inherit { color: inherit; }

.uppercase        { text-transform: none; }
.italic           { font-style: italic; }
.whitespace-nowrap { white-space: nowrap; }

.leading-09      { line-height: 0.9; }
.leading-088     { line-height: 0.88; }
.leading-none    { line-height: 1; }
.leading-tight   { line-height: 1.25; }
.leading-snug    { line-height: 1.375; }
.leading-relaxed { line-height: 1.625; }
.tracking-wide    { letter-spacing: 0; }
.tracking-wider   { letter-spacing: 0; }
.tracking-widest  { letter-spacing: 0; }

/* --- Border Radius --- */
.rounded     { border-radius: 0.25rem; }
.rounded-lg  { border-radius: 0.5rem; }
.rounded-xl  { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full        { border-radius: 9999px; }
.rounded-r-2xl       { border-top-right-radius: 1rem; border-bottom-right-radius: 1rem; }
.rounded-t-3xl       { border-top-left-radius: 1.5rem; border-top-right-radius: 1.5rem; }
.rounded-225rem      { border-radius: 2.25rem; }

/* --- Border --- */
.border   { border-width: 1px; border-style: solid; }
.border-2 { border-width: 2px; border-style: solid; }
.border-t { border-top: 1px solid; }
.border-b { border-bottom: 1px solid; }
.border-none { border: none; }

.border-white\/5  { border-color: rgba(255,255,255,0.05); }
.border-white\/6  { border-color: rgba(255,255,255,0.06); }
.border-white\/8  { border-color: rgba(255,255,255,0.08); }
.border-white\/10 { border-color: rgba(255,255,255,0.10); }

/* --- Background --- */
.bg-transparent { background-color: transparent; }

/* --- Opacity --- */
.opacity-25 { opacity: 0.25; }
.opacity-35 { opacity: 0.35; }
.opacity-50 { opacity: 0.5; }

/* --- Shadow --- */
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.2); }

/* --- Transitions --- */
.transition-all       { transition: all 0.15s cubic-bezier(0.4,0,0.2,1); }
.transition-colors    { transition: color 0.15s, background-color 0.15s, border-color 0.15s; }
.transition-transform { transition: transform 0.15s cubic-bezier(0.4,0,0.2,1); }
.transition-opacity   { transition: opacity 0.15s cubic-bezier(0.4,0,0.2,1); }
.duration-300         { transition-duration: 300ms; }

/* --- Scale / Transform --- */
.scale-105 { transform: scale(1.05); }

/* --- Order --- */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* --- Hover --- */
.hover\:scale-105:hover      { transform: scale(1.05); }
.hover\:opacity-80:hover     { opacity: 0.8; }
.hover\:text-primary:hover   { color: var(--primary); }

.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* --- Prose (page.php content) --- */
.prose-invert h1,.prose-invert h2,.prose-invert h3,.prose-invert h4 { color: #fff; margin-bottom: 0.75rem; }
.prose-invert p  { margin-bottom: 1rem; }
.prose-invert a  { color: var(--primary); }
.prose-invert ul,.prose-invert ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.prose-invert li { margin-bottom: 0.375rem; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */

/* sm: ≥ 640px */
@media (min-width: 640px) {
  .sm\:text-6xl  { font-size: 3.75rem; line-height: 1; }
  .sm\:text-7xl  { font-size: 4.5rem;  line-height: 1; }
  .sm\:text-xl   { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:flex-row  { flex-direction: row; }
  .sm\:inline    { display: inline; }
}

/* md: ≥ 768px */
@media (min-width: 768px) {
  .md\:flex          { display: flex; }
  .md\:hidden        { display: none; }
  .md\:block         { display: block; }
  .md\:flex-row      { flex-direction: row; }
  .md\:grid-cols-2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3   { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4   { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:items-center  { align-items: center; }
  .md\:p-14          { padding: 3.5rem; }
  .md\:px-12         { padding-left: 3rem; padding-right: 3rem; }
  .md\:py-24         { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-xl       { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-2xl      { font-size: 1.5rem; line-height: 2rem; }
  .md\:text-5xl      { font-size: 3rem; line-height: 1; }
  .md\:text-8xl      { font-size: 6rem; line-height: 1; }
  .md\:w-28          { width: 7rem; }
}

/* lg: ≥ 1024px */
@media (min-width: 1024px) {
  .lg\:grid-cols-2  { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:mt-0         { margin-top: 0; }
  .lg\:order-1      { order: 1; }
  .lg\:order-2      { order: 2; }
  .lg\:text-7xl     { font-size: 4.5rem; line-height: 1; }
}

/* xl: ≥ 1280px */
@media (min-width: 1280px) {
  .xl\:text-8xl { font-size: 6rem; line-height: 1; }
}

/* ============================================================
   CTA ROW
   ============================================================ */

.cta-btn-row {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}
