/* ============================= */
/* ==== Base / Theme / Reset ==== */
/* ============================= */

/* Global design tokens (colors, spacing, sizes).
   Change these here and the whole site updates consistently. */
:root{
  --bg:#0b1020;                     /* App background (dark navy) */
  --ink:#ffffff;                    /* Primary text color (white) */
  --muted:rgba(255,255,255,.75);    /* Muted/secondary text */
  --line:rgba(255,255,255,.12);     /* Hairline borders/dividers */

  /* Brand gradient (used for logos, accents, special text) */
  --brand-grad-start:#78c8ff;       /* Light blue */
  --brand-grad-mid:#8aa3ff;         /* Cornflower */
  --brand-grad-end:#b084ff;         /* Violet */

  /* Header spacing knobs (desktop only). These let you tune nav spacing
     without hunting through many rules. */
  --brand-to-menu: clamp(20px, 9vw, 140px); /* Brand → first menu item gap */
  --menu-gap: 12px;                          /* Gap between menu links */
  --login-gap: 12px;                         /* Gap before "Log in" */
  --cta-gap: 12px;                           /* Gap before CTA button */
  --header-max: 1300px;                      /* Max inner width of header */
  --header-pad: 16px;                        /* Horizontal padding */

  /* Header height + safe areas (for notched phones). Used to offset body on mobile. */
  --header-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Consistent box-sizing so padding/border don’t change element width */
*,
*::before,
*::after{ box-sizing:border-box }

/* Prevent horizontal scroll surprises and ensure full-height base */
html,body{ min-height:100%; height:auto; overflow-x:hidden; }

/* Global body defaults */
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial,sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: max(16px, var(--safe-bottom)); /* leave space for iOS home bar */
}

