/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary: #0b0d14;
  --bg-secondary: #0f1117;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(99, 102, 241, 0.4);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-glow: rgba(99, 102, 241, 0.25);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  /* Single source of truth for content width so header and main always match */
  --content-max-width: 1200px;
  --content-gutter: 1.5rem;
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  /* Reserve scrollbar space so body width = viewport width (avoids header vs content mismatch) */
  overflow-y: scroll;
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  margin: 0;
}

main {
  width: 100%;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

ul {
  list-style: none;
}

/* ===== BACKGROUND GRID TEXTURE ===== */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  line-height: 1.15;
}

.display-xl {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.display-xl-home {
  font-size: clamp(2.6rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.display-lg-home {
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.display-lg {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 640px;
}

/* ===== LAYOUT ===== */
.container,
#site-header .container {
  width: 100%;
  max-width: var(--content-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-gutter);
  padding-right: var(--content-gutter);
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  :root {
    --content-gutter: 1rem;
  }
}

section {
  position: relative;
  z-index: 1;
}

.section-pad {
  padding: 100px 0;
}

.section-pad-sm {
  padding: 70px 0;
}

/* ===== GRADIENT TEXT ===== */
.gradient-text {
  background: linear-gradient(135deg, #a5b4fc 0%, #818cf8 40%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px var(--accent-glow), 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-card);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.05);
}

/* ===== ICON BOX ===== */
.icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-bottom: 1.25rem;
}

.icon-box-accent {
  background: rgba(99, 102, 241, 0.15);
  color: #818cf8;
}

.icon-box-purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.icon-box-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
}

.icon-box-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.icon-box-rose {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
}

.icon-box-amber {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

/* ===== HEADER ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 13, 20, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

header.scrolled {
  background: rgba(11, 13, 20, 0.97);
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.logo img {
  height: 36px;
  width: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  transition: all 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--text-primary);
  background: var(--bg-card);
}

.nav-cta {
  margin-left: 0.5rem;
}

#nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
  font-size: 1.4rem;
  line-height: 1;
}

#nav-toggle:hover {
  color: var(--text-primary);
}

#main-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem var(--content-gutter) 1.5rem;
  border-top: 1px solid var(--border);
  background: rgba(11, 13, 20, 0.98);
}

#main-nav-mobile.open {
  display: flex;
}

#main-nav-mobile a {
  font-size: 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

#main-nav-mobile a:hover {
  color: var(--text-primary);
}

@media (max-width: 768px) {
  #nav-toggle {
    display: block;
  }

  nav {
    display: none;
  }
}

/* ================================================================
   FULL HERO CSS — replace your entire hero block in styles.css
   with everything below (from #hero down to the last @media block)
================================================================ */
/* ============================================================
   HERO SECTION — hero.css
   ============================================================ */
/* ============================================================
   HERO SECTION — hero.css
   ============================================================ */

#hero {
  min-height: 100svh;
  max-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 68px 0 0;
  position: relative;
}

/* Single-column hero (contact / features / solutions) */
.hero-centered {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

/* Two-column hero (index only) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3rem;
  width: 100%;
}

/* Left column: text stack */
.hero-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Right column: overflow: visible CRITICAL — lets float cards render
   outside the column boundary without being clipped */
.hero-visual {
  position: relative;
  min-width: 0;
  margin-top: 0;
  overflow: visible;
}

/* ---- shared hero sub-elements ---- */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ---- Stats row ---- */
.hero-stats {
  display: flex;
  gap: 2rem;
  margin-top: 1.5rem;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  white-space: nowrap;
}

/* ---- Dashboard image wrapper ---- */
.hero-dashboard-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.hero-dashboard-wrap img {
  width: 100%;
  display: block;
  border-radius: 16px;
}

/* ---- Glow orb ---- */
.hero-glow {
  position: absolute;
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   FLOATING STAT CARDS
   ============================================================ */

.float-card {
  position: absolute;
  background: rgba(15, 17, 23, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: float 4s ease-in-out infinite;
  z-index: 2;
  /* never hidden — visible on ALL screen sizes */
  display: block;
}

.float-card:nth-child(2) { animation-delay: -1s; }
.float-card:nth-child(3) { animation-delay: -2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.fc-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.fc-value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.fc-trend       { font-size: 0.68rem; color: #34d399; margin-top: 0.15rem; }
.fc-trend.down  { color: #fb7185; }

/* ---- Float card positions (desktop: relative to .hero-visual) ---- */
.float-card-1 { bottom: 60px;  left:  -20px; }
.float-card-2 { top:    20px;  right: -20px; }
.float-card-3 { bottom: 120px; right: -20px; }

/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  #hero {
    max-height: none;
    min-height: auto;
    padding: 80px 0 4rem;
    align-items: flex-start;
  }

  .hero-centered,
  .hero-split {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  /* Stats: 2×2 centered grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    justify-items: center;
    text-align: center;
    margin-top: 1.5rem;
    flex-wrap: unset;
    justify-content: unset;
  }

  /* Float cards stay absolute — pull slightly inward so they don't
     overflow the viewport when the column is narrower */
  .float-card-1 { bottom: 55px;  left:  -8px; }
  .float-card-2 { top:    16px;  right: -8px; }
  .float-card-3 { bottom: 110px; right: -8px; }
}

/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  .hero-ctas { gap: 0.6rem; }

  /* Stats: 2×2 centered grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    justify-items: center;
    text-align: center;
    margin-top: 1.25rem;
  }

  .hero-stat-num  { font-size: 1.3rem; }
  .hero-stat-label { white-space: normal; }

  /* Float cards: scale down slightly for narrow screens */
  .float-card {
    padding: 0.6rem 0.85rem;
  }

  .float-card-1 { bottom: 120px;  left:  -4px; }
  .float-card-2 { top:    12px;  right: -4px; }
  .float-card-3 { bottom: 150px;  right: -4px; }

  .fc-value { font-size: 0.9rem; }
  .fc-label,
  .fc-trend { font-size: 0.65rem; }
}

/* ============================================================
   RESPONSIVE — Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Tuck cards fully within viewport edges */
  .float-card-1 { left:  4px; }
  .float-card-2 { right: 4px; }
  .float-card-3 { right: 4px; }
}

/* ===== FEATURES GRID ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  padding: 1.75rem;
}

.feature-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== TABS ===== */
.tabs-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.tab-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tab-feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.tab-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: #818cf8;
}

.tab-feature-item h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.tab-feature-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.tab-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tab-image-wrap img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .tab-panel.active {
    grid-template-columns: 1fr;
  }
}

/* ===== ARCHITECTURE ===== */
.arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.arch-node {
  width: 100%;
  max-width: 420px;
  text-align: center;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.arch-node-icon {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: center;
  color: #818cf8;
}

.arch-node h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.arch-node p {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.arch-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem 0;
}

.arch-arrow-line {
  width: 2px;
  height: 24px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  animation: flow-down 1.5s linear infinite;
}

@keyframes flow-down {
  0% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.3;
  }
}

.arch-arrow-head {
  color: var(--accent);
  font-size: 1.1rem;
  margin-top: -4px;
}

.arch-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}

.arch-badge {
  padding: 0.4rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 50px;
  font-size: 0.8rem;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== HARDWARE ===== */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.hardware-card {
  padding: 1.75rem;
  text-align: center;
}

.hw-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hw-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hardware-card h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.hardware-card p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

.hw-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.72rem;
  font-weight: 500;
  margin-top: 0.75rem;
}

/* ===== INDUSTRIES ===== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.industry-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.industry-card .ind-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.industry-card h3 {
  font-size: 0.95rem;
}

.industry-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

/* ===== ROLES ===== */
.roles-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.role-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.role-chip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.25rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.role-chip:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

.role-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.role-chip span {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-weight: 500;
}

.role-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ===== COMPARE ===== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 640px) {
  .compare-grid {
    grid-template-columns: 1fr;
  }
}

.compare-card {
  padding: 1.75rem;
}

.compare-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.compare-card li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.check {
  color: #34d399;
  font-size: 1rem;
  flex-shrink: 0;
}

.cross {
  color: #fb7185;
  font-size: 1rem;
  flex-shrink: 0;
}

/* ===== TESTIMONIALS ===== */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.testi-card {
  padding: 2rem;
}

.testi-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.testi-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testi-name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
}

