/* =====================================================================
   Delta Tech Solutions — public site stylesheet
   Design language: light teal-navy (aligned with brand logo #00425a)
   ===================================================================== */

/* ---------- design tokens ------------------------------------------- */
:root {
  /* brand — logo gradient anchors */
  --brand-dark:    #00425a;
  --brand-light:   #1a96b8;
  --brand-mid:     #0d7088;
  --brand-deep:    #003548;
  --brand-glow:    #5ec4dc;
  --brand-rgb:     26, 150, 184;
  --brand-dark-rgb: 0, 66, 90;

  --gradient-brand:       linear-gradient(135deg, var(--brand-dark) 0%, var(--brand-light) 100%);
  --gradient-brand-hover: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-mid) 50%, var(--brand-light) 100%);
  --gradient-brand-soft:  linear-gradient(180deg, rgba(0, 66, 90, .04) 0%, rgba(26, 150, 184, .07) 100%);
  --gradient-brand-radial: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(26, 150, 184, .11), transparent 72%);
  --gradient-surface:     linear-gradient(180deg, #f8fbfc 0%, #eef5f7 100%);
  --gradient-footer:      linear-gradient(165deg, #003548 0%, #00425a 48%, #0a7088 100%);

  --brand-teal:    var(--brand-dark);
  --primary-rgb:   var(--brand-rgb);
  --ink-rgb:       var(--brand-dark-rgb);

  --bg:            #f6fafb;
  --bg-alt:        #eaf4f7;
  --bg-warm:       #eef6f8;
  --bg-cool:       #e3eff3;
  --white:         #ffffff;
  --ink-950:       #002a38;
  --ink-900:       #00425a;
  --ink-700:       #0a5468;
  --ink-500:       #3a5f6e;
  --ink-400:       #5a7884;
  --ink-300:       #849aa5;
  --line:          #d5e6eb;
  --line-strong:   #b8d0d8;
  --primary:       #1a96b8;
  --primary-600:   #158aab;
  --primary-700:   #00425a;
  --primary-50:    #e8f4f8;
  --aqua:          #1a96b8;
  --aqua-100:      #e8f4f8;
  --accent:        #ff7300;
  --accent-600:    #ff5c16;
  --accent-100:    #fef6ef;

  /* radii */
  --r-xs:          6px;
  --r-sm:          10px;
  --r-md:          16px;
  --r-lg:          24px;
  --r-pill:        999px;

  /* spacing scale */
  --gap-1: 6px;
  --gap-2: 10px;
  --gap-3: 16px;
  --gap-4: 24px;
  --gap-5: 40px;
  --gap-6: 64px;

  /* shadow */
  --sh-sm: 0 1px 2px rgba(0, 66, 90, .06), 0 1px 3px rgba(0, 66, 90, .08);
  --shadow-xs: 0 1px 2px rgba(0, 66, 90, .06), 0 1px 3px rgba(0, 66, 90, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --sh-md: 0 4px 10px rgba(0, 66, 90, .06), 0 12px 24px rgba(0, 66, 90, .08);
  --sh-lg: 0 20px 50px rgba(0, 66, 90, .12);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* geometry */
  --container: 1240px;
  --nav-h:     88px;
}

/* ---------- reset + base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: hidden; max-width: 100%; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink-900);
  font-family: "Inter", "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  padding-top: var(--nav-h);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}
html[dir="rtl"] body {
  font-family: "Tajawal", "Noto Sans Arabic", "IBM Plex Sans Arabic", "Inter", "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "liga" 1, "calt" 1;
}
html[dir="ltr"] body { font-family: "Inter", "Segoe UI", system-ui, sans-serif; }

/* letter-spacing يكسر اتصال حروف العربية والكردية */
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .heading-jumbo,
html[dir="rtl"] .heading-xl,
html[dir="rtl"] .heading-l {
  letter-spacing: 0;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- typography ---------------------------------------------- */
h1, h2, h3, h4 { margin: 0; color: var(--ink-950); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
p  { margin: 0; color: var(--ink-500); }

.heading-jumbo { font-size: clamp(2.4rem, 5.5vw, 4.75rem); line-height: 1.05; }
.heading-xl    { font-size: clamp(2rem, 4vw, 3.25rem); }
.heading-l     { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.subheading    { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-500); line-height: 1.55; }
.eyebrow-text  { font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--primary-700); }
.small-text    { font-size: .88rem; color: var(--ink-400); }
.muted         { color: var(--ink-400); }
.accent-word   { color: var(--primary); }
.accent-warm   { color: var(--accent); }

main {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* utility layout */
.container { width: min(100% - clamp(24px, 5vw, 48px), var(--container)); max-width: 100%; margin-inline: auto; box-sizing: border-box; }
.section   { padding: clamp(64px, 8vw, 120px) 0; position: relative; max-width: 100%; overflow-x: clip; }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-naked { background: var(--white); }
.bg-aqua {
  background:
    var(--gradient-brand-radial),
    linear-gradient(180deg, #f2f9fb 0%, var(--bg-alt) 100%);
}
.bg-warm { background: var(--gradient-brand-soft); }
.bg-cool {
  background:
    radial-gradient(700px 400px at 0% 100%, rgba(0, 66, 90, .05), transparent 60%),
    linear-gradient(180deg, var(--bg-cool) 0%, #eef6f8 100%);
}
.center { text-align: center; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- badge (eyebrow with icon) ------------------------------- */
.badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(180deg, var(--white) 0%, #f4fafb 100%);
  border: 1px solid rgba(0, 66, 90, .12);
  border-radius: var(--r-pill);
  font-size: .82rem; font-weight: 600;
  color: var(--brand-dark);
  box-shadow: var(--sh-sm);
  text-align: center;
}
html[dir="rtl"] .badge { text-transform: none; }
html[dir="ltr"] .badge { text-transform: capitalize; }
.badge img { width: 18px; height: 18px; flex-shrink: 0; }
.section-head > .badge {
  justify-content: center;
  text-align: center;
  padding-inline: 22px;
}

/* ---------- buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600; font-size: .96rem;
  transition: transform .15s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  cursor: pointer; text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn:active { transform: translateY(1px); }

/* primary — brand gradient */
.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(var(--brand-rgb), .32);
}
.btn-primary:hover {
  background: var(--gradient-brand-hover);
  box-shadow: 0 12px 28px rgba(var(--brand-rgb), .42);
}

/* secondary — brand dark */
.btn-secondary { background: var(--brand-dark); color: var(--white); }
.btn-secondary:hover { background: var(--brand-mid); }

/* ghost — light with border */
.btn-ghost { background: var(--white); color: var(--ink-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* light — used on dark backgrounds */
.btn-light { background: var(--white); color: var(--ink-900); }
.btn-light:hover { background: var(--bg-cool); color: var(--primary-700); }

/* arrow suffix */
.btn .arrow { width: 10px; height: 10px; margin-inline-start: 2px; }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* lively CTA — gradient + shimmer highlight */
.btn-cta-live {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--gradient-brand);
  background-size: 220% 220%;
  color: var(--white);
  box-shadow:
    0 10px 32px rgba(var(--brand-rgb), .34),
    0 0 0 1px rgba(255, 255, 255, .12) inset;
  animation: ctaGradientShift 5s ease infinite;
}
.btn-cta-live::before {
  content: "";
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .34) 50%, transparent 62%);
  transform: translateX(-120%) rotate(8deg);
  animation: ctaShineSweep 3.8s ease-in-out infinite;
  pointer-events: none;
}
.btn-cta-live:hover {
  background: var(--gradient-brand-hover);
  box-shadow:
    0 14px 36px rgba(var(--brand-rgb), .44),
    0 0 0 1px rgba(255, 255, 255, .18) inset;
}
.btn-cta-live .cta-text-glow {
  position: relative;
  z-index: 1;
  background: linear-gradient(90deg, #fff 0%, #b8e8f2 45%, #fff 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ctaTextGlow 4s linear infinite;
}
.btn-cta-live .arrow { position: relative; z-index: 1; }

.cta-highlight-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .01em;
  color: var(--white);
  background: var(--gradient-brand);
  background-size: 200% 200%;
  box-shadow: 0 8px 28px rgba(var(--brand-rgb), .3);
  animation: ctaGradientShift 5s ease infinite;
  overflow: hidden;
  isolation: isolate;
}
.cta-highlight-pill::before {
  content: "";
  position: absolute;
  inset: -50% -80%;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .32) 50%, transparent 64%);
  animation: ctaShineSweep 4s ease-in-out infinite;
  pointer-events: none;
}
.cta-highlight-pill .pill-icon,
.cta-highlight-pill .pill-text {
  position: relative;
  z-index: 1;
}
.cta-highlight-pill .pill-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  flex-shrink: 0;
}
.cta-highlight-pill .pill-text {
  background: linear-gradient(90deg, #fff, #b8e8f2, #fff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ctaTextGlow 3.5s linear infinite;
}
.cta-highlight-pill .pill-dot {
  position: relative;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5dffb0;
  box-shadow: 0 0 0 0 rgba(93, 255, 176, .55);
  animation: ctaPulseDot 2s ease infinite;
}

@keyframes ctaGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes ctaShineSweep {
  0%, 72% { transform: translateX(-120%) rotate(8deg); }
  100% { transform: translateX(120%) rotate(8deg); }
}
@keyframes ctaTextGlow {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes ctaPulseDot {
  0% { box-shadow: 0 0 0 0 rgba(93, 255, 176, .55); }
  70% { box-shadow: 0 0 0 8px rgba(93, 255, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(93, 255, 176, 0); }
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 8px 14px 8px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-500);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition: color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .15s var(--ease);
}
.page-back:hover {
  color: var(--primary);
  border-color: rgba(26, 150, 184, .35);
  box-shadow: var(--sh-md);
}
.page-back:active { transform: translateY(1px); }
.page-back .arrow-back {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform .2s var(--ease);
}
html[dir="rtl"] .page-back .arrow-back { transform: scaleX(-1); }
.page-back:hover .arrow-back { transform: translateX(-3px); }
html[dir="rtl"] .page-back:hover .arrow-back { transform: scaleX(-1) translateX(-3px); }

.contact-hero { padding-top: 48px; }
.contact-hero .section-head { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .btn-cta-live,
  .btn-cta-live::before,
  .btn-cta-live .cta-text-glow,
  .cta-highlight-pill,
  .cta-highlight-pill::before,
  .cta-highlight-pill .pill-text,
  .cta-highlight-pill .pill-dot,
  .soon-page__icon-ring,
  .soon-panel__accent {
    animation: none;
  }
  .btn-cta-live .cta-text-glow,
  .cta-highlight-pill .pill-text {
    color: var(--white);
    background: none;
    -webkit-text-fill-color: currentColor;
  }
}

/* ---------- navigation --------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 66, 90, .08);
  border-bottom-color: rgba(0, 66, 90, .1);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: 8px;
  min-height: var(--nav-h);
  direction: ltr;
}
.nav-side--start,
.nav-brand--center,
.nav-side--end {
  grid-row: 1;
  align-self: center;
}
.nav-brand--center { grid-column: 2; }
/* نفس الشكل بصرياً بكل اللغات: CTF…تواصل يسار | الشعار | الرئيسية…أعمالنا يمين */
.nav-side--start { grid-column: 1; justify-self: stretch; }
.nav-side--end   { grid-column: 3; justify-self: stretch; }
.nav-side--start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.nav-side--end,
.nav-cluster {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}
.nav-cluster--before {
  justify-content: flex-end;
  flex-wrap: nowrap;
}
.nav-cluster--after {
  justify-content: flex-start;
  flex-wrap: nowrap;
  position: relative;
}
.nav-indicator {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0;
  height: calc(100% - 2px);
  transform: translateY(-50%);
  border-radius: var(--r-sm);
  background: linear-gradient(180deg, rgba(232, 244, 248, .95) 0%, rgba(220, 238, 244, .9) 100%);
  border: 1px solid rgba(26, 150, 184, .22);
  box-shadow: inset 0 -2px 0 rgba(26, 150, 184, .45);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition:
    left .38s cubic-bezier(.22, 1, .28, 1),
    width .38s cubic-bezier(.22, 1, .28, 1),
    opacity .22s var(--ease);
}
.nav-indicator.is-visible { opacity: 1; }
.nav-cluster--after .nav-link {
  position: relative;
  z-index: 1;
}
.nav-cluster--after .nav-link:hover,
.nav-cluster--after .nav-link.is-active {
  background: transparent;
  box-shadow: none;
}
.nav-cluster--after .nav-link.is-active {
  color: var(--brand-dark);
  font-weight: 600;
}
.nav-utils {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-cta {
  padding: 11px 18px;
  font-size: .9rem;
  text-align: center;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-brand--center {
  margin: 0 6px;
}
.nav-brand img { height: 60px; width: 60px; }
.nav-brand--mobile { display: none; }
.nav-brand--mobile img { height: 46px; width: 46px; }

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-700); font-weight: 500;
  padding: 8px 10px; border-radius: var(--r-sm);
  transition: color .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
  font-size: .88rem;
  line-height: 1;
}
.nav-link:hover, .nav-link.is-active { color: var(--brand-dark); background: var(--primary-50); }
.nav-link.is-active { font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand-light); }

/* language popover — globe icon, menu on click */
.lang-popover { position: relative; }
.lang-toggle {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}
.lang-toggle:hover { border-color: var(--primary); color: var(--primary); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-start: 0;
  min-width: 148px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 100;
}
.lang-popover.is-open .lang-menu { display: flex; }
.lang-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: start;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  color: var(--ink-700);
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang-menu button:hover { background: var(--primary-50); color: var(--primary-700); }
.lang-menu button.is-active { background: var(--gradient-brand); color: var(--white); }
.lang-popover--drawer .lang-toggle {
  width: auto;
  height: auto;
  padding: 12px 8px;
  gap: 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  justify-content: flex-start;
  font-weight: 600;
  color: var(--ink-700);
}
.lang-popover--drawer .lang-menu {
  position: static;
  display: none;
  box-shadow: none;
  border: 0;
  padding: 0 0 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.lang-popover--drawer.is-open .lang-menu { display: flex; }

/* legacy pill switcher (admin etc.) */
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--white);
}
.lang-switch button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.4rem; min-height: 2rem;
  padding: 6px 12px; border: 0; background: transparent; color: var(--ink-500);
  font-weight: 600; font-size: .8rem; line-height: 1; border-radius: var(--r-pill); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
  text-align: center;
}
.lang-switch button:hover { color: var(--primary); }
.lang-switch button.is-active { background: var(--gradient-brand); color: var(--white); }

.nav-burger {
  display: none;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: var(--white); border: 1px solid var(--line);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--ink-900); border-radius: 2px;
  transition: transform .3s var(--ease);
}
.nav-burger span::before { transform: translateY(-7px); }
.nav-burger span::after  { transform: translateY(5px); }

