/* =====================================================================
   WIDE COMMUNICATION — PUBLIC THEME
   Colour tokens are injected at runtime from Admin → Appearance,
   so everything below reads from custom properties rather than literals.
   ===================================================================== */

/* ---------------------------------------------------------------- *
 * 1. TOKENS
 * ---------------------------------------------------------------- */
:root {
  --max: 1240px;
  --gutter: clamp(18px, 4vw, 40px);

  --r-sm: calc(var(--radius, 18px) * 0.45);
  --r-md: calc(var(--radius, 18px) * 0.75);
  --r-lg: var(--radius, 18px);
  --r-xl: calc(var(--radius, 18px) * 1.6);
  --r-pill: 999px;

  --glass: color-mix(in srgb, var(--surface) 72%, transparent);
  --glass-strong: color-mix(in srgb, var(--surface) 92%, transparent);
  --line: color-mix(in srgb, var(--text) 12%, transparent);
  --line-soft: color-mix(in srgb, var(--text) 7%, transparent);

  --grad: linear-gradient(135deg, var(--primary), var(--secondary) 55%, var(--tertiary));
  --grad-soft: linear-gradient(135deg,
      color-mix(in srgb, var(--primary) 18%, transparent),
      color-mix(in srgb, var(--tertiary) 14%, transparent));

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .22);
  --shadow-md: 0 14px 38px rgba(0, 0, 0, .34);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, .46);
  --glow: 0 0 0 1px color-mix(in srgb, var(--primary) 34%, transparent),
          0 14px 50px color-mix(in srgb, var(--primary) 22%, transparent);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 76px;
}

/* Light mode remaps the surfaces; accents stay as the owner set them. */
[data-mode="light"] {
  --line: color-mix(in srgb, var(--text) 14%, transparent);
  --line-soft: color-mix(in srgb, var(--text) 8%, transparent);
  --glass: color-mix(in srgb, #fff 82%, transparent);
  --glass-strong: #fff;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .07);
  --shadow-md: 0 14px 38px rgba(15, 23, 42, .10);
  --shadow-lg: 0 34px 80px rgba(15, 23, 42, .14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body), system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.68;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
ul, ol { padding-left: 1.15em; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--primary) 34%, transparent); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading), var(--font-body), sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.022em;
}
h1 { font-size: clamp(2.3rem, 5.4vw, 4.05rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.12rem; }

/* ---------------------------------------------------------------- *
 * 3. ATMOSPHERE — orbs, grid, grain
 * ---------------------------------------------------------------- */
.bg-layer { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.bg-grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 78%);
  opacity: .55;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(84px);
  opacity: .42;
  will-change: transform;
}
.orb-1 { width: 620px; height: 620px; top: -220px; left: -180px; background: var(--primary); animation: drift1 26s ease-in-out infinite; }
.orb-2 { width: 540px; height: 540px; top: 8%; right: -200px; background: var(--tertiary); animation: drift2 32s ease-in-out infinite; }
.orb-3 { width: 480px; height: 480px; bottom: 6%; left: 22%; background: var(--secondary); animation: drift3 38s ease-in-out infinite; opacity: .3; }
[data-mode="light"] .orb { opacity: .17; }

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(90px, 70px) scale(1.12); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-80px, 100px) scale(.9); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -80px) scale(1.15); } }

.grain::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .028; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------- *
 * 4. LAYOUT
 * ---------------------------------------------------------------- */
.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - (var(--gutter) * 2), 820px); margin-inline: auto; }
main { position: relative; z-index: 2; }

section { position: relative; }
.section { padding-block: clamp(62px, 9vw, 118px); }
.section-tight { padding-block: clamp(42px, 6vw, 74px); }

.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
.g-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.g-3 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g-4 { grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); }

.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.text-center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.17rem); color: var(--muted); line-height: 1.75; }

