/* ============================================================
   GALLANTRY — style.css
   Dark, premium, aurora-lit design system
   ============================================================ */

:root {
  --bg: #05060a;
  --bg-soft: #0a0d14;
  --bg-card: rgba(255, 255, 255, 0.028);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef1f7;
  --text-dim: #9aa3b5;
  --text-faint: #646d80;
  --indigo: #6366f1;
  --cyan: #22d3ee;
  --violet: #a855f7;
  --grad: linear-gradient(100deg, var(--indigo), var(--cyan) 50%, var(--violet));
  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --radius-lg: 26px;
  --container: 1160px;
  --nav-h: 72px;
  --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* keep anchored sections clear of the fixed nav */
[id] { scroll-margin-top: 92px; }

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

::selection { background: rgba(99, 102, 241, 0.45); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow { max-width: 780px; }

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

/* ---------- Ambient background ---------- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.orb-1 {
  width: 560px; height: 560px;
  left: -180px; top: -160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.4), transparent 65%);
  animation: drift-1 26s ease-in-out infinite alternate;
}
.orb-2 {
  width: 640px; height: 640px;
  right: -220px; top: 8%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.26), transparent 65%);
  animation: drift-2 32s ease-in-out infinite alternate;
}
.orb-3 {
  width: 520px; height: 520px;
  left: 30%; bottom: -240px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.3), transparent 65%);
  animation: drift-3 38s ease-in-out infinite alternate;
}

@keyframes drift-1 { to { transform: translate(120px, 90px) scale(1.12); } }
@keyframes drift-2 { to { transform: translate(-100px, 140px) scale(0.94); } }
@keyframes drift-3 { to { transform: translate(-140px, -100px) scale(1.1); } }

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 30%, transparent 75%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  color: #fff;
  background: var(--grad);
  background-size: 160% 160%;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(99, 102, 241, 0.5);
  background-position: 100% 50%;
}

.btn-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 11px; }
.btn-lg { padding: 17px 34px; font-size: 16px; border-radius: 16px; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom-color: var(--border);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links > a:not(.btn) {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease-out);
}
.hero-badge:hover { border-color: rgba(99, 102, 241, 0.6); color: var(--text); transform: translateY(-1px); }

.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 26px 0 22px;
}

.hero-sub {
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.17rem);
  color: var(--text-dim);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
  border-top: 1px solid var(--border);
  padding-top: 34px;
  width: min(880px, 100%);
}
.hero-stat {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
}
.hero-stat + .hero-stat { border-left: 1px solid var(--border); }
.hero-stat strong {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-stat span { font-size: 13px; color: var(--text-faint); }

/* ---------- Marquee ---------- */
.marquee-section { padding: 26px 0 40px; }

.marquee-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 26px;
}

.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  width: max-content;
  animation: marquee 30s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.3s;
  white-space: nowrap;
}
.marquee-item:hover { color: rgba(255, 255, 255, 0.7); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin-bottom: 18px;
}

.section-sub { color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.bento-card {
  position: relative;
  grid-column: span 2;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.bento-lg { grid-column: span 3; }

.bento-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
}

.card-glow {
  position: absolute;
  top: -70px; right: -70px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.22), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s;
}
.bento-card:hover .card-glow { opacity: 1; }

.card-icon {
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--cyan);
  margin-bottom: 20px;
}
.card-icon svg { width: 23px; height: 23px; }

.bento-card h3 {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.bento-card p { color: var(--text-dim); font-size: 14.5px; }

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin-top: 20px;
}
.card-tags li {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Products ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.product-featured {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.05) 55%, rgba(168, 85, 247, 0.1));
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow-glow);
}
.product-featured:hover { border-color: rgba(99, 102, 241, 0.7); }

.product-flag, .price-flag {
  position: absolute;
  top: -13px; left: 26px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--grad);
  padding: 5px 13px;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.45);
}

