/* ============================================================
   AtoZ Telecom Solutions — Core Stylesheet
   Design system, layout primitives, shared components
   ============================================================ */

/* ---------- 1. Design Tokens ---------- */
:root {
  --bg: #050816;
  --surface: #0B1220;
  --card: #111827;
  --primary: #00C8FF;
  --secondary: #00E5FF;
  --accent: #6C63FF;
  --success: #10B981;
  --warning: #F59E0B;
  --text: #F8FAFC;
  --muted: #94A3B8;
  --border: rgba(255, 255, 255, .08);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-alt: 'Plus Jakarta Sans', sans-serif;

  --grad-primary: linear-gradient(135deg, #00C8FF 0%, #6C63FF 100%);
  --grad-text: linear-gradient(90deg, #00C8FF, #00E5FF 45%, #6C63FF);
  --glow-primary: 0 0 40px rgba(0, 200, 255, .25);
  --glow-accent: 0 0 40px rgba(108, 99, 255, .25);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4.5rem, 9vw, 8.5rem);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --dur: .55s;
}

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

html {
  scroll-behavior: auto; /* Lenis handles smoothing */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg, video, canvas { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
::selection { background: rgba(0, 200, 255, .35); color: #fff; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--primary), var(--accent)); border-radius: 8px; }

/* Focus visibility for a11y */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 3000;
  background: var(--primary); color: #04101c; font-weight: 600;
  padding: .6rem 1.2rem; border-radius: 0 0 10px 10px;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 0; }

/* ---------- 3. Layout primitives ---------- */
.container { width: min(var(--container), 100% - var(--gutter) * 2); margin-inline: auto; }
.section { padding-block: var(--section-pad); position: relative; }
.section--tight { padding-block: calc(var(--section-pad) * .6); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- 4. Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-alt); font-size: .8rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--primary);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 34px; height: 2px; border-radius: 2px;
  background: var(--grad-primary); flex: none;
}

.h-xl { font-size: clamp(2.6rem, 6.5vw, 5rem); }
.h-lg { font-size: clamp(2rem, 4.6vw, 3.4rem); }
.h-md { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.h-sm { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.text-gradient {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  background-size: 200% auto;
  animation: gradient-pan 6s linear infinite;
}
@keyframes gradient-pan { to { background-position: 200% center; } }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 60ch; }

.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 1.1rem; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: var(--grad-primary);
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem; padding: .95rem 2rem; border-radius: 100px;
  font-family: var(--font-alt); font-weight: 600; font-size: .95rem;
  color: #04101c; background: var(--btn-bg); background-size: 150% auto;
  overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background-position .5s;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(0, 200, 255, .55);
  background-position: right center;
}
.btn:active { transform: translateY(0) scale(.98); }

/* Shine sweep */
.btn::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.45) 50%, transparent 60%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }

.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  box-shadow: 0 12px 32px -10px rgba(108, 99, 255, .4);
  border-color: rgba(0, 200, 255, .4);
}

.btn--lg { padding: 1.15rem 2.6rem; font-size: 1.02rem; }
.btn--sm { padding: .65rem 1.4rem; font-size: .85rem; }

.btn .btn-icon { display: inline-flex; transition: transform .35s var(--ease-out); }
.btn:hover .btn-icon { transform: translateX(4px); }

/* Ripple (injected by JS) */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.5); transform: scale(0); opacity: .7;
  animation: ripple .65s var(--ease-out) forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- 6. Cards / glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius);
}

.card {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.6vw, 2.2rem);
  overflow: hidden; isolation: isolate;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), box-shadow var(--dur);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 200, 255, .28);
  box-shadow: 0 22px 48px -18px rgba(0, 0, 0, .65), var(--glow-primary);
}

/* Mouse-follow glow (JS sets --mx / --my) */
.card--glow::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(0,200,255,.13), transparent 45%);
  transition: opacity .45s;
}
.card--glow:hover::before { opacity: 1; }