/* ---------------------------------------------------------------- *
 * 5. HEADER
 * ---------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: background .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .26);
}

.header-inner { display: flex; align-items: center; gap: 18px; width: 100%; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; border-radius: 9px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--font-heading), sans-serif; font-weight: 700;
  font-size: .9rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-size: .63rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  position: relative; padding: 9px 15px; border-radius: var(--r-pill);
  font-size: .905rem; font-weight: 500; color: var(--muted);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.nav a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.nav a.active { color: var(--text); }
.nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px;
  transform: translateX(-50%); width: 18px; height: 2px;
  border-radius: 2px; background: var(--grad);
}

.header-actions { display: flex; align-items: center; gap: 9px; margin-left: 10px; }

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--glass); color: var(--muted); cursor: pointer;
  transition: all .22s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: color-mix(in srgb, var(--primary) 50%, transparent); transform: translateY(-1px); }

.burger { display: none; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  transform: translateX(100%); transition: transform .42s var(--ease);
  padding: 24px var(--gutter); overflow-y: auto;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  padding: 15px 16px; border-radius: var(--r-md); font-size: 1.12rem; font-weight: 600;
  border: 1px solid transparent; transition: all .22s var(--ease);
}
.drawer nav a:hover, .drawer nav a.active { background: var(--glass); border-color: var(--line); }
.drawer-foot { margin-top: auto; padding-top: 28px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------------- *
 * 6. BUTTONS
 * ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 25px; border-radius: var(--r-pill);
  font-weight: 600; font-size: .945rem; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .26s var(--ease), box-shadow .26s var(--ease), background .26s var(--ease), border-color .26s var(--ease);
  position: relative; overflow: hidden;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary { background: var(--grad); color: #04070f; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 48px color-mix(in srgb, var(--primary) 42%, transparent); }
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.34) 50%, transparent 80%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }

.btn-ghost { background: var(--glass); border-color: var(--line); color: var(--text); backdrop-filter: blur(12px); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--primary) 55%, transparent); transform: translateY(-2px); background: color-mix(in srgb, var(--primary) 10%, var(--glass)); }

.btn-outline { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-outline:hover { color: var(--text); border-color: var(--primary); }

.btn-sm { padding: 9px 17px; font-size: .855rem; }
.btn-lg { padding: 16px 32px; font-size: 1.01rem; }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- *
 * 7. CARDS & 3D
 * ---------------------------------------------------------------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--primary) 46%, transparent), transparent 42%, transparent 62%, color-mix(in srgb, var(--tertiary) 34%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease); pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover { box-shadow: var(--shadow-md); }

/* 3D tilt container — JS sets --rx / --ry / --mx / --my */
.tilt {
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
  transition: transform .5s var(--ease-out);
}
.tilt.is-tilting { transition: transform .08s linear; }
.tilt-inner { transform: translateZ(34px); transform-style: preserve-3d; }
.tilt-shine {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
              color-mix(in srgb, var(--primary) 20%, transparent), transparent 62%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.tilt:hover .tilt-shine { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .tilt { transform: none !important; }
  .orb { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------------------------------------------------------------- *
 * 8. SCROLL REVEAL
 * ---------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.no-fx .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- *
 * 9. ELEMENTS
 * ---------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 15px 6px 8px; border-radius: var(--r-pill);
  background: var(--glass); border: 1px solid var(--line);
  font-size: .765rem; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); backdrop-filter: blur(12px);
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 22%, transparent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .42; } }

.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .715rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  background: color-mix(in srgb, var(--primary) 16%, transparent);
  color: var(--primary); border: 1px solid color-mix(in srgb, var(--primary) 32%, transparent);
}
.badge-soft { background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); border-color: var(--line); }
.badge-success { background: color-mix(in srgb, var(--success) 15%, transparent); color: var(--success); border-color: color-mix(in srgb, var(--success) 32%, transparent); }

.section-head { max-width: 760px; margin-bottom: clamp(34px, 5vw, 58px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-block: 16px 14px; }

.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); border: 0; margin-block: 34px; }

/* Icon tiles */
.icon-tile {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--grad-soft);
  border: 1px solid color-mix(in srgb, var(--primary) 26%, transparent);
  color: var(--primary);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.icon-tile svg { width: 25px; height: 25px; }
.card:hover .icon-tile { transform: translateY(-3px) rotate(-5deg); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 26%, transparent); }

/* ---------------------------------------------------------------- *
 * 10. HERO
 * ---------------------------------------------------------------- */
.hero { padding-block: clamp(56px, 9vw, 108px) clamp(48px, 7vw, 92px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: clamp(30px, 5vw, 62px); align-items: center; }
.hero h1 { margin-block: 20px 22px; }
.hero h1 .line-2 { display: block; }
.hero .lead { max-width: 56ch; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 32px; }

.hero-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line-soft); }
.hero-trust-item { display: flex; align-items: center; gap: 9px; font-size: .855rem; color: var(--muted); }
.hero-trust-item svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; }

/* Floating 3D visual stack */
.hero-visual { position: relative; perspective: 1400px; min-height: 440px; }
.hero-stack { position: relative; transform-style: preserve-3d; transform: rotateY(-13deg) rotateX(7deg); }

