/* ==========================================================================
   Opia Tech — glassmorphism design system (themeable)
   Primary brand colour: Opia indigo rgb(20,10,120) = #140A78
   Two themes via [data-theme]: "dark" (default, softened) and "light".
   All colours flow through tokens so the two themes share one set of rules.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --container: 1600px;
  --container-narrow: 960px;

  /* Brand + accents (shared across themes) */
  --primary: #140a78;
  --violet: #6d4bff;
  --violet-300: #b3a3ff;
  --cyan: #38e1ff;
  --pink: #ff6ad5;

  /* Page / aurora — softened a notch from pure black */
  --page-bg: #0d0a26;
  --aurora-1: rgba(109, 75, 255, 0.50);
  --aurora-2: rgba(56, 225, 255, 0.24);
  --aurora-3: rgba(255, 106, 213, 0.20);
  --aurora-4: rgba(36, 22, 120, 0.85);
  --aurora-base-a: #120d33;
  --aurora-base-b: #0d0a26;
  --vignette: rgba(0, 0, 0, 0.30);

  /* Text */
  --text: #e9eaff;
  --muted: #aab0e0;
  --heading: #ffffff;
  --on-panel: #c7cbef;
  --on-panel-muted: #c2c7ee;

  /* Glass surfaces */
  --panel: linear-gradient(160deg, rgba(56, 42, 140, 0.5), rgba(18, 13, 54, 0.55));
  --panel-soft: linear-gradient(160deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.035));
  --glass-line: rgba(255, 255, 255, 0.14);
  --glass-hi: rgba(255, 255, 255, 0.22);
  --tile-line: rgba(255, 255, 255, 0.18);
  --alt-section: rgba(255, 255, 255, 0.025);

  /* Header / nav */
  --header-bg: rgba(14, 10, 42, 0.55);
  --header-line: rgba(255, 255, 255, 0.10);
  --nav-link: rgba(255, 255, 255, 0.82);
  --nav-on: #ffffff;
  --mobile-nav-bg: rgba(15, 11, 46, 0.92);

  /* Hero */
  --hero-card-bg: linear-gradient(160deg, rgba(34, 24, 100, 0.5), rgba(12, 9, 46, 0.42));
  --hero-overlay: linear-gradient(120deg, rgba(9, 6, 30, 0.95) 0%, rgba(20, 10, 120, 0.72) 55%, rgba(20, 10, 120, 0.32) 100%);
  --hero-text: #d8dbf6;
  --hero-grad: linear-gradient(100deg, #ffffff 0%, #cdc4ff 52%, #8be9ff 100%);

  /* Why-split + form + inputs */
  --split-bg: rgba(16, 11, 48, 0.5);
  --split-tint: linear-gradient(115deg, rgba(20, 10, 120, 0.55) 0%, rgba(20, 10, 120, 0.2) 58%, rgba(56, 225, 255, 0.12) 100%);
  --form-bg: rgba(16, 11, 48, 0.5);
  --modal-bg: linear-gradient(160deg, rgba(40, 30, 110, 0.95), rgba(13, 9, 44, 0.96));
  --input-bg: rgba(255, 255, 255, 0.06);
  --input-bg-focus: rgba(255, 255, 255, 0.09);
  --input-line: rgba(255, 255, 255, 0.16);
  --input-text: #ffffff;
  --input-ph: #9aa0cf;
  --label: #dfe2ff;
  --step-title: var(--violet-300);

  /* Footer */
  --footer-bg: linear-gradient(180deg, rgba(9, 6, 30, 0) 0%, rgba(9, 6, 30, 0.55) 35%, rgba(6, 4, 22, 0.92) 100%);
  --footer-line: rgba(255, 255, 255, 0.08);
  --footer-text: #bcc1ea;
  --footer-bottom-bg: rgba(0, 0, 0, 0.32);
  --footer-bottom-text: #9aa0cf;

  /* Misc controls */
  --ghost-bg: rgba(255, 255, 255, 0.10);
  --ghost-line: rgba(255, 255, 255, 0.32);
  --ghost-text: #ffffff;
  --map-line: rgba(255, 255, 255, 0.14);
  --bar: #ffffff;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.8);
  --glow-violet: 0 0 30px -6px rgba(109, 75, 255, 0.5);
  --section-pad: 92px;
  --ease: 0.25s cubic-bezier(0.4, 0.14, 0.3, 1);
}

