/* ==========================================================================
   Scriptaurex — Global Stylesheet
   --------------------------------------------------------------------------
   Architecture:
     1. Design tokens (CSS custom properties)  — single source of truth
     2. Base / reset                            — typography, box model
     3. Utilities                               — container, glass, buttons
     4. Background mesh gradients               — ambient depth
     5. Header / navigation                     — glass nav + mobile menu
     6. Hero + particle canvas
     7. Core algorithms cards
     8. Technology split + terminal mock
     9. Stats strip
     10. About band
     11. Contact form
     12. Footer
     13. Accessibility (focus, reduced motion)
   Mobile-first: base styles are for small screens, media queries
   progressively enhance upward.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette (strict, per spec) */
  --bg-primary:        #09111E;   /* Deep Space Navy        */
  --bg-secondary:      #111A2C;   /* Midnight Slate         */
  --accent:            #2563EB;   /* Trust Blue             */
  --accent-emerald:    #10B981;   /* Algorithmic Emerald    */
  --text-primary:      #FFFFFF;   /* Crisp White            */
  --text-secondary:    #94A3B8;   /* Cool Gray              */

  /* Glassmorphism tokens */
  --glass-bg:          rgba(255, 255, 255, 0.03);
  --glass-border:      rgba(255, 255, 255, 0.05);
  --glass-blur:        blur(12px);

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --header-h: 4.5rem;
  --container-w: 1200px;
  --radius: 16px;

  /* Motion */
  --ease: all 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. BASE / RESET
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;            /* smooth anchor scrolling          */
  scroll-padding-top: calc(var(--header-h) + 1.5rem); /* offset for fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

p { color: var(--text-secondary); }

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

ul { list-style: none; }

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

::selection {
  background: rgba(37, 99, 235, 0.45);
  color: var(--text-primary);
}

/* Slim, on-theme scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2rem);
}

/* Section rhythm: ~64px mobile → ~120px desktop */
.section {
  padding: clamp(4rem, 10vw, 7.5rem) 0;
}

/* Alternate section backgrounds for horizontal rhythm */
.section-alt {
  background: linear-gradient(180deg, rgba(17, 26, 44, 0.55), rgba(9, 17, 30, 0.2));
}

/* Glassmorphism base (reused by cards, terminal, about, contact) */
.card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* Section heading block */
.section-heading {
  max-width: 640px;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.section-heading h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin: 0.75rem 0 1rem;
}

.section-heading p {
  font-size: 1.05rem;
}

/* Mono "eyebrow" label used above every section heading */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-emerald);
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-emerald), transparent);
}

/* Blue → emerald gradient text accent */
.text-gradient {
  background: linear-gradient(92deg, #60A5FA 0%, var(--accent-emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* --------------------------------------------------------------------------
   BUTTONS
   Hover: lift (-2px) + soft glow. All in .btn base class.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 2rem;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: var(--ease);
  will-change: transform;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  background: #2F6FF0;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.45);
}

.btn-outline {
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 12px 32px rgba(9, 17, 30, 0.6);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
  border-radius: 10px;
}

.btn-block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   4. BACKGROUND MESH GRADIENTS
   Fixed, ambient radial-gradients behind everything for depth.
   -------------------------------------------------------------------------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 800px at 85% -10%, rgba(37, 99, 235, 0.16), transparent 60%),
    radial-gradient(900px 700px at -10% 40%, rgba(16, 185, 129, 0.08), transparent 55%),
    radial-gradient(1000px 800px at 50% 115%, rgba(37, 99, 235, 0.10), transparent 60%);
}

/* --------------------------------------------------------------------------
   5. HEADER / NAVIGATION
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  /* Default (top of page): airy glass */
  background: rgba(9, 17, 30, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: var(--ease);
}

/* Scroll state — JS toggles .scrolled for denser background */
.site-header.scrolled {
  background: rgba(9, 17, 30, 0.85);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
  border-bottom-color: var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: var(--header-h);
}

