/* ==========================================================================
   ELASTRIX — Design System
   Palette: deep ink + electric blue/cyan/violet on clean whites
   Type: Space Grotesk (display) / Inter (body)
   ========================================================================== */

:root {
  /* Brand */
  --blue: #2f6bff;
  --blue-dark: #1d4fd8;
  --cyan: #22d3ee;
  --violet: #7c5cff;
  --gradient: linear-gradient(120deg, var(--blue) 0%, var(--cyan) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(47, 107, 255, 0.12), rgba(34, 211, 238, 0.12));

  /* Ink (dark sections) */
  --ink: #0a1120;
  --ink-2: #0d1526;
  --ink-3: #14203a;

  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --border: #e4eaf5;
  --border-dark: rgba(255, 255, 255, 0.09);

  /* Text */
  --text: #101828;
  --muted: #5b6b84;
  --text-on-dark: #e8eef9;
  --muted-on-dark: #9fb0cc;

  /* Shape & motion */
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, 0.06);
  --shadow-md: 0 12px 32px rgba(16, 24, 40, 0.09);
  --shadow-lg: 0 24px 60px rgba(16, 24, 40, 0.14);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Type */
  --font-head: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --header-h: 76px;
  --container: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
figure, blockquote { margin: 0; }
strong { font-weight: 600; }
em { font-style: normal; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  padding: 10px 18px; background: var(--blue); color: #fff;
  border-radius: 0 0 10px 10px; transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid rgba(47, 107, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---------- Layout utilities ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}
.container-narrow { max-width: 820px; }

.section { padding: 104px 0; }
.section-light { background: var(--bg); }
.section-light-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: var(--text-on-dark); }

section[id], #top { scroll-margin-top: calc(var(--header-h) + 12px); }

.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- Section headings ---------- */
.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 14px; }
.section-sub { color: var(--muted); margin-top: 16px; font-size: 1.075rem; }
.section-dark .section-sub { color: var(--muted-on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}
.section-dark .eyebrow { color: var(--cyan); }

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

.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 22px rgba(47, 107, 255, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(47, 107, 255, 0.45);
}
.btn-primary .btn-icon { transition: transform 0.25s var(--ease); }
.btn-primary:hover .btn-icon { transform: translateX(4px); }

.btn-ghost {
  border: 1.5px solid var(--border);
  color: var(--text);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-ghost-dark {
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--blue-dark); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34); }

.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(16, 24, 40, 0.07);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { border-radius: 10px; box-shadow: 0 4px 12px rgba(47, 107, 255, 0.3); }
.brand-word {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-word em {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-light .brand-word { color: #fff; }

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav a:not(.btn) {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
  transition: color 0.2s;
}
.main-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.main-nav a:not(.btn):hover { color: var(--blue); }
.main-nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.nav-toggle span {
  height: 2px; width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Language switcher ---------- */
.lang-switch {
  display: inline-flex;
  flex: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.lang-option {
  padding: 7px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.lang-option:not(.active):hover { color: var(--blue); background: rgba(47, 107, 255, 0.07); }
.lang-option.active {
  background: var(--gradient);
  color: #fff;
  cursor: default;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--text-on-dark);
  overflow: hidden;
  padding: 88px 0 96px;
}
.hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 30%, transparent 75%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow-cyan { width: 480px; height: 480px; background: rgba(34, 211, 238, 0.16); top: -160px; right: -80px; }
.glow-violet { width: 520px; height: 520px; background: rgba(124, 92, 255, 0.18); bottom: -220px; left: -140px; }

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
}

.hero-eyebrow { color: var(--cyan); }
.hero-eyebrow::before { display: none; }

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.9rem);
  margin-top: 22px;
  animation: riseIn 0.8s var(--ease) both;
}
.hero-sub {
  color: var(--muted-on-dark);
  font-size: 1.15rem;
  max-width: 540px;
  margin-top: 22px;
  animation: riseIn 0.8s var(--ease) 0.12s both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
  animation: riseIn 0.8s var(--ease) 0.24s both;
}
.hero .btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text-on-dark);
}
.hero .btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 54px;
  padding-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: riseIn 0.8s var(--ease) 0.36s both;
}
.stat-value {
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { color: var(--muted-on-dark); font-size: 0.9rem; margin-top: 4px; }

.hero-visual {
  min-width: 0; /* allow grid column to shrink below SVG intrinsic width */
  animation: heroPop 1s var(--ease-bounce) 0.25s both;
  filter: drop-shadow(0 30px 60px rgba(47, 107, 255, 0.18));
}
.hero-visual svg { width: 100%; height: auto; }
.spin { transform-box: fill-box; transform-origin: center; animation: spin 14s linear infinite; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}
@keyframes heroPop {
  from { opacity: 0; transform: translateY(40px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Services ---------- */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gradient-soft);
  color: var(--blue);
  margin-bottom: 22px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease-bounce);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(47, 107, 255, 0.35);
}
.service-card:hover .icon-badge {
  background: var(--gradient);
  color: #fff;
  transform: translateY(-3px) rotate(-5deg);
}
.service-card h3 { font-size: 1.22rem; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 0.96rem; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--blue);
}
.text-link span { transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(5px); }