/* mobile drawer */
.nav-drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
  width: min(340px, 88vw);
  background: var(--white); color: var(--ink-900);
  border-inline-start: 1px solid var(--line);
  z-index: 90;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  padding: 28px; display: flex; flex-direction: column; gap: 16px;
  box-shadow: -20px 0 40px rgba(23,40,73,.14);
}
html[dir="rtl"] .nav-drawer:not(.is-open) { transform: translateX(-100%); }
.nav-drawer.is-open { transform: translateX(0); visibility: visible; transition: transform .35s var(--ease), visibility 0s linear 0s; }
.nav-drawer .nav-link { font-size: 1.05rem; padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.nav-drawer .lang-switch { align-self: flex-start; margin-top: 8px; }
.nav-drawer .nav-close {
  align-self: flex-end; width: 40px; height: 40px; border-radius: var(--r-sm);
  background: transparent; color: var(--ink-900); border: 1px solid var(--line);
  cursor: pointer; font-size: 1.2rem;
}
.nav-scrim {
  position: fixed; inset: 0; background: rgba(14,26,52,.42); z-index: 80;
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease);
}
.nav-scrim.is-on { opacity: 1; pointer-events: auto; }

/* ---------- HERO V2 (centered stack over full-width hexagon) --------- */
.hero-v2 {
  position: relative;
  padding: 0;
  background:
    radial-gradient(1200px 500px at 50% 100%, var(--bg-cool), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-v2-inner {
  position: relative;
  min-height: 600px;
  padding: clamp(80px, 12vw, 160px) 24px clamp(80px, 12vw, 160px);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background-color: var(--bg);
  background-image: url("/static/images/decor/hero-bg.svg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
  animation: heroBgDrift 18s ease-in-out infinite alternate;
}
@keyframes heroBgDrift {
  0%   { background-position: center 49%; }
  100% { background-position: center 51%; }
}
.hero-v2-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(480px 320px at 18% 32%, rgba(26, 150, 184, .14), transparent 72%),
    radial-gradient(440px 300px at 82% 68%, rgba(0, 66, 90, .1), transparent 72%);
  animation: heroAura 14s ease-in-out infinite alternate;
}
@keyframes heroAura {
  0%   { opacity: .45; transform: translate(0, 0); }
  100% { opacity: .75; transform: translate(10px, -6px); }
}

.hero-v2-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 38% 34% at 50% 44%, rgba(255, 255, 255, .72), transparent 100%);
  pointer-events: none;
  z-index: 2;
}
@media (prefers-reduced-motion: reduce) {
  .hero-v2-inner,
  .hero-v2-inner::after { animation: none; }
}
.hero-v2-copy {
  position: relative; z-index: 3;
  max-width: 780px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.hero-v2-title { line-height: 1.05; letter-spacing: -0.02em; font-size: clamp(2.4rem, 5.5vw, 4.4rem); }
.hero-v2-title .line-1,
.hero-v2-title .line-2 { display: block; color: var(--ink-950); }
.hero-v2-title .line-2 { color: var(--ink-700); font-weight: 700; }
.hero-v2-desc {
  margin: 0;
  color: var(--ink-500);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  max-width: 580px;
  line-height: 1.7;
  text-wrap: balance;
}
.hero-v2-desc strong {
  color: var(--ink-900);
  font-weight: 700;
}
.hero-v2-tagline {
  margin: 0;
  color: var(--brand-light);
  font-size: clamp(1.02rem, 1.35vw, 1.15rem);
  font-weight: 600;
  line-height: 1.5;
}
.hero-v2 .btn .arrow { width: 12px; height: 12px; }

/* logo strip inside hero, at bottom — full viewport width */
.logo-strip-v2 {
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
}
.logo-strip-v2__view {
  overflow: hidden;
  position: relative;
  width: 100%;
  max-width: 100vw;
}
/* edge fade */
.logo-strip-v2__view::before,
.logo-strip-v2__view::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(32px, 5vw, 80px);
  z-index: 2;
  pointer-events: none;
}
.logo-strip-v2__view::before {
  inset-inline-start: 0;
  background: linear-gradient(to inline-end, var(--white), transparent);
}
.logo-strip-v2__view::after {
  inset-inline-end: 0;
  background: linear-gradient(to inline-start, var(--white), transparent);
}
.logo-strip-v2 .logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee-scroll var(--marquee-duration, 45s) linear infinite;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  pointer-events: none;
}
.logo-strip-v2 .logo-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(40px, 5vw, 72px);
  flex-shrink: 0;
  padding-inline: clamp(24px, 4vw, 48px);
}
.logo-strip-v2 .logo-track img {
  display: block;
  height: 34px;
  width: auto;
  max-width: 140px;
  min-width: 48px;
  object-fit: contain;
  opacity: 1;
  filter: none;
  flex-shrink: 0;
}
.logo-strip-v2 .logo-track .logo-mark {
  max-height: 34px;
  width: auto;
  object-fit: contain;
  opacity: 1;
  filter: none;
  color: var(--ink-900);
  flex-shrink: 0;
}
.logo-strip-v2 .logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--ink-900);
  text-decoration: none;
}
.logo-strip-v2 .logo-mark .glyph { width: 24px; height: 24px; flex-shrink: 0; }
.logo-strip-v2 .logo-track a:not(.logo-mark) {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 34px;
}
@keyframes marquee-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
html[dir="rtl"] .logo-strip-v2 .logo-track {
  animation-name: marquee-scroll-rtl;
}
@keyframes marquee-scroll-rtl {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip-v2 .logo-track { animation: none; transform: none; }
}