.card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 1.4rem;
  background: linear-gradient(135deg, rgba(0,200,255,.14), rgba(108,99,255,.14));
  border: 1px solid rgba(0,200,255,.22);
  color: var(--primary);
  transition: transform .5s var(--ease-out), box-shadow .5s;
}
.card:hover .card-icon {
  transform: translateY(-4px) rotate(-6deg) scale(1.06);
  box-shadow: var(--glow-primary);
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { font-size: 1.22rem; margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: .95rem; }

.card-link {
  display: inline-flex; align-items: center; gap: .45rem;
  margin-top: 1.15rem; font-family: var(--font-alt); font-weight: 600;
  font-size: .88rem; color: var(--primary);
}
.card-link svg { width: 15px; height: 15px; transition: transform .35s var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }

/* Animated gradient border card */
.card--border { padding: 1px; background: none; border: 0; border-radius: var(--radius); }
.card--border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; z-index: -2;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 65%, var(--primary) 80%, var(--accent) 90%, transparent 100%);
  animation: border-spin 5s linear infinite;
}
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --spin: 360deg; } }
.card--border > .card-inner {
  background: #0c1424; border-radius: calc(var(--radius) - 1px);
  padding: clamp(1.5rem, 2.6vw, 2.2rem); height: 100%; position: relative; z-index: 1;
}

/* ---------- 7. Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 4000;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2rem;
}
.preloader__logo {
  font-family: var(--font-heading); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700;
  display: flex; overflow: hidden;
}
.preloader__logo span { display: inline-block; transform: translateY(110%); }
.preloader__fiber {
  width: min(320px, 70vw); height: 3px; border-radius: 4px;
  background: rgba(255,255,255,.08); overflow: hidden; position: relative;
}
.preloader__fiber-pulse {
  position: absolute; inset: 0; width: 0%;
  background: var(--grad-primary); border-radius: 4px;
  box-shadow: 0 0 18px rgba(0,200,255,.8);
}
.preloader__pct {
  font-family: var(--font-heading); font-size: .95rem; letter-spacing: .18em; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.preloader.is-done { pointer-events: none; }

/* ---------- 8. Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  z-index: 1600; pointer-events: none;
}
.scroll-progress__bar {
  height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad-primary); box-shadow: 0 0 12px rgba(0,200,255,.6);
}

/* ---------- 9. Custom cursor ---------- */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; pointer-events: none; z-index: 3500;
  border-radius: 50%; transform: translate(-50%, -50%);
}
.cursor-dot {
  width: 7px; height: 7px; background: var(--secondary);
  box-shadow: 0 0 12px rgba(0,229,255,.9);
}
.cursor-ring {
  width: 38px; height: 38px; border: 1.5px solid rgba(0,200,255,.55);
  transition: width .3s var(--ease-out), height .3s var(--ease-out),
              border-color .3s, background-color .3s;
}
.cursor-ring.is-hover {
  width: 62px; height: 62px;
  background: rgba(0,200,255,.08); border-color: rgba(0,229,255,.9);
}
.cursor-ring.is-down { width: 26px; height: 26px; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- 10. Header / Navigation ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1500;
  transition: transform .45s var(--ease-out);
}
.header.is-hidden { transform: translateY(-110%); }

.nav {
  margin: 1rem auto 0;
  width: min(var(--container), 100% - var(--gutter) * 2);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: .85rem 1.6rem;
  border-radius: 18px;
  background: rgba(11, 18, 32, .55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: padding .4s var(--ease-out), background-color .4s, box-shadow .4s;
}
.header.is-scrolled .nav {
  padding: .55rem 1.6rem;
  background: rgba(8, 13, 26, .82);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.7);
}

.brand {
  display: flex; align-items: center; gap: .7rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em;
}
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand b { color: var(--primary); }

.nav__links { display: flex; align-items: center; gap: .25rem; }
.nav__links > li { position: relative; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .35rem;
  padding: .55rem .85rem; font-family: var(--font-alt); font-size: .92rem; font-weight: 500;
  color: var(--muted); border-radius: 10px;
  transition: color .3s;
}
.nav__link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .3rem;
  height: 2px; border-radius: 2px; background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--text); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link .caret { width: 11px; height: 11px; transition: transform .3s var(--ease-out); }
li:hover > .nav__link .caret { transform: rotate(180deg); }