/* ---------- Solutions ---------- */
.section-dark { position: relative; overflow: hidden; }
.section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
}

.solution-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 36px;
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.solution-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}
.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(255, 255, 255, 0.06);
}
.solution-card:hover::before { opacity: 1; }

.solution-num {
  position: absolute;
  top: 26px; right: 30px;
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.14;
  background: linear-gradient(180deg, #fff, transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: opacity 0.3s;
}
.solution-card:hover .solution-num { opacity: 0.3; }

.solution-card h3 { font-size: 1.35rem; margin-bottom: 12px; }
.solution-card p { color: var(--muted-on-dark); font-size: 0.97rem; }

.check-list { margin-top: 18px; display: grid; gap: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted-on-dark);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
}
.check-list-lg { gap: 14px; }
.check-list-lg li { color: var(--muted); font-size: 1rem; }
.check-list-lg li::before { background: rgba(47, 107, 255, 0.1); color: var(--blue); }

/* ---------- Process ---------- */
.process-list {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.process-list::before {
  content: "";
  position: absolute;
  top: 34px; left: 6%; right: 6%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(47, 107, 255, 0.35), rgba(34, 211, 238, 0.35), transparent);
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 10px;
}
.step-num {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px; height: 68px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  background-clip: padding-box;
  transition: transform 0.3s var(--ease-bounce);
}
.process-step:hover .step-num {
  transform: scale(1.08);
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}
.process-step h3 { font-size: 1.2rem; margin: 20px 0 8px; }
.process-step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Why Elastrix ---------- */
.why-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.why-copy h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-top: 14px; }
.why-copy .section-sub { max-width: 560px; }
.why-copy .check-list { margin: 28px 0 8px; }
.why-copy .hero-actions { margin-top: 24px; }