.testi-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ===== STATS ROW ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem;
}

.stat-box {
  padding: 1.75rem;
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ===== FINAL CTA ===== */
#final-cta {
  padding: 100px 0;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(139, 92, 246, 0.05) 50%,
    transparent 100%
  );
  border-top: 1px solid var(--border);
}

.cta-glow {
  position: absolute;
  width: 500px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-brand p {
  font-size: 0.83rem;
  color: var(--text-muted);
  max-width: 240px;
  margin-top: 0.6rem;
}

.footer-links {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.87rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== DIVIDER ===== */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ===== UTILITY ===== */
.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-2xl {
  max-width: 640px;
}

.max-w-3xl {
  max-width: 780px;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-16 {
  margin-top: 4rem;
}

/* ===== ARCH SECTION GRID ===== */
.arch-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .arch-section-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== REACT ICONS sizing in icon boxes ===== */
.icon-box svg,
.tab-feature-icon svg,
.arch-node-icon svg {
  width: 1.4rem;
  height: 1.4rem;
}

.tab-feature-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}

/* ===== FEATURE QUICK-NAV PILLS ===== */
.feat-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.feat-pill:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ===== FEATURE SECTION GRID (alternating layout) ===== */
.feat-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.feat-section-grid-reverse .feat-image { order: -1; }

@media (max-width: 900px) {
  .feat-section-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-section-grid-reverse .feat-image { order: 0; }
}

/* ===== FEATURE IMAGE ===== */
.feat-img {
  width: 100%;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.feat-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 100px rgba(0,0,0,0.6), 0 0 40px rgba(99,102,241,0.06);
}

/* ===== FEATURE LIST (icon + text) ===== */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.feat-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feat-list-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(99,102,241,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: #818cf8;
}
.feat-list-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.feat-list li strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.feat-list li p {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ===== ANALYTICS GRID ===== */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.feat-mini-card {
  padding: 1.75rem;
}
.feat-mini-card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}
.feat-mini-card p {
  font-size: 0.87rem;
  color: var(--text-secondary);
}

/* ===== ROLE HIERARCHY VISUAL ===== */
.roles-visual-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
}
.rv-title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.rv-flow {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.rv-node {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  transition: all 0.2s;
}
.rv-node:hover {
  border-color: var(--border-hover);
  background: rgba(99,102,241,0.05);
}
.rv-node-top {
  border-color: rgba(99,102,241,0.3);
  background: rgba(99,102,241,0.06);
}
.rv-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rv-icon svg {
  width: 16px;
  height: 16px;
}
.rv-name {
  font-family: var(--font-display);
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 600;
}
.rv-perm {
  font-size: 0.73rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}
.rv-connector {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  margin: 0 auto;
  animation: flow-down 1.5s linear infinite;
}

/* ===== NOTIFICATIONS PREVIEW ===== */
.notif-preview-wrap {
  position: relative;
}

/* ===== HYBRID SYNC LAYOUT ===== */
.sync-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .sync-layout { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Architecture diagram cards */
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}
.arch-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.3s;
}
.arch-step:hover { border-color: var(--border-hover); }
.arch-step-mid {
  border-color: rgba(99,102,241,0.25);
  background: rgba(99,102,241,0.04);
}
.arch-step-icon {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.arch-step-icon svg {
  width: 24px;
  height: 24px;
}
.arch-icon-local { background: rgba(16,185,129,0.12); }
.arch-icon-sync  { background: rgba(99,102,241,0.15); }
.arch-icon-cloud { background: rgba(6,182,212,0.12); }
.arch-step-body h3 {
  font-size: 1rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.arch-step-body p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.arch-step-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.arch-connector-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0;
  gap: 0;
}
.arch-connector-line {
  width: 2px;
  height: 20px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  animation: flow-down 1.5s linear infinite;
}
.arch-connector-arrow {
  color: var(--accent);
  font-size: 1rem;
  margin-top: -3px;
}
.arch-connector-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
  letter-spacing: 0.04em;
}

/* Sync benefits */
.sync-benefits {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.sync-benefit-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.sync-benefit-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(99,102,241,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #818cf8;
}
.sync-benefit-icon svg {
  width: 1.1rem;
  height: 1.1rem;
}
.sync-benefit-item h4 {
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}
.sync-benefit-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ===== HARDWARE COMPATIBILITY GRID ===== */
.hw-compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.hw-compat-item {
  padding: 1.75rem;
  text-align: center;
}
.hw-compat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #818cf8;
}
.hw-compat-icon svg {
  width: 36px;
  height: 36px;
}
.hw-compat-item h3 {
  font-size: 1rem;
  margin-bottom: 0.4rem;
}
.hw-compat-item p {
  font-size: 0.83rem;
  color: var(--text-secondary);
}

/* ===== DISPLAY MD ===== */
.display-md {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
 ADDITIONAL CSS FOR solutions.html
 Append this to the bottom of your existing styles.css
 (after the features-additional.css additions)
 ============================================================ */

/* ===== SOLUTION PAIN POINTS ===== */
.sol-painpoints {
  margin-bottom: 0;
}
.sol-pain-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.sol-pain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sol-pain-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.2);
  color: #fb7185;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== SOLUTION BADGE CARD (below image) ===== */
.sol-badge-card {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.sol-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.sol-badge-icon {
  font-size: 1.1rem;
}

/* ===== MULTI-BRANCH ARCHITECTURE DIAGRAM ===== */
.multibranch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .multibranch-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.mb-arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Branch nodes row */
.mb-branches-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mb-branch-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s;
}
.mb-branch-node:hover {
  border-color: var(--border-hover);
}
.mb-branch-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.mb-branch-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}
.mb-branch-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Arrows row (3 arrows) */
.mb-arrows-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.4rem 0;
}
.mb-arrow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mb-arrow-line {
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  animation: flow-down 1.5s linear infinite;
}
.mb-arrow-head {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: -3px;
  line-height: 1;
}

