/* ─────────────────────────────────────────────────────────
   QAS Tech — Minimal
   ───────────────────────────────────────────────────────── */

:root {
  /* Light theme is the default — no flash on initial render */
  --bg: #ffffff;
  --bg-2: #fafbfc;
  --bg-3: #f3f5f8;
  --border: rgba(10, 22, 40, 0.07);
  --border-2: rgba(10, 22, 40, 0.12);
  --text: #0a1628;
  --text-2: #4a5772;
  --text-3: #8893a8;
  --primary: #7c3aed;
  --primary-bright: #9869fd;
  --primary-glow: rgba(152, 105, 253, 0.18);
  --accent: #9869fd;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --card: rgba(10, 22, 40, 0.02);
  --card-hover: rgba(10, 22, 40, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.88);
  --glass-border: rgba(10, 22, 40, 0.08);

  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 240ms;

  /* ── CX Design System tokens ── */
  --bg-elev:       #ffffff;
  --text-soft:     #4a5772;       /* alias → --text-2 */
  --muted:         #8893a8;       /* alias → --text-3 */
  --border-sub:    rgba(10, 22, 40, 0.04);
  --border-strong: rgba(10, 22, 40, 0.20);
  --sol:           #9869fd;       /* CX accent — purple */
  --sol2:          #7c3aed;
  --purple:        #9869fd;
  --neon:          #9869fd;
  --neon-glow:     rgba(152, 105, 253, 0.15);
  --pur-glow:      rgba(152, 105, 253, 0.08);
  --nav-bg:        rgba(255, 255, 255, 1);
  --float-bg:      rgba(255, 255, 255, 0.92);
  --shadow-card:   0 1px 2px rgba(0,0,0,.05), 0 8px 28px rgba(0,0,0,.07);
  --shadow-hover:  0 2px 6px rgba(152,105,253,.12), 0 16px 48px rgba(152,105,253,.18);
  --grid-line:     rgba(0, 0, 0, 0.04);
  --orb-1:         radial-gradient(circle, rgba(152,105,253,.18), transparent 60%);
  --orb-2:         radial-gradient(circle, rgba(152,105,253,.09), transparent 60%);
}

[data-theme="dark"] {
  --bg: #050912;
  --bg-2: #080f1e;
  --bg-3: #0d1628;
  --border: rgba(100, 150, 220, 0.09);
  --border-2: rgba(100, 150, 220, 0.16);
  --text: #f0f4fc;
  --text-2: #9bacc8;
  --text-3: #5a6e90;
  --primary: #9869fd;
  --primary-bright: #b08ffd;
  --primary-glow: rgba(152, 105, 253, 0.4);
  --accent: #b08ffd;
  --success: #4ade80;
  --warning: #fbbf24;
  --danger: #f87171;
  --card: rgba(255, 255, 255, 0.03);
  --card-hover: rgba(255, 255, 255, 0.055);
  --glass-bg: rgba(5, 9, 18, 0.85);
  --glass-border: rgba(100, 150, 220, 0.12);

  /* ── CX Design System tokens — dark ── */
  --bg-elev:       #0d1628;
  --text-soft:     #9bacc8;
  --muted:         #5a6e90;
  --border-sub:    rgba(100, 150, 220, 0.05);
  --border-strong: rgba(100, 150, 220, 0.25);
  --sol:           #b08ffd;
  --sol2:          #9869fd;
  --purple:        #b08ffd;
  --neon:          #b08ffd;
  --neon-glow:     rgba(176, 143, 253, 0.22);
  --pur-glow:      rgba(255, 255, 255, 0.06);
  --nav-bg:        rgba(5, 9, 18, 1);
  --float-bg:      rgba(8, 15, 30, 0.92);
  --shadow-card:   0 1px 2px rgba(0,0,0,.7), 0 14px 48px rgba(0,0,0,.5);
  --shadow-hover:  0 2px 8px rgba(152,105,253,.3), 0 20px 64px rgba(152,105,253,.15);
  --grid-line:     rgba(255, 255, 255, 0.018);
  --orb-1:         radial-gradient(circle, rgba(152,105,253,.35), transparent 60%);
  --orb-2:         radial-gradient(circle, rgba(152,105,253,.15), transparent 60%);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; text-rendering: optimizeLegibility; }
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s var(--ease-smooth), color 0.3s var(--ease-smooth);
}
::selection { background: rgba(152, 105, 253, 0.22); color: var(--text); }
.mono { font-family: 'Roboto Mono', ui-monospace, monospace; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; white-space: nowrap; }
a { color: inherit; text-decoration: none; }