.float-card {
  position: absolute; border-radius: var(--r-lg);
  background: var(--glass-strong); border: 1px solid var(--line);
  backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
  padding: 17px; will-change: transform;
}
.fc-main {
  position: relative; inset: auto; width: 100%; padding: 0; overflow: hidden;
  animation: floaty 7s ease-in-out infinite;
}
.fc-main img { width: 100%; aspect-ratio: 16/11; object-fit: cover; }
.fc-main::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, color-mix(in srgb, var(--bg) 82%, transparent));
}
.fc-main-label { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.fc-main-label strong { display: block; font-family: var(--font-heading), sans-serif; font-size: 1.02rem; }
.fc-main-label span { font-size: .78rem; color: var(--muted); }

.fc-stat {
  top: -26px; right: -18px; width: 172px; z-index: 3;
  animation: floaty 6s ease-in-out .5s infinite;
}
.fc-uptime {
  bottom: -30px; left: -22px; width: 208px; z-index: 3;
  animation: floaty 8s ease-in-out 1.1s infinite;
}
.fc-label { font-size: .69rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.fc-value { font-family: var(--font-heading), sans-serif; font-size: 1.68rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }

.spark { display: flex; align-items: flex-end; gap: 3px; height: 30px; margin-top: 10px; }
.spark i { flex: 1; border-radius: 2px; background: var(--grad); opacity: .82; animation: sparkGrow 1.8s var(--ease) both; }
@keyframes sparkGrow { from { height: 3px; } }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent); animation: ring 2s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 55%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

/* ---------------------------------------------------------------- *
 * 11. STATS
 * ---------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--glass); padding: 28px 22px; text-align: center; transition: background .34s var(--ease); }
.stat:hover { background: color-mix(in srgb, var(--primary) 8%, var(--glass)); }
.stat-value { font-family: var(--font-heading), sans-serif; font-size: clamp(1.9rem, 4vw, 2.75rem); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { margin-top: 9px; font-size: .8rem; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }

/* ---------------------------------------------------------------- *
 * 12. SERVICE CARDS
 * ---------------------------------------------------------------- */
.svc-card { display: flex; flex-direction: column; height: 100%; }
.svc-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--bg); }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .svc-media img { transform: scale(1.07); }
.svc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, color-mix(in srgb, var(--surface) 92%, transparent)); }
.svc-media .badge { position: absolute; top: 13px; left: 13px; z-index: 2; backdrop-filter: blur(10px); }
.svc-body { padding: 21px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.svc-body h3 { font-size: 1.16rem; }
.svc-body p { font-size: .91rem; color: var(--muted); line-height: 1.66; }
.svc-feats { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-direction: column; gap: 6px; }
.svc-feats li { display: flex; gap: 8px; font-size: .845rem; color: var(--muted); }
.svc-feats li::before { content: "▸"; color: var(--primary); flex-shrink: 0; }
.svc-foot { margin-top: auto; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-soft); }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-size: .885rem; font-weight: 600; color: var(--primary); }
.link-arrow svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card:hover .link-arrow svg, a:hover > .link-arrow svg { transform: translateX(4px); }

/* Compact icon-only service grid */
.svc-mini { padding: 24px; display: flex; flex-direction: column; gap: 13px; height: 100%; }
.svc-mini h3 { font-size: 1.03rem; }
.svc-mini p { font-size: .875rem; color: var(--muted); }

/* ---------------------------------------------------------------- *
 * 13. PRODUCTS
 * ---------------------------------------------------------------- */