.product-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.product-head h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
}
.product-icon svg { width: 24px; height: 24px; }
.pi-cloud { background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35); color: var(--cyan); }
.pi-ai { background: rgba(99, 102, 241, 0.14); border: 1px solid rgba(99, 102, 241, 0.4); color: #a5b4fc; }
.pi-shield { background: rgba(168, 85, 247, 0.12); border: 1px solid rgba(168, 85, 247, 0.35); color: #d8b4fe; }

.product-card > p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }

.product-list {
  list-style: none;
  margin-bottom: 26px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.product-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.product-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
}
.product-list li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 7.5px;
  width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--cyan);
  border-bottom: 1.6px solid var(--cyan);
  transform: rotate(-45deg);
}

.link-arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, gap 0.25s var(--ease-out);
}
.link-arrow:hover { color: var(--cyan); gap: 11px; }

/* ---------- Stats band ---------- */
.stats-band {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.05), transparent);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-top: 64px;
  padding-bottom: 64px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* child spans don't inherit the parent's clipped background — re-clip on the
   counter itself or its digits render transparent */
.stat strong .count {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
}
.stat > span { font-size: 13.5px; color: var(--text-faint); letter-spacing: 0.04em; }

/* ---------- Testimonials ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px 28px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
  display: flex;
  flex-direction: column;
}
.testimonial:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.quote-mark {
  font-family: Georgia, serif;
  font-size: 58px;
  line-height: 0.6;
  margin-bottom: 18px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.testimonial blockquote {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 26px;
}

.testimonial figcaption {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 13px;
}
.testimonial figcaption strong { display: block; font-size: 14.5px; }
.testimonial figcaption span { font-size: 12.5px; color: var(--text-faint); }

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.av-1 { background: linear-gradient(135deg, #6366f1, #22d3ee); }
.av-2 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.av-3 { background: linear-gradient(135deg, #22d3ee, #a855f7); }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.price-featured {
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.14), rgba(34, 211, 238, 0.05) 55%, rgba(168, 85, 247, 0.1));
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow-glow);
}
.price-featured:hover { border-color: rgba(99, 102, 241, 0.7); }

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.price-desc { font-size: 13.5px; color: var(--text-faint); margin-bottom: 24px; }

.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
}
.price sup { font-size: 1.2rem; font-weight: 600; margin-right: 3px; color: var(--text-dim); }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--text-faint); margin-left: 4px; }
.price-custom { font-size: 2.1rem; padding-top: 12px; }

.price-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 30px;
}
.price-card li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 15px; height: 15px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.4);
}
.price-card li::after {
  content: "";
  position: absolute;
  left: 4.5px; top: 7.5px;
  width: 6px; height: 3.5px;
  border-left: 1.6px solid var(--cyan);
  border-bottom: 1.6px solid var(--cyan);
  transform: rotate(-45deg);
}

.price-card .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq-section { padding-top: 40px; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: border-color 0.3s, background 0.3s;
}
.faq-list details[open] { border-color: rgba(99, 102, 241, 0.4); background: var(--bg-card-hover); }

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  color: var(--cyan);
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }

.faq-list details p {
  margin-top: 12px;
  color: var(--text-dim);
  font-size: 14.5px;
}

/* ---------- CTA band ---------- */
.cta-band { padding: 60px 0; }

.cta-inner {
  text-align: center;
  background:
    radial-gradient(ellipse 80% 120% at 50% -20%, rgba(99, 102, 241, 0.22), transparent),
    linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 84px 32px;
  position: relative;
  overflow: hidden;
}
.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-inner p {
  max-width: 560px;
  margin: 0 auto 34px;
  color: var(--text-dim);
}

/* ---------- Careers ---------- */
.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 56px;
}

.perk {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: border-color 0.3s, background 0.3s;
}
.perk:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.perk svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--cyan);
}
.perk strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.perk span { font-size: 13px; color: var(--text-faint); line-height: 1.5; }