/* ---------- Section header (badge + jumbo + subheading) — centered -- */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: 56px;
  text-align: center;
}
.section-head > .badge { align-self: center; }
.section-head > .cta-highlight-pill { align-self: center; }
.section-head > .heading-jumbo,
.section-head > h1.heading-jumbo,
.section-head > h2 {
  width: 100%;
  text-align: center;
}
.section-head > .subheading,
.section-head > p {
  width: 100%;
  text-align: center;
}
/* shrink to longest line, center the block, then center each wrapped line inside */
.section-head .heading-inner {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
  letter-spacing: 0;
}
.section-head > .subheading .heading-inner,
.section-head > p .heading-inner {
  max-width: 640px;
}
/* legacy alias — some templates may still use .center; behaviour identical */
.section-head.center { margin-inline: auto; align-items: center; text-align: center; }

/* ---------- Feature grid (services) -------------------------------- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s var(--ease);
  position: relative; overflow: hidden;
  flex: 1 1 280px;
  max-width: 360px;
  min-width: 0;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--primary); }
.feature-card.aqua  { background: linear-gradient(180deg, #eef8fa 0%, var(--aqua-100) 100%); border-color: rgba(0, 66, 90, .08); }
.feature-card.warm  { background: linear-gradient(180deg, #f0f7f9 0%, #e5f2f5 100%); border-color: rgba(0, 66, 90, .08); }
.feature-card .fc-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white); box-shadow: var(--sh-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--primary);
}
.feature-card.aqua .fc-icon { color: var(--brand-light); }
.feature-card.warm .fc-icon { color: var(--brand-dark); }
.feature-card h3 { font-size: 1.4rem; color: var(--ink-950); }
.feature-card p { color: var(--ink-500); }
.feature-card .fc-image {
  margin-top: auto; border-radius: var(--r-md); overflow: hidden; background: var(--bg-cool);
  aspect-ratio: 391 / 224;
  display: flex; align-items: center; justify-content: center;
}
.feature-card.warm .fc-image { background: rgba(255, 255, 255, .5); }
.feature-card.aqua .fc-image { background: rgba(255,255,255,.45); }
.feature-card .fc-image img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.feature-card .fc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--brand-dark); font-weight: 600; font-size: .95rem;
  margin-top: 4px;
}
.feature-card.aqua .fc-cta { color: var(--brand-mid); }
.feature-card.warm .fc-cta { color: var(--brand-dark); }
.feature-card .fc-cta svg { transition: transform .2s var(--ease); }
.feature-card .fc-cta:hover svg { transform: translateX(4px); }
html[dir="rtl"] .feature-card .fc-cta svg { transform: scaleX(-1); }
html[dir="rtl"] .feature-card .fc-cta:hover svg { transform: scaleX(-1) translateX(4px); }

/* ---------- Why choose us / benefits -------------------------------- */
.benefit-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  width: 100%;
  min-width: 0;
}
.benefit-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 0 0 24px 0;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  flex: 1 1 260px;
  max-width: 340px;
  min-width: 0;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: rgba(26, 150, 184, .35); }