.prod-card { display: flex; flex-direction: column; height: 100%; }
.prod-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--primary) 8%, var(--bg)), var(--bg)); }
.prod-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .prod-media img { transform: scale(1.06) translateY(-4px); }
.prod-media .badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.prod-body { padding: 19px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.prod-cat { font-size: .71rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prod-body h3 { font-size: 1.04rem; line-height: 1.3; }
.prod-body > p { font-size: .87rem; color: var(--muted); line-height: 1.6; }
.prod-price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; padding-top: 13px; }
.price-now { font-family: var(--font-heading), sans-serif; font-size: 1.3rem; font-weight: 700; color: var(--text); }
.price-was { font-size: .87rem; color: var(--muted); text-decoration: line-through; }
.prod-foot { padding: 0 19px 19px; }

.filter-bar { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-chip {
  padding: 9px 17px; border-radius: var(--r-pill); font-size: .875rem; font-weight: 500;
  border: 1px solid var(--line); background: var(--glass); color: var(--muted);
  transition: all .24s var(--ease); cursor: pointer;
}
.filter-chip:hover { color: var(--text); border-color: color-mix(in srgb, var(--primary) 46%, transparent); }
.filter-chip.active { background: var(--grad); border-color: transparent; color: #04070f; font-weight: 600; }

/* Product detail */
.prod-hero { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.prod-gallery { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--glass); }
.prod-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.prod-thumbs { display: flex; gap: 9px; margin-top: 11px; flex-wrap: wrap; }
.prod-thumbs img { width: 76px; height: 60px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); cursor: pointer; transition: all .24s var(--ease); }
.prod-thumbs img:hover, .prod-thumbs img.active { border-color: var(--primary); transform: translateY(-2px); }

.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table tr { border-bottom: 1px solid var(--line-soft); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table th { text-align: left; padding: 12px 16px 12px 0; font-weight: 600; color: var(--muted); width: 38%; vertical-align: top; }
.spec-table td { padding: 12px 0; vertical-align: top; }

.highlight-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.highlight-list li { display: flex; gap: 11px; font-size: .925rem; }
.highlight-list li svg { width: 19px; height: 19px; color: var(--success); flex-shrink: 0; margin-top: 2px; }

/* ---------------------------------------------------------------- *
 * 14. POSTS
 * ---------------------------------------------------------------- */
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .post-media img { transform: scale(1.06); }
.post-body { padding: 21px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: .765rem; color: var(--muted); flex-wrap: wrap; }
.post-body h3 { font-size: 1.14rem; line-height: 1.34; }
.post-body p { font-size: .9rem; color: var(--muted); line-height: 1.66; }
.post-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); }

.post-card-wide { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.post-card-wide .post-media { aspect-ratio: auto; height: 100%; min-height: 268px; }
.post-card-wide .post-body { padding: clamp(22px, 3vw, 34px); }
.post-card-wide h3 { font-size: clamp(1.28rem, 2.4vw, 1.85rem); }

/* Article */
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 282px; gap: clamp(28px, 4vw, 52px); align-items: start; }
.article-hero img { width: 100%; aspect-ratio: 21/9; object-fit: cover; border-radius: var(--r-xl); border: 1px solid var(--line); }

.prose { font-size: 1.045rem; line-height: 1.82; }
.prose > * + * { margin-top: 1.22em; }
.prose h2 { font-size: clamp(1.45rem, 2.7vw, 1.95rem); margin-top: 2.1em; padding-top: .35em; scroll-margin-top: 100px; }
.prose h3 { font-size: clamp(1.14rem, 2vw, 1.34rem); margin-top: 1.7em; scroll-margin-top: 100px; }
.prose h2 + *, .prose h3 + * { margin-top: .72em; }
.prose p { color: color-mix(in srgb, var(--text) 88%, var(--muted)); }
.prose strong { color: var(--text); font-weight: 650; }
.prose em { color: var(--muted); }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { text-decoration-thickness: 2px; }
.prose ul, .prose ol { padding-left: 1.35em; display: flex; flex-direction: column; gap: .52em; }
.prose li { color: color-mix(in srgb, var(--text) 88%, var(--muted)); padding-left: .2em; }
.prose li::marker { color: var(--primary); }
.prose blockquote {
  border-left: 3px solid var(--primary); padding: 4px 0 4px 22px;
  font-size: 1.1rem; font-style: italic; color: var(--muted);
}
.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .875em;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary); padding: 2px 7px; border-radius: 5px;
}
.prose pre {
  background: color-mix(in srgb, var(--bg) 70%, #000); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 19px; overflow-x: auto; font-size: .875rem;
}
.prose pre code { background: none; color: var(--text); padding: 0; }
.prose hr { border: 0; height: 1px; background: var(--line); margin-block: 2.2em; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--line); margin-inline: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.prose th { background: color-mix(in srgb, var(--text) 5%, transparent); font-weight: 600; }

.sidebar { position: sticky; top: calc(var(--header-h) + 22px); display: flex; flex-direction: column; gap: 18px; }
.toc { padding: 21px; }
.toc-title { font-size: .72rem; letter-spacing: .11em; text-transform: uppercase; color: var(--muted); margin-bottom: 13px; }
.toc ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.toc a { display: block; padding: 6px 11px; border-radius: var(--r-sm); font-size: .845rem; color: var(--muted); border-left: 2px solid transparent; transition: all .22s var(--ease); }
.toc a:hover { color: var(--text); background: color-mix(in srgb, var(--text) 5%, transparent); }
.toc a.active { color: var(--primary); border-left-color: var(--primary); background: color-mix(in srgb, var(--primary) 9%, transparent); }
.toc .lvl-3 a { padding-left: 22px; font-size: .805rem; }

.author-box { display: flex; gap: 15px; padding: 22px; align-items: flex-start; }
.avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04070f; font-weight: 700; font-size: 1.05rem; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.share-row { display: flex; gap: 8px; }
.share-row a { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); color: var(--muted); transition: all .24s var(--ease); }
.share-row a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.share-row svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- *
 * 15. FORMS
 * ---------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: .835rem; font-weight: 600; color: var(--muted); }