/* Entrance animations handled by GSAP ScrollTrigger — see src/animations.jsx */

/* Link hover */
.link-quiet {
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease-smooth);
}
.link-quiet:hover { color: var(--text); }

/* ─────────────────────────────────────────────────────────
   Layout — container + responsive grids
   ───────────────────────────────────────────────────────── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

/* Section wrapper: full-width with horizontal gutter + centered container */
.section {
  padding-left: 32px;
  padding-right: 32px;
}

/* Responsive grids
   - At >=960px: full columns
   - At 640-960px: 2 columns
   - At <640px: 1 column                                          */
.grid {
  display: grid;
  width: 100%;
}
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: 1.4fr repeat(4, 1fr); }
.grid-split  { grid-template-columns: 1fr 1.1fr; }

@media (max-width: 960px) {
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-split  { grid-template-columns: 1fr; }
}
/* Burger button — hidden on desktop, shown on mobile */
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--t-fast) var(--ease-smooth);
}
.burger-btn:hover { background: rgba(127,127,127,0.1); }

@media (max-width: 640px) {
  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 { grid-template-columns: 1fr; }
  .grid-cols-5 { grid-template-columns: 1fr; }
  .section { padding-left: 20px; padding-right: 20px; }
  .nav-links   { display: none !important; }
  .nav-actions { display: none !important; }
  .burger-btn  { display: flex; }
}