.benefit-card figure,
.benefit-card__media { margin: 0; aspect-ratio: 1200/430; background: #00425a; position: relative; }
.benefit-card figure::after,
.benefit-card__media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 66, 90, .25));
  pointer-events: none;
}
.benefit-card figure img,
.benefit-card__media img { width: 100%; height: 100%; object-fit: cover; }
.benefit-card__media--1 img { object-position: 55% 38%; }
.benefit-card__media--2 img { object-position: 50% 45%; }
.benefit-card__media--3 img { object-position: 55% 40%; }
.benefit-card__media--4 img { object-position: 50% 42%; }
.benefit-card h3 { padding: 20px 24px 0; font-size: 1.05rem; line-height: 1.35; color: var(--ink-900); font-weight: 700; text-align: center; }

/* ---------- Case studies (portfolio) — flex so last-row cards center */
.case-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  width: 100%;
  min-width: 0;
}
.case-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  flex: 0 1 calc((100% - 48px) / 3);
  min-width: 300px;
  max-width: 100%;
}
.case-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.case-card .cc-content { padding: 24px 24px 8px; text-align: center; }
.case-card h3 { font-size: 1.25rem; color: var(--ink-950); margin-bottom: 16px; }
.cc-stats { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.cc-stat { display: flex; flex-direction: column; gap: 2px; align-items: center; }
.cc-stat .k { font-size: .8rem; color: var(--ink-400); }
.cc-stat .v { font-size: 1rem; font-weight: 700; color: var(--primary); overflow-wrap: anywhere; }
.case-card figure { margin: 0; margin-top: 16px; aspect-ratio: 391/220; overflow: hidden; position: relative; }
.case-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.case-card:hover figure img { transform: scale(1.04); }
.case-card figure::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 26, 52, .12) 100%);
  pointer-events: none;
}
.case-card.aqua figure { background: var(--aqua-100); }
.case-card.warm figure { background: var(--accent-100); }
.case-card.cool figure { background: var(--bg-cool); }