[data-theme="light"] {
  --page-bg: #eef0fb;
  --aurora-1: rgba(109, 75, 255, 0.22);
  --aurora-2: rgba(56, 225, 255, 0.20);
  --aurora-3: rgba(255, 106, 213, 0.16);
  --aurora-4: rgba(120, 110, 235, 0.22);
  --aurora-base-a: #f4f2ff;
  --aurora-base-b: #e7eafc;
  --vignette: rgba(20, 12, 80, 0.05);

  --text: #2b2b4d;
  --muted: #5b6088;
  --heading: #140a44;
  --on-panel: #3a3f63;
  --on-panel-muted: #44496b;

  --panel: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
  --panel-soft: linear-gradient(160deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.44));
  --glass-line: rgba(20, 10, 90, 0.12);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --tile-line: rgba(255, 255, 255, 0.7);
  --alt-section: rgba(20, 10, 90, 0.03);

  --header-bg: rgba(255, 255, 255, 0.62);
  --header-line: rgba(20, 10, 90, 0.10);
  --nav-link: #3a3f63;
  --nav-on: #140a78;
  --mobile-nav-bg: rgba(255, 255, 255, 0.94);

  --hero-card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.5));
  --hero-overlay: linear-gradient(120deg, rgba(238, 240, 251, 0.86) 0%, rgba(238, 240, 251, 0.5) 55%, rgba(238, 240, 251, 0.12) 100%);
  --hero-text: #3a3f63;
  --hero-grad: linear-gradient(100deg, #140a78 0%, #5b3df5 55%, #1c8fb6 100%);

  --split-bg: rgba(255, 255, 255, 0.62);
  --split-tint: linear-gradient(115deg, rgba(120, 110, 235, 0.22) 0%, rgba(238, 240, 251, 0.04) 70%, rgba(56, 225, 255, 0.06) 100%);
  --form-bg: rgba(255, 255, 255, 0.66);
  --modal-bg: rgba(255, 255, 255, 0.97);
  --input-bg: rgba(255, 255, 255, 0.75);
  --input-bg-focus: rgba(255, 255, 255, 0.95);
  --input-line: rgba(20, 10, 90, 0.18);
  --input-text: #1f1f3a;
  --input-ph: #8388ac;
  --label: #2b2b4d;
  --step-title: #5b3df5;

  --footer-bg: linear-gradient(180deg, rgba(238, 240, 251, 0) 0%, rgba(228, 231, 248, 0.6) 35%, rgba(220, 224, 246, 0.92) 100%);
  --footer-line: rgba(20, 10, 90, 0.08);
  --footer-text: #44496b;
  --footer-bottom-bg: rgba(20, 10, 80, 0.05);
  --footer-bottom-text: #6a6f96;

  --ghost-bg: rgba(20, 10, 90, 0.06);
  --ghost-line: rgba(20, 10, 90, 0.25);
  --ghost-text: #140a78;
  --map-line: rgba(20, 10, 90, 0.14);
  --bar: #140a78;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color var(--ease), color var(--ease);
}
body::before {
  content: ""; position: fixed; inset: -25vmax; z-index: -2;
  background:
    radial-gradient(38vmax 38vmax at 14% 8%, var(--aurora-1), transparent 60%),
    radial-gradient(32vmax 32vmax at 88% 2%, var(--aurora-2), transparent 60%),
    radial-gradient(42vmax 42vmax at 82% 78%, var(--aurora-3), transparent 60%),
    radial-gradient(46vmax 46vmax at 8% 92%, var(--aurora-4), transparent 60%),
    linear-gradient(165deg, var(--aurora-base-a) 0%, var(--aurora-base-b) 60%);
  filter: saturate(116%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(130vmax 85vmax at 50% -12%, transparent 52%, var(--vignette));
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
::selection { background: rgba(109, 75, 255, 0.45); color: #fff; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: var(--container-narrow); }
.center { text-align: center; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--violet); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px; overflow: hidden;
  font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px;
  padding: 14px 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: var(--ease); line-height: 1;
}
.btn__arrow { font-size: 1.15em; transition: transform var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn--solid {
  color: #fff; background: linear-gradient(135deg, var(--violet) 0%, var(--primary) 100%);
  box-shadow: 0 16px 34px -12px rgba(109, 75, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--solid::before { content: ""; position: absolute; inset: 0 0 55% 0; background: linear-gradient(rgba(255, 255, 255, 0.32), transparent); pointer-events: none; }
.btn--solid:hover { transform: translateY(-2px); filter: saturate(115%) brightness(1.05); box-shadow: 0 22px 44px -12px rgba(109, 75, 255, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
.btn--ghost { color: var(--ghost-text); background: var(--ghost-bg); border-color: var(--ghost-line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 var(--glass-hi); }
.btn--ghost:hover { transform: translateY(-2px); filter: brightness(1.08); }

/* ---------- Top bar ---------- */
.topbar { background: transparent; border-bottom: 1px solid var(--header-line); }
.topbar__inner { display: flex; justify-content: center; align-items: center; min-height: 40px; }
.topbar__email { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); text-decoration: none; }
.topbar__email:hover { color: var(--cyan); }
.topbar .icon { color: var(--cyan); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--header-line); box-shadow: 0 10px 30px -16px rgba(0, 0, 0, 0.55);
}
.site-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 20px; }
.site-header__right { display: flex; align-items: center; gap: 18px; }
.logo { display: inline-flex; }
.logo img { height: 34px; width: auto; display: block; }
.logo img.logo__light { display: none; }
[data-theme="light"] .logo img.logo__dark { display: none; }
[data-theme="light"] .logo img.logo__light { display: block; }

.primary-nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav__link {
  position: relative; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.6px;
  color: var(--nav-link); text-decoration: none; padding: 8px 0; transition: color var(--ease);
}
.primary-nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--violet)); transform: scaleX(0); transform-origin: left; transition: transform var(--ease); }
.primary-nav__link:hover, .primary-nav__link.is-active { color: var(--nav-on); }
.primary-nav__link:hover::after, .primary-nav__link.is-active::after { transform: scaleX(1); }

.theme-toggle {
  width: 42px; height: 42px; border-radius: var(--radius-sm); border: 1px solid var(--glass-line);
  background: var(--ghost-bg); color: var(--heading); display: grid; place-items: center; cursor: pointer;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: var(--ease);
}
.theme-toggle:hover { transform: translateY(-1px); filter: brightness(1.1); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 42px; height: 38px; border: 0; background: transparent; cursor: pointer; padding: 8px; }
.nav-toggle__bar { height: 2px; width: 100%; background: var(--bar); border-radius: 2px; transition: var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; display: flex; align-items: center; min-height: 520px; color: var(--heading); background-size: cover; background-position: center; overflow: hidden; }
.hero__overlay { position: absolute; inset: 0; background: var(--hero-overlay); }
.hero__inner { position: relative; z-index: 1; padding: 44px 20px; width: 100%; }
.hero__card {
  max-width: 660px; padding: 34px 40px 32px; border-radius: 24px; background: var(--hero-card-bg);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
}
.hero__title { font-size: clamp(1.8rem, 1.3rem + 1.5vw, 2.4rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 0 0 0.5em; color: var(--heading); }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero__title { background: var(--hero-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
}
.hero__text { max-width: 600px; font-size: 15px; line-height: 1.7; color: var(--hero-text); margin: 0 0 1.35em; }
.hero__text p:last-child { margin-bottom: 0; }

/* ---------- Sections ---------- */
.section { padding: var(--section-pad) 0; position: relative; }
.section--alt { background: var(--alt-section); }
.section--dark { background: transparent; }
.section__heading { position: relative; padding-left: 20px; margin: 0 0 16px; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; color: var(--heading); line-height: 1.2; }
.section__heading::before { content: ""; position: absolute; left: 0; top: 0.12em; bottom: 0.12em; width: 5px; border-radius: 4px; background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 16px rgba(109, 75, 255, 0.6); }
.section__heading--light { color: var(--heading); }
.section__intro { font-size: 16px; line-height: 1.85; color: var(--muted); margin: 0 0 8px; max-width: 820px; }
.section__intro--light { color: var(--text); max-width: 760px; }
.center .section__heading { padding-left: 0; text-align: center; }
.center .section__heading::before { display: none; }
.center .section__intro { margin-left: auto; margin-right: auto; }

/* ---------- Glass cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 38px; }
.cards--3 { margin-top: 40px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius); overflow: hidden; background: var(--panel);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--glass-hi), transparent); }
.card:hover { transform: translateY(-6px); border-color: rgba(109, 75, 255, 0.5); box-shadow: var(--shadow), var(--glow-violet), inset 0 1px 0 var(--glass-hi); }
.card__icon { width: 64px; height: 64px; margin-bottom: 20px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, rgba(109, 75, 255, 0.45), rgba(56, 225, 255, 0.22)); border: 1px solid var(--tile-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.card__icon img { width: 34px; height: 34px; object-fit: contain; filter: brightness(0) invert(1); }
.card__title { font-size: 16px; font-weight: 600; color: var(--heading); margin: 0 0 12px; line-height: 1.4; }
.card__text { font-size: 14px; line-height: 1.8; color: var(--on-panel); margin: 0; }
.card--benefit::after { content: ""; position: absolute; top: 0; left: 32px; width: 56px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

/* Scroll-reveal: side cards converge from L/R with a 3D swing, centre rises to meet them.
   Scoped to .js so content stays visible if JavaScript is unavailable. */
.js .cards { perspective: 1200px; }
.js .cards .card {
  opacity: 0; filter: blur(9px); will-change: transform, opacity, filter;
  transition: transform 1.4s cubic-bezier(0.22, 1.1, 0.32, 1), opacity 0.95s ease-out, filter 0.95s ease-out;
}
.js .cards .card:first-child { transform: translateX(-320px) rotateY(20deg) scale(0.92); }
.js .cards .card:last-child  { transform: translateX(320px) rotateY(-20deg) scale(0.92); }
/* centre card: full size always — just fades/un-blurs in place as the sides converge on it */
.js .cards.is-revealed .card { opacity: 1; filter: none; transform: none; }
.js .cards.is-revealed .card:first-child,
.js .cards.is-revealed .card:last-child { transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  .js .cards .card { opacity: 1; filter: none; transform: none; transition: none; }
}

/* ---------- Easter egg: balloons (click the hero card 5x) ---------- */
.balloons { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 9999; }
.balloon {
  position: absolute; bottom: -24vh; width: 46px; height: 58px;
  border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 44%), var(--bln, #6d4bff);
  box-shadow: inset -6px -9px 14px rgba(0, 0, 0, 0.18);
  opacity: 0; will-change: transform, opacity;
  animation: balloon-rise var(--dur, 6s) ease-in var(--delay, 0s) forwards;
}
.balloon::before { content: ""; position: absolute; left: 50%; bottom: -5px; width: 9px; height: 7px; transform: translateX(-50%); background: var(--bln, #6d4bff); clip-path: polygon(50% 100%, 0 0, 100% 0); }
.balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 80px; background: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0)); }
@keyframes balloon-rise {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
  10%  { opacity: 0.95; }
  50%  { transform: translateY(-65vh) translateX(var(--sway, 25px)) rotate(var(--rot, 8deg)); }
  90%  { opacity: 0.95; }
  100% { transform: translateY(-135vh) translateX(calc(var(--sway, 25px) * -0.6)) rotate(calc(var(--rot, 8deg) * -0.6)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .balloons { display: none !important; } }

/* ---------- Clickable focus cards + solution modal ---------- */
.card--clickable { cursor: pointer; }
.card__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--cyan); transition: gap var(--ease); }
.card--clickable:hover .card__more { gap: 11px; }

.modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal__overlay { position: absolute; inset: 0; background: rgba(6, 4, 22, 0.62); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); opacity: 0; transition: opacity 0.3s ease; }
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog {
  position: relative; width: 100%; max-width: 640px; max-height: 86vh; overflow-y: auto;
  padding: 40px 42px; border-radius: 22px; background: var(--modal-bg);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-line); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi);
  opacity: 0; transform: scale(0.6); transition: opacity 0.3s ease, transform 0.45s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.modal.is-open .modal__dialog { opacity: 1; transform: scale(1); }
.modal__close { position: absolute; top: 14px; right: 16px; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--glass-line); background: var(--ghost-bg); color: var(--heading); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: var(--ease); }
.modal__close:hover { background: var(--violet); border-color: transparent; color: #fff; }
.modal__title { position: relative; padding-left: 18px; margin: 0 0 18px; font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 700; color: var(--heading); line-height: 1.25; }
.modal__title::before { content: ""; position: absolute; left: 0; top: 0.14em; bottom: 0.14em; width: 5px; border-radius: 4px; background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 14px rgba(109, 75, 255, 0.6); }
.modal__text { font-size: 15px; line-height: 1.85; color: var(--on-panel); }
.modal__text strong { color: var(--heading); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .modal__dialog { transition: opacity 0.2s ease; transform: scale(1); } }

/* ---------- Split (home "Why Choose") ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; }
.split__media { position: relative; background-size: cover; background-position: center; min-height: 480px; }
.split__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 54%, var(--page-bg) 100%), linear-gradient(180deg, var(--page-bg) 0%, transparent 15%, transparent 85%, var(--page-bg) 100%), var(--split-tint); }
.split__content { display: flex; align-items: center; padding: 72px 7%; background: var(--split-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.split__inner { max-width: 540px; }
.steps { display: grid; gap: 22px; margin-top: 28px; }
.step__title { font-size: 20px; font-weight: 600; color: var(--step-title); margin: 0 0 6px; line-height: 1.3; }
.step__text { font-size: 14px; line-height: 1.8; color: var(--on-panel-muted); margin: 0; }

/* ---------- Banner ---------- */
.banner { position: relative; min-height: 300px; background-size: cover; background-position: center; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7, 4, 24, 0.5), rgba(20, 10, 120, 0.45)); }