.why-panel {
  position: relative;
  min-height: 420px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 70% 60% at 30% 20%, rgba(47, 107, 255, 0.12), transparent),
    radial-gradient(ellipse 60% 60% at 80% 80%, rgba(34, 211, 238, 0.14), transparent),
    var(--bg-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.why-panel::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(47, 107, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}
.why-card {
  position: absolute;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.why-card:hover { transform: translateY(-4px) scale(1.02); box-shadow: var(--shadow-lg); }
.why-card strong { font-family: var(--font-head); font-size: 1.05rem; }
.why-card p { color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.why-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gradient-soft);
  font-size: 1.25rem;
}
.float-a { top: 12%; left: 6%; width: 78%; animation: floatY 6s ease-in-out infinite; }
.float-b { top: 42%; right: 4%; width: 74%; animation: floatY 7s ease-in-out 0.8s infinite; }
.float-c { bottom: 10%; left: 10%; width: 76%; animation: floatY 6.5s ease-in-out 1.6s infinite; }
@keyframes floatY {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* ---------- Tech stack ---------- */
.stack-strip {
  background: var(--ink);
  padding: 44px 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}
.stack-title {
  text-align: center;
  color: var(--muted-on-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--text-on-dark);
  font-family: var(--font-head);
  font-size: 0.92rem;
  white-space: nowrap;
  transition: border-color 0.25s, color 0.25s, background 0.25s;
}
.marquee-track span:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(34, 211, 238, 0.07); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Testimonials ---------- */
.testimonial-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(124, 92, 255, 0.3); }
.stars {
  background: linear-gradient(120deg, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: 3px;
  font-size: 1.05rem;
}
.testimonial-card blockquote { color: var(--text); font-size: 1rem; line-height: 1.7; }
.testimonial-card figcaption { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial-card figcaption strong { display: block; font-size: 0.95rem; }
.testimonial-card figcaption span:not(.avatar) { color: var(--muted); font-size: 0.85rem; }
.avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: var(--font-head);
}
.avatar-1 { background: linear-gradient(135deg, #2f6bff, #22d3ee); }
.avatar-2 { background: linear-gradient(135deg, #7c5cff, #2f6bff); }
.avatar-3 { background: linear-gradient(135deg, #22d3ee, #34d399); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.faq-item[open] { border-color: rgba(47, 107, 255, 0.4); box-shadow: var(--shadow-md); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--gradient-soft);
  color: var(--blue);
  font-size: 1.2rem;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s;
}
.faq-item[open] summary::after {
  content: "−";
  background: var(--gradient);
  color: #fff;
  transform: rotate(180deg);
}
.faq-item p { padding: 0 24px 22px; color: var(--muted); font-size: 0.97rem; }

/* ---------- CTA banner ---------- */
.cta-section { padding-top: 0; }
.cta-banner {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 84px 32px;
  border-radius: 28px;
  background: linear-gradient(130deg, #0d1526 0%, #142448 55%, #0d1f38 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cta-glow {
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(ellipse 40% 50% at 25% 25%, rgba(47, 107, 255, 0.4), transparent),
    radial-gradient(ellipse 40% 50% at 75% 75%, rgba(34, 211, 238, 0.3), transparent);
  animation: glowDrift 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes glowDrift {
  from { transform: translate(-2%, -2%) rotate(0deg); }
  to { transform: translate(2%, 2%) rotate(4deg); }
}
.cta-banner h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
}
.cta-banner p {
  position: relative;
  color: var(--muted-on-dark);
  max-width: 560px;
  margin: 16px auto 0;
  font-size: 1.08rem;
}
.cta-banner .hero-actions { justify-content: center; position: relative; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 1.35rem; margin-bottom: 24px; }
.contact-list { display: grid; gap: 20px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-ic {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.25s var(--ease-bounce), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.contact-list li:hover .contact-ic {
  transform: translateY(-4px);
  background: var(--gradient);
  color: #fff;
  border: none;
  /* border-color: transparent; */
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.35);
}
.contact-list strong { display: block; font-size: 0.95rem; }
.contact-list a, .contact-list span:not(.contact-ic) { color: var(--muted); font-size: 0.95rem; }
.contact-list a:hover { color: var(--blue); }

.contact-social { margin-top: 34px; }
.contact-social > p { margin-bottom: 12px; }
.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: transform 0.25s var(--ease-bounce), background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.social-btn:hover {
  transform: translateY(-4px);
  background: var(--gradient);
  color: #fff;
  /* border-color: transparent; */
  border: none;
  box-shadow: 0 10px 22px rgba(47, 107, 255, 0.35);
}
.response-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 34px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.09);
  color: var(--muted);
  font-size: 0.9rem;
}

/* Contact form */
.contact-form { padding: 36px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: 11px;
  background: #fbfcfe;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa7bd; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6b84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
}
.field-error {
  display: none;
  color: #e11d48;
  font-size: 0.82rem;
  margin-top: 6px;
}
.field.invalid input, .field.invalid select, .field.invalid textarea {
  border-color: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.08);
}
.field.invalid .field-error, .consent-error.show { display: block; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: var(--muted);
  cursor: pointer;
  margin: 4px 0 8px;
}
.consent input {
  flex: none;
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--blue);
  cursor: pointer;
}
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

.form-success {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #0b7a4b;
  font-size: 0.94rem;
}
.form-success[hidden] { display: none; }

.form-error {
  margin-top: 16px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgba(225, 29, 72, 0.08);
  border: 1px solid rgba(225, 29, 72, 0.35);
  color: #b91c1c;
  font-size: 0.94rem;
}
.form-error[hidden] { display: none; }
.form-error a { color: #b91c1c; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--text-on-dark);
  padding: 84px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand p { color: var(--muted-on-dark); font-size: 0.94rem; margin: 20px 0 24px; max-width: 340px; }
.site-footer .social-btn { border-color: rgba(255, 255, 255, 0.14); color: var(--muted-on-dark); }
.site-footer .social-btn:hover { border-color: transparent; color: #fff; }

.footer-col h3 {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
  margin-bottom: 20px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a {
  color: var(--muted-on-dark);
  font-size: 0.94rem;
  transition: color 0.2s, padding-left 0.2s var(--ease);
}
.footer-col a:hover { color: var(--cyan); padding-left: 4px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted-on-dark);
  font-size: 0.88rem;
}
.heart { color: #f43f5e; }

/* ---------- Chat widget ---------- */
.chat-widget { position: fixed; right: 22px; bottom: 22px; z-index: 1000; }

.chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 14px 34px rgba(47, 107, 255, 0.45);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}
.chat-toggle:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 20px 40px rgba(47, 107, 255, 0.55); }
.chat-ic-close { display: none; }
.chat-widget.open .chat-ic-open { display: none; }
.chat-widget.open .chat-ic-close { display: block; }
.chat-ping {
  position: absolute;
  top: 2px; right: 2px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: #f43f5e;
  border: 3px solid #fff;
  animation: pulse 2s infinite;
}
.chat-widget.open .chat-ping { display: none; }

.chat-panel {
  position: absolute;
  right: 0; bottom: 78px;
  width: 372px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn 0.35s var(--ease-bounce) both;
}
.chat-panel[hidden] { display: none; }
@keyframes chatIn {
  from { opacity: 0; transform: translateY(20px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  background: linear-gradient(120deg, #0d1526, #142448);
  color: #fff;
}
.chat-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.15rem;
}
.chat-head strong { display: block; font-size: 1rem; }
.chat-status { display: flex; align-items: center; gap: 7px; font-size: 0.78rem; color: #9fb0cc; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f6f9fe;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 82%;
  padding: 11px 15px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  animation: msgIn 0.3s var(--ease) both;
}
.chat-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.chat-msg.user { align-self: flex-end; background: var(--gradient); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--blue); text-decoration: underline; }
.chat-msg.user a { color: #fff; }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.chat-typing { display: inline-flex; gap: 5px; align-self: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 13px 16px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9c6dc; animation: typingBounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px 4px; background: #f6f9fe; }
.chat-quick button {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(47, 107, 255, 0.35);
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 500;
  background: #fff;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.chat-quick button:hover { background: var(--blue); color: #fff; transform: translateY(-1px); }

.chat-input { display: flex; gap: 10px; padding: 14px 16px; border-top: 1px solid var(--border); background: #fff; }
.chat-input input {
  flex: 1;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.92rem;
}
.chat-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47, 107, 255, 0.12); }
.chat-input button {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.chat-input button:hover { transform: scale(1.08); box-shadow: 0 8px 18px rgba(47, 107, 255, 0.4); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 22px; bottom: 22px;
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 440px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  animation: riseIn 0.5s var(--ease) both;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { font-size: 0.86rem; color: var(--muted); }
.cookie-banner a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 8px; flex: none; }

/* ---------- Back to top ---------- */
.back-top {
  position: fixed;
  right: 22px; bottom: 96px;
  z-index: 950;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--blue);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease-bounce), box-shadow 0.25s;
}
.back-top:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.back-top[hidden] { display: none; }

/* ---------- Legal pages ---------- */
.legal-page { padding-top: 64px; }
.legal-title { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 16px; }
.legal-updated { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
.legal-body { margin-top: 36px; }
.legal-body h2 { font-size: 1.3rem; margin: 36px 0 12px; }
.legal-body p { color: var(--muted); margin-bottom: 14px; }
.legal-body ul { margin: 0 0 14px 22px; color: var(--muted); }
.legal-body ul li { list-style: disc; margin-bottom: 8px; padding-left: 4px; }
.legal-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 600px; margin-inline: auto; }
  .why-inner { grid-template-columns: 1fr; gap: 48px; }
  .why-panel { min-height: 380px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 920px) {
  .section { padding: 80px 0; }

  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 10px 24px 26px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .main-nav ul a::after { display: none; }
  .nav-cta { margin-top: 18px; }

  .process-list { grid-template-columns: 1fr 1fr; gap: 40px 28px; }
  .process-list::before { display: none; }

  .services-grid, .solutions-grid { grid-template-columns: 1fr 1fr; }
  #testimonials .grid-3 { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .container { padding-inline: 18px; }

  .hero { padding: 64px 0 72px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 26px 16px; }
  .hero-actions .btn { width: 100%; }

  .services-grid, .solutions-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr; text-align: left; }
  .process-step { text-align: left; display: flex; gap: 20px; align-items: flex-start; }
  .step-num { width: 56px; height: 56px; font-size: 1.05rem; }
  .process-step h3 { margin: 2px 0 6px; }

  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form { padding: 26px 20px; }

  .why-panel { min-height: 0; padding: 22px; display: grid; gap: 16px; }
  .why-card { position: static; width: 100% !important; animation: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .chat-panel { bottom: 76px; height: 480px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; max-width: none; }
  .cookie-actions { justify-content: flex-end; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .why-card { animation: none; }
}