/* Cloud sync node */
.mb-cloud-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.mb-cloud-node-final {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
}
.mb-cloud-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.mb-cloud-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}
.mb-cloud-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Single arrow (center) */
.mb-single-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0;
}

/* ===== WHY FLOWLEEP GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.why-card {
  padding: 1.75rem;
}
.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===== HERO QUICK NAV (solutions variant) ===== */
/* Uses .feat-quicknav and .feat-pill already defined in features-additional.css */
/* No additional rules needed here */

/* ============================================================
 ADDITIONAL CSS FOR solutions.html
 Append this to the bottom of your existing styles.css
 (after the features-additional.css additions)
 ============================================================ */

/* ===== SOLUTION PAIN POINTS ===== */
.sol-painpoints {
  margin-bottom: 0;
}
.sol-pain-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.sol-pain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sol-pain-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(251, 113, 133, 0.08);
  border: 1px solid rgba(251, 113, 133, 0.2);
  color: #fb7185;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== SOLUTION BADGE CARD (below image) ===== */
.sol-badge-card {
  margin-top: 1rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(10px);
}
.sol-badge-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.sol-badge-icon {
  font-size: 1.1rem;
}

/* ===== MULTI-BRANCH ARCHITECTURE DIAGRAM ===== */
.multibranch-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .multibranch-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.mb-arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Branch nodes row */
.mb-branches-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.mb-branch-node {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 0.75rem;
  text-align: center;
  transition: border-color 0.2s;
}
.mb-branch-node:hover {
  border-color: var(--border-hover);
}
.mb-branch-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.mb-branch-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 600;
}
.mb-branch-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Arrows row (3 arrows) */
.mb-arrows-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0.4rem 0;
}
.mb-arrow-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mb-arrow-line {
  width: 2px;
  height: 18px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2));
  animation: flow-down 1.5s linear infinite;
}
.mb-arrow-head {
  color: var(--accent);
  font-size: 0.9rem;
  margin-top: -3px;
  line-height: 1;
}