/* Mega dropdown */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: min(680px, 90vw);
  background: rgba(10, 16, 30, .92);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.75);
  padding: 1.4rem; display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility 0s .35s;
}
li:hover > .mega, li:focus-within > .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
}
.mega a {
  display: flex; gap: .9rem; align-items: flex-start;
  padding: .85rem .95rem; border-radius: 12px;
  transition: background-color .3s;
}
.mega a:hover { background: rgba(0, 200, 255, .07); }
.mega__icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center; color: var(--primary);
  background: rgba(0,200,255,.1); border: 1px solid rgba(0,200,255,.18);
}
.mega__icon svg { width: 20px; height: 20px; }
.mega b { display: block; font-family: var(--font-alt); font-size: .92rem; font-weight: 600; }
.mega span { font-size: .8rem; color: var(--muted); line-height: 1.45; }

.nav__cta { display: flex; align-items: center; gap: .8rem; }
.nav__phone {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-alt); font-size: .9rem; font-weight: 600; color: var(--text);
  transition: color .3s;
}
.nav__phone svg { width: 17px; height: 17px; color: var(--primary); }
.nav__phone:hover { color: var(--primary); }

/* Hamburger */
.hamburger {
  display: none; position: relative; z-index: 1701;
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.04);
  place-items: center;
}
.hamburger span {
  display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .4s var(--ease-io), opacity .3s; margin: 2.5px 0;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1700;
  background: rgba(5, 8, 22, .96);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gutter) 3rem;
  clip-path: circle(0% at calc(100% - 3rem) 3rem);
  visibility: hidden;
  transition: clip-path .7s var(--ease-io), visibility 0s .7s;
}
.mobile-menu.is-open {
  clip-path: circle(150% at calc(100% - 3rem) 3rem);
  visibility: visible; transition-delay: 0s;
}
.mobile-menu ul { display: flex; flex-direction: column; gap: .35rem; }
.mobile-menu a.mobile-link {
  display: block; font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(1.7rem, 6vw, 2.6rem); padding: .4rem 0;
  color: var(--text); overflow: hidden;
  opacity: 0; transform: translateY(30px);
  transition: color .3s;
}
.mobile-menu a.mobile-link:hover { color: var(--primary); }
.mobile-menu.is-open a.mobile-link { animation: mob-in .6s var(--ease-out) forwards; }
.mobile-menu.is-open li:nth-child(1) a { animation-delay: .15s; }
.mobile-menu.is-open li:nth-child(2) a { animation-delay: .2s; }
.mobile-menu.is-open li:nth-child(3) a { animation-delay: .25s; }
.mobile-menu.is-open li:nth-child(4) a { animation-delay: .3s; }
.mobile-menu.is-open li:nth-child(5) a { animation-delay: .35s; }
.mobile-menu.is-open li:nth-child(6) a { animation-delay: .4s; }
.mobile-menu.is-open li:nth-child(7) a { animation-delay: .45s; }
.mobile-menu.is-open li:nth-child(8) a { animation-delay: .5s; }
.mobile-menu.is-open li:nth-child(9) a { animation-delay: .55s; }
.mobile-menu.is-open li:nth-child(10) a { animation-delay: .6s; }
@keyframes mob-in { to { opacity: 1; transform: translateY(0); } }
.mobile-menu__foot {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  color: var(--muted); font-size: .9rem;
}

@media (max-width: 1080px) {
  .nav__links, .nav__cta .btn, .nav__phone { display: none; }
  .hamburger { display: grid; }
}

/* ---------- 11. Reveal helpers (JS-driven; graceful without JS) ---------- */
.reveal, .reveal-blur, .reveal-clip, .split-lines { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(44px); }
html.js .reveal-blur { opacity: 0; filter: blur(14px); transform: translateY(24px); }
html.js .reveal-clip { clip-path: inset(0 0 100% 0); }
html.js [data-stagger] > * { opacity: 0; transform: translateY(38px); }

/* Image reveal frame */
.img-reveal { position: relative; overflow: hidden; border-radius: var(--radius-lg); }
.img-reveal__cover {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transform-origin: left center;
}
.img-reveal img, .img-reveal .img-fill { transform: scale(1.15); }

/* Floating animation */
.float { animation: floaty 6s ease-in-out infinite; }
.float--slow { animation-duration: 9s; }
.float--rev { animation-direction: reverse; }
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1.5deg); }
}

