/* The only external asset is the optional Outfit typeface; local system fallbacks remain available. */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&display=swap');

/* ============================================
   OFANIM CYBER — Global Stylesheet
   ============================================ */

/* ---------- Design Tokens ---------- */
:root {
  --bg-primary: #08090D;
  --bg-secondary: #0E0F16;
  --bg-surface: #14141E;
  --primary: #6C6CF0;
  --primary-bright: #8176FF;
  --lavender: #A99FFF;
  --text-main: #F5F5FA;
  --text-secondary: #A5A5B5;
  --border: rgba(160, 150, 255, 0.13);
  --border-hover: rgba(160, 150, 255, 0.32);

  --gradient: linear-gradient(135deg, #A99FFF 0%, #6C6CF0 60%, #5148D8 100%);

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --nav-height: 72px;
  --max-width: 1140px;

  --font-sans: "Outfit", "Avenir Next", "Century Gothic", "Segoe UI", sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, textarea, select, button { font-family: inherit; font-size: 1rem; }

/* ---------- Utility ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 16px;
}

.section { padding: 100px 0; position: relative; }

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.22;
}

.section-head p {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.accent { color: var(--primary-bright); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 rgba(108, 108, 240, 0);
}
.btn-primary:hover {
  background: var(--primary-bright);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 108, 240, 0.35);
}
.btn-primary .arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  border-color: var(--border-hover);
  background: rgba(108, 108, 240, 0.06);
  transform: translateY(-2px);
}

.btn-lg { padding: 16px 34px; font-size: 1rem; }

/* ---------- Single shared navigation, smooth vertical slide ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transform: translate3d(0, 0, 0);
  /* Keep fully opaque while sliding — never teleport or fade away. */
  transition: transform .68s cubic-bezier(.22, 1, .36, 1);
  backface-visibility: hidden;
  will-change: transform;
}
.site-header.is-hidden { transform: translate3d(0, -100%, 0); }
.nav {
  position: relative;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(8, 9, 13, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  /* Visible at the top and at every scroll position. */
  border-bottom: 1px solid rgba(169, 159, 255, .30);
  transition: background .35s var(--ease);
}
.nav.scrolled { background: rgba(8, 9, 13, .97); }
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
}
.nav-logo img { height: 38px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > li { display: flex; align-items: center; }
.nav-links > li > a:not(.nav-cta) {
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: 0.035em;
  line-height: 1.35;
  color: #BDBDCC;
  position: relative;
  padding: 9px 1px;
  transition: color 0.25s var(--ease);
}
.nav-links > li > a:not(.nav-cta):hover,
.nav-links > li > a:not(.nav-cta).active { color: #F5F5FA; }
.nav-links > li > a:not(.nav-cta).active::after {
  content: "";
  position: absolute;
  bottom: 3px; left: 1px; right: 1px;
  height: 1px;
  background: #A99FFF;
  border-radius: 2px;
}
/* Dedicated contrast treatment so generic nav link styles never wash out the CTA. */
.nav-links a.nav-cta,
.mobile-menu a.btn.btn-primary {
  background: linear-gradient(125deg, #C6C0FF 0%, #9C92FF 100%);
  color: #111020;
  border: 1px solid rgba(225, 221, 255, 0.7);
  font-weight: 500;
  letter-spacing: 0.025em;
  box-shadow: 0 3px 17px rgba(124, 112, 246, 0.14);
}
.nav-links a.nav-cta { padding: 10px 21px; font-size: 0.9rem; }
.nav-links a.nav-cta:hover,
.nav-links a.nav-cta.active,
.mobile-menu a.btn.btn-primary:hover,
.mobile-menu a.btn.btn-primary.active {
  background: linear-gradient(125deg, #E1DEFF 0%, #AEA6FF 100%);
  color: #090911;
  border-color: #DED9FF;
  box-shadow: 0 8px 24px rgba(129, 118, 255, 0.24);
}
.nav-cta-arrow { font-size: 1rem; line-height: 1; margin-left: 2px; }

/* Desktop language control: interactive dropdown, translation disabled by design. */
.language-switcher { position: relative; flex-shrink: 0; }
.language-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 41px;
  min-width: 96px;
  padding: 0 12px;
  background: rgba(169, 159, 255, 0.055);
  border: 1px solid rgba(169, 159, 255, 0.23);
  border-radius: 8px;
  color: #E7E5F6;
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.045em;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.language-toggle:hover,
.language-switcher.is-open .language-toggle {
  border-color: rgba(169, 159, 255, 0.62);
  background: rgba(169, 159, 255, 0.13);
  color: #fff;
}
.lang-globe { width: 18px; height: 18px; stroke: #ABA4FF; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.lang-chevron { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; transition: transform .28s var(--ease); }
.language-switcher.is-open .lang-chevron { transform: rotate(180deg); }
.language-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 222px;
  padding: 7px;
  border-radius: 12px;
  border: 1px solid rgba(169, 159, 255, 0.25);
  background: #131420;
  box-shadow: 0 22px 56px rgba(0, 0, 0, .52), 0 0 30px rgba(129, 118, 255, .07);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-7px) scale(.98);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .22s var(--ease), transform .24s var(--ease), visibility .22s;
}
.language-switcher.is-open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.language-option {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  gap: 12px;
  border-radius: 7px;
  text-align: left;
  color: #D3D1E1;
  font-size: 0.88rem;
  font-weight: 400;
  transition: background .2s var(--ease);
}
.language-option.is-current { color: #F5F3FF; background: rgba(140, 129, 255, .13); }
.language-option.is-current:hover { background: rgba(140, 129, 255, .2); }
.language-option:disabled { opacity: .57; cursor: not-allowed; }
.language-code { font-weight: 500; min-width: 22px; letter-spacing: .045em; }
.language-name { flex: 1; font-size: .83rem; }
.language-soon { font-size: .67rem; letter-spacing: .04em; color: #ABA4C9; }
.lang-check { width: 15px; height: 15px; stroke: #A99FFF; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.language-toggle:focus-visible,
.language-option:focus-visible,
.nav-toggle:focus-visible,
.nav-links a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid #BEB6FF;
  outline-offset: 3px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--text-main);
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Mobile Menu: real slide-down and slide-up, no display toggling ---------- */
.mobile-menu {
  position: absolute;
  top: 100%; left: 0; right: 0;
  display: grid;
  grid-template-rows: 0fr;
  background: rgba(9, 9, 16, .985);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(169, 159, 255, .24);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .30);
  opacity: 0;
  transform: translate3d(0, -15px, 0);
  visibility: hidden;
  pointer-events: none;
  transition: grid-template-rows .52s cubic-bezier(.22, 1, .36, 1),
              transform .52s cubic-bezier(.22, 1, .36, 1),
              opacity .40s ease,
              visibility .52s;
}
.mobile-menu.open {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-menu-inner {
  min-height: 0;
  max-height: calc(100dvh - var(--nav-height));
  overflow: auto;
}
.mobile-menu-content {
  padding: 26px 24px 30px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mobile-menu-content > a,
.mobile-language-block {
  opacity: 0;
  transform: translate3d(0, -12px, 0);
  transition: opacity .26s ease, transform .36s cubic-bezier(.22, 1, .36, 1);
}
.mobile-menu.open .mobile-menu-content > a,
.mobile-menu.open .mobile-language-block { opacity: 1; transform: translate3d(0, 0, 0); }
.mobile-menu.open .mobile-menu-content > a:nth-child(1) { transition-delay: .075s; }
.mobile-menu.open .mobile-menu-content > a:nth-child(2) { transition-delay: .115s; }
.mobile-menu.open .mobile-menu-content > a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open .mobile-language-block { transition-delay: .18s; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 12px 4px;
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: .035em;
  color: #BDBDCC;
  border-bottom: 1px solid var(--border);
  transition: color .2s var(--ease), opacity .26s ease, transform .36s cubic-bezier(.22, 1, .36, 1);
}
.mobile-menu a:not(.btn):hover,
.mobile-menu a:not(.btn).active { color: var(--text-main); }
.mobile-menu a.btn.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 12px 20px;
  font-size: .94rem;
}
.mobile-language-block { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.mobile-language-label { display: block; font-size: .75rem; color: #9391AB; letter-spacing: .11em; text-transform: uppercase; margin-bottom: 12px; }
.mobile-language-block .language-toggle { width: 100%; justify-content: flex-start; }
.mobile-language-block .lang-chevron { margin-left: auto; }
.mobile-language-block .language-menu {
  position: relative;
  left: auto; right: auto; top: auto;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  padding: 0 7px;
  border-width: 0;
  overflow: hidden;
  transform-origin: top left;
  transition: opacity .25s var(--ease), transform .3s var(--ease), max-height .35s var(--ease), padding .3s var(--ease), margin-top .3s var(--ease), visibility .3s;
}
.mobile-language-block .language-switcher.is-open .language-menu {
  max-height: 180px;
  margin-top: 8px;
  padding: 7px;
  border-width: 1px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* The header is fixed: reserve its footprint OUTSIDE the hero so
     its full content never gets pushed below the fold. */
  min-height: calc(100vh - var(--nav-height));
  min-height: calc(100svh - var(--nav-height));
  margin-top: var(--nav-height);
  display: flex;
  align-items: center;
  padding: clamp(44px, 7vh, 80px) 0;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  width: 700px; height: 700px;
  top: 50%; left: 50%;
  transform: translate3d(calc(-50% + var(--hero-aura-x, 0px)), calc(-50% + var(--hero-aura-y, 0px)), 0);
  background: radial-gradient(circle, rgba(108, 108, 240, 0.12) 0%, transparent 60%);
  filter: blur(40px);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.042em;
  margin-bottom: 24px;
}
.hero-desc {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 36px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-support {
  font-size: 0.88rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

/* ---------- Orbital SVG Visual ---------- */
.orbital {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate3d(calc(-50% + var(--hero-motion-x, 0px)), calc(-50% + var(--hero-motion-y, 0px)), 0);
  width: 620px; height: 620px;
  z-index: 0;
  opacity: 0.5;
}
.orbital svg { width: 100%; height: 100%; }
.orbital .ring {
  fill: none;
  stroke: rgba(160, 150, 255, 0.14);
  stroke-width: 1;
}
.orbital .ring-dashed { stroke-dasharray: 4 8; }
.orbital .ring-accent { stroke: rgba(108, 108, 240, 0.25); }
.orbital .node {
  fill: var(--primary-bright);
  opacity: 0.7;
}
.orbital .node-glow {
  fill: rgba(108, 108, 240, 0.15);
}
.orbital .grid-line {
  stroke: rgba(160, 150, 255, 0.06);
  stroke-width: 1;
}
.orbital .core {
  fill: none;
  stroke: rgba(108, 108, 240, 0.3);
  stroke-width: 1.5;
}

/* Animations */
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.6; }
}
.spin-slow { animation: spin-slow 60s linear infinite; transform-origin: center; }
.spin-medium { animation: spin-slow 40s linear infinite; transform-origin: center; }
.spin-reverse { animation: spin-reverse 50s linear infinite; transform-origin: center; }
.pulse { animation: pulse-glow 6s ease-in-out infinite; }

/* ---------- Problem Section ---------- */
.problem { background: var(--bg-secondary); }
.problem-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem-heading {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
  margin-bottom: 24px;
}
.problem-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}
.problem-text p:last-child { margin-bottom: 0; }
/* Editable CSS/SVG illustration: a modern web interface with connected, secured data flows. */
.problem-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 390px;
  position: relative;
  isolation: isolate;
}
.problem-visual::before {
  content: "";
  position: absolute;
  inset: 5% 0;
  z-index: -1;
  background: radial-gradient(ellipse at 58% 50%, rgba(108, 108, 240, 0.12), transparent 66%);
  filter: blur(22px);
  pointer-events: none;
}
.problem-art { width: min(100%, 550px); margin-inline: auto; }
.problem-art svg { display: block; width: 100%; height: auto; overflow: visible; }
.problem-art .network-pulse { animation: network-breathe 5.5s ease-in-out infinite; }
.problem-art .network-pulse-delayed { animation: network-breathe 5.5s ease-in-out -2.3s infinite; }
.problem-art .shield-halo { animation: shield-breathe 4.5s ease-in-out infinite; }
.problem-art .floating-element { animation: float-tech 7s ease-in-out infinite; }
@keyframes network-breathe {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.9; }
}
@keyframes shield-breathe {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.68; }
}
@keyframes float-tech {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* ---------- Service Cards ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease),
              box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(108, 108, 240, 0.08);
  background: rgba(20, 20, 30, 0.8);
}
.service-card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--primary-bright);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.service-card:hover .card-icon { border-color: var(--border-hover); }
.card-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

.cards-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: 130px 0;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 108, 240, 0.15) 0%, transparent 65%);
  filter: blur(30px);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.final-cta p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 12px;
}
.final-cta .support {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 20px;
  margin-bottom: 0;
}
.final-cta .btn { margin-top: 28px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 48px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 34px; width: auto; }
.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color 0.2s var(--ease);
}
.footer-links a:hover { color: var(--text-main); }
.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.83rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ---------- Page Hero (sub-pages) ---------- */
.page-hero {
  position: relative;
  margin-top: var(--nav-height);
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  width: 600px; height: 600px;
  top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(108, 108, 240, 0.1) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 22px;
}
.page-hero p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
}
.page-hero .hero-cta-group { justify-content: center; }