/* Cloud sync node */
.mb-cloud-node {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.mb-cloud-node-final {
  background: rgba(6, 182, 212, 0.05);
  border-color: rgba(6, 182, 212, 0.2);
}
.mb-cloud-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}
.mb-cloud-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}
.mb-cloud-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Single arrow (center) */
.mb-single-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.4rem 0;
}

/* ===== WHY FLOWLEEP GRID ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.why-card {
  padding: 1.75rem;
}
.why-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.why-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* ===== HERO QUICK NAV (solutions variant) ===== */
/* Uses .feat-quicknav and .feat-pill already defined in features-additional.css */
/* No additional rules needed here */

/* ============================================================
 ADDITIONAL CSS FOR contact.html
 Append this to the bottom of your existing styles.css
 ============================================================ */

/* ===== CONTACT INFO GRID ===== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
}
.contact-info-card {
  padding: 1.75rem;
  text-align: center;
  cursor: default;
}
.contact-info-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}
.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.contact-info-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}
.contact-info-link {
  font-size: 0.9rem;
  color: #a5b4fc;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}
.contact-info-link:hover { color: var(--text-primary); }

/* ===== CONTACT LAYOUT (form + side) ===== */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 1024px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ===== FORM CARD ===== */
.cf-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) {
  .cf-card { padding: 1.5rem; }
}