/* Mobile drawer menu */
.mobile-menu {
  position: fixed;
  left: 16px; right: 16px;
  border-radius: 20px;
  z-index: 89;
  background: var(--float-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  padding: 8px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s var(--ease-smooth),
    opacity   0.22s var(--ease-smooth);
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-nav {
  display: flex;
  flex-direction: column;
}
.mobile-menu-link {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  transition: color var(--t-fast) var(--ease-smooth);
}
.mobile-menu-link:last-child { border-bottom: none; }
.mobile-menu-link:hover,
.mobile-menu-link.active { color: var(--text); }

.mobile-menu-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.mobile-menu-cta { flex: 1; justify-content: center; }

/* Buttons — CX Technology style */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: #3DFCE0;
  color: #000000;
  border: 1px solid #3DFCE0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-primary:hover { transform: translateY(-1px); opacity: 0.88; }
.btn-primary:active { transform: scale(0.97); opacity: 1; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--primary-bright); color: var(--primary-bright); }
.btn-secondary:active { transform: scale(0.97); }

.btn-primary-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #3DFCE0;
  color: #000000;
  border: 1px solid #3DFCE0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn-primary-sm:hover { transform: translateY(-1px); opacity: 0.88; }
.btn-primary-sm:active { transform: scale(0.97); opacity: 1; }

.btn-secondary-sm {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-secondary-sm:hover { border-color: var(--primary-bright); color: var(--primary-bright); }
.btn-secondary-sm:active { transform: scale(0.97); }

/* Card — CX Technology style */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
}
.card:hover {
  background: var(--card-hover);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-link {
  color: var(--primary-bright);
  font-size: 14px;
  font-weight: 500;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--t-fast) var(--ease-smooth);
}
.card-link:hover { gap: 8px; }

/* Centered content helper for hero/section heads */
.text-center { text-align: center; }

/* Chip — CX pill badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-2);
}
.chip svg { color: var(--primary-bright); }

/* Dark statement section */
.dark-section {
  background: #0a1628;
  color: #f0f4fc;
  position: relative;
  overflow: hidden;
}
.dark-section .chip {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.85);
}
.dark-section .chip svg { color: #93c5fd; }

/* Inline gradient highlight (apply to <span> inside heading) */
.text-highlight {
  background: linear-gradient(105deg, var(--primary) 0%, var(--primary-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Decorative SVG dot pattern (positioned absolutely in section corners) */
.dot-pattern {
  position: absolute;
  pointer-events: none;
  opacity: 0.12;
}

/* Subpage PageHero — soft purple gradient backdrop */
.page-hero-bg {
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(152,105,253,.12) 0%, transparent 65%),
    linear-gradient(180deg, rgba(152,105,253,.05) 0%, var(--bg) 85%);
  position: relative;
  overflow: hidden;
}

/* Subtle alternate section — light gray-blue tone */
.section-soft {
  background: var(--bg-2);
}


/* Soft footer — light cool gray, Stark Bank inspired */
.footer-soft {
  background: #eef1f5;
  color: var(--text);
  border-top: 1px solid var(--border);
}
.footer-soft a {
  color: var(--text-2);
  transition: color var(--t-fast) var(--ease-smooth);
}
.footer-soft a:hover { color: var(--text); }
.footer-soft .footer-h { color: var(--text); }
.footer-soft .footer-meta { color: var(--text-3); }
.footer-soft .footer-divider { border-top-color: rgba(10, 22, 40, 0.09); }

/* Hero with video background */
.hero-video-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(0.6px) brightness(0.82) saturate(1.05);
  transform: scale(1.01);
  z-index: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
  z-index: 1;
}
.hero-scroll-down {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);
  transition: transform var(--t-fast) var(--ease-smooth), background var(--t-fast) var(--ease-smooth), border-color var(--t-fast) var(--ease-smooth);
  animation: heroBounce 2.4s ease-in-out infinite;
}
.hero-scroll-down:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.6);
}
@keyframes heroBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* Gradient title — dark-to-purple, CX style */
.gradient-title {
  background: linear-gradient(105deg, var(--text) 0%, var(--text) 40%, var(--primary-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
[data-theme="dark"] .gradient-title {
  background: linear-gradient(105deg, var(--text) 0%, var(--text) 35%, var(--primary-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* White-to-purple for hero on dark backgrounds */
.gradient-title-light {
  background: linear-gradient(105deg, #ffffff 0%, #ffffff 40%, #c4a0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ─────────────────────────────────────────────────────────
   Logos marquee
   ───────────────────────────────────────────────────────── */
.logos-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
.logos-track {
  display: flex;
  align-items: center;
  gap: 72px;
  padding: 0 36px;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}
.logos-track:hover { animation-play-state: paused; }
.logos-item { display: flex; align-items: center; }
.logos-item:hover img { opacity: 1 !important; filter: none !important; }

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─────────────────────────────────────────────────────────
   Products carousel (mobile)
   ───────────────────────────────────────────────────────── */
.products-carousel-outer { position: relative; }

@media (max-width: 640px) {
  .products-section { padding-left: 0 !important; padding-right: 0 !important; }
  .products-wrap    { max-width: 100% !important; }
  .products-title   { padding: 0 20px; max-width: 100% !important; }

  .products-carousel-outer::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--bg));
    pointer-events: none;
    z-index: 2;
  }

  .products-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding: 4px 20px 20px;
    scrollbar-width: none;
  }
  .products-grid::-webkit-scrollbar { display: none; }
  .products-grid .card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }
}

/* ═══════════════════════════════════════════════════════════
   CX Design System — camada de utilitários
   (tokens já declarados em :root acima)
   ═══════════════════════════════════════════════════════════ */

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar          { width: 3px; height: 3px; }
::-webkit-scrollbar-track    { background: var(--bg); }
::-webkit-scrollbar-thumb    { background: var(--primary-bright); border-radius: 2px; }

/* ── Textura carbon-fibre (opt-in: <body class="has-texture">) ── */
.has-texture::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient( 45deg, transparent, transparent 2px, rgba(255,255,255,.013) 2px, rgba(255,255,255,.013) 3px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,.013) 2px, rgba(255,255,255,.013) 3px);
  background-size: 6px 6px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] .has-texture::before {
  background-image:
    repeating-linear-gradient( 45deg, transparent, transparent 2px, rgba(0,0,0,.018) 2px, rgba(0,0,0,.018) 3px),
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(0,0,0,.018) 2px, rgba(0,0,0,.018) 3px);
}

/* ── Orbs de fundo ───────────────────────────────────────── */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
  opacity: .8;
  animation: orb-drift 18s ease-in-out infinite;
}
.orb-1 { width: 600px; height: 600px; background: var(--orb-1); top: -160px; left: -120px; }
.orb-2 { width: 480px; height: 480px; background: var(--orb-2); bottom: -180px; left: 20%; animation-delay: -6s; }
.orb-3 { width: 360px; height: 360px; background: var(--orb-2); top: 20%; right: -60px; animation-delay: -11s; }