.roles-block {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.roles-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  border-bottom: 1px solid var(--border);
}
.roles-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
}
.roles-count {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 5px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
.roles-list { display: flex; flex-direction: column; }

.role-row {
  display: grid;
  grid-template-columns: 1fr auto auto 20px;
  align-items: center;
  gap: 22px;
  padding: 21px 30px;
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.role-row:last-child { border-bottom: 0; }
.role-row:hover { background: var(--bg-card-hover); }

.role-main strong {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.role-team { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--cyan); }
.role-loc, .role-type { font-size: 13.5px; color: var(--text-dim); white-space: nowrap; }
.role-type {
  font-size: 12px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-faint);
}
.role-arrow {
  width: 18px;
  height: 18px;
  color: var(--text-faint);
  transition: color 0.2s, transform 0.25s var(--ease-out);
}
.role-row:hover .role-arrow { color: var(--cyan); transform: translateX(4px); }

.roles-foot {
  padding: 20px 30px;
  font-size: 14px;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.roles-foot a { color: var(--cyan); text-decoration: none; }
.roles-foot a:hover { text-decoration: underline; }

/* ---------- Contact ---------- */
.contact-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.channel-card,
.channel-card h3 {
  color: var(--text);
}
.channel-card,
.channel-card * {
  text-decoration: none;
}
.channel-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
}
.channel-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.channel-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--cyan);
  margin-bottom: 18px;
}
.channel-icon svg { width: 22px; height: 22px; }

.channel-card h3 {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  margin-bottom: 9px;
}
.channel-card p { font-size: 14px; color: var(--text-dim); margin-bottom: 20px; }
.channel-mail {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s;
}
.channel-card:hover .channel-mail { color: var(--cyan); }

.contact-bottom {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 48px;
  align-items: start;
  margin-top: 56px;
}

.offices h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.office-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 30px;
}
.office-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid rgba(99, 102, 241, 0.4);
}
.office-list strong { font-size: 14.5px; }
.office-list span { font-size: 13px; color: var(--text-faint); }

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.contact-list svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; }
.contact-list a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.contact-list a:hover { color: var(--cyan); }

.contact-form {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-dim);
}
.contact-form label em { color: var(--cyan); font-style: normal; }

.contact-form input,
.contact-form textarea,
.contact-form select {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.contact-form 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'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%239aa3b5' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  padding-right: 42px;
  cursor: pointer;
  resize: none;
}
.contact-form select option { background: #0d1018; color: var(--text); }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
  background: rgba(255, 255, 255, 0.05);
}
.contact-form .field-error {
  border-color: rgba(248, 113, 113, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

.form-note {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-faint);
}
.form-note em { color: var(--cyan); font-style: normal; }
.form-note.sent { color: var(--cyan); }

.form-success {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: var(--radius-lg);
  background: rgba(8, 10, 16, 0.97);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 32px;
}
.form-success[hidden] { display: none; }

.success-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.45);
  color: var(--cyan);
  margin-bottom: 8px;
}
.success-icon svg { width: 26px; height: 26px; }
.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}
.form-success p { font-size: 14px; color: var(--text-dim); max-width: 400px; }
.form-success a { color: var(--cyan); text-decoration: none; }
.form-success .btn { margin-top: 10px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 36px;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04));
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}

.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--text-faint); }

.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-cols h4 {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  color: var(--text-faint);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 11px;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 30px;
  font-size: 13px;
  color: var(--text-faint);
}

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-faint);
  transition: color 0.2s, border-color 0.2s, transform 0.25s var(--ease-out);
}
.footer-social a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento-card, .bento-lg { grid-column: span 3; }
  .products-grid, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .perks-grid { grid-template-columns: 1fr 1fr; }
  .contact-bottom { grid-template-columns: 1fr; gap: 44px; }
  .footer-cols { gap: 48px; }
  .section { padding: 84px 0; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 18px 24px 24px;
    background: rgba(5, 6, 10, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease-out), opacity 0.3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links > a:not(.btn) { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); }
  .nav-links > a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 14px; }
  .nav-toggle { display: flex; }

  .bento-card, .bento-lg { grid-column: span 6; }
  .hero { min-height: auto; }
  .hero-title br { display: none; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-stat { flex: 1 1 40%; }
  .hero-stat:nth-child(3) { border-left: 0; }
  .hero-stats { row-gap: 26px; }
  .perks-grid { grid-template-columns: 1fr; }
  .contact-channels { grid-template-columns: 1fr; }
  .role-row { grid-template-columns: 1fr auto 20px; gap: 16px; }
  .role-type { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .cta-inner { padding: 60px 24px; }
  .contact-form { padding: 28px 22px; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ---------- 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; }
  #hero-canvas { display: none; }
}