/* ===== FORM ROWS ===== */
.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .cf-row { grid-template-columns: 1fr; }
}

/* ===== FORM FIELD ===== */
.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}
.cf-field:last-of-type { margin-bottom: 0; }

/* ===== LABEL ===== */
.cf-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.cf-required { color: #fb7185; }
.cf-optional { color: var(--text-muted); font-weight: 400; font-size: 0.75rem; }

/* ===== INPUT WRAP ===== */
.cf-input-wrap {
  position: relative;
}

/* ===== INPUT / SELECT / TEXTAREA ===== */
.cf-input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s;
  -webkit-appearance: none;
}
.cf-input::placeholder { color: var(--text-muted); }
.cf-input:focus {
  border-color: var(--accent);
  background: rgba(99,102,241,0.04);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.cf-input--valid {
  border-color: rgba(52,211,153,0.5) !important;
  box-shadow: 0 0 0 2px rgba(52,211,153,0.1) !important;
}
.cf-input--error {
  border-color: rgba(251,113,133,0.6) !important;
  box-shadow: 0 0 0 3px rgba(251,113,133,0.12) !important;
}
.cf-textarea {
  resize: vertical;
  min-height: 130px;
  padding-right: 2.5rem;
}

/* ===== SELECT ===== */
.cf-select-wrap { position: relative; }
.cf-select {
  cursor: pointer;
  padding-right: 2.5rem;
}
.cf-select-arrow {
  position: absolute;
  right: 2.2rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.85rem;
}

/* ===== VALID ICON ===== */
.cf-icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #34d399;
  pointer-events: none;
}
.cf-textarea ~ .cf-icon { top: 1rem; transform: none; }
.cf-icon.visible { opacity: 1; }