@keyframes orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(28px, -18px) scale(1.07); }
}

/* ── Typography — gradient accent ───────────────────────── */
.accent-grad {
  background: linear-gradient(105deg, var(--sol) 0%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Editorial weight helpers ────────────────────────────── */
.t-light { display: block; font-weight: 200; color: var(--text-soft); }
.t-bold  { display: block; font-weight: 800; color: var(--text); }

/* ── Section label (RM precision style) ─────────────────── */
.sec-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--sol);
  text-transform: uppercase;
  letter-spacing: .45em;
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.sec-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--sol);
  flex-shrink: 0;
}

/* ── Section typography scale ────────────────────────────── */
.sec-title {
  font-size: clamp(34px, 4.5vw, 64px);
  letter-spacing: -0.04em;
  line-height: 1.04;
  font-weight: 600;
  margin-bottom: 20px;
}
.sec-desc {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 540px;
  line-height: 1.7;
  letter-spacing: -0.005em;
}
.sec-sub {
  font-size: 15px;
  color: var(--text-soft);
  font-weight: 400;
  max-width: 560px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  margin-bottom: 48px;
}

/* ── Pill / badge (variant CX) ───────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .04em;
  background: var(--card);
}

/* ── CX Buttons (coexistem com .btn-primary existente) ───── */
.cx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s var(--ease-smooth), opacity .2s var(--ease-smooth);
  white-space: nowrap;
}
.cx-btn:hover { transform: translateY(-1px); opacity: .88; }

.cx-btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.cx-btn-outline:hover { border-color: var(--sol); color: var(--sol); opacity: 1; }

.cx-btn-accent {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.cx-btn-accent:hover { opacity: .88; }

/* ── Reveal animation (linha por linha) ──────────────────── */
.reveal-line {
  overflow: hidden;
  display: block;
  line-height: 1.06;
}
.reveal-inner {
  display: inline-block;
  transform: translateY(110%) skewY(3deg);
  animation: reveal-up .95s cubic-bezier(.16, 1, .3, 1) forwards;
}
.reveal-line:nth-child(1) .reveal-inner { animation-delay: .08s; }
.reveal-line:nth-child(2) .reveal-inner { animation-delay: .22s; }
.reveal-line:nth-child(3) .reveal-inner { animation-delay: .36s; }

@keyframes reveal-up {
  to { transform: translateY(0) skewY(0deg); }
}

/* ── Shadow tokens nos cards com hover ───────────────────── */
.card-elevated {
  box-shadow: var(--shadow-card);
}
.card-elevated:hover {
  box-shadow: var(--shadow-hover);
}

/* ── Form inputs ─────────────────────────────────────────── */
.form-input {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition:
    border-color var(--t-fast) var(--ease-smooth),
    box-shadow   var(--t-fast) var(--ease-smooth);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-3); }
.form-input:hover  { border-color: var(--border-strong); }
.form-input:focus  {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
.form-input:invalid:not(:placeholder-shown):not(:focus) {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.10);
}

/* Select — custom chevron arrow */
.form-select {
  width: 100%;
  padding: 11px 40px 11px 14px;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238893a8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  transition:
    border-color var(--t-fast) var(--ease-smooth),
    box-shadow   var(--t-fast) var(--ease-smooth);
}
.form-select:hover { border-color: var(--border-strong); }
.form-select:focus {
  border-color: var(--primary-bright);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Textarea — no horizontal resize */
.form-textarea {
  resize: vertical;
  line-height: 1.55;
  min-height: 110px;
}

/* ── Contact page layout ─────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 56px;
  align-items: start;
  max-width: 1120px;
  margin: 0 auto;
}
.form-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-2col-full { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 36px; }
  .contact-aside  { position: static !important; }
}
@media (max-width: 640px) {
  .form-2col     { grid-template-columns: 1fr; }
  .form-2col-full { grid-column: 1; }
  .form-card-pad { padding: 24px 18px !important; }
  .contact-section { padding: 56px 20px 80px !important; }
}

/* ── Skip to content (accessibility) ────────────────────── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--primary-bright);
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }
