/* ==========================================================================
   ScaleMoodleLMS — marketing site
   Premium dark theme. Lightweight, responsive, no framework.
   Brand: indigo #4f46e5 → cyan #22d3ee on a near-black canvas.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Brand / accents (tuned for legibility on dark) */
  --brand: #4f46e5;       /* solid accent / gradients */
  --brand-600: #a5b4fc;   /* interactive text on dark (indigo-300) */
  --brand-400: #818cf8;   /* focus ring */
  --accent: #22d3ee;      /* cyan-400 */
  --accent-300: #67e8f9;

  /* Surfaces */
  --bg: #07080f;          /* page canvas */
  --surface: #0f111d;     /* cards */
  --surface-2: #0b0d18;   /* tinted sections / inputs */
  --surface-3: #161a2c;   /* hover / elevated */
  --tint: rgba(99,102,241,.10);

  /* Text */
  --ink: #f4f6fc;         /* headings */
  --body: #c6cce2;        /* body copy */
  --muted: #97a0bb;       /* secondary text (AA on all surfaces) */

  /* Lines */
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);

  /* Legacy dark-band tokens (footer / cta copy) */
  --on-dark: #eef1fb;
  --on-dark-muted: #aab3cf;

  --grad: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(99,102,241,.22), rgba(34,211,238,.16));
  --grad-text: linear-gradient(90deg, #a5b4fc 0%, #67e8f9 50%, #a5b4fc 100%);

  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 18px 50px -20px rgba(0,0,0,.7);
  --shadow-lg: 0 40px 90px -28px rgba(79,70,229,.55);
  --glow: 0 0 0 1px rgba(255,255,255,.06), 0 24px 70px -24px rgba(99,102,241,.4);
  --glow-cta: 0 14px 34px -10px rgba(79,70,229,.7);

  --container: 1140px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-y: clamp(3.5rem, 7vw, 6.5rem);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Lexend", var(--font-body);

  --ease: cubic-bezier(.16,.84,.44,1);
  --t: .25s var(--ease);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--accent-300); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.12; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(99,102,241,.4); color: #fff; }

:focus-visible { outline: 3px solid var(--brand-400); outline-offset: 2px; border-radius: 6px; }

/* Offset anchor targets so headings aren't hidden under the sticky header. */
section[id], #top, [id].faq-wrap { scroll-margin-top: 88px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }

/* Animated gradient text accent */
.grad-text {
  background: var(--grad-text); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 220% center; } }

.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top var(--t);
}
.skip-link:focus { top: 1rem; color: #fff; }

/* ---------- Eyebrow (glassy pill) ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .76rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-600); margin-bottom: 1.1rem;
  padding: .42rem .85rem; border-radius: 999px;
  background: rgba(99,102,241,.10); border: 1px solid rgba(129,140,248,.28);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34,211,238,.18); }
.eyebrow-light { color: var(--accent-300); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: .72rem 1.3rem; min-height: 46px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-lg { padding: .92rem 1.7rem; min-height: 54px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-primary { background-image: var(--grad); color: #fff; box-shadow: var(--glow-cta); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(79,70,229,.85); }

.btn-outline { background: rgba(255,255,255,.02); color: var(--ink); border-color: var(--line-strong); }
.btn-outline:hover { color: #fff; border-color: var(--brand-400); background: rgba(99,102,241,.12); transform: translateY(-2px); }

.btn-ghost { background: transparent; color: var(--ink); padding-inline: .9rem; }
.btn-ghost:hover { color: var(--accent-300); }

.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-family: var(--font-head); color: var(--brand-600); }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t); }
.link-arrow:hover { color: var(--accent-300); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7,8,15,.72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(7,8,15,.86); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.18rem; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; filter: drop-shadow(0 4px 12px rgba(79,70,229,.5)); }
.brand-name strong { color: var(--brand-600); font-weight: 800; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-name strong { color: var(--accent-300); }

/* Wrapper is transparent to layout on desktop (becomes the dropdown on mobile). */
.header-menu { display: contents; }
.nav { display: flex; gap: 1.55rem; margin-left: auto; }
.nav a { color: var(--body); font-weight: 500; font-size: .98rem; position: relative; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); }
.nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: var(--grad); }