.field label .req { color: var(--primary); }
.input, .textarea, .select {
  width: 100%; padding: 13px 16px;
  background: color-mix(in srgb, var(--bg) 55%, var(--glass));
  border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text); font-size: .945rem;
  transition: border-color .24s var(--ease), box-shadow .24s var(--ease), background .24s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: color-mix(in srgb, var(--muted) 72%, transparent); }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent);
}
.textarea { min-height: 142px; resize: vertical; line-height: 1.65; }
.select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3c4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 17px; padding-right: 42px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.alert { padding: 14px 18px; border-radius: var(--r-md); font-size: .915rem; display: flex; gap: 11px; align-items: flex-start; }
.alert svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 2px; }
.alert-success { background: color-mix(in srgb, var(--success) 12%, transparent); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); color: var(--success); }
.alert-error { background: color-mix(in srgb, #ef4444 12%, transparent); border: 1px solid color-mix(in srgb, #ef4444 30%, transparent); color: #f87171; }

/* Newsletter */
.subscribe { display: flex; gap: 9px; flex-wrap: wrap; }
.subscribe .input { flex: 1; min-width: 190px; }

/* ---------------------------------------------------------------- *
 * 16. MISC SECTIONS
 * ---------------------------------------------------------------- */
.breadcrumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); padding-block: 22px 0; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: .5; }

.page-hero { padding-block: clamp(36px, 5vw, 62px) clamp(28px, 4vw, 44px); }
.page-hero h1 { margin-block: 15px 15px; }

.cta-panel {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--line);
  padding: clamp(32px, 5vw, 62px); text-align: center;
  background:
    radial-gradient(640px circle at 22% 0%, color-mix(in srgb, var(--primary) 20%, transparent), transparent 62%),
    radial-gradient(640px circle at 82% 100%, color-mix(in srgb, var(--tertiary) 18%, transparent), transparent 62%),
    var(--glass);
  backdrop-filter: blur(18px);
}
.cta-panel h2 { max-width: 20ch; margin-inline: auto; }
.cta-panel p { max-width: 58ch; margin: 16px auto 0; }
.cta-panel .row { justify-content: center; margin-top: 30px; }

.quote-card { padding: 26px; display: flex; flex-direction: column; gap: 15px; height: 100%; }
.quote-mark { font-family: Georgia, serif; font-size: 3.1rem; line-height: .6; color: var(--primary); opacity: .34; }
.quote-card blockquote { font-size: .975rem; line-height: 1.72; color: color-mix(in srgb, var(--text) 90%, var(--muted)); }
.quote-who { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; gap: 12px; }
.stars { display: flex; gap: 2px; color: #fbbf24; }
.stars svg { width: 14px; height: 14px; }

.team-card { padding: 24px; text-align: center; height: 100%; }
.team-avatar { width: 84px; height: 84px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #04070f; font-family: var(--font-heading), sans-serif; font-size: 1.62rem; font-weight: 700; overflow: hidden; box-shadow: 0 10px 30px color-mix(in srgb, var(--primary) 26%, transparent); }
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-role { font-size: .79rem; color: var(--primary); letter-spacing: .07em; text-transform: uppercase; margin-top: 5px; }
.team-card p { font-size: .875rem; color: var(--muted); margin-top: 11px; line-height: 1.66; }

.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--glass); overflow: hidden; transition: border-color .3s var(--ease); }
.faq-item[open] { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: .985rem; display: flex; align-items: center; justify-content: space-between; gap: 16px; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); flex-shrink: 0; transition: transform .3s var(--ease); line-height: 1; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-answer { padding: 0 22px 20px; color: var(--muted); font-size: .935rem; line-height: 1.72; }