/* ---- Logo ---- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.logo-mark svg { width: 100%; height: 100%; }

.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 9px;
  background: #FFFFFF;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.logo-text em {
  font-style: normal;
  color: var(--accent-emerald);
}

/* ---- Center links ---- */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0.7rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--ease);
}

/* Seven links — compress slightly between hamburger breakpoint and xl */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-link {
    padding: 0.5rem 0.45rem;
    font-size: 0.84rem;
  }
  .nav-actions { gap: 0.6rem; }
}

.nav-link:hover { color: var(--text-primary); }

/* Underline indicator (also marks the active section) */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.2rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-emerald));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { opacity: 1; }

.nav-link.active { color: var(--text-primary); }

/* ---- Right actions ---- */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ---- Hamburger (hidden on desktop) ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Morph to "X" when open */
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   6. HERO + PARTICLE CANVAS
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

/* Particle network lives behind the content */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Extra soft radial glow over the canvas for depth */
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 50% 45%, rgba(37, 99, 235, 0.10), transparent 70%),
    linear-gradient(180deg, transparent 55%, rgba(9, 17, 30, 0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-top: calc(var(--header-h) + 1rem);
  padding-bottom: 2rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
}

/* Pulsing emerald status dot */
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70%  { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 2.25rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

/* Scroll hint at the bottom of the viewport */
.hero-scroll {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 0.5rem;
}

.hero-scroll-mouse {
  display: block;
  width: 24px;
  height: 38px;
  border: 2px solid rgba(148, 163, 184, 0.55);
  border-radius: 14px;
  position: relative;
}

.hero-scroll-mouse::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--accent-emerald);
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%   { transform: translate(-50%, 0);   opacity: 1; }
  100% { transform: translate(-50%, 12px); opacity: 0; }
}

/* --------------------------------------------------------------------------
   7. CORE ALGORITHMS — glass cards
   Auto-fit grid: 3 cols desktop, collapses naturally to 1 col mobile.
   -------------------------------------------------------------------------- */
.algos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.algo-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: var(--ease);
}

/* Hover glow — blue + emerald aura */
.algo-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow:
    0 16px 48px rgba(37, 99, 235, 0.22),
    0 0 0 1px rgba(16, 185, 129, 0.08),
    0 0 60px rgba(16, 185, 129, 0.06);
}

.algo-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* Icon in a glass square */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--accent-emerald);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

/* LIVE status pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: 999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  animation: pulse 2s infinite;
}

.algo-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.algo-card p {
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Mock stat row with hairline separator */
.algo-stat {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--glass-border);
}

.algo-stat strong {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.algo-stat span {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

/* --------------------------------------------------------------------------
   8. TECHNOLOGY — split layout + terminal mock
   -------------------------------------------------------------------------- */
.tech-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: center;
}

.tech-copy h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin: 0.75rem 0 2rem;
}

.feature-list {
  display: grid;
  gap: 1.75rem;
}

.feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
}

.feature p {
  font-size: 0.92rem;
}

/* ---- Terminal window ---- */
.tech-visual {
  position: relative;
}

.tech-visual::before {
  /* Glow behind the terminal */
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(60% 60% at 50% 50%, rgba(37, 99, 235, 0.16), transparent 70%);
  pointer-events: none;
}

.terminal {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 18, 32, 0.92);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

/* Window chrome: 3 traffic dots + title */
.terminal-chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.02);
}