/* ---------- 12. Marquee ---------- */
.marquee {
  overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex; gap: 3.5rem; width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: inline-flex; align-items: center; gap: .8rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem;
  color: rgba(248, 250, 252, .35); white-space: nowrap;
  transition: color .35s, text-shadow .35s;
}
.marquee__item svg { width: 26px; height: 26px; opacity: .5; transition: opacity .35s; }
.marquee__item:hover { color: var(--text); text-shadow: 0 0 24px rgba(0,200,255,.6); }
.marquee__item:hover svg { opacity: 1; }

/* ---------- 13. Stats / counters ---------- */
.stat { text-align: left; }
.stat__num {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem); line-height: 1;
  display: flex; align-items: baseline; gap: .1em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label { margin-top: .55rem; color: var(--muted); font-size: .92rem; }

/* ---------- 14. Accordion (FAQ) ---------- */
.accordion { display: flex; flex-direction: column; gap: .9rem; }
.acc-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.012));
  overflow: hidden; transition: border-color .4s, box-shadow .4s;
}
.acc-item.is-open { border-color: rgba(0,200,255,.3); box-shadow: var(--glow-primary); }
.acc-item__head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.5rem; text-align: left;
  font-family: var(--font-alt); font-weight: 600; font-size: 1.02rem;
}
.acc-item__icon {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--primary);
  transition: transform .45s var(--ease-io), background-color .4s;
}
.acc-item__icon svg { width: 14px; height: 14px; }
.acc-item.is-open .acc-item__icon { transform: rotate(135deg); background: rgba(0,200,255,.12); }
.acc-item__body {
  max-height: 0; overflow: hidden;
  transition: max-height .55s var(--ease-io);
}
.acc-item__body-inner { padding: 0 1.5rem 1.4rem; color: var(--muted); font-size: .95rem; max-width: 65ch; }

/* ---------- 15. Forms ---------- */
.field { position: relative; margin-bottom: 1.4rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 1.05rem 1.2rem;
  background: rgba(255,255,255,.035); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  transition: border-color .35s, box-shadow .35s, background-color .35s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; }
.field option { background: var(--surface); }
.field input::placeholder, .field textarea::placeholder { color: transparent; }
.field label {
  position: absolute; left: 1.2rem; top: 1.05rem;
  color: var(--muted); font-size: .95rem; pointer-events: none;
  transition: transform .3s var(--ease-out), font-size .3s, color .3s, top .3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgba(0,200,255,.55);
  box-shadow: 0 0 0 4px rgba(0,200,255,.1); background: rgba(0,200,255,.03);
}
.field input:focus ~ label, .field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label, .field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label, .field.has-value label {
  top: -.55rem; transform: none; font-size: .74rem;
  color: var(--primary); background: var(--bg); padding-inline: .45rem; border-radius: 4px;
}
.field__msg { display: block; margin-top: .4rem; font-size: .78rem; color: #f87171; min-height: 1em; }

/* ---------- 16. Footer ---------- */
.footer {
  position: relative; margin-top: var(--section-pad);
  background: var(--surface);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.footer::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(0,200,255,.09), transparent 60%),
    radial-gradient(700px 340px at 88% 100%, rgba(108,99,255,.09), transparent 60%);
}
.footer__grid {
  position: relative; display: grid; gap: 3rem;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem;
}
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__about p { margin-top: 1.2rem; color: var(--muted); font-size: .93rem; max-width: 36ch; }
.footer h4 {
  font-family: var(--font-alt); font-size: .85rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text); margin-bottom: 1.3rem;
}
.footer__col ul { display: flex; flex-direction: column; gap: .7rem; }
.footer__col a {
  position: relative; color: var(--muted); font-size: .93rem; width: fit-content; display: inline-block;
  transition: color .3s, transform .3s var(--ease-out);
}
.footer__col a:hover { color: var(--primary); transform: translateX(5px); }

