/* Cybertec Solutions
   Dark, vibrant theme built on the brand sky blue (#4FA0F6) and navy (#262F82),
   extended with violet and cyan for gradients. Pillar colours:
   Secure = sky, Strengthen = violet, Succeed = green.
   Shape rule: cards 22px, controls 14px, pills and badges full radius.
   z-index scale: header 20, whatsapp 30, skip link 100. */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800; font-style: normal; font-display: swap;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

:root {
  color-scheme: dark;
  --bg: #060818;
  --bg-2: #0a0e2c;
  --panel: #0e1334;
  --panel-2: #141a44;
  --glass: rgb(255 255 255 / .045);
  --line: rgb(165 180 255 / .12);
  --line-strong: rgb(165 180 255 / .24);
  --text: #f2f5ff;
  --muted: #a5aed3;

  --sky: #4fa0f6;
  --navy: #262f82;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --green: #34d399;
  --pink: #f472b6;
  --danger: #ff8f84;

  --grad-text: linear-gradient(100deg, #6fb6ff 0%, #b69cff 45%, #3fe0f5 100%);
  --grad-btn: linear-gradient(100deg, #2563eb 0%, #6d3ae8 100%);
  --grad-btn-hover: linear-gradient(100deg, #1d55d6 0%, #5d2fd6 100%);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-card: 22px;
  --r-ctl: 14px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; -webkit-text-size-adjust: 100%; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
::selection { background: rgb(109 58 232 / .55); color: #fff; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 767px) { .container { padding: 0 16px; } }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: #2563eb; color: #fff; padding: 10px 16px; border-radius: var(--r-ctl); text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 12px; }

.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%;
}
@media (prefers-reduced-motion: no-preference) { .grad-text { animation: hue-slide 8s ease-in-out infinite alternate; } }
@keyframes hue-slide { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .9375rem; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .25s var(--ease), background-color .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 10px 30px -10px rgb(109 58 232 / .75), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-primary:hover { background: var(--grad-btn-hover); transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgb(109 58 232 / .85), inset 0 1px 0 rgb(255 255 255 / .2); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--line-strong); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgb(255 255 255 / .09); transform: translateY(-2px); }
.btn .ph { font-size: 1.1em; transition: transform .2s var(--ease); }
.btn:hover .ph-arrow-right, .btn:hover .ph-arrow-up-right { transform: translateX(3px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--sky); }
.link-arrow:hover { color: #8cc3ff; }
.link-arrow .ph { transition: transform .2s var(--ease); }
.link-arrow:hover .ph { transform: translateX(3px); }

/* Header */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 20; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.nav-pill {
  pointer-events: auto; display: flex; align-items: center; gap: 22px;
  padding: 7px 7px 7px 16px; border-radius: 999px;
  background: rgb(12 16 46 / .7); border: 1px solid var(--line-strong);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 34px -14px rgb(0 0 0 / .7), inset 0 1px 0 rgb(255 255 255 / .06);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 30px; height: 30px; flex: none; }
.brand-word { height: 26px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; color: var(--muted); font-size: .9063rem; font-weight: 700; transition: color .2s, background-color .2s;
}
.site-nav ul a .ph { font-size: 1.05rem; }
.site-nav ul a:hover { color: var(--text); background: rgb(255 255 255 / .06); }
.site-nav ul a[aria-current="page"] { color: var(--text); background: rgb(255 255 255 / .1); }
.site-nav ul a[aria-current="page"] .ph { color: var(--cyan); }
.nav-cta { padding: 10px 18px; font-size: .875rem; }
.menu-toggle {
  display: none; place-items: center; width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgb(255 255 255 / .05); font-size: 1.25rem; cursor: pointer;
}
@media (max-width: 939px) {
  .nav-pill { width: 100%; max-width: 560px; justify-content: space-between; position: relative; }
  .menu-toggle { display: inline-grid; }
  .site-nav {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 10px; padding: 12px;
    background: var(--bg-2); border: 1px solid var(--line-strong); border-radius: var(--r-card);
    box-shadow: 0 24px 50px -14px rgb(0 0 0 / .8);
    opacity: 0; transform: translateY(-8px); visibility: hidden; pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
  }
  .site-nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { display: flex; padding: 13px 14px; border-radius: var(--r-ctl); font-size: 1rem; }
  .nav-cta { padding: 14px 16px; font-size: 1rem; }
}

/* Aurora background (decorative, used by heroes and CTA panels) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
/* Soft glows drawn as radial gradients instead of filter: blur(), which is far cheaper to animate */
.aurora .blob { position: absolute; border-radius: 50%; opacity: .6; will-change: transform; background: radial-gradient(circle at center, var(--c) 0%, color-mix(in srgb, var(--c) 45%, transparent) 30%, transparent 68%); }
.aurora .b1 { --c: #2563eb; width: 760px; height: 760px; left: -240px; top: -220px; }
.aurora .b2 { --c: #7c3aed; width: 700px; height: 700px; right: -220px; top: -140px; }
.aurora .b3 { --c: #06b6d4; width: 620px; height: 620px; left: 32%; bottom: -320px; opacity: .45; }
.aurora .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / .045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 20%, transparent 75%);
}
@media (prefers-reduced-motion: no-preference) {
  .aurora .b1 { animation: float-a 18s ease-in-out infinite alternate; }
  .aurora .b2 { animation: float-b 22s ease-in-out infinite alternate; }
  .aurora .b3 { animation: float-a 20s ease-in-out infinite alternate-reverse; }
}
@keyframes float-a { to { transform: translate3d(90px, 60px, 0) scale(1.1); } }
@keyframes float-b { to { transform: translate3d(-80px, 80px, 0) scale(.92); } }
@media (max-width: 767px) { .aurora .b1 { width: 480px; height: 480px; } .aurora .b2 { width: 460px; height: 460px; } }

/* Home hero */
.hero { position: relative; overflow: hidden; min-height: 100dvh; display: flex; align-items: center; padding: 140px 0 100px; isolation: isolate; }
.hero .aurora { z-index: -1; }
.hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 16px 7px 8px; border-radius: 999px;
  background: rgb(255 255 255 / .06); border: 1px solid var(--line-strong);
  font-size: .8125rem; font-weight: 700; color: #d9e2ff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.badge-pill { padding: 3px 10px; border-radius: 999px; background: var(--grad-btn); color: #fff; font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .06em; }
.hero h1 { margin-top: 30px; font-size: clamp(2.6rem, 7.4vw, 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.04em; }
.hero h1 span { display: inline-block; padding-bottom: .06em; }
.hero-sub { margin-top: 26px; max-width: 58ch; font-size: 1.1875rem; color: var(--muted); }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }
.hero-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; list-style: none; margin: 44px 0 0; padding: 0; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: #cfd7f5; }
.hero-facts .ph { font-size: 1.15rem; color: var(--cyan); }
@media (max-width: 479px) { .hero { padding: 120px 0 72px; } .hero-ctas { width: 100%; } .hero-ctas .btn { width: 100%; } }

/* Sub-page hero */
.page-hero { position: relative; overflow: hidden; padding: 170px 0 90px; isolation: isolate; }
.page-hero .aurora { z-index: -1; }
.page-hero .aurora .blob { opacity: .42; }
.crumbs { display: flex; gap: 8px; align-items: center; list-style: none; margin: 0 0 22px; padding: 0; font-size: .875rem; color: var(--muted); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs .ph { font-size: .8rem; }
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; max-width: 16ch; }
.page-hero h1 span { display: inline-block; padding-bottom: .06em; }
.page-hero .lead { margin-top: 24px; max-width: 62ch; font-size: 1.1875rem; color: var(--muted); }
@media (max-width: 767px) { .page-hero { padding: 140px 0 64px; } }

/* Marquee (one per page at most) */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--line); background: rgb(255 255 255 / .02); padding: 18px 0;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 44px; width: max-content; list-style: none; margin: 0; padding: 0; }
.marquee-track li { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; color: #cdd6f7; white-space: nowrap; }
.marquee-track li .ph { color: var(--violet); font-size: 1.1rem; }
@media (prefers-reduced-motion: no-preference) { .marquee-track { animation: marquee 40s linear infinite; } .marquee:hover .marquee-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; gap: 14px 28px; } .marquee-track li[aria-hidden="true"] { display: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { position: relative; padding: 112px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.kicker {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.kicker::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--grad-btn); }
.section-title { font-size: clamp(1.9rem, 4.2vw, 3.2rem); max-width: 18ch; }
.section-title span { display: inline-block; padding-bottom: .05em; }
.lead { margin-top: 20px; max-width: 62ch; color: var(--muted); font-size: 1.0938rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head { margin-bottom: 56px; }
.section-head.center .kicker { justify-content: center; }
.section-foot { margin-top: 44px; display: flex; justify-content: center; }
@media (max-width: 767px) { .section { padding: 80px 0; } .section-head { margin-bottom: 40px; } }

/* Cards with a cursor-following spotlight */
.card {
  position: relative; overflow: hidden; border-radius: var(--r-card);
  background: linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .02));
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(124 92 255 / .16), transparent 60%);
}
.card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.card:hover::before { opacity: 1; }
@media (hover: none) { .card:hover { transform: none; } }

.tone-sky { --tone: var(--sky); }
.tone-violet { --tone: var(--violet); }
.tone-green { --tone: var(--green); }
.tone-cyan { --tone: var(--cyan); }
.tone-pink { --tone: var(--pink); }
.icon-tile {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.45rem;
  color: var(--tone, var(--sky)); background: color-mix(in srgb, var(--tone, var(--sky)) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--tone, var(--sky)) 32%, transparent);
}
.tag {
  display: inline-block; padding: 4px 11px; border-radius: 999px; font-family: var(--font-mono); font-size: .6875rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tone, var(--sky)); background: color-mix(in srgb, var(--tone, var(--sky)) 15%, transparent);
}

/* Pillars (animated gradient border) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar { padding: 34px 30px; }
.pillar::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--angle), transparent 0 60%, var(--tone) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: .9;
}
@media (prefers-reduced-motion: no-preference) { .pillar::after { animation: spin-border 6s linear infinite; } .pillar:nth-child(2)::after { animation-delay: -2s; } .pillar:nth-child(3)::after { animation-delay: -4s; } }
@keyframes spin-border { to { --angle: 360deg; } }
.pillar-num { font-family: var(--font-display); font-size: 3rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--tone); opacity: .85; }
.pillar h3 { margin-top: 22px; font-size: 1.5rem; }
.pillar h3 small { display: block; margin-top: 6px; font-family: var(--font-sans); font-size: .9375rem; font-weight: 700; color: var(--tone); letter-spacing: 0; }
.pillar p { margin-top: 14px; color: var(--muted); }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; } }

/* Services bento (home) : 6 items -> 6 cells */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(210px, auto); gap: 16px; }
.bento .card { padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.bento .b-big { grid-column: span 2; grid-row: span 2; padding: 36px; justify-content: flex-end;
  background:
    radial-gradient(90% 70% at 85% 10%, rgb(124 58 237 / .55), transparent 60%),
    radial-gradient(70% 60% at 10% 100%, rgb(37 99 235 / .5), transparent 60%),
    linear-gradient(160deg, #151b52, #0c1034);
  border-color: rgb(167 139 250 / .35); }
.bento .b-wide { grid-column: span 2; }
.bento .b-big .big-mark { font-family: var(--font-display); font-weight: 800; font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: .9; letter-spacing: -0.04em; }
.bento .b-big h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.bento h3 { font-size: 1.1875rem; line-height: 1.25; }
.bento p { color: var(--muted); font-size: .9688rem; }
.bento .b-big p { color: #d3dafa; max-width: 42ch; }
.bento .card-top { display: flex; justify-content: space-between; align-items: center; }
.bento .tag { align-self: flex-start; }
.bento .go { font-size: 1.25rem; color: var(--muted); transition: transform .3s var(--ease), color .3s; }
.bento .card:hover .go { transform: translate(3px, -3px); color: var(--text); }
.bento .b-tint { background: linear-gradient(160deg, rgb(34 211 238 / .14), rgb(255 255 255 / .02)); }
.bento .b-tint2 { background: linear-gradient(160deg, rgb(52 211 153 / .13), rgb(255 255 255 / .02)); }
@media (max-width: 999px) { .bento { grid-template-columns: 1fr 1fr; } .bento .b-big { grid-column: span 2; grid-row: auto; min-height: 320px; } }
@media (max-width: 599px) { .bento { grid-template-columns: 1fr; } .bento .b-big, .bento .b-wide { grid-column: auto; } }

/* Risks */
.risk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.risk { padding: 28px 24px; }
.risk h3 { margin-top: 20px; font-size: 1.0625rem; line-height: 1.3; }
.risk p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 999px) { .risk-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .risk-grid { grid-template-columns: 1fr; } }

/* Split layout */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split p + p { margin-top: 16px; }
.split .body p { color: var(--muted); }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.quote-card { padding: 40px; background:
  radial-gradient(80% 80% at 100% 0%, rgb(124 58 237 / .35), transparent 60%),
  radial-gradient(70% 70% at 0% 100%, rgb(34 211 238 / .22), transparent 60%),
  linear-gradient(160deg, #141a4c, #0c1034); border-color: rgb(167 139 250 / .3); }
.quote-card .ph-quotes { font-size: 2.5rem; color: var(--violet); }
.quote-card blockquote { margin: 16px 0 0; font-family: var(--font-display); font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.4; font-weight: 600; }
.quote-card figcaption { margin-top: 18px; font-size: .9375rem; color: #c8d0f3; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 30px 26px; }
.step-num {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: #fff; background: var(--grad-btn);
  box-shadow: 0 8px 22px -8px rgb(109 58 232 / .8);
}
.step h3 { margin-top: 20px; font-size: 1.125rem; }
.step p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 999px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .steps { grid-template-columns: 1fr; } }

/* Self-check */
.check-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.check-card { padding: 32px; }
.check-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.check-head h3 { font-size: 1.125rem; }
.check-meta { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.check-bar { height: 5px; border-radius: 5px; background: rgb(255 255 255 / .08); margin: 18px 0 24px; overflow: hidden; }
.check-bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--sky), var(--violet), var(--cyan)); border-radius: inherit; transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.check-question { font-size: 1.1875rem; font-weight: 700; line-height: 1.45; min-height: 3.2em; transition: opacity .25s var(--ease), transform .25s var(--ease); }
.check-body.is-changing .check-question { opacity: 0; transform: translateY(6px); }
.check-answers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.answer {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px;
  border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: rgb(255 255 255 / .04);
  cursor: pointer; font-weight: 700; font-size: .9375rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), transform .15s var(--ease);
}
.answer:hover { border-color: var(--violet); background: rgb(124 58 237 / .16); }
.answer:active { transform: scale(.97); }
.answer .ph { color: var(--cyan); }
.result-score { font-family: var(--font-mono); font-size: .875rem; color: var(--cyan); }
.check-result h4 { margin: 8px 0 10px; font-size: 1.375rem; }
.check-result > p:not(.result-score) { color: var(--muted); }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.check-foot { display: flex; align-items: center; gap: 6px; margin-top: 22px; font-size: .8125rem; color: var(--muted); }
@media (max-width: 899px) { .check-wrap { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 479px) { .check-card { padding: 22px 18px; } .check-answers { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; padding: 72px 48px; text-align: center;
  background: linear-gradient(120deg, #1d3fc0 0%, #5b2bd1 55%, #0e7490 100%); }
.cta-band .aurora { z-index: -1; }
.cta-band .aurora .blob { opacity: .5; }
.cta-band .aurora .b1 { --c: #38bdf8; } .cta-band .aurora .b2 { --c: #c026d3; } .cta-band .aurora .b3 { --c: #22d3ee; }
.cta-band h2 { font-size: clamp(1.9rem, 4.4vw, 3.3rem); max-width: 18ch; margin: 0 auto; }
.cta-band p { margin: 18px auto 0; max-width: 54ch; color: #e6ebff; font-size: 1.0938rem; }
.cta-band .hero-ctas { margin-top: 32px; }
.btn-white { background: #fff; color: #1b1f4b; box-shadow: 0 12px 30px -12px rgb(0 0 0 / .5); }
.btn-white:hover { transform: translateY(-2px); background: #eef2ff; }
.btn-outline-light { color: #fff; border-color: rgb(255 255 255 / .55); background: rgb(255 255 255 / .08); }
.btn-outline-light:hover { background: rgb(255 255 255 / .16); transform: translateY(-2px); }
@media (max-width: 599px) { .cta-band { padding: 52px 22px; border-radius: 24px; } .cta-band .btn { width: 100%; } }

/* About page */
.facts { padding: 32px; }
.facts dl { margin: 0; display: grid; gap: 22px; }
.fact { display: flex; gap: 16px; align-items: flex-start; }
.fact dt { font-size: .8125rem; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 700; }
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vm-card { padding: 38px; }
.vm-card h3 { margin-top: 22px; font-size: 1.5rem; }
.vm-card p { margin-top: 14px; color: var(--muted); }
.vm-card.vision { background: radial-gradient(90% 80% at 100% 0%, rgb(79 160 246 / .22), transparent 60%), linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .02)); }
.vm-card.mission { background: radial-gradient(90% 80% at 100% 0%, rgb(167 139 250 / .22), transparent 60%), linear-gradient(180deg, rgb(255 255 255 / .05), rgb(255 255 255 / .02)); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { padding: 28px 24px; }
.value h3 { margin-top: 20px; font-size: 1.0625rem; }
.value p { margin-top: 10px; font-size: .9375rem; color: var(--muted); }
@media (max-width: 999px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .vm-grid, .values { grid-template-columns: 1fr; } .vm-card { padding: 28px 22px; } }

/* Services page */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgb(255 255 255 / .04);
  font-weight: 700; font-size: .9375rem; cursor: pointer; color: var(--muted); transition: background-color .2s, color .2s, border-color .2s;
}
.filter:hover { color: var(--text); border-color: rgb(165 180 255 / .4); }
.filter[aria-pressed="true"] { color: #fff; background: var(--grad-btn); border-color: transparent; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.svc { padding: 34px; display: flex; flex-direction: column; }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.svc h2 { margin-top: 22px; font-size: 1.5rem; }
.svc .svc-lead { margin-top: 12px; color: var(--muted); }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: "\e184"; /* Phosphor check-circle */
  font-family: "Phosphor"; position: absolute; left: 0; top: 1px; font-size: 1.2rem; color: var(--tone, var(--green));
}
.svc-outcome { margin-top: 24px; padding: 14px 16px; border-radius: var(--r-ctl); background: rgb(255 255 255 / .04); border: 1px solid var(--line); }
.svc-outcome strong { color: var(--tone, var(--cyan)); }
.svc .link-arrow { margin-top: auto; padding-top: 24px; }
.svc.is-hidden { display: none; }
.compliance { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.comp { padding: 26px 22px; text-align: center; }
.comp strong { display: block; font-family: var(--font-display); font-size: 1.5rem; }
.comp span { display: block; margin-top: 6px; font-size: .875rem; color: var(--muted); }
@media (max-width: 899px) { .svc-grid { grid-template-columns: 1fr; } .compliance { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .svc { padding: 26px 22px; } }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: var(--r-ctl); background: rgb(255 255 255 / .035); border: 1px solid var(--line); transition: border-color .2s, background-color .2s; }
.faq details[open] { border-color: rgb(167 139 250 / .4); background: rgb(124 58 237 / .08); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ph { flex: none; font-size: 1.125rem; color: var(--violet); transition: transform .25s var(--ease); }
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); max-width: 64ch; }
@media (max-width: 899px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Contact page */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.c-card { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; text-decoration: none; }
.c-card .c-label { font-size: .8125rem; color: var(--muted); }
.c-card .c-value { font-weight: 800; font-size: 1.0313rem; overflow-wrap: anywhere; }
.c-card .c-action { margin-top: auto; font-size: .875rem; font-weight: 700; color: var(--tone); display: inline-flex; gap: 6px; align-items: center; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: stretch; }
.map-card { padding: 0; min-height: 360px; display: flex; flex-direction: column; }
.map-card iframe { flex: 1; width: 100%; min-height: 300px; border: 0; filter: invert(.9) hue-rotate(185deg) saturate(.8) contrast(.9); }
.map-card .map-foot { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); }
.map-card .map-foot p { font-weight: 700; }
@media (max-width: 999px) { .contact-cards { grid-template-columns: 1fr 1fr; } .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 479px) { .contact-cards { grid-template-columns: 1fr; } }

.contact-form { padding: 34px; display: grid; gap: 20px; }
.contact-form h2 { font-size: 1.5rem; }
.contact-form > p { color: var(--muted); margin-top: -8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 700; font-size: .9375rem; }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-ctl);
  border: 1px solid var(--line-strong); background: rgb(6 8 24 / .6); color: var(--text);
  font-size: 1rem; /* 16px avoids iOS zoom on focus */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(165 180 255 / .42); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgb(124 58 237 / .32); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select-wrap select option { background: var(--panel); }
.select-wrap .ph { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.field-help { font-size: .875rem; color: var(--muted); }
.field-error { font-size: .875rem; color: var(--danger); }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 4px; }
.form-status { font-size: .9375rem; color: var(--muted); }
.form-status.is-success { color: var(--green); font-weight: 700; }
.form-status.is-error { color: var(--danger); }
@media (max-width: 599px) { .field-row { grid-template-columns: 1fr; } .contact-form { padding: 24px 18px; } .form-foot .btn { width: 100%; } }

/* Footer */
.site-footer { position: relative; border-top: 1px solid var(--line); padding: 80px 0 28px; background: linear-gradient(180deg, var(--bg), #04050f); }
.site-footer::before { content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1.2fr 1.2fr; gap: 40px; }
.footer-brand .brand-icon { width: 40px; height: 40px; }
.footer-brand .brand-word { height: 34px; }
.brand-tagline { margin-top: 12px; font-family: var(--font-mono); font-size: .8125rem; letter-spacing: .04em; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand > p:not(.brand-tagline) { margin-top: 14px; font-size: .9375rem; color: var(--muted); max-width: 36ch; }
.socials { display: flex; gap: 8px; margin-top: 20px; }
.social { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgb(255 255 255 / .04); text-decoration: none; font-size: 1.125rem; transition: background-color .2s, transform .2s var(--ease); }
.social:hover { background: rgb(255 255 255 / .1); transform: translateY(-2px); }
.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: .9375rem; }
.footer-head { font-family: var(--font-mono); font-size: .75rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.footer-col a, .footer-col span { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #cdd5f2; overflow-wrap: anywhere; }
.footer-col a:hover { color: #fff; }
.footer-col .ph { color: var(--violet); flex: none; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); font-family: var(--font-mono); }
@media (max-width: 999px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; } }

/* WhatsApp button */
.whatsapp {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #06150c; font-size: 1.75rem; text-decoration: none;
  box-shadow: 0 12px 28px -8px rgb(37 211 102 / .6); transition: transform .2s var(--ease);
}
.whatsapp:hover { transform: scale(1.07); }

/* Scroll reveal: only with JS and when motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js .stagger > .reveal:nth-child(2) { transition-delay: .07s; }
  .js .stagger > .reveal:nth-child(3) { transition-delay: .14s; }
  .js .stagger > .reveal:nth-child(4) { transition-delay: .21s; }
  .js .stagger > .reveal:nth-child(5) { transition-delay: .28s; }
  .js .stagger > .reveal:nth-child(6) { transition-delay: .35s; }
  .hero-inner > *, .page-hero .container > * { animation: rise .9s var(--ease) both; }
  .hero-inner > :nth-child(2), .page-hero .container > :nth-child(2) { animation-delay: .08s; }
  .hero-inner > :nth-child(3), .page-hero .container > :nth-child(3) { animation-delay: .16s; }
  .hero-inner > :nth-child(4), .page-hero .container > :nth-child(4) { animation-delay: .24s; }
  .hero-inner > :nth-child(5) { animation-delay: .32s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------
   Micro-interactions
   All motion uses transform/opacity (compositor-only) and is disabled
   for visitors who prefer reduced motion.
   ------------------------------------------------------------------ */

/* Scroll progress line: CSS scroll-driven animation, no JS. Hidden where unsupported. */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 25; pointer-events: none;
  background: linear-gradient(90deg, var(--sky), var(--violet), var(--cyan));
  transform: scaleX(0); transform-origin: 0 50%;
}

/* Header gains weight once the page scrolls (class set by an IntersectionObserver) */
.nav-pill { transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.site-header.is-scrolled .nav-pill {
  background: rgb(9 12 36 / .9); border-color: rgb(165 180 255 / .3);
  box-shadow: 0 18px 40px -16px rgb(0 0 0 / .85), inset 0 1px 0 rgb(255 255 255 / .06);
}

/* Nav: icons lift on hover; menu icon turns when opened; mobile links stagger in */
.site-nav ul a .ph, .menu-toggle .ph { transition: transform .3s var(--ease); }
.site-nav ul a:hover .ph { transform: translateY(-1px) scale(1.12); }
.menu-toggle[aria-expanded="true"] .ph { transform: rotate(90deg); }

/* Primary buttons: a soft sheen sweeps across on hover */
.btn-primary { overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .28) 48%, transparent 66%);
  transform: translateX(-120%);
}

/* Cards: icon tiles tilt slightly on hover */
.icon-tile { transition: transform .4s var(--ease); }
.card:hover .icon-tile { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.pillar-num { transition: transform .5s var(--ease); }
.pillar:hover .pillar-num { transform: translateX(4px); }

/* Form: labels pick up the accent while their field is focused */
.field label { transition: color .2s var(--ease); }
.field:focus-within label { color: #c9b8ff; }

/* Self-check answer feedback */
.answer.is-picked { border-color: var(--violet); background: rgb(124 58 237 / .22); }

/* WhatsApp: attention ring (plays twice, then stops) */
.whatsapp::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; opacity: 0; pointer-events: none; }

/* Services: stable names so filtered cards glide into place (View Transitions API) */
#assessment { view-transition-name: svc-assessment; }
#protection { view-transition-name: svc-protection; }
#managed { view-transition-name: svc-managed; }
#training { view-transition-name: svc-training; }
#development { view-transition-name: svc-development; }
#consultancy { view-transition-name: svc-consultancy; }
.site-header { view-transition-name: site-header; }

@media (prefers-reduced-motion: no-preference) {
  /* Cross-page fade (cross-document View Transitions; ignored where unsupported) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .2s var(--ease) both; }
  ::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
  ::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

  @supports (animation-timeline: scroll()) {
    .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
    /* Hero content eases back as it scrolls away */
    .hero-inner { animation: hero-away linear both; animation-timeline: view(); animation-range: exit 0% exit 90%; }
  }

  /* Headline words rise in sequence */
  .hero-inner > h1 { animation: none; }
  .hero h1 .w {
    animation-name: word-in; animation-duration: .9s; animation-timing-function: var(--ease);
    animation-fill-mode: both; animation-delay: calc(.1s + var(--i, 0) * .14s);
  }
  .hero h1 .w.grad-text {
    animation-name: word-in, hue-slide; animation-duration: .9s, 8s;
    animation-timing-function: var(--ease), ease-in-out; animation-fill-mode: both, none;
    animation-iteration-count: 1, infinite; animation-direction: normal, alternate;
    animation-delay: calc(.1s + var(--i, 0) * .14s), 1.2s;
  }

  .btn-primary:hover::after { transform: translateX(120%); transition: transform .8s var(--ease); }

  .site-nav.is-open ul li { animation: rise .45s var(--ease) both; }
  .site-nav.is-open ul li:nth-child(2) { animation-delay: .04s; }
  .site-nav.is-open ul li:nth-child(3) { animation-delay: .08s; }
  .site-nav.is-open ul li:nth-child(4) { animation-delay: .12s; }
  .site-nav.is-open .nav-cta { animation: rise .45s var(--ease) .16s both; }

  .faq details[open] p { animation: fade-down .4s var(--ease) both; }
  .answer.is-picked { animation: tap .3s var(--ease); }
  .check-result:not([hidden]) { animation: rise .55s var(--ease) both; }
  .form-status.is-success, .form-status.is-error { animation: rise .4s var(--ease) both; }
  .field-error:not(:empty) { animation: fade-down .25s var(--ease) both; }

  .whatsapp::after { animation: ping 1.8s ease-out 3s 2; }
}

@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes progress { to { transform: scaleX(1); } }
@keyframes hero-away { to { opacity: .25; transform: translateY(-40px) scale(.98); } }
@keyframes word-in { from { opacity: 0; transform: translateY(.45em) rotate(2deg); } to { opacity: 1; transform: none; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes tap { 40% { transform: scale(.95); } 100% { transform: scale(1); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.65); opacity: 0; } }

/* ------------------------------------------------------------------
   Cookie consent (assets/js/consent.js)
   Accept and Reject share one style so neither choice is nudged.
   z-index: banner 40, dialog uses the top layer.
   ------------------------------------------------------------------ */
.btn-consent { background: rgb(255 255 255 / .08); color: var(--text); border-color: var(--line-strong); }
.btn-consent:hover { background: rgb(255 255 255 / .14); }
.cookie-banner {
  position: fixed; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 40;
  width: min(560px, calc(100% - 40px)); padding: 22px 22px 20px; border-radius: var(--r-card);
  background: rgb(12 16 46 / .96); border: 1px solid var(--line-strong);
  box-shadow: 0 24px 60px -20px rgb(0 0 0 / .85), inset 0 1px 0 rgb(255 255 255 / .06);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.cookie-head { display: flex; align-items: center; gap: 12px; }
.cookie-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; font-size: 1.3rem; color: var(--violet); background: rgb(124 58 237 / .16); }
.cookie-banner h2 { font-size: 1.0625rem; }
.cookie-banner p { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.cookie-banner a, .pref-intro a { color: var(--sky); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.cookie-actions .btn { padding: 11px 20px; }
.cookie-link, .linkish {
  background: none; border: 0; padding: 6px 4px; cursor: pointer; font-weight: 700; color: var(--text);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(165 180 255 / .5);
}
.cookie-link:hover, .linkish:hover { text-decoration-color: currentColor; }
.cookie-banner.is-leaving { opacity: 0; transform: translateY(12px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
/* Keep the WhatsApp button clear of the banner on small screens */
@media (max-width: 767px) {
  .cookie-banner { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; padding: 18px; }
  .cookie-actions .btn { flex: 1 1 40%; }
  .whatsapp { transform: translateY(calc(-1 * var(--consent-h, 0px))); transition: transform .3s var(--ease); }
}

.cookie-dialog {
  width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border-radius: 24px;
  background: var(--panel); color: var(--text); border: 1px solid var(--line-strong);
  box-shadow: 0 40px 80px -24px rgb(0 0 0 / .9);
}
.cookie-dialog::backdrop { background: rgb(3 5 16 / .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.pref-form { padding: 28px; display: grid; gap: 18px; }
.pref-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pref-head h2 { font-size: 1.375rem; }
.pref-close { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgb(255 255 255 / .04); cursor: pointer; font-size: 1.1rem; }
.pref-close:hover { background: rgb(255 255 255 / .1); }
.pref-intro { color: var(--muted); font-size: .9375rem; }
.pref-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 16px 18px; border-radius: var(--r-ctl); background: rgb(255 255 255 / .035); border: 1px solid var(--line); }
.pref-text label { font-weight: 800; }
.pref-text p { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.pref-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 4px; }
@media (max-width: 559px) { .pref-form { padding: 20px 18px; } .pref-actions .btn { flex: 1 1 100%; } }

/* Accessible switch built on a native checkbox */
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; margin: 2px 0 0; cursor: pointer;
  width: 46px; height: 26px; border-radius: 999px; background: rgb(255 255 255 / .14); border: 1px solid var(--line-strong);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.switch::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / .4); transition: transform .25s var(--ease);
}
.switch:checked { background: #6d3ae8; border-color: #8b62f0; }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { cursor: not-allowed; opacity: .6; }
.switch:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  .cookie-banner:not(.is-leaving) { animation: rise .5s var(--ease) .6s both; }
  .cookie-dialog[open] { animation: rise .35s var(--ease) both; }
}

/* Contact map: shown only after functional consent */
.map-frame { position: relative; flex: 1; min-height: 320px; }
.map-frame iframe { position: absolute; inset: 0; height: 100%; min-height: 0; visibility: hidden; }
.consent-granted .map-frame iframe { visibility: visible; }
.consent-granted .map-placeholder { display: none; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; text-align: center;
  background: radial-gradient(70% 70% at 50% 40%, rgb(34 211 238 / .1), transparent 70%); }
.map-placeholder p { color: var(--muted); font-size: .9375rem; max-width: 38ch; }
.map-placeholder p strong { color: var(--text); }
.map-placeholder-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center; }

/* Footer legal links */
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--text); }
.footer-legal .linkish { font: inherit; color: var(--muted); padding: 0; }
.footer-legal .linkish:hover { color: var(--text); }

/* Privacy page */
.legal { max-width: 820px; }
.legal-updated { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.legal h2 { margin: 44px 0 14px; font-size: 1.375rem; scroll-margin-top: 110px; }
.legal p, .legal li { color: #c9d1ee; }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 10px; }
.legal a { color: var(--sky); }
.legal code { font-family: var(--font-mono); font-size: .875em; padding: 2px 6px; border-radius: 6px; background: rgb(255 255 255 / .07); }
.legal .btn { margin-top: 18px; }
.table-wrap { overflow-x: auto; margin-top: 18px; border-radius: var(--r-ctl); border: 1px solid var(--line); }
.legal table { width: 100%; border-collapse: collapse; font-size: .9063rem; min-width: 640px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 12px 14px; }
.legal th { background: rgb(255 255 255 / .05); font-weight: 800; color: var(--text); }
.legal tbody tr + tr td { border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------
   All form factors: small and folded phones, landscape phones, tablets,
   touch laptops, large and ultra-wide screens, notches and print.
   ------------------------------------------------------------------ */

/* Notches and rounded corners (viewport-fit=cover is set in every page) */
.container {
  padding-left: max(24px, env(safe-area-inset-left));
  padding-right: max(24px, env(safe-area-inset-right));
}
@media (max-width: 767px) {
  .container { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
}
.site-header { top: calc(14px + env(safe-area-inset-top)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.whatsapp { right: calc(20px + env(safe-area-inset-right)); }
.cookie-banner { left: calc(20px + env(safe-area-inset-left)); }

/* Scale the whole layout up on large and ultra-wide screens (everything is sized in rem) */
.container { max-width: 75rem; }
.brand-icon { width: 1.875rem; height: 1.875rem; }
.brand-word { height: 1.625rem; }
@media (min-width: 1680px) { html { font-size: 17px; } }
@media (min-width: 2200px) { html { font-size: 19px; } }
@media (min-width: 3000px) { html { font-size: 22px; } }

/* Long words never push past the screen edge */
h1, h2, h3 { overflow-wrap: break-word; }

/* Small phones (320-420px) */
@media (max-width: 420px) {
  .hero h1 { font-size: clamp(2rem, 10.5vw, 2.6rem); }
  .page-hero h1 { font-size: clamp(1.7rem, 8.6vw, 2.3rem); }
  .section-title { font-size: clamp(1.55rem, 7.4vw, 1.9rem); }
  .cta-band h2 { font-size: clamp(1.55rem, 7.4vw, 1.9rem); }
  .hero-sub, .page-hero .lead { font-size: 1.0625rem; }
  .badge { font-size: .75rem; text-align: left; }
}
/* Folded phones and very narrow screens (280-340px) */
@media (max-width: 340px) {
  .nav-pill { padding-left: 12px; gap: 10px; }
  .brand { gap: 7px; }
  .brand-icon { width: 1.625rem; height: 1.625rem; }
  .brand-word { height: 1.375rem; }
  .hero-facts { gap: 8px 14px; }
}

/* Landscape phones and other short screens: keep headline and buttons in view */
@media (max-height: 560px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 104px 0 56px; }
  .hero h1 { margin-top: 18px; font-size: clamp(1.7rem, 5vh + 2.2vw, 3rem); }
  .hero-sub { margin-top: 14px; font-size: 1rem; max-width: 70ch; }
  .hero-ctas { margin-top: 22px; }
  .hero-facts { margin-top: 24px; }
  .page-hero { padding: 104px 0 44px; }
  .page-hero h1 { font-size: clamp(1.8rem, 6vh + 2.5vw, 3rem); }
  .site-nav { max-height: calc(100dvh - 90px); overflow-y: auto; overscroll-behavior: contain; }
  .cookie-banner { max-height: calc(100dvh - 24px); overflow-y: auto; }
}
.cookie-dialog { overflow-y: auto; overscroll-behavior: contain; }

/* Readable minimum for small labels */
.tag, .badge-pill { font-size: .75rem; }

/* Touch screens (phones, tablets, touch laptops): 44px minimum tap targets */
@media (pointer: coarse) {
  a, button, summary, input, select, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
  .brand, .btn, .filter, .link-arrow, .cookie-link { min-height: 44px; }
  .site-nav ul a { min-height: 44px; }
  .menu-toggle, .social, .pref-close { width: 44px; height: 44px; }
  .footer-col { gap: 0; }
  .footer-col a { min-height: 44px; }
  .footer-col span { min-height: 44px; }
  .footer-legal { gap: 0 20px; }
  .footer-legal a, .footer-legal .linkish { display: inline-flex; align-items: center; min-height: 44px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
  .map-foot .link-arrow { padding: 0 4px; }
}
/* No "stuck" hover lifts after a tap on touch screens */
@media (hover: none) {
  .btn:hover, .btn-primary:hover, .btn-ghost:hover, .btn-white:hover, .btn-outline-light:hover, .social:hover, .whatsapp:hover { transform: none; }
  .btn-primary:hover::after { transform: translateX(-120%); }
}

/* Cookie table becomes stacked cards on phones */
@media (max-width: 599px) {
  .table-wrap { border: 0; overflow: visible; }
  .legal table { min-width: 0; }
  .legal thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100%; }
  .legal tbody { display: grid; gap: 12px; }
  .legal tr { border: 1px solid var(--line); border-radius: var(--r-ctl); background: rgb(255 255 255 / .03); padding: 6px 0; }
  .legal tbody tr + tr td { border-top: 0; }
  .legal td { position: relative; padding: 8px 16px 8px calc(16px + 7.5rem); }
  .legal td::before { content: attr(data-label); position: absolute; left: 16px; top: 8px; width: 7rem; font-weight: 800; color: var(--text); }
}

/* Tablets in portrait: two-column grids breathe a little more */
@media (min-width: 600px) and (max-width: 999px) {
  .section { padding: 96px 0; }
  .page-hero h1 { max-width: 20ch; }
}