/* ===== ERROR MESSAGE ===== */
.cf-error {
  font-size: 0.78rem;
  color: #fb7185;
  min-height: 1rem;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cf-error.visible { opacity: 1; transform: translateY(0); }

/* ===== CHAR COUNTER ===== */
.cf-char-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: right;
  margin-left: auto;
  white-space: nowrap;
  transition: color 0.3s;
}

/* ===== SUBMIT BUTTON ===== */
.cf-submit {
  margin-top: 1.5rem;
  position: relative;
  justify-content: center;
  overflow: hidden;
}
.cf-btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cf-btn-loading .cf-btn-text { opacity: 0; }
.cf-btn-loading .cf-btn-spinner { display: inline-block; position: absolute; }

/* ===== SHAKE ===== */
@keyframes cf-shake-anim {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}
.cf-shake { animation: cf-shake-anim 0.4s ease; }

/* ===== SUCCESS STATE ===== */
.cf-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: fade-slide-up 0.5s ease forwards;
}
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.cf-success h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin: 1.25rem 0 0.6rem;
}
.cf-success p { color: var(--text-secondary); margin-bottom: 1.75rem; }

/* Animated checkmark SVG */
.cf-success-check { margin-bottom: 0; }
.cf-success-check svg { overflow: visible; }
.cf-check-circle {
  stroke: #34d399;
  stroke-width: 2;
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  animation: stroke-circle 0.5s ease forwards;
}
.cf-check-mark {
  stroke: #34d399;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke-check 0.4s 0.4s ease forwards;
}
@keyframes stroke-circle {
  to { stroke-dashoffset: 0; }
}
@keyframes stroke-check {
  to { stroke-dashoffset: 0; }
}

/* ===== ERROR STATE ===== */
.cf-error-state {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1rem;
  animation: fade-slide-up 0.4s ease forwards;
}
.cf-error-state h3 { font-size: 1.2rem; color: var(--text-primary); margin-bottom: 0.6rem; }
.cf-error-state p { color: var(--text-secondary); margin-bottom: 1.5rem; }

/* ===== CONFETTI ===== */
#confetti-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 0;
  pointer-events: none;
  z-index: 999;
  overflow: visible;
}
.confetti-dot {
  position: absolute;
  top: -10px;
  animation: confetti-fall linear forwards;
  opacity: 0.9;
}
@keyframes confetti-fall {
  0%   { top: -10px; opacity: 1; transform: rotate(0deg) scale(1); }
  80%  { opacity: 0.7; }
  100% { top: 100vh; opacity: 0; transform: rotate(720deg) scale(0.5); }
}

/* ===== SIDE PANEL ===== */
.cf-side-panel { display: flex; flex-direction: column; gap: 0; }
.cf-side-card { padding: 1.5rem; }

/* Steps */
.cf-steps { display: flex; flex-direction: column; gap: 1rem; }
.cf-step { display: flex; align-items: flex-start; gap: 0.85rem; }
.cf-step-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.cf-step strong { display: block; font-size: 0.88rem; color: var(--text-primary); margin-bottom: 0.15rem; }
.cf-step p { font-size: 0.8rem; color: var(--text-muted); }

/* Inquiry pills */
.cf-inquiry-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cf-inq-pill {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.15);
  color: #a5b4fc;
  font-size: 0.78rem;
}

/* ===== TRUST GRID ===== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.trust-card { padding: 1.75rem; }
.trust-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.trust-card p { font-size: 0.87rem; color: var(--text-secondary); }

/* ===== CONTACT PAGE — additional tweaks ===== */

/* Pill icon alignment */
.cf-inq-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cf-inq-pill-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Contact info icon container — centres the SVG */
.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Error state icon centering */
.cf-error-state > div:first-child {
  display: flex;
  justify-content: center;
}

/* ===== SIDE PANEL — vertically centred alongside the form on large screens ===== */
.contact-layout {
  align-items: center;   /* overrides align-items: start — centres both columns */
}