.newsletter { position: relative; margin-top: 1.4rem; max-width: 320px; }
.newsletter input {
  width: 100%; padding: .9rem 3.4rem .9rem 1.15rem;
  background: rgba(255,255,255,.045); border: 1px solid var(--border);
  border-radius: 100px; color: var(--text); font-size: .9rem;
  transition: border-color .35s, box-shadow .35s;
}
.newsletter input:focus { outline: 0; border-color: rgba(0,200,255,.5); box-shadow: 0 0 0 4px rgba(0,200,255,.1); }
.newsletter button {
  position: absolute; right: 5px; top: 5px; bottom: 5px; width: 42px;
  border-radius: 50%; background: var(--grad-primary); color: #04101c;
  display: grid; place-items: center;
  transition: transform .35s var(--ease-out), box-shadow .35s;
}
.newsletter button:hover { transform: scale(1.08); box-shadow: 0 0 18px rgba(0,200,255,.55); }
.newsletter button svg { width: 17px; height: 17px; }
.newsletter__msg { display: block; margin-top: .55rem; font-size: .8rem; color: var(--success); min-height: 1.1em; }

.socials { display: flex; gap: .7rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--border); color: var(--muted);
  transition: color .35s, border-color .35s, transform .35s var(--ease-out), box-shadow .35s;
}
.socials a:hover {
  color: var(--primary); border-color: rgba(0,200,255,.5);
  transform: translateY(-4px); box-shadow: var(--glow-primary);
}
.socials svg { width: 17px; height: 17px; }

.footer__bottom {
  position: relative;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  padding-block: 1.4rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .84rem;
}
.footer__bottom nav { display: flex; gap: 1.4rem; }
.footer__bottom a:hover { color: var(--primary); }

/* Back to top */
.to-top {
  position: fixed; right: 1.6rem; bottom: 1.6rem; z-index: 1400;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(11,18,32,.8); border: 1px solid var(--border);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: grid; place-items: center; color: var(--primary);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .4s, transform .4s var(--ease-out), visibility .4s, box-shadow .4s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { box-shadow: var(--glow-primary); }
.to-top svg { width: 18px; height: 18px; }

/* ---------- 17. Page hero (inner pages) ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(9rem, 16vw, 13rem) 0 clamp(3.5rem, 7vw, 6rem);
}
.page-hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 75% -10%, rgba(108,99,255,.14), transparent 60%),
    radial-gradient(700px 380px at 15% 10%, rgba(0,200,255,.12), transparent 60%);
}
.page-hero .container { position: relative; }
.breadcrumbs {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1.4rem;
  font-family: var(--font-alt); font-size: .82rem; color: var(--muted);
}
.breadcrumbs a { color: var(--muted); transition: color .3s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs svg { width: 12px; height: 12px; opacity: .6; }
.breadcrumbs span[aria-current] { color: var(--primary); }

/* Grid backdrop texture */
.grid-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 30%, transparent 75%);
}

/* Ambient orbs */
.orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(70px); opacity: .5; will-change: transform;
}
.orb--cyan { background: rgba(0, 200, 255, .16); }
.orb--violet { background: rgba(108, 99, 255, .17); }

/* ---------- 18. CTA band ---------- */
.cta-band { position: relative; }
.cta-band__box {
  position: relative; overflow: hidden; text-align: center;
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, rgba(0,200,255,.12), rgba(108,99,255,.14));
  border: 1px solid rgba(0,200,255,.22);
}
.cta-band__box::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 300px at 50% 120%, rgba(0,229,255,.18), transparent 65%);
}
.cta-band__box h2 { position: relative; font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: 1rem; }
.cta-band__box p { position: relative; color: var(--muted); max-width: 55ch; margin: 0 auto 2.2rem; }
.cta-band__actions { position: relative; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ---------- 19. Utility ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem 1rem; border-radius: 100px;
  font-family: var(--font-alt); font-size: .78rem; font-weight: 600;
  color: var(--secondary); background: rgba(0,200,255,.08);
  border: 1px solid rgba(0,200,255,.25);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(16,185,129,.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); }
  70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}

.divider-glow {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(90deg, transparent, rgba(0,200,255,.4), transparent);
}

/* Checkmark list */
.check-list { display: flex; flex-direction: column; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.check-list svg {
  flex: none; width: 20px; height: 20px; margin-top: .1em;
  color: var(--success);
}

/* ---------- 20. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  html.js .reveal, html.js .reveal-blur, html.js .reveal-clip, html.js [data-stagger] > * {
    opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important;
  }
}