/* ---------- What We Develop (service page) ---------- */
.dev-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.dev-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.dev-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.dev-card h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.dev-card h3 .num {
  font-size: 0.8rem;
  color: var(--lavender);
  font-weight: 500;
}
.dev-card p {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.65;
}

/* ---------- Why Custom Development ---------- */
.why { background: var(--bg-secondary); }
.why-intro {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 48px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-item {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(20, 20, 30, 0.5);
  transition: border-color 0.3s var(--ease);
}
.why-item:hover { border-color: var(--border-hover); }
.why-item .icon {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-bright);
  margin-bottom: 18px;
}
.why-item .icon svg { width: 22px; height: 22px; }
.why-item h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 8px; }
.why-item p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; }

/* ---------- Process Timeline ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 5%; right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.step {
  text-align: center;
  position: relative;
}
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 400;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--primary-bright);
  position: relative;
  z-index: 1;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.step:hover .step-num {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(108, 108, 240, 0.2);
}
.step h4 { font-size: 1.05rem; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; padding: 0 8px; }

/* ---------- FAQ Accordion ---------- */
.faq { background: var(--bg-secondary); }
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  overflow: hidden;
  transition: border-color 0.25s var(--ease);
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 1.02rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary-bright); }
.faq-item .faq-icon {
  width: 20px; height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-bright);
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-item .faq-answer {
  padding: 0 28px 24px;
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* ---------- Contact Form ---------- */
.contact-section {
  position: relative;
  overflow: hidden;
}
.contact-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  top: 20%; right: -10%;
  background: radial-gradient(circle, rgba(108, 108, 240, 0.08) 0%, transparent 60%);
  filter: blur(30px);
  pointer-events: none;
}
.contact-section .container { position: relative; z-index: 1; }
.contact-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-row .form-field { margin-bottom: 20px; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.form-field label .opt { opacity: 0.5; font-weight: 400; }
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
  width: 100%;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(165, 165, 181, 0.4); }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 108, 240, 0.12);
}
.form-field textarea {
  resize: vertical;
  min-height: 140px;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23A5A5B5' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-field select option { background: var(--bg-surface); color: var(--text-main); }

.form-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.form-note {
  font-size: 0.85rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 28px;
  text-align: center;
}
.form-demo-msg {
  display: none;
  margin-top: 20px;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: rgba(108, 108, 240, 0.08);
  border: 1px solid var(--border);
  color: var(--lavender);
  font-size: 0.9rem;
  text-align: center;
}
.form-demo-msg.show { display: block; }

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .problem-layout { grid-template-columns: 1fr; gap: 40px; }
  .problem-visual { min-height: 320px; }

  .cards-grid, .dev-grid, .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }

  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .section { padding: 70px 0; }
  .container { padding: 0 18px; }
  .problem-visual { min-height: 0; }
  .problem-art { max-width: 470px; }
  .hero-cta-group { flex-direction: column; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
  .process-steps { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spin-slow, .spin-medium, .spin-reverse, .pulse,
  .problem-art .network-pulse, .problem-art .network-pulse-delayed,
  .problem-art .shield-halo, .problem-art .floating-element { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* Multilingual navigation adjustments; the existing navigation transition remains intact. */
.language-option { text-decoration: none; }
.nav-links > li > a:not(.nav-cta) { white-space: nowrap; }
.nav-links a.nav-cta { white-space: nowrap; }

/* ========== Cookies v4: compact banner + shared accessible popup ========== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
  position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 1200;
  width: min(980px, calc(100% - 44px)); margin: 0 auto;
  padding: 23px 27px; display: flex; align-items: center; justify-content: space-between;
  gap: 28px; border: 1px solid rgba(169,159,255,.30); border-radius: 18px;
  background: linear-gradient(135deg, rgba(24,23,40,.985), rgba(12,13,21,.99));
  box-shadow: 0 22px 85px rgba(0,0,0,.72), 0 0 45px rgba(104,91,237,.09);
  opacity: 0; transform: translateY(calc(100% + 55px));
  transition: opacity .32s ease, transform .52s cubic-bezier(.22,1,.36,1);
}
.cookie-banner.is-open { opacity: 1; transform: translateY(0); }
.cookie-banner-intro { min-width: 0; max-width: 565px; }
.cookie-eyebrow { display: block; color: #b7afff; font-size: .67rem; font-weight: 500; letter-spacing: .17em; text-transform: uppercase; margin-bottom: 8px; }
.cookie-banner-intro h2 { font-size: clamp(1.22rem,2vw,1.55rem); font-weight: 400; line-height: 1.25; letter-spacing: -.025em; margin-bottom: 6px; }
.cookie-banner-intro p { color: var(--text-secondary); font-size: .86rem; line-height: 1.6; }
.cookie-banner-intro a, .cookie-policy-copy a, .cookie-dialog-policy-link { color: #c1baff; text-decoration: underline; text-underline-offset: 4px; }
.cookie-banner-intro a:hover, .cookie-policy-copy a:hover, .cookie-dialog-policy-link:hover { color: #e4e0ff; }
.cookie-banner-controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; flex: 0 0 auto; }
.cookie-action { min-height: 45px; padding: 12px 18px; text-align: center; font: inherit; font-size: .89rem; font-weight: 450; line-height: 1.2; border: 1px solid transparent; border-radius: 9px; cursor: pointer; transition: transform .24s ease, border-color .24s ease, background .24s ease, box-shadow .24s ease; }
.cookie-action:hover { transform: translateY(-2px); }
.cookie-action:focus-visible, .cookie-dialog-close:focus-visible, .cookie-dialog-policy-link:focus-visible { outline: 2px solid #c6bfff; outline-offset: 3px; }
.cookie-action-outline { border-color: rgba(169,159,255,.52); background: #252436; color: #f0edff; }
.cookie-action-outline:hover { background: #33304c; border-color: #c2b8ff; }
.cookie-action-save { background: linear-gradient(135deg, #c2b8ff, #988bff); color: #08090d; font-weight: 600; border-color: #c2b8ff; }
.cookie-action-save:hover { background: #d1c9ff; box-shadow: 0 4px 24px rgba(152,139,255,.18); }

/* Modal is a single shared native dialog across Home / Services / Contact / Cookies */
.cookie-dialog { inset: 0; margin: auto; width: min(640px, calc(100% - 30px)); max-height: min(90dvh, 790px); padding: 0;
  overflow-y: auto; overscroll-behavior: contain; color: #f5f5fa; border: 1px solid rgba(170,158,255,.4); border-radius: 22px;
  background: linear-gradient(155deg, #1a192b, #0e0f18 77%); box-shadow: 0 28px 100px rgba(0,0,0,.85), 0 0 80px rgba(113,98,255,.12);
  opacity: 0; transform: translateY(28px) scale(.972); transition: opacity .32s ease, transform .38s cubic-bezier(.22,1,.36,1), overlay .38s allow-discrete, display .38s allow-discrete; }
.cookie-dialog[open].is-open { opacity: 1; transform: translateY(0) scale(1); }
.cookie-dialog.is-closing { opacity: 0; transform: translateY(18px) scale(.985); }
.cookie-dialog::backdrop { background: rgba(3,4,10,.76); backdrop-filter: blur(9px); }
.cookie-dialog-panel { padding: clamp(22px,4.5vw,38px); }
.cookie-dialog-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.cookie-dialog-header h2 { font-weight: 400; font-size: clamp(1.55rem,3vw,2.15rem); line-height: 1.18; letter-spacing: -.03em; }
.cookie-dialog-close { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: #29283a; color: #e8e5fb; border: 1px solid rgba(169,159,255,.25); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.cookie-dialog-close svg { width: 17px; height: 17px; }
.cookie-dialog-close:hover { background: #393650; transform: rotate(90deg); }
.cookie-dialog-description { color: var(--text-secondary); font-size: .92rem; line-height: 1.75; margin: 15px 0 0; }
.cookie-category-list { margin: 24px 0 0; border-top: 1px solid rgba(169,159,255,.18); }
.cookie-category { padding: 20px 0; border-bottom: 1px solid rgba(169,159,255,.16); display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.cookie-category-copy { max-width: 465px; }
.cookie-category h3 { font-size: 1.06rem; font-weight: 500; margin-bottom: 5px; }
.cookie-category p { color: var(--text-secondary); font-size: .84rem; line-height: 1.6; }
.cookie-category-control { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 82px; }
.cookie-category-status { font-size: .72rem; color: var(--text-secondary); text-align: center; }
.cookie-toggle { display: inline-flex; width: 46px; height: 27px; position: relative; align-items: center; cursor: pointer; flex-shrink: 0; }
.cookie-toggle input { appearance: none; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; margin: 0; }
.cookie-toggle-track { display: block; width: 46px; height: 27px; border-radius: 99px; background: #363545; border: 1px solid #575366; transition: background .24s ease, border-color .24s ease; position: relative; pointer-events: none; }
.cookie-toggle-thumb { position: absolute; width: 19px; height: 19px; left: 3px; top: 3px; border-radius: 50%; background: #c8c5d5; transition: transform .26s cubic-bezier(.22,1,.36,1), background .24s ease; box-shadow: 0 2px 6px rgba(0,0,0,.24); }
.cookie-toggle input:checked + .cookie-toggle-track { background: #8176FF; border-color: #a99fff; }
.cookie-toggle input:checked + .cookie-toggle-track .cookie-toggle-thumb { transform: translateX(19px); background: #0e0d18; }
.cookie-toggle input:focus-visible + .cookie-toggle-track { outline: 2px solid #bdb6ff; outline-offset: 4px; }
.cookie-toggle input:disabled { cursor: not-allowed; }
.cookie-toggle input:disabled + .cookie-toggle-track { background: rgba(110,103,170,.52); border-color: rgba(169,159,255,.5); }
.cookie-toggle input:disabled + .cookie-toggle-track .cookie-toggle-thumb { background: #d4d0ef; }
.cookie-toggle-lg { transform: scale(1.07); }
.cookie-dialog-bottom { padding-top: 18px; }
.cookie-dialog-policy-link { display: inline-block; font-size: .82rem; margin-bottom: 16px; }
.cookie-modal-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.cookie-modal-actions .cookie-action { padding: 11px 10px; font-size: .81rem; }
.cookie-feedback { font-size: .83rem; color: #c3baff; margin: 12px 0 0; min-height: 1em; }

.cookie-page-hero { min-height: 313px; padding: 78px 0 65px; overflow: hidden; }
.cookie-page-hero h1 { max-width: 820px; font-weight: 400; font-size: clamp(2.2rem,5vw,4.2rem); }
.cookie-page-hero .container > p { max-width: 670px; }
.cookie-orb { position: absolute; width: min(550px,85vw); aspect-ratio: 1; top: -90px; right: -150px; border: 1px solid rgba(169,159,255,.13); border-radius: 50%; background: radial-gradient(circle,rgba(104,90,245,.11),transparent 65%); box-shadow: 0 0 0 75px rgba(131,116,255,.025),0 0 0 155px rgba(131,116,255,.018); }
.cookie-policy-section { padding-top: 28px; }
.cookie-content-layout { max-width: 1030px; }
.cookie-pref-card { border: 1px solid rgba(169,159,255,.23); border-radius: 22px; background: linear-gradient(145deg,#191927,#111119); padding: clamp(23px,4vw,42px); box-shadow: 0 14px 60px rgba(0,0,0,.2); }
.cookie-pref-heading h2,.cookie-policy-copy h2 { font-weight: 400; font-size: clamp(1.5rem,3vw,2.3rem); line-height: 1.23; margin-bottom: 12px; }
.cookie-pref-heading p { color: var(--text-secondary); max-width: 720px; line-height: 1.7; }
.cookie-manage-button { margin-top: 25px; min-width: 215px; }
.cookie-manage-button span { padding-left: 10px; }
.cookie-policy-copy { margin: 75px auto 0; max-width: 820px; }
.cookie-policy-copy h2 { margin-bottom: 5px; }
.cookie-last-updated { color: var(--text-secondary); font-size: .86rem; margin: 7px 0 28px; }
.cookie-policy-copy h3 { font-size: 1.12rem; font-weight: 500; margin: 28px 0 9px; }
.cookie-policy-copy p { color: var(--text-secondary); line-height: 1.78; font-size: .98rem; }
@media (max-width: 820px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 17px; }
  .cookie-banner-controls { justify-content: stretch; }
  .cookie-banner-controls .cookie-action { flex: 1 1 0; }
}
@media (max-width: 600px) {
  .cookie-banner { width: calc(100% - 20px); left: 10px; right: 10px; bottom: 10px; padding: 18px 16px; border-radius: 16px; max-height: 85dvh; overflow-y: auto; }
  .cookie-banner-intro h2 { font-size: 1.22rem; }
  .cookie-banner-intro p { font-size: .81rem; }
  .cookie-banner-controls .cookie-action { padding: 11px 7px; font-size: .79rem; }
  .cookie-dialog { width: calc(100% - 20px); max-height: 92dvh; border-radius: 16px; }
  .cookie-dialog-panel { padding: 21px 18px; }
  .cookie-category { align-items: flex-start; gap: 13px; }
  .cookie-category-control { min-width: 70px; margin-top: 6px; }
  .cookie-category h3 { font-size: .98rem; }
  .cookie-category p { font-size: .8rem; }
  .cookie-modal-actions { grid-template-columns: 1fr; gap: 8px; }
  .cookie-modal-actions .cookie-action { min-height: 42px; }
  .cookie-page-hero { padding-top: 60px; min-height: 238px; }
  .cookie-policy-section { padding-top: 16px; }
  .cookie-policy-copy { margin-top: 53px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner,.cookie-dialog,.cookie-action,.cookie-toggle-track,.cookie-toggle-thumb,.cookie-dialog-close { transition: none !important; }
}


/* ---------- Hero v5: subtle cursor parallax, star shimmer and orbit glints ---------- */
.hero-bg { overflow: hidden; }
.hero-stars {
  position: absolute;
  inset: -4%;
  width: 108%;
  height: 108%;
  overflow: visible;
  opacity: .72;
  transform: translate3d(var(--hero-stars-x, 0px), var(--hero-stars-y, 0px), 0);
  will-change: transform;
}
.hero-stars .hero-star {
  fill: #c9c4ff;
  opacity: .22;
  animation: hero-star-twinkle var(--twinkle-duration, 7s) ease-in-out var(--twinkle-delay, 0s) infinite;
}
.hero-stars .hero-star-soft { fill: #8176ff; }
.hero-stars .hero-star-glimmer { fill: #faf9ff; }
@keyframes hero-star-twinkle {
  0%, 100% { opacity: .09; }
  46% { opacity: .12; }
  56% { opacity: .76; }
  68% { opacity: .16; }
}
.hero .orbital { will-change: transform; }
.orbital .orbit-glint-group {
  transform-origin: 310px 310px;
  animation: orbit-glint-spin 37s linear infinite;
}
.orbital .orbit-glint-group.orbit-glint-reverse {
  animation-direction: reverse;
  animation-duration: 29s;
}
@keyframes orbit-glint-spin { to { transform: rotate(360deg); } }
.orbital .orbit-glint {
  fill: #bdb6ff;
  filter: drop-shadow(0 0 5px rgba(168, 158, 255, .9));
}
.orbital .orbit-glint-streak {
  fill: none;
  stroke: #bdb6ff;
  stroke-width: 2.1;
  stroke-linecap: round;
  opacity: .64;
  filter: drop-shadow(0 0 4px rgba(168, 158, 255, .6));
}
/* Do not animate decorative layers on touch devices or with reduced motion. */
@media (max-width: 600px) {
  .hero .orbital { width: min(620px, 124vw); height: min(620px, 124vw); }
  .hero { padding: 48px 0 60px; }
  .hero-stars { opacity: .5; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-stars .hero-star,
  .orbital .orbit-glint-group { animation: none !important; }
  .hero-bg::before,
  .hero-stars,
  .hero .orbital { transform: translate3d(-50%, -50%, 0); will-change: auto; }
  .hero-stars { transform: none; }
}

/* ---------- v6: more noticeable but restrained hero pointer movement ---------- */
.hero .hero-bg::before {
  background: radial-gradient(circle, rgba(120, 105, 255, .19) 0%, rgba(104, 94, 223, .065) 32%, transparent 65%);
}
.hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 300px 230px at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 50%), rgba(146, 131, 255, .075) 0%, transparent 85%);
}
.hero .orbital { opacity: .60; }
.hero .hero-stars { opacity: .82; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg::after { background: none; }
  .hero .orbital { will-change: auto; }
  .hero .hero-stars { will-change: auto; }
}

/* ---------- v7: visible, elegant pointer parallax ---------- */
.hero .orbital { opacity: .74; }
.hero .orbital .ring { stroke: rgba(171, 160, 255, .23); }
.hero .orbital .ring-accent { stroke: rgba(132, 116, 255, .34); }
.hero .hero-stars { opacity: .98; }
.hero .hero-bg::after {
  background: radial-gradient(ellipse 345px 290px at var(--hero-pointer-x, 50%) var(--hero-pointer-y, 50%), rgba(154, 139, 255, .14), transparent 82%);
}
.hero-motion-debug {
  position: fixed; z-index: 99999; bottom: 12px; left: 12px;
  max-width: calc(100vw - 24px); padding: 9px 14px;
  background: rgba(14, 15, 22, .96); border: 1px solid rgba(169, 159, 255, .75);
  border-radius: 9px; color: #F5F5FA; font: 12px/1.4 monospace;
  pointer-events: none; box-shadow: 0 4px 22px rgba(0,0,0,.5);
}
@media (prefers-reduced-motion: reduce) {
  .hero .hero-bg::after { background: none; }
}

/* Patch v8 — Contact form validation / post-submission page */
.contact-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.contact-error { border: 1px solid rgba(255,128,151,.48); color: #ffe4e9; padding: 14px 18px; background: rgba(143,32,68,.18); border-radius: 10px; margin-bottom: 25px; line-height: 1.6; }
.contact-privacy-note { opacity: .75; max-width: 680px; }
.ofanim-thanks { min-height: calc(100svh - var(--header-height, 88px)); display: flex; align-items: center; }
.ofanim-thanks .thanks-content { position: relative; z-index: 2; text-align: center; max-width: 850px; padding-top: 50px; padding-bottom: 95px; }
.ofanim-thanks .thanks-content p { margin-inline: auto; }
.ofanim-thanks .thanks-content .btn { margin-top: 26px; }
.thanks-status { display: inline-flex; align-items: center; justify-content: center; gap: 14px; margin: 0 auto 24px; padding: 4px 12px 4px 4px; border-radius: 999px; background: linear-gradient(180deg, rgba(18, 18, 29, .78), rgba(12, 13, 20, .54)); border: 1px solid rgba(169,159,255,.16); box-shadow: 0 18px 60px rgba(52, 48, 112, .12); }
.thanks-check { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; color: #e7e3ff; background: radial-gradient(circle at 40% 30%, rgba(169,159,255,.2), rgba(54,50,109,.11)); border-radius: 50%; border: 1px solid rgba(169,159,255,.4); box-shadow: 0 0 46px rgba(108,108,240,.14); }
.thanks-label { display: inline-block; font-size: .92rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #b7adff; line-height: 1; white-space: nowrap; }
.thanks-preview { margin-top: 18px !important; padding: 10px 16px; border: 1px solid rgba(169,159,255,.35); border-radius: 9px; font-size: .9rem; }
@media (max-width: 560px) {
  .thanks-status { gap: 10px; padding: 4px 10px 4px 4px; }
  .thanks-check { width: 48px; height: 48px; }
  .thanks-label { font-size: .82rem; letter-spacing: .18em; }
}

/* Patch v11 — clearly marked invalid contact fields */
.contact-form .form-field.is-invalid input,
.contact-form .form-field.is-invalid select,
.contact-form .form-field.is-invalid textarea {
  border-color: rgba(255, 135, 160, .85);
  box-shadow: 0 0 0 1px rgba(255, 135, 160, .12);
}
.contact-form .form-field.is-invalid label { color: #ffd5df; }
.contact-form .contact-field-error {
  color: #ffb9c8;
  font-size: .83rem;
  line-height: 1.45;
  letter-spacing: 0;
}
.contact-form .contact-error { scroll-margin-top: 110px; }