/* ---------- Solutions blocks ---------- */
.solutions { max-width: 1200px; margin: 0 auto; display: grid; gap: 28px; }
.solution { padding: 34px 36px; border-radius: var(--radius); position: relative; overflow: hidden; background: var(--panel-soft); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.solution + .solution { border-top: 1px solid var(--glass-line); padding-top: 34px; }
.solution__title { position: relative; padding-left: 18px; font-size: 22px; font-weight: 600; color: var(--heading); margin: 0 0 14px; }
.solution__title::before { content: ""; position: absolute; left: 0; top: 0.15em; bottom: 0.15em; width: 4px; border-radius: 3px; background: linear-gradient(var(--cyan), var(--violet)); box-shadow: 0 0 14px rgba(109, 75, 255, 0.6); }
.solution__text { font-size: 15px; line-height: 1.85; color: var(--on-panel-muted); }
.solution__text strong { color: var(--heading); font-weight: 600; }

/* ---------- Split2 (about "Who we are") ---------- */
.split2 { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: center; }
.split2__media img { width: 100%; border-radius: 20px; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 44px; align-items: start; }
.contact__info { display: grid; gap: 20px; }
.info-card { display: flex; gap: 18px; align-items: center; padding: 22px 24px; border-radius: 16px; background: var(--panel-soft); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.info-card__icon { flex: none; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; background: linear-gradient(135deg, rgba(109, 75, 255, 0.45), rgba(56, 225, 255, 0.22)); border: 1px solid var(--tile-line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.info-card__icon img { width: 26px; height: 26px; object-fit: contain; filter: brightness(0) invert(1); }
.info-card__title { font-size: 16px; font-weight: 600; color: var(--heading); margin: 0 0 4px; }
.info-card__text { font-size: 14px; line-height: 1.7; color: var(--on-panel); }
.info-card__text a { color: var(--cyan); text-decoration: none; }
.info-card__text a:hover { text-decoration: underline; }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; padding: 30px; border-radius: 20px; background: var(--form-bg); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border: 1px solid var(--glass-line); box-shadow: var(--shadow), inset 0 1px 0 var(--glass-hi); }
.form__row { display: grid; gap: 6px; }
.form__label { font-size: 13px; font-weight: 600; color: var(--label); }
.form__optional { color: var(--muted); font-weight: 400; }
.form__input { font: inherit; font-size: 14px; width: 100%; padding: 12px 15px; border-radius: 12px; border: 1px solid var(--input-line); background: var(--input-bg); color: var(--input-text); transition: var(--ease); }
.form__input::placeholder { color: var(--input-ph); }
.form__input:focus { outline: none; border-color: var(--violet); background: var(--input-bg-focus); box-shadow: 0 0 0 3px rgba(109, 75, 255, 0.3); }
textarea.form__input { resize: vertical; min-height: 130px; }
.form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form .btn { justify-content: center; }
.form__status { margin: 2px 0 0; font-size: 14px; min-height: 1.2em; }
.form__status.is-success { color: #2ea36a; }
.form__status.is-error { color: #e0566f; }

/* ---------- Map ---------- */
.map { line-height: 0; }
.map__frame { display: block; width: 100%; height: 460px; border: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--footer-line); color: var(--footer-text); font-size: 14px; }
.site-footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding-top: 28px; padding-bottom: 24px; }
.site-footer__about { max-width: 1200px; font-size: 13px; line-height: 1.55; margin: 0 auto; }
.site-footer__about p { margin-bottom: 0.5em; }
.site-footer__about p:last-child { margin-bottom: 0; }
.site-footer__logo { width: 150px; height: auto; }
.site-footer__logo.logo__light { display: none; }
[data-theme="light"] .site-footer__logo.logo__dark { display: none; }
[data-theme="light"] .site-footer__logo.logo__light { display: block; }
.site-footer__bottom { background: var(--footer-bottom-bg); border-top: 1px solid var(--footer-line); color: var(--footer-bottom-text); }
.site-footer__bottom .container { padding-top: 9px; padding-bottom: 9px; text-align: center; font-size: 12px; }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border: 1px solid var(--glass-line); border-radius: 14px; background: var(--ghost-bg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--heading); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: var(--ease); z-index: 40; }
.to-top[hidden] { display: grid; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: linear-gradient(135deg, var(--violet), var(--primary)); border-color: transparent; color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .primary-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--mobile-nav-bg); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-top: 1px solid var(--glass-line); box-shadow: 0 18px 32px -12px rgba(0, 0, 0, 0.4); display: none; }
  .primary-nav.is-open { display: block; }
  .primary-nav__list { flex-direction: column; gap: 0; padding: 6px 20px 14px; }
  .primary-nav__item { border-bottom: 1px solid var(--glass-line); }
  .primary-nav__item:last-child { border-bottom: 0; }
  .primary-nav__link { display: block; padding: 14px 0; }
  .primary-nav__link::after { display: none; }

  .split { grid-template-columns: 1fr; }
  .split__media { min-height: 280px; }
  .split__content { padding: 48px 22px; border-left: 0; border-top: 1px solid var(--glass-line); }
  .split2 { grid-template-columns: 1fr; gap: 30px; }
  .contact__grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 760px) {
  :root, [data-theme="dark"], [data-theme="light"] { --section-pad: 60px; }
  .cards, .cards--3 { grid-template-columns: 1fr; gap: 18px; }
  .hero { min-height: 480px; }
  .hero__inner { padding: 70px 20px; }
  .hero__card { padding: 30px 26px; }
  .map__frame { height: 330px; }
}