/* Link defaults */
a{ color:#9ad; text-decoration:none }
a:hover{ color:#cdf }

/* Make images responsive by default */
img{ max-width:100%; display:block }

/* ===================== */
/* ===== Containers ==== */
/* ===================== */

/* Standard content container */
.container{ max-width:1300px; margin:0 auto; padding:0 16px }

/* Extra-wide variant (for hero/media) */
.container--xl{ max-width:1600px; margin:0 auto; padding-inline: clamp(14px,3vw,40px); }

/* Narrow page container (long-form pages) */
.page{ max-width:1100px; margin:24px auto; padding:0 16px }

/* ================= */
/* ===== Buttons ==== */
/* ================= */
.btn{
  display:inline-flex; align-items:center; gap:.5rem;
  font-weight:700; border-radius:14px; padding:10px 14px;
}
.btn-primary{ background:#fff; color:#0b1020 }          /* Solid white CTA */
.btn-ghost{ border:1px solid var(--line); color:#fff }  /* Subtle/outlined CTA */

/* ================================== */
/* ========== Image helpers ========= */
/* ================================== */

/* Carded media: rounded, inset border, shadow */
.media-card{
  border-radius:22px; overflow:hidden; background:#0b1020;
  /* box-shadow:0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04); */
}

/* Decor soft glow around media blocks */
.soft-glow{ position:relative; }
.soft-glow::after{
  content:""; position:absolute; inset:-3% -3% -12% -3%; pointer-events:none;
  filter:blur(28px); opacity:.55;
  background:
    radial-gradient(60% 40% at 65% 30%, rgba(120,200,255,.28), transparent 60%),
    radial-gradient(40% 40% at 80% 75%, rgba(176,132,255,.22), transparent 60%);
}

/* Ratio shim: keep a 16:10 box on desktop/tablet for images/videos when height unknown */
.ratio-16x10{ position:relative; }
.ratio-16x10::before{ content:""; display:block; padding-top:62.5%; } /* 10/16 = 0.625 */
.ratio-16x10 > img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }

/* Utility for forcing cover behavior */
.img-cover{ width:100%; height:100%; object-fit:cover; display:block; }

/* ============================== */
/* ===== Header / Navigation ==== */
/* ============================== */

.site-header{
  position:sticky; top:0; z-index:1000;           /* Sticks to the top */
  background:rgba(11,16,32,.68);                  /* Frosted dark */
  backdrop-filter: blur(8px);                      /* Blur the page behind */
  border-bottom:1px solid var(--line);             /* Subtle divider */
}

/* Header inner width & padding controlled by tokens */
.site-header .container{ max-width: var(--header-max); padding-inline: var(--header-pad); }

/* Flex row for brand + nav + actions */
.site-header .inner{
  height:64px; display:flex; align-items:center;
  justify-content:space-between; gap:16px;
}

/* Brand (logo + wordmark) */
.site-brand{
  display:flex; align-items:center; gap:4px;
  color:#fff; font-weight:800;
}
.site-brand:focus-visible{ outline:2px solid #fff; outline-offset:2px } /* keyboard focus */
.site-logo{ height:30px; width:auto; display:block; margin-right:-12px; } /* slight optical tweak */

/* Gradient wordmark */
.brand-name{
  font-weight:800; font-size:18px; letter-spacing:.2px; line-height:1;
  background:linear-gradient(90deg,var(--brand-grad-start),var(--brand-grad-mid),var(--brand-grad-end));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
@media (min-width:1024px){ .brand-name{ font-size:20px } }
.brand-name:hover{ filter:brightness(1.06) }

/* Desktop nav links */
.nav{ display:flex; gap:16px; }
.nav a{
  color:rgba(255,255,255,.85); font-weight:600; font-size:14px;
  padding:8px 10px; border-radius:10px;
}
.nav a:hover,
.nav a[aria-current="page"],
.nav a.active{ color:#fff; background:rgba(255,255,255,.08) } /* active/hover chip */

/* Login link matches nav look */
.nav-login{
  color:rgba(255,255,255,.85); font-weight:600; font-size:14px;
  padding:8px 10px; border-radius:10px;
}
.nav-login:hover{ color:#fff; background:rgba(255,255,255,.08) }

/* Primary top-right CTA */
.nav-cta{ border:1px solid var(--line); color:#fff; font-weight:700; padding:10px 14px; border-radius:14px; }
.nav-cta:hover{ background:rgba(255,255,255,.08) }

/* Hamburger (only visible on mobile) */
.nav-toggle{
  display:none; background:transparent; border:0; padding:8px; border-radius:10px; cursor:pointer; color:#fff;
}
.nav-toggle:focus-visible{ outline:2px solid #fff; outline-offset:2px }
.nav-toggle span{ display:inline-block; width:20px; height:2px; background:#fff; position:relative; }
.nav-toggle span::before,
.nav-toggle span::after{
  content:""; position:absolute; left:0; width:20px; height:2px; background:#fff; transform-origin:center;
}
.nav-toggle span::before{ top:-6px } .nav-toggle span::after{ top:6px }

/* Slide-down mobile menu panel */
.mobile-panel[hidden]{ display:none !important }  /* honor hidden attribute */
.mobile-panel{
  position:absolute; inset-inline:0; top:64px;
  background:rgba(11,16,32,.92); backdrop-filter: blur(8px);
  border-bottom:1px solid var(--line); padding:12px 16px 16px;
  display:grid; gap:10px; animation: panelIn .18s ease-out;
  padding-bottom: max(12px, var(--safe-bottom));
}
.mobile-panel a{
  color:#fff; font-weight:700; padding:12px 10px; border-radius:10px; background:rgba(255,255,255,.06);
}
.mobile-panel a:hover{ background:rgba(255,255,255,.12) }

/* Mobile panel entrance */
@keyframes panelIn{ from{ opacity:0; transform:translateY(-6px) } to{ opacity:1; transform:translateY(0) } }

/* === Mobile nav visibility ===
   Hide desktop nav on small screens; show burger. */
@media (max-width: 820px){
  .nav { display: none !important; }
  .nav-login, .nav-cta, .nav-group { display: none !important; }
  .nav-toggle{ display: inline-flex !important; align-items:center; justify-content:center; }
  .mobile-panel{ z-index: 4100; } /* above header */
}

/* Desktop spacing tuning from tokens */
@media (min-width:821px){
  .site-header .inner{ justify-content:flex-start; } /* brand on left, others push right */
  .nav{ margin-left:auto !important; padding-left: var(--brand-to-menu) !important; gap: var(--menu-gap) !important; }
  .nav-login{ margin-left: var(--login-gap) !important; }
  .nav-cta  { margin-left: var(--cta-gap)  !important; }
  .nav a, .nav-login{ font-size:16px !important; padding:10px 12px; }
}

/* ===== About dropdown (desktop) ===== */
.nav-group{ position:relative; }     /* container for the dropdown */
.nav-parent{
  appearance:none; background:transparent; border:0; cursor:pointer;
  color:rgba(255,255,255,.85); font-weight:600; padding:10px 12px; border-radius:10px;
}
@media (min-width:821px){ .nav-parent{ font-size:16px !important; } }
.nav-parent:hover,
.nav-parent:focus-visible{ color:#fff; background:rgba(255,255,255,.08); outline:2px solid transparent; }

/* Dropdown panel */
.nav-submenu{
  position:absolute; top:calc(100% + 8px); left:0; z-index:1200;
  min-width:220px; padding:8px; display:none;
  background:rgba(11,16,32,.96); backdrop-filter:blur(8px);
  border:1px solid var(--line); border-radius:12px; box-shadow:0 8px 30px rgba(0,0,0,.35);
}
.nav-submenu a{ display:block; color:#fff; font-weight:600; padding:8px 10px; border-radius:8px; }
.nav-submenu a:hover{ background:rgba(255,255,255,.08); }

/* Show submenu on hover/focus (desktop only) */
@media (min-width:821px){
  .nav-group:hover .nav-submenu,
  .nav-group:focus-within .nav-submenu,
  .nav-group.open .nav-submenu{ display:grid; gap:4px; }
}
/* Hide the whole group on phones (we show links in mobile panel instead) */
@media (max-width:820px){ .nav-group{ display:none } }

/* ======================== */
/* === Consent Banner ==== */
/* ======================== */
/* Hidden by default; show it with JS when needed. */
#consent-banner {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #111;
  color: #fff;
  padding: 16px;
  font-size: 14px;
  z-index: 9999;
}
#consent-banner p { margin: 0 0 8px 0; }
#consent-banner a { color: #78c8ff; }        /* link inside banner */
#consent-banner button {
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
#consent-banner #accept-consent {
  margin-right: 8px;
  border: 0;
  background: #78c8ff;
  color: #000;
}
#consent-banner #reject-consent {
  border: 1px solid #555;
  background: #222;
  color: #fff;
}

/* ========================== */
/* ========= HERO =========== */
/* ========================== */

/* Top “hero” area; we keep padding at 0 and rely on .wrap for spacing.
   The transparent top border prevents margin-collapsing with the next section. */
.hero{ padding: 0; border-top:1px solid transparent; }

/* Let hero breathe a bit wider than the normal container */
.hero .container{ max-width:1600px; padding-inline: clamp(14px,3vw,40px); }

/* Vertical padding that scales with viewport */
.hero .wrap{ padding-block: clamp(28px, 5vw, 56px); }

/* HERO GRID (mobile-first):
   - On phones: media first (full-bleed style), copy after
   - On desktop: we flip to "copy media" two-column layout below */
.hero-grid{
  display:grid; gap: clamp(14px, 2.6vw, 36px); align-items:center;
  grid-template-areas: "media" "copy";      /* order on mobile */
  grid-template-columns: 1fr;               /* single column on mobile */
}
.hero-media{ grid-area: media; }            /* named area for image/video */
.hero-copy { grid-area: copy; }             /* named area for text */

/* Large hero heading */
.hero h2{
  font:900 clamp(28px,6vw,56px)/1.08 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial;
  margin:10px 0 8px;
}

/* Gradient headline text */
.gradient-text {
  background: linear-gradient(90deg, #78c8ff, #8aa3ff, #b084ff, #8dffcb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

/* Supporting paragraph width + tone */
.hero p{ max-width:720px; color:var(--muted); }

/* Desktop layout switch:
   - Two columns with slightly wider text column
   - Taller min-height for visual impact */
@media (min-width:1024px){
  .hero-grid{
    grid-template-columns: 1.1fr 0.9fr;   /* text : media ratio */
    grid-template-areas: "copy media";     /* text left, media right */
    min-height: clamp(560px, 70vh, 820px);
  }
  .hero-media{ height: min(62vh, 640px); } /* cap media height so it doesn’t dominate */
  .hero-media .img-cover{ height:100%; }   /* ensure internal img fills the frame */
}

/* ================================== */
/* ============ FOOTER ============== */
/* ================================== */

/* Frosted footer with divider and safe-area padding */
.site-footer{
  border-top:1px solid var(--line);
  background:rgba(11,16,32,.92);
  backdrop-filter:blur(6px);
  margin-top:56px;
  padding-bottom: max(16px, var(--safe-bottom));
}

/* Footer top: brand on left, CTA text/buttons on right (wraps on mobile) */
.site-footer .footer-top{
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:22px; padding:24px 0;
}
.site-footer .footer-brand{
  display:flex; align-items:center; gap:8px; color:#fff; text-decoration:none;
}
.site-footer .footer-brand .site-logo{ height:28px; width:auto; margin-right:-6px; }
.site-footer .footer-cta p{ margin:0 0 10px; max-width:680px; color:var(--muted); }
.site-footer .footer-cta-actions{ display:flex; gap:10px; flex-wrap:wrap; }

/* Footer grid (links): desktop = 5 columns */
.site-footer nav.footer-grid{
  display:grid !important;
  grid-template-columns: repeat(5, minmax(0,1fr)) !important;
  column-gap:28px; row-gap:12px;
  padding:12px 0 18px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

/* Footer link column styles */
.site-footer .footer-col h3{
  margin:0 0 10px; font-weight:800; font-size:14px; letter-spacing:.3px; color:#fff;
}
.site-footer .footer-col a{
  display:block; padding:6px 0; color:rgba(255,255,255,.88); border-radius:8px;
}
.site-footer .footer-col a:hover{ color:#fff; background:rgba(255,255,255,.06); padding-left:8px; }

/* Social links stack */
.site-footer .footer-social{ display:grid; gap:8px; }
.site-footer .footer-social a{
  display:inline-flex; align-items:center; gap:8px;
  padding:8px 10px; border:1px solid var(--line); border-radius:10px; color:#fff;
}
.site-footer .footer-social a:hover{ background:rgba(255,255,255,.08); }

/* Footer bottom row: © + legal links */
.site-footer .footer-bottom{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:12px; padding:14px 0 20px; color:rgba(255,255,255,.7);
}
.site-footer .footer-legal{ display:flex; gap:16px; }
.site-footer .footer-legal a{ color:rgba(255,255,255,.85); }
.site-footer .footer-legal a:hover{ color:#fff; }

/* Responsive footer columns:
   tablet & phones = 2 columns */
@media (max-width:960px){
  .site-footer .footer-top{ flex-direction:column; }
  .site-footer nav.footer-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}
@media (max-width:560px){
  .site-footer nav.footer-grid{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

/* Fallback if CSS Grid is unsupported (very old browsers) */
@supports not (display:grid){
  .site-footer nav.footer-grid{ display:flex !important; flex-wrap:wrap; gap:12px 28px; }
  .site-footer nav.footer-grid .footer-col{ flex:1 1 220px; }
}

/* ====== Mobile: fixed header + full-bleed hero ======
   These rules only apply <=820px width. */
@media (max-width:820px){
  .site-header{ position: fixed; top:0; left:0; right:0; z-index:4000; } /* pin header */
  body{ padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)) !important; } /* keep hero from hiding under header */

  /* Make the hero content edge-to-edge on phones for a modern look */
  .hero .container{ padding-inline: 0 !important; }
  .hero .wrap{ padding-top: 8px !important; }

  /* Stack media above copy (already set in mobile-first grid),
     but we re-assert the areas to be explicit; tighten the gap. */
  .hero-grid{ grid-template-areas:"media" "copy"; grid-template-columns:1fr; gap:14px; }

  /* Full-bleed media box with rounded corners + drop shadow */
  .hero-media{
    width:100vw; max-width:100vw; margin-left:50%; transform:translateX(-50%);
    border-radius:18px; aspect-ratio:16 / 9;
    /* box-shadow:0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.04); */
  }

  /* If you used .ratio-16x10 above, disable that shim on phones to avoid double sizing */
  .ratio-16x10::before{ display:none; padding-top:0; }

  /* Crop the image nicely on small screens */
  .hero-media img{ width:100%; height:100%; object-fit:cover; object-position:center 26%; display:block; }

  /* Add side padding for the hero text so it doesn’t touch edges */
  .hero-copy{ padding-inline:16px; }
}

/* === Fix header alignment (ensures nav items have equal height click targets) === */
.site-header .nav a,
.site-header .nav-login,
.site-header .nav-parent{
  display:inline-flex; align-items:center; height:40px; padding:0 12px; line-height:1;
}
.site-header .nav-parent{
  -webkit-appearance:none; appearance:none; border:0; margin:0; background:transparent;
}
@media (min-width:821px){
  .site-header .nav a, .site-header .nav-login, .site-header .nav-parent{
    height:42px; padding:0 12px; font-size:16px;
  }
}

/* =========================== */
/* ===== Consultation form ====*/
/* =========================== */
/* Alert components used around forms */
.alert{ display:none; margin-top:14px; border-radius:10px; padding:12px 14px; }
.alert.ok{ display:block; background:rgba(120,200,255,.12); border:1px solid #78c8ff; }
.alert.err{ display:block; background:rgba(255,120,120,.12); border:1px solid #ff7878; }

/* Multi-select UX */
select[multiple]{ min-height:160px; overflow-y:auto; }

/* Consent checkbox + text */
.agree { margin:14px 0; display:grid; gap:10px; }
.agree-line{
  display:flex; align-items:flex-start; gap:10px; margin-top:12px;
  color:var(--muted); font-size:14px; line-height:1.45; flex-wrap:wrap; min-width:0;
}
.agree-line input[type="checkbox"]{
  flex:0 0 auto; inline-size:18px; block-size:18px; margin-top:3px; accent-color:#78c8ff;
}
.agree-text{ display:inline; min-width:0; }
.agree-line a{ display:inline; white-space:nowrap; color:#cfe3ff; text-decoration:none; }
.agree-line a:hover{ text-decoration:underline; }
@media (max-width:480px){ .agree-line{ gap:8px; } }

/* Reset any 3rd-party “form-check” styles that might leak in */
.form-check { all: unset; }

/* ========================================= */
/* ===== Services cards (3/2/1 columns) ==== */
/* ========================================= */
.grid-3{
  display:grid;
  gap:22px;
  grid-template-columns: repeat(3, minmax(0, 1fr)); /* desktop: 3 columns */
}
@media (max-width:1024px){ .grid-3{ grid-template-columns: repeat(2, 1fr); } } /* tablet: 2 */
@media (max-width:640px){  .grid-3{ grid-template-columns: 1fr; } }           /* phone: 1 */

/* Service card block (fills its grid column) */
.service-card{
  display:flex;
  flex-direction:column;
  gap:10px;
  align-items:flex-start;
  text-align:left;
  padding:20px;
  width:100%;             /* fill column width */
  max-width:none;         /* remove any stray fixed widths */
  height:auto;            /* natural height */
  min-height:220px;       /* keep rows visually even */
  align-self:stretch;     /* ensure full column width in nested grids */
  justify-content:flex-start;
}
.service-card img{
  width:34px;
  height:34px;
  object-fit:contain;
  display:block;
  margin-bottom:0px;
  aspect-ratio:1/1;
  filter: drop-shadow(0 0 0px #78c8ff); /* subtle glow to make PNG/SVG pop */
}
.service-card h3{ font-size:24px; font-weight:700; margin:0 0 px; }
.service-card p{ font-size:18px; color:var(--muted); line-height:1.45; }

/* =========================
   PROCESS (scoped styles)
   ========================= */
/* Auto-fit grid for process steps */
#process .grid-auto{
  display:grid;
  gap:22px;
  grid-template-columns:repeat(auto-fit, minmax(240px, 1fr));
}

/* Force 2×2 layout on desktop; stack on mobile */
#process .two-by-two{ grid-template-columns:1fr; }
@media (min-width: 820px){
  #process .two-by-two{
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 28px;
  }
  #process .ucase{ min-height: 200px; }
}

/* Process cards with hover lift */
#process .ucase{
  display:flex; flex-direction:column; gap:10px; align-items:flex-start;
  transition:transform .25s ease, box-shadow .25s ease, outline-color .25s ease;
  outline:1px solid rgba(255,255,255,.05); outline-offset:-1px;
  position:relative; z-index:2;
}
#process .ucase:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.06);
  outline-color:rgba(255,255,255,.14);
}

/* Numbered step chips with per-step gradient */
#process .ucase .chip{
  display:inline-flex; align-items:center; justify-content:center;
  font-weight:800; color:#fff; border-radius:999px; padding:6px 14px; font-size:14px;
  letter-spacing:.4px; box-shadow:0 0 16px rgba(0,0,0,.35); user-select:none;
}
#process .chip.step1{ background:linear-gradient(135deg,#78c8ff,#4ea9ff); }
#process .chip.step2{ background:linear-gradient(135deg,#8aa3ff,#6a80ff); }
#process .chip.step3{ background:linear-gradient(135deg,#b084ff,#915dff); }
#process .chip.step4{ background:linear-gradient(135deg,#5eead4,#14b8a6); }

#process h3{ margin:0; font:700 18px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial; }

/* Animated loop SVG decoration */
#process .flow-wrap{ position:relative; }
#process svg.flow{
  position:absolute; inset:0; width:100%; height:100%;
  pointer-events:none; z-index:1;
  filter: drop-shadow(0 0 18px rgba(120,200,255,.15));
}
#process .flow #loop{ animation: flowDash 7s linear infinite; }
@keyframes flowDash{ to{ stroke-dashoffset: var(--len, 600); } }
#process .flow-dot{ filter: drop-shadow(0 0 8px rgba(120,200,255,.8)); }

/* ===========================================
   Services icons: bigger + glow for visibility
   =========================================== */
.service-card{ position: relative; } /* allows the ::before “plate” trick below */

/* Default icon size scales with viewport (keeps icons crisp on big screens) */
.service-card > img:first-child{
  width: clamp(44px, 3.8vw, 64px);
  height: clamp(44px, 3.8vw, 64px);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  /* Make raster icons pop a bit without harsh colorization */
  filter:
    drop-shadow(0 0 10px rgba(120,200,255,.65))
    drop-shadow(0 2px 10px rgba(0,0,0,.45))
    saturate(1.25)
    brightness(1.15);
}

/* Optional: make certain cards’ icons extra large by adding class="icon-xl" */
.service-card.icon-xl > img:first-child{
  width: clamp(56px, 5vw, 72px);
  height: clamp(56px, 5vw, 72px);
}

/* Soft glow “plate” behind icon (disabled by default two rules later).
   Enable by commenting out the “kill the plate” rule if you want the plate. */
.service-card::before{
  content:"";
  position:absolute;
  top: 14px;
  left: 16px;
  width: clamp(54px, 4.6vw, 72px);
  height: clamp(54px, 4.6vw, 72px);
  border-radius: 14px;
  background:
    radial-gradient(60% 60% at 35% 35%, rgba(120,200,255,.22), transparent 70%),
    radial-gradient(60% 60% at 70% 70%, rgba(176,132,255,.18), transparent 70%);
  box-shadow:
    0 10px 26px rgba(120,200,255,.20),
    inset 0 0 0 1px rgba(255,255,255,.04);
  pointer-events:none;
  z-index:0;
  opacity:.9;
}

/* ⚠️ This line disables the plate above. Remove it if you *do* want the plate. */
.service-card::before{ content:none !important; }

/* Keep icon glow even without the plate; add tiny hover motion */
.service-card > img:first-child{
  width: clamp(44px, 3.6vw, 60px);
  height: clamp(44px, 3.6vw, 60px);
  margin-bottom: 12px;
  filter: drop-shadow(0 0 8px rgba(120,200,255,.35))
          drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
.service-card:hover > img:first-child{
  transform: translateY(-1px) scale(1.03);
  filter: drop-shadow(0 0 12px rgba(120,200,255,.55))
          drop-shadow(0 4px 12px rgba(0,0,0,.45));
}

/* ===========================================
   Roadmap video visibility toggles (desktop vs mobile).
   You only need ONE of these groups; you had duplicates.
   Kept a single, clear version below.
   =========================================== */

/* Default: show desktop, hide mobile */
.roadmap-video.desktop { display: block; }
.roadmap-video.mobile  { display: none;  }

/* On small screens: swap */
@media (max-width: 820px) {
  .roadmap-video.desktop { display: none; }
  .roadmap-video.mobile  { display: block; }
}

/* Same idea, but for separate wrappers you named .roadmap-desktop / .roadmap-mobile */
.roadmap-desktop { display: block; }
.roadmap-mobile  { display: none;  }
@media only screen and (max-width: 820px) {
  .roadmap-desktop { display: none !important; }
  .roadmap-mobile  { display: block !important; }
}

/* Sizing defaults */
.roadmap-desktop {
  display: block;
  width: 100%;
  max-width: 1200px;
  border-radius: 18px;
  margin: 0 auto;
}
.roadmap-mobile {
  display: none;
  width: 100%;
  max-width: 560px;
  border-radius: 18px;
  margin: 0 auto;
}
@media (max-width: 820px) {
  .roadmap-desktop { display: none !important; }
  .roadmap-mobile  { display: block !important; }
}

/* ===========================================
   Footer spacing nudges on mobile
   (keep content away from screen edges)
   =========================================== */
@media (max-width: 768px) {
  .site-footer .container,
  .footer-top,
  .footer-grid,
  .footer-bottom {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  .footer-col { padding-left: 4px; }
  .footer-cta p,
  .footer-bottom div { text-align: left !important; }
}

/* Redundant padding helpers (any of these blocks alone is enough).
   Kept them for safety but you can remove duplicates. */
@media (max-width: 820px) {
  footer.site-footer .container,
  footer.site-footer .footer-grid,
  footer.site-footer .footer-col,
  footer.site-footer .footer-social,
  footer.site-footer .footer-bottom {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}
@media (max-width: 820px) {
  .site-footer .container,
  .site-footer .footer-top,
  .site-footer .footer-grid,
  .site-footer .footer-col,
  .site-footer .footer-social,
  .site-footer .footer-bottom {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* ===========================================
   Extra mobile hero polish (spacing + image crop)
   =========================================== */
@media (max-width: 820px) {
  .hero,
  .hero .wrap,
  .hero-copy {
    background: var(--bg) !important; /* ensure consistent dark background under full-bleed media */
  }

  .hero-media {
    aspect-ratio: 16 / 9;            /* force video-style crop */
    border-radius: 18px;
    margin-left: 50%;
    transform: translateX(-50%);     /* center full-bleed box */
    width: 100vw;
    max-width: 100vw;
    overflow: hidden;
    box-shadow:
      0 18px 40px rgba(0, 0, 0, 0.45),
      inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;      /* push focal point slightly up */
    display: block;
  }


/* === Force extra breathing space for hero text on mobile ===
   (This is a second override; it *wins* due to later position + !important) */
@media (max-width: 820px) {
  .hero-copy {
    padding-right: 2px !important;   /* final say on right padding */
    padding-left: 16px !important;
  }
}

/* ===========================================
   Mobile hero: CTA button treatment
   - Full-width, stacked CTAs, on-brand gradient
   =========================================== */
@media (max-width: 820px) {
  .hero {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero .text,
  .hero .ctas,
  .hero .chips,
  .hero .nav-cta {
    padding-left: 0;
    padding-right: 0;
  }

  .hero .nav-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #78c8ff, #b084ff); /* brand gradient */
    color: #0b1020;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 14px;
    text-align: center;
    width: 100%; /* full width on phones */
  }
}






/* =========================================
   Use Cases — HERO: mobile-only polish pack
   (≤ 820px). Keeps the rest of the page intact.
   ========================================= */
@media (max-width:820px){

  /* Make room for sticky header; avoid overlap */
  body{ padding-top: calc(var(--header-h) + var(--safe-top)) !important; }

  /* Tight, consistent padding around hero */
  .hero{
    padding: 0 16px 18px;
    border-top: 1px solid transparent; /* prevent margin collapse */
    background: var(--bg);
  }

  /* Edge-to-edge media; text stays padded */
  .hero .container{ padding-inline: 0 !important; }
  .hero .wrap{ padding-top: 8px !important; padding-bottom: 0; }

  /* Stack: media first, text below; compact gap */
  .hero-grid{
    grid-template-areas: "media" "copy";
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: center;
  }

  /* Full-bleed image card */
  .hero-media{
    width: 100vw; max-width: 100vw;
    margin-left: 50%; transform: translateX(-50%);
    aspect-ratio: 16 / 9;
    border-radius: 18px; overflow: hidden;
    box-shadow:
      0 18px 40px rgba(0,0,0,.45),
      inset 0 0 0 1px rgba(255,255,255,.04);
  }
  /* If you use .ratio-16x10 anywhere on the hero image, kill the shim on mobile */
  .ratio-16x10::before{ display:none; padding-top:0; }

  /* Nice crop focus for tall images */
  .hero-media img{ width:100%; height:100%; object-fit:cover; object-position:center 30%; display:block; }

  /* Text block padding */
  .hero-copy{ padding: 12px 4px 0; }

  /* Mobile type scale — readable but compact */
  .hero h1{
    margin: 8px 0 10px;
    font-weight: 900;
    font-size: clamp(24px, 6.2vw, 34px);
    line-height: 1.15;
    letter-spacing: 0.1px;
  }
  .hero p{
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 70ch; /* avoid super-long lines on landscape */
  }

  /* CTA buttons: full-width, stacked */
  .hero .ctas{ display:flex; flex-direction:column; gap:10px; align-items:stretch; }
  .hero .nav-cta{
    width: 100%;
    text-align: center;
    border: 0;
    background: linear-gradient(135deg, var(--brand-grad-start), var(--brand-grad-end));
    color: #0b1020;
    font-weight: 800;
    padding: 12px 16px;
    border-radius: 14px;
  }
  .hero .btn-ghost{
    width: 100%;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  /* Section chips: tap-friendly size + tidy wrap */
  .hero .chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 8px; }
  .hero .chip{
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.14);
  }
}










/* =========================================================
   MOBILE HERO — single source of truth (≤ 820px)
   Works for both index.html and use-cases.html
   ========================================================= */
@media (max-width: 820px){

  /* Keep clear of sticky header / iOS notch */
  body{
    padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)) !important;
  }

  /* Container & spacing */
  .hero{
    padding: 0;
    border-top: 1px solid transparent; /* avoid margin collapse */
    background: var(--bg);
  }
  .hero .container{ padding-inline: 0 !important; }
  .hero .wrap{ padding: 8px 0 16px !important; }

  /* Layout: media first, copy second */
  .hero-grid{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "media" "copy";
    gap: 14px;
    align-items: stretch;
  }
  .hero-media{ grid-area: media; }
  .hero-copy { grid-area: copy; padding: 12px 16px 0 16px; }

  /* Safe media card (no translate/100vw hacks) */
  .hero-media{
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 16 / 9;             /* consistent across iPhones */
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
      0 18px 40px rgba(0,0,0,.45),
      inset 0 0 0 1px rgba(255,255,255,.04);
  }
  .hero-media > img,
  .hero-media .img-cover{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;       /* nice crop on tall images */
    display: block;
  }

  /* Kill desktop ratio shim on phones */
  .ratio-16x10::before{ display: none; padding-top: 0; }

  /* Headings (support both h1 and h2) */
  .hero h1, .hero h2{
    font-weight: 900;
    font-size: clamp(22px, 6vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.2px;
    overflow-wrap: anywhere;
    margin: 8px 0 10px;
  }

  /* Body copy */
  .hero p{
    margin: 0 0 14px;
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.55;
    color: var(--muted);
    max-width: 46ch;
  }

  /* CTAs: full-width & stacked */
  .hero .ctas{ display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
  .hero .btn, .hero .nav-cta{ width: 100%; justify-content: center; border-radius: 14px; }
  .hero .nav-cta{
    border: 0;
    background: linear-gradient(135deg, var(--brand-grad-start), var(--brand-grad-end));
    color: #0b1020; font-weight: 800; padding: 12px 16px;
  }
  .hero .btn-ghost{ border: 1px solid var(--line); padding: 12px 16px; }

  /* Chips */
  .hero .chips{ display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .hero .chip{ font-size: 12px; padding: 6px 10px; border-radius: 999px; }
}

/* Fallback for older engines (optional) — keeps editor warnings away */
html, body { overflow-x: hidden; }
.service-card h3{ font-size:24px; font-weight:700; margin:0 0 8px; }

@supports (-webkit-touch-callout: none) {
  @media (max-width: 820px) {
    .hero-media {
      max-width: 100%;
      margin: 0 auto;
      transform: none;
      border-radius: 18px;
    }

    .hero-copy {
      padding-inline: 18px;
    }

    .hero .wrap {
      padding-top: 24px !important;
    }
  }




#chatbot-label {
  position: fixed;
  bottom: 56px;
  right: 96px;
  z-index: 9999;
  font-size: 28px;
  font-weight: 500;
  font-family: monospace;
  pointer-events: none;
  white-space: nowrap;
  background: linear-gradient(to right, #78c8ff, #8aa3ff, #b084ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: floatLabel 1s ease-in-out infinite;
}

/* ✨ Animate chatbot icon floating and zooming */
#bp-web-widget {
  animation:
    floatUpDown 0.2s ease-in-out infinite,
    zoomBounce 0.6s ease-in-out infinite;
  transform-origin: bottom right;
  will-change: transform;
}

@keyframes floatUpDown {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

@keyframes zoomBounce {
  0%, 100% { scale: 1; }
  50%      { scale: 1.1; }
}










/* === HOW IT WORKS SECTION === */
.how-it-works-section {
  padding: 64px 20px;
  background-color: #0b1020;
  color: white;
}

.how-it-works-section h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 8px;
}

.how-it-works-section .sub {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 16px;
  margin-bottom: 32px;
}

/* Image Wrapper for Responsive Layout */
.how-it-works-image-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

/* Default: Image takes full width */
.how-it-works-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: all 0.3s ease;
}

/* Desktop: Stretch wider up to 60% and center */
@media (min-width: 1024px) {
  .how-it-works-image {
    max-width: 90%;
    height: auto;
  }
}

/* Grid Card Styling */
.how-it-works-grid {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  justify-content: center;
}

.card {
  background: rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
}







/* Mobile full-width override */
@media (max-width: 768px) {
  #how .container {
    padding: 0 16px;
  }

  .ai-flow-wrapper img {
    width: 100%;
    max-width: 100%;
  }

  .card {
    width: 100%;
  }
}



.chip.active {
  background: linear-gradient(135deg, #78c8ff, #b084ff);
  color: #0b1020;
  font-weight: bold;
}