.contact-tile { display: flex; gap: 15px; padding: 21px; align-items: flex-start; }
.contact-tile .icon-tile { width: 44px; height: 44px; }
.contact-tile .icon-tile svg { width: 21px; height: 21px; }
.contact-tile-label { font-size: .73rem; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.contact-tile-value { font-weight: 600; margin-top: 3px; word-break: break-word; }
.contact-tile-value a:hover { color: var(--primary); }

.pagination { display: flex; gap: 7px; justify-content: center; margin-top: 46px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 42px; height: 42px; padding-inline: 13px;
  display: grid; place-items: center; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--glass); font-size: .895rem; color: var(--muted);
  transition: all .22s var(--ease);
}
.pagination a:hover { color: var(--text); border-color: var(--primary); }
.pagination .current { background: var(--grad); color: #04070f; border-color: transparent; font-weight: 600; }
.pagination .disabled { opacity: .35; pointer-events: none; }

.empty-state { padding: 62px 24px; text-align: center; color: var(--muted); }
.empty-state svg { width: 46px; height: 46px; margin: 0 auto 17px; opacity: .45; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px); padding-top: 14vh;
}
.search-overlay.open { display: block; }
.search-box { width: min(100% - 40px, 620px); margin-inline: auto; }
.search-box .input { font-size: 1.1rem; padding: 18px 22px; }

/* ---------------------------------------------------------------- *
 * 17. FOOTER
 * ---------------------------------------------------------------- */
.site-footer { position: relative; z-index: 2; margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 42%, transparent); backdrop-filter: blur(16px); }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: clamp(24px, 4vw, 48px); padding-block: clamp(44px, 6vw, 70px); }
.footer-col h4 { font-size: .755rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 17px; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: .9rem; color: var(--muted); transition: color .22s var(--ease); }
.footer-col a:hover { color: var(--primary); }
.footer-about p { font-size: .9rem; color: var(--muted); line-height: 1.72; margin-top: 15px; }
.footer-badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 17px; padding: 7px 14px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--success) 30%, transparent); background: color-mix(in srgb, var(--success) 10%, transparent); font-size: .78rem; color: var(--success); }
.footer-badge svg { width: 14px; height: 14px; }
.social-row { display: flex; gap: 8px; margin-top: 19px; flex-wrap: wrap; }
.social-row a { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--line); background: var(--glass); color: var(--muted); transition: all .26s var(--ease); }
.social-row a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 22px color-mix(in srgb, var(--primary) 24%, transparent); }
.social-row svg { width: 17px; height: 17px; }
.footer-bottom { padding-block: 22px; border-top: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: .835rem; color: var(--muted); }
.footer-legal { display: flex; gap: 17px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--primary); }

/* WhatsApp float */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 11px;
  padding: 12px 19px 12px 13px; border-radius: var(--r-pill);
  background: #25d366; color: #06280f; font-weight: 600; font-size: .895rem;
  box-shadow: 0 12px 34px rgba(37, 211, 102, .38);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 46px rgba(37, 211, 102, .5); }
.wa-float svg { width: 23px; height: 23px; }
.wa-float .wa-label { display: inline; }

.to-top {
  position: fixed; right: 20px; bottom: 88px; z-index: 89;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: var(--glass-strong); color: var(--muted);
  backdrop-filter: blur(12px); opacity: 0; pointer-events: none;
  transition: all .34s var(--ease);
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }

/* ---------------------------------------------------------------- *
 * 18. RESPONSIVE
 * ---------------------------------------------------------------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; flex-direction: row; flex-wrap: wrap; }
  .sidebar > * { flex: 1; min-width: 250px; }
  .toc { display: none; }
}

@media (max-width: 920px) {
  .nav, .header-actions .btn { display: none; }
  .burger { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 330px; margin-top: 18px; }
  .hero-stack { transform: none; }
  .fc-stat { top: -16px; right: 0; width: 150px; }
  .fc-uptime { bottom: -18px; left: 0; width: 186px; }
  .prod-hero { grid-template-columns: 1fr; }
  .post-card-wide { grid-template-columns: 1fr; }
  .post-card-wide .post-media { min-height: 210px; aspect-ratio: 16/9; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .hero-cta .btn { width: 100%; }
  .wa-float .wa-label { display: none; }
  .wa-float { padding: 14px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .article-hero img { aspect-ratio: 16/10; }
}

@media print {
  .site-header, .site-footer, .wa-float, .to-top, .bg-layer, .sidebar, .share-row { display: none !important; }
  body { background: #fff; color: #000; }
  .prose { font-size: 11pt; }
}