.header-cta { display: flex; align-items: center; gap: .6rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3.5rem, 8vw, 7rem) 0 clamp(4rem, 9vw, 8rem);
  background:
    radial-gradient(60% 80% at 78% -12%, rgba(99,102,241,.30), transparent 60%),
    radial-gradient(48% 60% at 8% 8%, rgba(34,211,238,.16), transparent 60%),
    var(--bg);
}
/* faint grid overlay, masked to fade out */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(70% 65% at 50% 0%, #000 25%, transparent 78%);
  mask-image: radial-gradient(70% 65% at 50% 0%, #000 25%, transparent 78%);
}
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; z-index: 0; pointer-events: none; }
.hero-orb-1 { width: 480px; height: 480px; right: -130px; top: -150px; background: radial-gradient(circle, rgba(99,102,241,.7), transparent 70%); }
.hero-orb-2 { width: 400px; height: 400px; left: -140px; bottom: -170px; background: radial-gradient(circle, rgba(34,211,238,.55), transparent 70%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero-copy h1 { margin-bottom: .35em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--body); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.7rem 0 1.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; color: var(--muted); font-size: .92rem; font-weight: 500; }
.hero-trust li { display: inline-flex; align-items: center; gap: .45rem; }

.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hero-trust .ico { color: var(--accent); }

/* Hero art (glass cards) */
.hero-art { position: relative; min-height: 380px; }
.art-card {
  position: absolute; background: rgba(255,255,255,.05); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 1.25rem 1.35rem;
}
.art-card-main { left: 4%; top: 6%; width: min(330px, 82%); z-index: 2; }
.art-row { display: flex; align-items: center; gap: .55rem; font-size: .85rem; color: var(--muted); }
.art-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(34,211,238,.22); }
.art-title { font-weight: 600; color: var(--ink); }
.art-badge { margin-left: auto; font-size: .72rem; font-weight: 700; color: #67e8f9; background: rgba(34,211,238,.14); padding: .15rem .5rem; border-radius: 999px; }
.art-metric { display: flex; align-items: baseline; gap: .5rem; margin: .8rem 0 .9rem; }
.art-metric strong { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.art-metric span { color: var(--muted); font-size: .9rem; }
.art-bars { display: flex; align-items: flex-end; gap: 7px; height: 56px; }
.art-bars i { flex: 1; height: var(--h); background-image: var(--grad); border-radius: 5px 5px 2px 2px; opacity: .9; }
.art-card-2 { right: 0; top: 40%; z-index: 3; display: grid; gap: .15rem; padding: 1rem 1.15rem; }
.art-card-3 { left: 0; bottom: 2%; z-index: 3; display: grid; gap: .15rem; padding: 1rem 1.15rem; }
.art-chip-num { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; color: var(--brand-600); }
.art-chip-lbl { font-size: .82rem; color: var(--muted); }

/* ---------- Logos strip ---------- */
.logos { padding: 2.2rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.logos-label { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 1.2rem; }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2.4rem; }
.logo-ph { font-family: var(--font-head); font-weight: 700; color: #c6cce2; opacity: .55; letter-spacing: .01em; font-size: 1.05rem; transition: opacity var(--t); }
.logo-ph:hover { opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 720px; margin: 0 auto clamp(2rem, 4vw, 3.2rem); text-align: center; }
.section-head .eyebrow { margin-inline: auto; }
.section-sub { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* ---------- Feature card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; transition: transform var(--t), box-shadow var(--t), border-color var(--t), background var(--t); }
.feature:hover { transform: translateY(-5px); box-shadow: var(--glow); border-color: var(--line-strong); background: var(--surface-3); }
.feature-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 13px; background: var(--grad-soft); border: 1px solid rgba(129,140,248,.2); margin-bottom: 1rem; }
.feature-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-300); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { margin-bottom: .4rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }
.feature-cta { background: var(--grad-soft); border-color: rgba(129,140,248,.25); display: flex; flex-direction: column; }
.feature-cta .link-arrow { margin-top: auto; }

/* ---------- Solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.solution { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.solution:hover { transform: translateY(-4px); box-shadow: var(--glow); border-color: var(--line-strong); }
.solution-ico { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 15px; background: var(--grad); box-shadow: var(--glow-cta); margin-bottom: 1.1rem; }
.solution-ico svg { width: 27px; height: 27px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.solution p { color: var(--muted); }
.ticks li { position: relative; padding-left: 1.7rem; margin-bottom: .55rem; color: var(--body); font-size: .96rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: rgba(99,102,241,.16);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367e8f9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); counter-reset: step; }
.step { position: relative; padding: 1.6rem; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; margin-bottom: .9rem; box-shadow: var(--glow-cta); }
.step h3 { margin-bottom: .35rem; }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Stats band ---------- */
.stats-band {
  position: relative; color: var(--on-dark); padding: clamp(2.8rem, 5vw, 4rem) 0 2rem;
  background:
    radial-gradient(80% 120% at 50% -20%, rgba(99,102,241,.18), transparent 60%),
    var(--surface-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(2.1rem, 4vw, 3.1rem); letter-spacing: -.03em;
  background: linear-gradient(120deg, #fff, var(--accent-300)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--on-dark-muted); font-size: .95rem; }
.stats-note { color: var(--muted); font-size: .82rem; text-align: center; margin: 1.8rem auto 0; }

/* ---------- Plans ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.9rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.plan:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.plan h3 { font-size: 1.4rem; margin-bottom: .15rem; }
.plan-tag { color: var(--muted); font-size: .9rem; margin-bottom: 1.1rem; }
.plan .ticks { margin-bottom: 1.5rem; flex: 1; }
.plan .btn { margin-top: auto; }
.plan-popular { border-color: transparent; box-shadow: var(--shadow-lg); transform: translateY(-8px); background: linear-gradient(180deg, rgba(99,102,241,.12), var(--surface) 40%); }
.plan-popular:hover { transform: translateY(-12px); }
.plan-popular::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan-flag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .8rem; border-radius: 999px; white-space: nowrap; box-shadow: var(--glow-cta); }

/* ---------- Security ---------- */
.security-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.security-list { display: grid; gap: .85rem; }
.security-list li { display: flex; align-items: flex-start; gap: .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; font-weight: 500; color: var(--ink); box-shadow: var(--shadow-sm); transition: border-color var(--t), transform var(--t); }
.security-list li:hover { border-color: var(--line-strong); transform: translateX(3px); }
.security-list .ico { color: var(--accent); margin-top: 2px; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.7rem; box-shadow: var(--shadow-sm); margin: 0; }
.quote blockquote { margin: 0 0 1.1rem; font-size: 1.05rem; color: var(--ink); line-height: 1.55; }
.quote blockquote::before { content: "“"; font-family: var(--font-head); font-size: 2.4rem; color: var(--brand-400); line-height: 0; vertical-align: -.35em; margin-right: .15rem; }
.quote figcaption { display: flex; flex-direction: column; }
.q-name { font-family: var(--font-head); font-weight: 700; color: var(--ink); }
.q-org { color: var(--muted); font-size: .9rem; }

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 800px; }
.faq { display: grid; gap: .8rem; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.faq-item.open { box-shadow: var(--glow); border-color: var(--line-strong); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--ink); padding: 1.15rem 1.3rem; }
.faq-chev { width: 22px; height: 22px; fill: none; stroke: var(--accent-300); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; transition: transform var(--t); }
.faq-item.open .faq-chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* ---------- CTA / lead form (vivid gradient finale) ---------- */
.cta-section {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 120% at 85% 10%, rgba(34,211,238,.4), transparent 55%),
    linear-gradient(125deg, #3730a3 0%, #4f46e5 42%, #0e7490 100%);
}
.cta-section::before { content: ""; position: absolute; width: 540px; height: 540px; left: -180px; bottom: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(99,102,241,.5), transparent 70%); filter: blur(50px); }
.cta-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.cta-copy h2 { color: #fff; }
.cta-copy p { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 42ch; }
.cta-points { display: grid; gap: .6rem; margin-top: 1.3rem; }
.cta-points li { display: flex; align-items: center; gap: .6rem; color: #fff; font-weight: 500; }
.cta-points .ico { color: var(--accent-300); }

.lead-form { background: rgba(11,13,24,.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--body); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow-lg); display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: .9rem; color: var(--ink); }
.req { color: var(--accent-300); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: rgba(255,255,255,.04);
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); padding: .72rem .9rem; min-height: 48px; transition: border-color var(--t), box-shadow var(--t), background var(--t);
}
.field select option { color: #0f111d; }
.field textarea { min-height: auto; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7d869f; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand-400); background: rgba(255,255,255,.07); box-shadow: 0 0 0 4px rgba(99,102,241,.25); }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #f87171; box-shadow: 0 0 0 4px rgba(248,113,113,.18); }
.err { color: #f87171; font-size: .82rem; min-height: 1em; }
.form-note { font-size: .82rem; color: rgba(255,255,255,.7); margin: 0; }
.form-status { margin: 0; font-weight: 600; font-family: var(--font-head); }
.form-status.ok { color: #4ade80; }
.form-status.bad { color: #f87171; }

/* ---------- Footer ---------- */
.site-footer { background: #06070d; color: var(--muted); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .95rem; }
.footer-col h3 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); padding: .45rem 0; font-size: .96rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; }
.footer-legal { color: #6b7490; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Floating glass cards (subtle) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .art-card-2 { animation: float 7s ease-in-out infinite; }
  .art-card-3 { animation: float 8.5s ease-in-out infinite reverse; }
}
@keyframes float { 50% { transform: translateY(-10px); } }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .plans-grid, .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .header-menu { display: none; }
  .nav-toggle { display: flex; }
  .site-header.nav-open .header-menu {
    display: flex; flex-direction: column;
    position: absolute; left: 0; right: 0; top: 70px;
    background: rgba(9,10,18,.97); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: .5rem 0 1rem; max-height: calc(100dvh - 70px); overflow-y: auto;
  }
  .site-header.nav-open .nav { display: flex; flex-direction: column; gap: 0; margin: 0; }
  .site-header.nav-open .nav a { padding: .9rem clamp(1.1rem, 4vw, 2rem); border-top: 1px solid var(--line); color: var(--ink); }
  .site-header.nav-open .nav a.active::after { display: none; }
  .site-header.nav-open .header-cta { display: flex; flex-direction: column; align-items: stretch; gap: .6rem; padding: .8rem clamp(1.1rem, 4vw, 2rem) .2rem; }
  .site-header.nav-open .header-cta .btn { width: 100%; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .lead { max-width: none; }
  .security-grid, .cta-grid { grid-template-columns: 1fr; }
  .solutions-grid, .quotes { grid-template-columns: 1fr; }
  .plan-popular, .plan-popular:hover { transform: none; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .card-grid, .steps, .plans-grid, .stats-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- Motion / contrast preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .grad-text { animation: none; }
}

@media print {
  .site-header, .nav-toggle, .cta-section, .hero-art { display: none; }
}