/* The side panel itself: make cards stack flush */
.cf-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;          /* consistent gap between the two cards */
}

/* Remove the inline margin-top that was previously spacing the second card */
.cf-side-panel .card + .card {
  margin-top: 0 !important;
}

/* ============================================================
 CUSTOM DROPDOWN — append to styles.css
 ============================================================ */

/* ── Wrapper ── */
.cf-dropdown {
  position: relative;
  width: 100%;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
}

/* Disabled state */
.cf-dropdown[data-disabled] {
  pointer-events: none;
  opacity: 0.5;
}

/* ── Trigger button ── */
.cf-dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 1rem;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.2s;
  min-height: 44px; /* matches cf-input height */
}

.cf-dropdown:focus .cf-dd-trigger,
.cf-dropdown:focus-within .cf-dd-trigger {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.cf-dropdown.is-open .cf-dd-trigger {
  border-color: var(--accent);
  background: rgba(99, 102, 241, 0.04);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* Valid state */
.cf-dropdown.cf-dd--valid .cf-dd-trigger {
  border-color: rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.1) !important;
}

/* Error state */
.cf-dropdown.cf-dd--error .cf-dd-trigger {
  border-color: rgba(251, 113, 133, 0.6) !important;
  box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12) !important;
}

/* ── Displayed value text ── */
.cf-dd-value {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-muted);   /* placeholder colour */
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
  transition: color 0.2s;
}

.cf-dd-value.has-value {
  color: var(--text-primary); /* selected-value colour */
}

/* ── Chevron arrow ── */
.cf-dd-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.2s;
}

.cf-dropdown.is-open .cf-dd-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

/* ── Dropdown menu panel ── */
.cf-dd-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 200;
  background: #13151f;                     /* slightly lighter than bg-primary */
  border: 1px solid var(--accent);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  overflow: hidden;
  overflow-y: auto;
  max-height: 220px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.08);
  padding: 0.35rem 0;
  /* Custom scrollbar */
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.3) transparent;
}

.cf-dd-menu::-webkit-scrollbar { width: 4px; }
.cf-dd-menu::-webkit-scrollbar-track { background: transparent; }
.cf-dd-menu::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.3);
  border-radius: 4px;
}

.cf-dropdown.is-open .cf-dd-menu {
  display: block;
  animation: dd-slide-in 0.18s ease forwards;
}

@keyframes dd-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Option items ── */
.cf-dd-option {
  display: flex;
  align-items: center;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
}

.cf-dd-option::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  border-radius: 0 2px 2px 0;
  opacity: 0;
  transition: opacity 0.15s ease;
}

/* Keyboard focus highlight */
.cf-dd-option.is-focused {
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
}

/* Mouse hover */
.cf-dd-option:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-primary);
}

/* Selected option */
.cf-dd-option.is-selected {
  color: #a5b4fc;
  background: rgba(99, 102, 241, 0.08);
}

.cf-dd-option.is-selected::before {
  opacity: 1;
}

/* Selected + focused */
.cf-dd-option.is-selected.is-focused {
  background: rgba(99, 102, 241, 0.14);
}

/* ── Shake works on .cf-dropdown too ── */
.cf-dropdown.cf-shake {
  animation: cf-shake-anim 0.4s ease;
}

/* ============================================================
   CONTACT PAGE — layout & alignment tweaks
   ============================================================ */

/* Vertically centre the side panel next to the form */
.contact-layout {
  align-items: center;
}

/* Side panel: consistent gap between cards */
.cf-side-panel {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cf-side-panel .card + .card {
  margin-top: 0 !important;
}

/* Pill icon alignment */
.cf-inq-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.cf-inq-pill-icon {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Contact info icon — centre the SVG */
.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

/* Error state icon centering */
.cf-error-state > div:first-child {
  display: flex;
  justify-content: center;
}