.terminal-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.terminal-dot-red    { background: #F87171; }
.terminal-dot-yellow { background: #FBBF24; }
.terminal-dot-green  { background: #34D399; }

.terminal-title {
  margin-left: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.terminal-body {
  padding: 1.25rem 1.25rem 1rem;
  overflow-x: auto;
}

.terminal-code {
  font-family: var(--font-mono);
  font-size: clamp(0.72rem, 1.4vw, 0.86rem);
  line-height: 1.8;
  color: #CBD5E1;
}

/* Syntax token colors (palette-tinted) */
.tok-comment  { color: #52617A; font-style: italic; }
.tok-keyword  { color: #60A5FA; }
.tok-function { color: #34D399; }
.tok-string   { color: #7DD3FC; }
.tok-number   { color: #C7D2FE; }
.tok-key      { color: #60A5FA; }

/* Blinking cursor prompt line */
.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-emerald);
}

.prompt-chevron { font-weight: 700; }

.terminal-cursor {
  display: inline-block;
  width: 9px;
  height: 1.15em;
  background: var(--accent-emerald);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* --------------------------------------------------------------------------
   10. ABOUT BAND
   -------------------------------------------------------------------------- */
.about-band {
  padding: clamp(2rem, 5vw, 3.5rem);
}

.about-heading {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.about-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin: 0.75rem 0 1rem;
}

.trust-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.trust-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.trust-icon svg {
  width: 22px;
  height: 22px;
}

.trust-list strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.trust-list p {
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   11. CONTACT FORM
   -------------------------------------------------------------------------- */
.contact-card {
  max-width: 660px;
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: var(--ease);
}

/* Focus ring: accent border + soft glow */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #475569;
}

/* Native select arrow → custom chevron */
.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' 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 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

/* Inline success message (toggled via [hidden]) */
.form-success {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1.25rem;
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 12px;
}

.form-success svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   12. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  border-top: 1px solid var(--glass-border);
  background: linear-gradient(180deg, transparent, rgba(9, 17, 30, 0.85));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.footer-tagline {
  max-width: 34ch;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--ease);
}

.footer-col a:hover {
  color: var(--accent-emerald);
  transform: translateX(2px);
}

.footer-contact a:first-of-type {
  color: var(--text-primary);
  font-weight: 600;
}

/* Footer columns lay out in a row on larger screens */
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }
}

.socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: var(--text-secondary);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  transition: var(--ease);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.social-link:hover {
  color: var(--text-primary);
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

/* Legal disclaimer — dim, small, clearly legible */
.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #64748B;
  max-width: 80ch;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--glass-border);
}

.footer-disclaimer strong {
  color: #94A3B8;
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: var(--ease);
}

.footer-links a:hover { color: var(--text-primary); }

/* --------------------------------------------------------------------------
   13. ACCESSIBILITY
   -------------------------------------------------------------------------- */
/* Skip link — visible only on focus */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0 0 10px 10px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus-visible { top: 0; }

/* Consistent, visible keyboard focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Respect users who prefer reduced motion:
   kill animations/transitions and let JS show final states. */
@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;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   -------------------------------------------------------------------------- */

/* Tablets & small laptops (≥768px) */
@media (min-width: 768px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .form-group { margin-bottom: 1.25rem; }

  .trust-list { grid-template-columns: 1fr 1fr 1fr; }
  .trust-list li { flex-direction: column; }
}

/* Technology split becomes 2 columns on desktop */
@media (min-width: 992px) {
  .tech-layout {
    grid-template-columns: 1fr 1fr;
  }
}

/* Collapse nav into hamburger menu below 900px */
@media (max-width: 899px) {
  .nav-toggle { display: flex; }

  /* Links become a slide-down panel anchored under the header */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem clamp(1.25rem, 4vw, 2rem) 1.25rem;
    background: rgba(9, 17, 30, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  }

  .nav-open .nav-links {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links li { width: 100%; }

  .nav-link {
    display: block;
    padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  }

  /* Underline indicator is awkward in a stacked panel */
  .nav-link::after { display: none; }

  /* Keep the CTA but shrink it on small phones */
  .btn-sm {
    padding: 0.5rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* Tighten hero scroll hint on short viewports */
@media (max-height: 640px) {
  .hero-scroll { display: none; }
}

/* --------------------------------------------------------------------------
   14. MARKETS — "One intelligence engine. Every market."
   Orb visual (left) + supporting feature copy (right).
   -------------------------------------------------------------------------- */
.markets-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 5rem);
  align-items: center;
}

.markets-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* Rotating engine core with two counter-rotating orbit rings */
.engine-orb {
  position: relative;
  width: 220px;
  height: 220px;
  flex-shrink: 0;
}

.engine-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #60A5FA, var(--accent) 55%, #1D4ED8);
  box-shadow:
    0 0 60px rgba(37, 99, 235, 0.55),
    0 0 120px rgba(37, 99, 235, 0.22);
}

.engine-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(37, 99, 235, 0.28);
  animation: spin 10s linear infinite;
}

.engine-ring::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 16px var(--accent-emerald);
}

.engine-ring-2 {
  inset: 30px;
  border-color: rgba(16, 185, 129, 0.25);
  animation-duration: 7s;
  animation-direction: reverse;
}

.engine-ring-2::before {
  background: var(--accent);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.9);
  top: 50%;
  left: -5px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Glass market pills */
.market-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 420px;
}

.market-chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  transition: var(--ease);
}

.market-chips li:hover {
  border-color: rgba(16, 185, 129, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

@media (min-width: 992px) {
  .markets-layout { grid-template-columns: 1fr 1fr; }
  .markets-visual { order: 0; }
  .markets-copy   { order: 1; }
}

/* --------------------------------------------------------------------------
   15. BUILT-IN FEATURES — compact feature grid
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.6rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--ease);
}

.feature-item:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.18);
}

.feature-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  border-radius: 12px;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-item-icon svg {
  width: 20px;
  height: 20px;
}

.feature-item strong {
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.feature-item p {
  font-size: 0.88rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   18. FAQ — accessible accordion
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 780px;
}

.faq-list {
  display: grid;
  gap: 0.9rem;
}

.faq-item {
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.2rem 1.4rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-primary);
  transition: var(--ease);
}

.faq-question:hover { color: var(--accent-emerald); }

.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: var(--accent-emerald);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.faq-icon::before {
  top: 6px;
  left: 0;
  width: 14px;
  height: 2px;
}

.faq-icon::after {
  top: 0;
  left: 6px;
  width: 2px;
  height: 14px;
}

/* Collapse the plus into a minus when open */
.faq-item.open .faq-icon::after { transform: scaleY(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 1.4rem 1.3rem;
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq-answer a {
  color: var(--accent-emerald);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
  transition: var(--ease);
}

.faq-answer a:hover { color: #34D399; }

/* --------------------------------------------------------------------------
   19. CONTACT METHODS + form hint
   -------------------------------------------------------------------------- */
.contact-methods {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 660px;
  margin: 0 auto 1.75rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  transition: var(--ease);
}

.contact-method:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 32px rgba(37, 99, 235, 0.2);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.contact-icon-wa {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

.contact-method-copy {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.contact-method-copy strong {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  color: var(--text-primary);
}

.contact-method-copy span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.form-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  text-align: center;
}

.form-hint a {
  color: var(--accent-emerald);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.form-hint a:hover { color: #34D399; }

@media (min-width: 768px) {
  .contact-methods { grid-template-columns: 1fr 1fr 1fr; }
}

/* --------------------------------------------------------------------------
   20. FINAL CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.5rem, 5vw, 3rem);
}

/* Ambient glow inside the CTA card */
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 80% at 50% 0%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(40% 60% at 80% 100%, rgba(16, 185, 129, 0.1), transparent 70%);
}

.cta-band > * {
  position: relative;
}

.cta-band h2 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  margin: 1rem 0;
}

.cta-band p {
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
}

.cta-note {
  font-size: 0.88rem;
}

.cta-note a {
  color: var(--accent-emerald);
  border-bottom: 1px solid rgba(16, 185, 129, 0.3);
}

.cta-note a:hover { color: #34D399; }

/* --------------------------------------------------------------------------
   21. FLOATING WHATSAPP BUTTON
   Fixed bottom-right, emerald with pulse glow.
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #fff;
  background: #25D366;
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.4);
  transition: var(--ease);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 16px 40px rgba(37, 211, 102, 0.55);
}

/* Pulse halo */
.whatsapp-float::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.6);
  animation: wa-pulse 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.45); opacity: 0; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Reduced motion: disable new decorative animations */
@media (prefers-reduced-motion: reduce) {
  .engine-ring,
  .engine-ring-2,
  .whatsapp-float::after {
    animation: none !important;
  }
}