/* portfolio tabs — centered under the header */
.tabs-wrap { display: flex; justify-content: center; margin-bottom: 32px; }
.tabs { display: inline-flex; padding: 4px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); flex-wrap: wrap; box-shadow: var(--sh-sm); }
.tab { border: 0; background: transparent; padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem; color: var(--ink-500); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.tab:hover { color: var(--primary); }
.tab.is-active { background: var(--gradient-brand); color: var(--white); box-shadow: 0 4px 14px rgba(var(--brand-rgb), .28); }

/* ---------- Testimonials -------------------------------------------- */
.tstm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.tstm { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.tstm blockquote { margin: 0; font-size: 1.1rem; line-height: 1.6; color: var(--ink-700); }
.tstm .who { display: flex; flex-direction: column; gap: 2px; }
.tstm .who .n { font-weight: 700; color: var(--ink-900); }
.tstm .who .t { font-size: .88rem; color: var(--ink-400); }
.tstm .stars { display: inline-flex; gap: 4px; color: var(--accent); }
.tstm .stars svg { fill: currentColor; }

/* ---------- Featured cards (dark navy carousel) -------------------- */
.featured {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 40%, transparent 100%);
  padding-top: clamp(48px, 6vw, 80px);
  max-width: 100%;
  overflow-x: hidden;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  width: 100%;
  min-width: 0;
}
.featured-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.featured-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: linear-gradient(165deg, var(--brand-deep) 0%, var(--brand-dark) 55%, var(--brand-mid) 100%);
  color: var(--white);
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
  padding: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.featured-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.featured-card::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 400px at 100% 100%, rgba(26, 150, 184, .28), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
.featured-card__media {
  position: relative;
  margin: 0;
  flex: 0 0 42%;
  min-height: 148px;
  overflow: hidden;
  z-index: 1;
}
.featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .45s var(--ease);
}
.featured-card:hover .featured-card__media img { transform: scale(1.04); }
.featured-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 26, 52, .08) 0%, rgba(14, 26, 52, .55) 55%, var(--ink-900) 100%);
}
.featured-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px 28px 32px;
  text-align: start;
  min-height: 0;
}
.featured-card > * { position: relative; z-index: 1; }
.featured-card .fcat-badge { align-self: flex-start; padding: 6px 14px; background: rgba(255,255,255,.14); border-radius: var(--r-pill); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; }
html[dir="rtl"] .featured-card .fcat-badge { text-transform: none; letter-spacing: 0; }
.featured-card h3 {
  color: var(--white);
  font-size: clamp(1.15rem, 4.8vw, 1.75rem);
  margin: 12px 0 0;
  max-width: 100%;
  line-height: 1.3;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.featured-card .fcat-bottom { margin-top: auto; padding-top: 16px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.featured-card .fcat-bottom p { color: rgba(255,255,255,.82); font-size: .96rem; line-height: 1.55; margin: 0; letter-spacing: 0; }
.featured-card .btn-light { align-self: flex-start; }
html[dir="ltr"] .featured-card {
  aspect-ratio: auto;
  min-height: 430px;
}
html[dir="ltr"] .featured-card h3 {
  font-size: clamp(1.15rem, 1.7vw, 1.38rem);
  line-height: 1.3;
}
html[dir="ltr"] .featured-card .fcat-bottom p {
  font-size: .9rem;
}
html[dir="ltr"] .featured-card::before {
  background: radial-gradient(600px 400px at 0% 100%, rgba(26, 150, 184, .32), transparent 55%);
}

/* ---------- CTA band ------------------------------------------------- */
.cta-band {
  padding: clamp(56px, 7vw, 96px) 0;
  background:
    var(--gradient-brand-radial),
    radial-gradient(600px 400px at 100% 0%, rgba(26, 150, 184, .12), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(0, 66, 90, .07), transparent 60%),
    var(--bg-cool);
}
.cta-band .row { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { max-width: 640px; }
.cta-band p { margin-top: 10px; color: var(--ink-500); }

/* ---------- Stats counters ------------------------------------------ */
.stats {
  padding: clamp(48px, 6vw, 96px) 0;
  background:
    linear-gradient(180deg, var(--white) 0%, #f4fafb 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; text-align: center; }
.stat-value {
  font-size: clamp(2.2rem, 3.5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--ink-500); font-weight: 500; font-size: .96rem; }

/* ---------- Footer --------------------------------------------------- */
.site-footer {
  background: var(--gradient-footer);
  color: rgba(255,255,255,.78);
  padding: 72px 0 32px;
  margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 48px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand .brand-row { display: flex; align-items: center; gap: 12px; }
.footer-brand .brand-row img { width: 72px; height: 72px; }
.footer-brand .brand-row span { color: var(--white); font-weight: 800; font-size: 1.15rem; }
.footer-brand p { color: rgba(255,255,255,.65); font-size: .92rem; max-width: 320px; }
.subscribe { display: flex; gap: 8px; margin-top: 12px; max-width: 340px; }
.subscribe input { flex: 1; padding: 12px 14px; border-radius: var(--r-sm); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: var(--white); font-size: .92rem; }
.subscribe input::placeholder { color: rgba(255,255,255,.5); }
.subscribe button { padding: 12px 18px; border-radius: var(--r-sm); background: var(--gradient-brand); border: 0; color: var(--white); font-weight: 600; cursor: pointer; }
.subscribe button:hover { background: var(--gradient-brand-hover); }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); padding: 6px 0; font-size: .92rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: var(--brand-glow); }
[data-info-phone],
[data-info-email] {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
}
.footer-contact {
  text-align: start;
}
.footer-contact a,
.footer-contact-hours {
  display: block;
  color: rgba(255,255,255,.78);
  padding: 6px 0;
  font-size: .92rem;
  text-align: start;
}
.footer-contact a:hover { color: var(--brand-glow); }
.footer-contact-hours { color: rgba(255,255,255,.62); line-height: 1.5; }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: rgba(255,255,255,.55); }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.07); display: inline-flex; align-items: center; justify-content: center; transition: background .2s var(--ease), color .2s var(--ease); color: rgba(255,255,255,.85); }
.socials a:hover { background: rgba(26, 150, 184, .28); color: var(--white); }
.socials svg { width: 20px; height: 20px; }

/* ---------- Contact page -------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--ink-700); }
.input, .textarea, .select {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: .96rem;
  background: var(--white); color: var(--ink-900); font-family: inherit;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--brand-rgb), .16);
}
.textarea { min-height: 140px; resize: vertical; }
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; opacity: 0; }
.contact-info { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item--link {
  text-decoration: none;
  color: inherit;
  border-radius: var(--r-md);
  padding: 8px;
  margin: -8px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.contact-item--link:hover { background: var(--primary-50); color: var(--primary-700); }
.contact-item--link:hover .ic { background: var(--white); }
.contact-item .ic { width: 42px; height: 42px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .txt strong { display: block; color: var(--ink-900); margin-bottom: 2px; }
.contact-item .txt { color: var(--ink-500); font-size: .95rem; }
.contact-item--link:hover .txt strong { color: var(--primary-700); }
.contact-map {
  display: block;
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid var(--line);
  transition: box-shadow .2s var(--ease);
}
.contact-map:hover { box-shadow: var(--sh-md); }
.contact-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
  pointer-events: none;
}

/* toast */
.toast-wrap { position: fixed; top: 20px; inset-inline-end: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 14px 18px; border-radius: var(--r-sm); background: var(--white); color: var(--ink-900); box-shadow: var(--sh-md); font-size: .92rem; border-inline-start: 4px solid var(--primary); animation: toastIn .3s var(--ease); max-width: 320px; }
.toast.error { border-color: #ef4444; }
.toast.success { border-color: #10b981; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Soon pages (Education / CTF) --------------------------- */
.soon-page {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(72px, 9vw, 120px);
  overflow: hidden;
}
.soon-page__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.soon-page__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .55;
}
.soon-page__orb--1 {
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  top: -12%;
  inset-inline-end: -8%;
  background: radial-gradient(circle, rgba(26, 150, 184, .35), transparent 68%);
}
.soon-page__orb--2 {
  width: min(420px, 60vw);
  height: min(420px, 60vw);
  bottom: -8%;
  inset-inline-start: -10%;
  background: radial-gradient(circle, rgba(5, 199, 241, .28), transparent 70%);
}
.soon-page__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 150, 184, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 150, 184, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}
.soon-page__inner { position: relative; z-index: 1; }
.soon-page__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(28px, 4.5vw, 52px);
  border-radius: calc(var(--r-lg) + 4px);
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(255, 255, 255, .92);
  box-shadow:
    0 24px 60px rgba(23, 40, 73, .1),
    0 0 0 1px rgba(223, 230, 240, .65) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.soon-page__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.soon-page__icon {
  position: relative;
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 26px;
  background: linear-gradient(145deg, var(--white), var(--primary-50));
  color: var(--primary);
  box-shadow: var(--sh-md);
  margin-bottom: 4px;
}
.soon-page__icon-ring {
  position: absolute;
  inset: -6px;
  border-radius: 30px;
  border: 2px solid rgba(26, 150, 184, .22);
  animation: soonRingPulse 3s ease-in-out infinite;
}
@keyframes soonRingPulse {
  0%, 100% { transform: scale(1); opacity: .7; }
  50% { transform: scale(1.06); opacity: 1; }
}
.soon-page__title { margin: 0; }
.soon-page__desc { max-width: 540px; margin: 0; }

.soon-panel {
  position: relative;
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-md);
  overflow: hidden;
}
.soon-panel__accent {
  position: absolute;
  top: 0;
  inset-inline: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--aqua), var(--primary));
  background-size: 200% 100%;
  animation: ctaGradientShift 6s ease infinite;
}
.soon-panel__eyebrow {
  margin: 0 0 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary-700);
}
html[dir="rtl"] .soon-panel__eyebrow { letter-spacing: 0; text-transform: none; }
.soon-panel__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  color: var(--ink-950);
}
.soon-panel__lead {
  margin: 0 0 22px;
  font-size: .95rem;
  color: var(--ink-500);
  line-height: 1.6;
}

.soon-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(32px, 5vw, 48px);
}
.soon-feat {
  padding: 24px 22px;
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.soon-feat:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
  border-color: rgba(26, 150, 184, .35);
}
.soon-feat__icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 14px;
  background: var(--primary-50);
  color: var(--primary);
}
.soon-feat__icon svg { width: 22px; height: 22px; }
.soon-feat__icon--aqua { background: var(--aqua-100); color: var(--aqua); }
.soon-feat__icon--warm { background: var(--accent-100); color: var(--accent); }
.soon-feat h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--ink-950);
}
.soon-feat p {
  margin: 0;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--ink-500);
}

.soon-perks {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.soon-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--ink-700);
}
.soon-perks svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #10b981;
}

.soon-page--ctf .soon-page__orb--1 {
  background: radial-gradient(circle, rgba(23, 40, 73, .22), transparent 68%);
}
.soon-page--ctf .soon-page__orb--2 {
  background: radial-gradient(circle, rgba(255, 115, 0, .2), transparent 70%);
}
.soon-page--edu .soon-page__orb--1 {
  background: radial-gradient(circle, rgba(26, 150, 184, .3), transparent 68%);
}
.soon-page--edu .soon-page__orb--2 {
  background: radial-gradient(circle, rgba(5, 199, 241, .24), transparent 70%);
}
.soon-page__icon--ctf {
  color: var(--ink-900);
  background: linear-gradient(145deg, var(--white), var(--accent-100));
}
.soon-page__icon--ctf .soon-page__icon-ring {
  border-color: rgba(255, 115, 0, .28);
}
.soon-page__icon--edu {
  color: var(--primary-700);
  background: linear-gradient(145deg, var(--white), var(--primary-50));
}
.soon-page__icon--edu .soon-page__icon-ring {
  border-color: rgba(26, 150, 184, .28);
}
.soon-panel__accent--ctf {
  background: linear-gradient(90deg, var(--ink-900), var(--accent), var(--primary));
}
.soon-panel__accent--edu {
  background: linear-gradient(90deg, var(--ink-900), var(--primary), var(--aqua));
}

/* ---------- Education page (professional split layout) ------------- */
.edu-page {
  position: relative;
  padding: clamp(32px, 5vw, 56px) 0 clamp(64px, 8vw, 100px);
  background:
    radial-gradient(900px 420px at 90% 0%, rgba(26, 150, 184, .08), transparent 55%),
    radial-gradient(700px 380px at 0% 100%, rgba(23, 40, 73, .05), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.edu-page__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 4vw, 40px);
}
.edu-page__inner > .page-back {
  align-self: flex-start;
  width: auto;
}
.edu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(23, 40, 73, .08);
  box-shadow: 0 24px 60px rgba(23, 40, 73, .1);
  background: var(--white);
}
.edu-hero__visual {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: linear-gradient(155deg, var(--brand-deep) 0%, var(--brand-dark) 50%, var(--brand-mid) 100%);
}
.edu-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .92;
}
.edu-hero__visual-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 280px at 80% 20%, rgba(26, 150, 184, .25), transparent 60%),
    linear-gradient(180deg, rgba(14, 26, 52, .15) 0%, rgba(14, 26, 52, .45) 100%);
  pointer-events: none;
}
.edu-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(32px, 4.5vw, 48px) clamp(28px, 4vw, 44px);
  text-align: start;
}
.edu-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--primary-50);
  border: 1px solid rgba(26, 150, 184, .2);
  color: var(--primary-700);
  font-size: .78rem;
  font-weight: 700;
}
.edu-hero__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, .25);
  animation: eduPulse 2s ease-in-out infinite;
}
@keyframes eduPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .7; transform: scale(.92); }
}
.edu-hero__title {
  margin: 0;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-950);
  letter-spacing: 0;
}
.edu-hero__desc {
  margin: 0;
  max-width: 52ch;
  font-size: .98rem;
  line-height: 1.75;
  color: var(--ink-500);
}
.edu-hero__countdown { align-self: flex-start; }
.edu-waitlist {
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.edu-waitlist__eyebrow {
  margin: 0 0 6px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--primary-700);
  letter-spacing: .06em;
  text-transform: uppercase;
}
html[dir="rtl"] .edu-waitlist__eyebrow { letter-spacing: 0; text-transform: none; }
.edu-waitlist__title {
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--ink-950);
}
.edu-waitlist__lead {
  margin: 0 0 18px;
  font-size: .9rem;
  line-height: 1.65;
  color: var(--ink-500);
}
.edu-waitlist__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edu-waitlist__label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-700);
}
.edu-waitlist__input {
  width: 100%;
  box-sizing: border-box;
  padding: 14px 16px;
  border: 1px solid #d5deea;
  border-radius: 12px;
  background: #f8fafc;
  font-size: .95rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.edu-waitlist__input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(26, 150, 184, .12);
}
.edu-waitlist__submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.edu-perks {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.edu-perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-600, var(--ink-700));
}
.edu-perks svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: #10b981;
}
.edu-tracks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.edu-track {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px 20px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--sh-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.edu-track:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-md);
  border-color: rgba(26, 150, 184, .3);
}
.edu-track__icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  flex-shrink: 0;
}
.edu-track__icon svg { width: 20px; height: 20px; }
.edu-track__icon--aqua { background: var(--aqua-100); color: var(--aqua); }
.edu-track__icon--warm { background: var(--accent-100); color: var(--accent); }
.edu-track h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink-950);
}
.edu-track p {
  margin: 0;
  font-size: .88rem;
  line-height: 1.6;
  color: var(--ink-500);
}

/* CTF page — same layout as education, warmer accents */
.ctf-page {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(255, 115, 0, .06), transparent 55%),
    radial-gradient(700px 380px at 90% 100%, rgba(26, 150, 184, .07), transparent 60%),
    var(--bg);
}
.ctf-page .edu-hero__visual {
  background: linear-gradient(155deg, #0c2038 0%, #142838 45%, #1a3540 100%);
}
.ctf-page .edu-hero__visual-glow {
  background:
    radial-gradient(420px 280px at 75% 25%, rgba(255, 115, 0, .22), transparent 58%),
    radial-gradient(360px 240px at 20% 80%, rgba(26, 150, 184, .18), transparent 55%),
    linear-gradient(180deg, rgba(14, 26, 52, .12) 0%, rgba(14, 26, 52, .48) 100%);
}
.ctf-page .edu-hero__badge {
  background: rgba(255, 115, 0, .1);
  border-color: rgba(255, 115, 0, .22);
  color: #c2410c;
}
.ctf-page .edu-waitlist__eyebrow {
  color: #c2410c;
}

/* legacy soon-hero (fallback) */
.soon-hero { padding: clamp(64px, 8vw, 120px) 0; text-align: center; background: radial-gradient(700px 500px at 50% -10%, var(--primary-50), transparent 65%), var(--bg); }
.soon-hero .icon { width: 96px; height: 96px; margin: 0 auto 24px; background: var(--white); border-radius: 24px; box-shadow: var(--sh-md); display: inline-flex; align-items: center; justify-content: center; color: var(--primary); }
.soon-hero h1 { margin-bottom: 16px; }
.soon-hero p { max-width: 620px; margin: 0 auto 40px; font-size: 1.1rem; }

.countdown { display: inline-grid; grid-template-columns: repeat(4, minmax(72px, 1fr)); gap: 12px; margin-bottom: 32px; }
.countdown--pro { margin: 8px 0 0; }
.countdown div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--sh-sm);
}
.countdown--pro div {
  min-width: 76px;
  border-color: rgba(26, 150, 184, .18);
  background: linear-gradient(180deg, var(--white), var(--primary-50));
}
.countdown .n { font-size: 1.8rem; font-weight: 800; color: var(--primary); line-height: 1; font-variant-numeric: tabular-nums; }
.countdown--pro .n { font-size: 2rem; color: var(--ink-950); }
.countdown .l { font-size: .75rem; color: var(--ink-400); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
html[dir="rtl"] .countdown .l { text-transform: none; letter-spacing: 0; }

.waitlist { display: flex; gap: 8px; max-width: 480px; margin: 0 auto; }
.waitlist--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: none;
  margin: 0;
}
.waitlist-label {
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-700);
  text-align: start;
}
.waitlist-input,
.waitlist input {
  flex: 1;
  padding: 14px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 1rem;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.waitlist-input:focus,
.waitlist input:focus {
  outline: 0;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(26, 150, 184, .14);
}
.waitlist button,
.waitlist-submit { width: 100%; justify-content: center; }
.waitlist button:not(.btn) { padding: 14px 24px; border-radius: var(--r-pill); background: var(--primary); color: var(--white); font-weight: 600; border: 0; cursor: pointer; white-space: nowrap; }
.waitlist button:not(.btn):hover { background: var(--primary-600); }

/* ---------- 404/500 ------------------------------------------------- */
.errpage { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 24px; text-align: center; }
.errpage .code { font-size: clamp(4rem, 10vw, 8rem); font-weight: 800; color: var(--primary); letter-spacing: -0.02em; line-height: 1; }
.errpage h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 12px 0 8px; }
.errpage p { color: var(--ink-500); margin-bottom: 24px; max-width: 480px; }

/* ---------- Modal --------------------------------------------------- */
.modal-scrim { position: fixed; inset: 0; background: rgba(14,26,52,.55); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity .25s var(--ease); }
.modal-scrim.is-open { opacity: 1; pointer-events: auto; }
.modal { background: var(--white); border-radius: var(--r-lg); max-width: 720px; width: 100%; max-height: 90vh; overflow-y: auto; padding: 32px; box-shadow: var(--sh-lg); transform: translateY(20px); transition: transform .3s var(--ease); }
.modal--project { max-width: 680px; padding: 0; overflow: hidden; position: relative; }
.modal--project #portfolio-modal-body { max-height: 90vh; overflow-y: auto; }
.modal--project .close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 3;
  float: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--line);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: var(--shadow-xs);
}
.modal-scrim.is-open .modal { transform: none; }
.modal .close { float: inline-end; background: transparent; border: 0; font-size: 1.6rem; color: var(--ink-500); cursor: pointer; }
.modal h3 { margin-bottom: 12px; }
.modal .tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.modal .tags span { padding: 4px 10px; border-radius: var(--r-pill); background: var(--primary-50); color: var(--primary-700); font-size: .82rem; font-weight: 500; }

.proj-modal-cover {
  margin: 0;
  aspect-ratio: 16 / 9;
  background: var(--slate-100, #eef4fb);
  overflow: hidden;
}
.proj-modal-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.proj-modal-content {
  padding: 24px 28px 28px;
}
.proj-modal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.proj-modal-cat {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--ink-950, #0c2038);
  color: var(--white);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .02em;
}
html[dir="rtl"] .proj-modal-cat { letter-spacing: 0; }
.proj-modal-tags { justify-content: flex-end; }
.proj-modal-title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--ink-950);
  line-height: 1.25;
  letter-spacing: 0;
}
.proj-modal-lead {
  margin: 0 0 18px;
  color: var(--ink-500);
  font-size: .95rem;
  line-height: 1.7;
}
.proj-modal-about {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--slate-50, #f8fbff);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.proj-modal-about h4 {
  margin: 0 0 8px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--primary-700);
  text-transform: uppercase;
  letter-spacing: .04em;
}
html[dir="rtl"] .proj-modal-about h4 {
  text-transform: none;
  letter-spacing: 0;
}
.proj-modal-about p {
  margin: 0;
  color: var(--ink-700);
  font-size: .92rem;
  line-height: 1.8;
}
.proj-modal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.proj-modal-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.proj-modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
html[dir="rtl"] .proj-modal-cta svg { transform: scaleX(-1); }

/* ---------- Responsive ---------------------------------------------- */
@media (max-width: 1080px) {
  :root { --nav-h: 76px; }
  .nav-inner {
    display: flex;
    direction: inherit;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: var(--nav-h);
  }
  .nav-side--start,
  .nav-side--end,
  .nav-brand--center { display: none; }
  .nav-brand--mobile { display: inline-flex; }
  .nav-burger { display: inline-flex; margin-inline-start: auto; flex-shrink: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .soon-page__shell { grid-template-columns: 1fr; }
  .edu-hero { grid-template-columns: 1fr; }
  .edu-hero__visual img { min-height: 240px; }
  .edu-tracks { grid-template-columns: 1fr; }
  .hero-v2-inner { min-height: 520px; }
  .case-card {
    flex: 0 1 calc((100% - 24px) / 2);
    min-width: 0;
  }
  .feature-card,
  .benefit-card {
    flex: 0 1 calc((100% - 24px) / 2);
    max-width: none;
  }
}

@media (max-width: 720px) {
  :root { --nav-h: 68px; }
  .site-nav {
    padding-top: var(--safe-top);
    padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
  }
  .feature-grid,
  .benefit-grid,
  .case-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  .feature-card,
  .benefit-card,
  .case-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .case-card .cc-content { padding: 20px 16px 8px; }
  .cc-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    justify-items: stretch;
  }
  .cc-stat { align-items: center; text-align: center; min-width: 0; }
  .cc-stat .k { font-size: .72rem; line-height: 1.25; }
  .cc-stat .v { font-size: .92rem !important; }
  .featured-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .feature-card { padding: 28px 20px 22px; }
  .tstm-grid { grid-template-columns: 1fr; }
  .tstm { padding: 24px 20px; }
  .form { grid-template-columns: 1fr; }
  .form .full { grid-column: 1; }
  .input, .textarea, .select,
  .subscribe input,
  .waitlist input,
  .waitlist-input,
  .edu-waitlist__input {
    font-size: 16px;
  }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .site-footer {
    padding-bottom: calc(24px + var(--safe-bottom));
    padding-inline: max(0px, var(--safe-left)) max(0px, var(--safe-right));
  }
  .section { padding: clamp(48px, 10vw, 56px) 0; }
  .section-head { margin-bottom: 40px; gap: 14px; }
  h1 { font-size: 2.2rem; }
  .cta-band .row { flex-direction: column; align-items: stretch; }
  .cta-band .btn { width: 100%; justify-content: center; }
  .hero-v2-inner { min-height: 460px; padding: calc(72px + var(--safe-top)) 16px 72px; }
  .hero-v2-copy { gap: 18px; }
  .hero-v2-title { font-size: clamp(1.85rem, 7.5vw, 2.4rem); }
  .hero-v2-desc { font-size: 1rem; }
  .hero-v2-tagline { font-size: 1.02rem; }
  .hero-v2 .btn { width: 100%; max-width: 100%; justify-content: center; white-space: normal; text-align: center; }
  .logo-strip-v2 { padding: 20px 0; }
  .logo-strip-v2 .logo-group {
    gap: clamp(28px, 4vw, 48px);
    padding-inline: 20px;
  }
  .logo-strip-v2__view::before,
  .logo-strip-v2__view::after { width: 28px; }
  .tabs-wrap {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-inline: 0;
    padding-bottom: 6px;
    padding-inline: 4px;
    scroll-padding-inline: 12px;
    scrollbar-width: none;
    max-width: 100%;
    mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  }
  .tabs-wrap::-webkit-scrollbar { display: none; }
  .tabs { flex-wrap: nowrap; max-width: none; }
  .tab {
    padding: 11px 16px;
    font-size: .86rem;
    flex-shrink: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
  }
  .subscribe { flex-direction: column; max-width: 100%; }
  .subscribe button { width: 100%; min-height: 44px; }
  .waitlist { flex-direction: column; width: 100%; max-width: 100%; }
  .waitlist input,
  .waitlist button { width: 100%; }
  .waitlist button { white-space: normal; text-align: center; min-height: 44px; }
  .soon-page { padding-top: 28px; }
  .soon-page__shell { padding: 24px 20px; }
  .soon-features { grid-template-columns: 1fr; gap: 14px; margin-top: 24px; }
  .soon-feat { padding: 20px 18px; }
  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 300px;
  }
  .modal-scrim { padding: 12px; align-items: flex-end; }
  .modal { padding: 24px 20px; max-height: 92vh; border-end-start-radius: var(--r-lg); border-end-end-radius: var(--r-lg); }
  .modal--project { padding: 0; }
  .proj-modal-content { padding: 20px 18px 24px; }
  .proj-modal-head { flex-direction: column; align-items: flex-start; }
  .proj-modal-tags { justify-content: flex-start; }
  .toast-wrap {
    inset-inline: max(12px, var(--safe-left)) max(12px, var(--safe-right));
    top: calc(12px + var(--safe-top));
  }
  .toast { max-width: none; }
  .contact-info { padding: 22px 18px; }
  .contact-hero { padding-top: 32px; }
  .contact-map { min-height: 180px; }
  .page-back { margin-bottom: 20px; font-size: .85rem; min-height: 44px; display: inline-flex; align-items: center; }
  .cta-highlight-pill { font-size: .84rem; padding: 9px 16px; gap: 8px; }
  .nav-drawer {
    width: min(320px, 92vw);
    padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
    padding-inline-start: max(20px, var(--safe-left));
  }
  .nav-drawer .nav-link {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 12px 10px;
  }
  .nav-drawer .nav-close {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
  }
  .nav-burger { touch-action: manipulation; }
  .btn, button, .lang-toggle { touch-action: manipulation; }
}

@media (max-width: 380px) {
  :root { --nav-h: 64px; }
  .container { width: min(100% - 20px, var(--container)); }
  .nav-brand--mobile img { height: 40px; width: 40px; }
  .nav-burger { width: 44px; height: 44px; }
  .hero-v2-inner { min-height: 400px; padding: calc(56px + var(--safe-top)) 12px 64px; }
  .hero-v2-title { font-size: 1.72rem; line-height: 1.12; }
  .heading-jumbo { font-size: 1.65rem; }
  .subheading { font-size: .98rem; }
  .badge { padding: 7px 14px; font-size: .78rem; }
  .btn { padding: 12px 18px; font-size: .9rem; white-space: normal; min-height: 44px; }
  .btn-lg { padding: 14px 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .stat-value { font-size: 1.85rem; }
  .stat-label { font-size: .84rem; }
  .feature-card h3 { font-size: 1.2rem; }
  .case-card h3 { font-size: 1.05rem; line-height: 1.3; }
  .featured-card { padding: 0; min-height: 380px; }
  .featured-card__body { padding: 18px 20px 24px; }
  .featured-card h3 { font-size: 1.25rem; line-height: 1.28; }
  .cc-stats { grid-template-columns: 1fr 1fr; gap: 10px 8px; }
  .cc-stat .k { font-size: .68rem; }
  .cc-stat .v { font-size: .85rem !important; }
  .site-footer { padding: 48px 0 calc(24px + var(--safe-bottom)); margin-top: 24px; }
  .footer-brand .brand-row img { width: 52px; height: 52px; }
  .footer-brand .brand-row span { font-size: 1rem; }
  .socials a { width: 44px; height: 44px; }
  .tab { padding: 10px 14px; font-size: .82rem; }
  .countdown { max-width: 100%; }
}
