/* ===========================
   DESIGN TOKENS
=========================== */
:root {
  --bg-void:       #04070F;
  --bg-deep:       #080D1A;
  --bg-surface:    #0D1525;
  --bg-card:       #111C30;
  --bg-card-hover: #152237;
  --border:        rgba(0, 210, 255, 0.12);
  --border-strong: rgba(0, 210, 255, 0.25);

  --cyan:          #00D2FF;
  --cyan-dim:      #0099CC;
  --cyan-glow:     rgba(0, 210, 255, 0.15);
  --purple:        #9B6FFA;
  --purple-dim:    #6D3FC8;
  --green:         #00FF87;
  --green-dim:     rgba(0, 255, 135, 0.12);
  --red-alert:     #FF3D5A;
  --amber:         #FFB020;

  --text-primary:  #E8EFF8;
  --text-secondary:#8A9BB5;
  --text-muted:    #7486A0;

  --nav-height:    72px;
  --radius:        8px;
  --radius-lg:     16px;
  --transition:    0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Mirror overflow-x on html so the browser promotes the viewport — not body —
     as the scroll container. Without this, when body has overflow-x:hidden but
     html does not, Safari and mobile Chrome can position fixed elements against
     body's expanded scroll-width instead of the true viewport, causing the nav
     to render offset to the right on pages with large absolutely-positioned
     filtered elements (such as the hero orbs on the home page). */
  overflow-x: hidden;
}
body {
  font-family: 'Barlow', sans-serif, "Roboto";
  background-color: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===========================
   SCROLLBAR
=========================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 3px; }

/* ===========================
   TYPOGRAPHY HELPERS
=========================== */
.font-display { font-family: 'Roboto', sans-serif; }
.font-mono    { font-family: 'DM Mono', monospace; }
.font-cond    { font-family: 'Barlow Condensed', sans-serif; }

/* ===========================
   LAYOUT HELPERS
=========================== */
.container {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  margin: 0 auto;
  padding: 0;
}
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.1;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition),
    color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--cyan), #2F80FF);
  color: var(--bg-void);
  box-shadow: 0 10px 28px rgba(0, 210, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 210, 255, 0.26);
}
.btn-ghost {
  border: 1px solid rgba(0, 210, 255, 0.34);
  color: #DBEAFE;
  background: rgba(255, 255, 255, 0.025);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(0, 210, 255, 0.08);
  border-color: rgba(0, 210, 255, 0.58);
}
.btn-purple {
  background: linear-gradient(135deg, var(--purple), var(--purple-dim));
  color: #fff;
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.18);
}
.btn-purple:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(139, 92, 246, 0.26);
}
.btn-lg {
  padding: 13px 24px;
  font-size: 0.95rem;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.84rem;
}

/* ===========================
   PILL / BADGE
=========================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-family: 'Roboto', sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pill-cyan  { background: rgba(0, 210, 255, 0.1); border: 1px solid rgba(0,210,255,0.25); color: var(--cyan); }
.pill-green { background: rgba(0, 255, 135, 0.08); border: 1px solid rgba(0,255,135,0.2); color: var(--green); }
.pill-red   { background: rgba(255, 61, 90, 0.1); border: 1px solid rgba(255,61,90,0.25); color: var(--red-alert); }
.pill-amber { background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255,176,32,0.25); color: var(--amber); }
.pill-purple { background: rgba(155, 111, 250, 0.12); border: 1px solid rgba(155,111,250,0.35); color: var(--purple); }

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-anim 2s infinite;
}
@keyframes pulse-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ===========================
   SECTION LABELS
=========================== */
.section-eyebrow {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), rgba(155, 111, 250, 0.2));
}
.section-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}
.accent-cyan { color: var(--cyan); }
.accent-purple { color: var(--purple); }
.accent-green  { color: var(--green); }

/* ===========================
   NAV
=========================== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  /* Explicit properties only — transition:all can accidentally animate
     layout properties (width, height, padding) and interferes with any
     transform applied to child elements during page transitions */
  transition: background 0.4s ease,
              backdrop-filter 0.4s ease,
              -webkit-backdrop-filter 0.4s ease,
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}
#nav.scrolled {
  background: rgba(8, 13, 26, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 40px rgba(0,0,0,0.4);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(28px, 3vw, 48px);
  width: 100%;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Roboto', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
}
.nav-logo-icon {
  width: 40px; height: auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-icon svg { width: 100%; height: 100%; }
.nav-logo-name .brand-main { color: var(--text-primary); }
.nav-logo-name .brand-accent { color: var(--cyan); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
}
.nav-links a:hover { color: var(--text-primary); background: rgba(255,255,255,0.05); }
.nav-links a.active { color: var(--cyan); }

.nav-has-dropdown { 
    position: relative; 
    padding-bottom: 2px; /* bridge so cursor can move into dropdown */
  }
/* Invisible hover bridge so submenu doesn't collapse while mousing down */
.nav-has-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 2px;        /* bridge size */
}
.nav-has-dropdown > a::after {
  content: '▾';
  margin-left: 4px;
  font-size: 0.7rem;
  opacity: 0.6;
}
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: all 0.2s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.nav-has-dropdown:hover .nav-dropdown,
.nav-has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.nav-dropdown a:hover { background: var(--bg-card); color: var(--text-primary); }
.nav-dropdown a .dd-icon {
  width: 28px; height: 28px;
  background: var(--bg-card);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-left: auto;
  /* Reset native <button> chrome — prevents iOS Safari rendering a pill-shaped
     button background that clashes with the nav bar design */
  background: none;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  color: inherit;
  line-height: 1;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu — single source of truth for positioning, show/hide, and animation.
   The Header.astro scoped style block must NOT redeclare display, position,
   top, transform, or visibility — doing so creates a specificity conflict that
   prevents the CSS transition from firing and can mis-position the overlay. */
.mobile-menu {
  display: block;                        /* Always in the render tree so the
                                            transform transition has a start state */
  position: fixed;
  top: var(--nav-height);                /* Sits flush under the nav bar */
  left: 0;
  right: 0;
  bottom: 0;                             /* Fill the full viewport below the nav */
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;     /* Momentum scroll on iOS */
  background: #060A14;
  border-top: 1px solid rgba(0,210,255,0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  padding: 8px 0 40px;

  /* Hidden state: slide the panel up out of view */
  transform: translateY(-110%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0.35s; /* delay hides it only after slide finishes */
}
.mobile-menu.open {
  transform: translateY(0);             /* Slide down into view */
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0s linear 0s;  /* show immediately on open */
}
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--cyan); }
.mobile-menu .mobile-menu-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.mobile-menu .mobile-menu-actions .btn { flex: 1; justify-content: center; }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: auto;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
  contain: paint;
  background:
    radial-gradient(circle at 72% 34%, rgba(0, 210, 255, 0.15), transparent 34%),
    radial-gradient(circle at 18% 74%, rgba(155, 111, 250, 0.12), transparent 32%),
    linear-gradient(135deg, #07101E 0%, #050B16 58%, #02050B 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Grid background */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,210,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,210,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 40%, black 40%, transparent 100%);
}

/* Glow orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.75;
}
.hero-orb-1 {
  width: 620px;
  height: 620px;
  background: rgba(0, 210, 255, 0.07);
  top: -160px;
  right: -180px;
}
.hero-orb-2 {
  width: 540px;
  height: 540px;
  background: rgba(155, 111, 250, 0.075);
  bottom: -180px;
  left: -160px;
}
.hero-orb-3 {
  width: 320px;
  height: 320px;
  background: rgba(0, 210, 255, 0.045);
  top: 46%;
  left: 58%;
  transform: translate(-50%, -50%);
}

/* Scan lines */
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  animation: scan 8s linear infinite;
}
.scan-line:nth-child(2) { animation-delay: -4s; }
@keyframes scan {
  0%   { top: 0; opacity: 0; }
  5%   { opacity: 0.4; }
  95%  { opacity: 0.4; }
  100% { top: 100%; opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 980px;
  padding: clamp(72px, 9vw, 120px) 0 clamp(72px, 8vw, 104px);
}
.hero-left {
  max-width: 980px;
}
.hero-eyebrow {
  margin-bottom: 24px;
  animation: fadeUp 0.8s 0.1s both;
}
.hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(3.1rem, 7vw, 5.35rem);
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.055em;
  max-width: 980px;
  margin-bottom: 26px;
  text-wrap: balance;
  animation: fadeUp 0.8s 0.2s both;
}
.hero-title .line-break {
  display: inline;
}
.hero-desc {
  font-size: clamp(1.08rem, 1.35vw, 1.22rem);
  color: var(--text-secondary);
  line-height: 1.72;
  max-width: 720px;
  margin-bottom: 34px;
  animation: fadeUp 0.8s 0.3s both;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp 0.8s 0.4s both;
  margin-bottom: 56px;
}
.hero-trust {
  animation: fadeUp 0.8s 0.5s both;
}
.hero-trust-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: 'Roboto', sans-serif;
}
.hero-trust-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}
.trust-logo-item {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  transition: all var(--transition);
}
.trust-logo-item:hover { border-color: var(--border-strong); color: var(--text-secondary); }

/* Hero right - legacy visual hidden after move to text-led hero */
.hero-right {
  display: none;
}
.threat-dashboard {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,210,255,0.05);
  overflow: hidden;
}
.threat-dashboard::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--purple), transparent);
}
.td-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.td-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.td-dots { display: flex; gap: 6px; }
.td-dot { width: 8px; height: 8px; border-radius: 50%; }
.td-dot-r { background: #FF5F57; }
.td-dot-y { background: #FFBD2E; }
.td-dot-g { background: #28CA41; }

.td-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.td-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  text-align: center;
}
.td-stat-num {
  font-family: 'Roboto', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cyan);
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.td-stat-num.green { color: var(--green); }
.td-stat-num.purple { color: var(--purple); }
.td-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Roboto', sans-serif;
}

.td-threats {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.td-threat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  animation: threatIn 0.5s ease both;
}
.td-threat-item:nth-child(1) { animation-delay: 1.2s; }
.td-threat-item:nth-child(2) { animation-delay: 1.5s; }
.td-threat-item:nth-child(3) { animation-delay: 1.8s; }
@keyframes threatIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.td-threat-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.td-threat-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.td-threat-icon.critical { background: rgba(255,61,90,0.15); color: var(--red-alert); }
.td-threat-icon.warning  { background: rgba(255,176,32,0.15); color: var(--amber); }
.td-threat-icon.info     { background: rgba(0,210,255,0.1); color: var(--cyan); }
.td-threat-text { font-size: 0.8rem; color: var(--text-primary); font-weight: 500; }
.td-threat-sub  { font-size: 0.7rem; color: var(--text-muted); margin-top: 1px; font-family: 'DM Mono', monospace; }
.td-threat-status {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  text-transform: uppercase;
}
.status-blocked  { background: rgba(0,255,135,0.1); color: var(--green); border: 1px solid rgba(0,255,135,0.2); }
.status-active   { background: rgba(255,61,90,0.1);  color: var(--red-alert); border: 1px solid rgba(255,61,90,0.2); animation: blink 1.5s infinite; }
.status-analyzing{ background: rgba(255,176,32,0.1); color: var(--amber); border: 1px solid rgba(255,176,32,0.2); }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.5; }
}

.td-activity {
  font-family: 'DM Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  overflow: hidden;
  position: relative;
}
.td-activity-line { margin-bottom: 4px; }
.td-activity-line .ts { color: var(--cyan-dim); }
.td-activity-line .ok { color: var(--green); }
.td-activity-line .err{ color: var(--red-alert); }
.td-activity-line .warn { color: var(--amber); }
.td-cursor {
  display: inline-block;
  width: 6px; height: 12px;
  background: var(--cyan);
  animation: cursor-blink 1s infinite;
  vertical-align: text-bottom;
  margin-left: 4px;
}
@keyframes cursor-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ===========================
   STATS BAR
=========================== */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 16px; bottom: 16px;
  width: 1px;
  background: var(--border);
}
.stat-num {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 6px;
  display: block;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.stat-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'DM Mono', monospace;
}

/* ===========================
   FEATURES
=========================== */
.features { background: var(--bg-void); }
.features-header {
  text-align: left;
  margin-bottom: 64px;
}
.features-header .section-sub {
  margin: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.feature-card,
.wyg-card,
.related-page-chip {
  display: flex;
  flex-direction: column;
}

.feature-card .btn,
.wyg-card .btn {
  margin-top: auto !important;
  align-self: flex-start;
}

.feature-list {
  margin-top: 20px;
  margin-bottom: 0;
}

.feature-card {
  min-height: 100%;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018)),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: inherit;
  text-decoration: none;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -15%;
  right: -15%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--cyan-dim), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover,
.feature-card:focus-within {
  background:
    linear-gradient(180deg, rgba(0,210,255,0.045), rgba(255,255,255,0.018)),
    var(--bg-card-hover);
  border-color: rgba(0, 210, 255, 0.36);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.feature-card:hover::before,
.feature-card:focus-within::before { opacity: 1; }
.feature-card.fc-cyan,
.feature-card.fc-purple,
.feature-card.fc-green {
  --grad: linear-gradient(90deg, var(--cyan), var(--cyan-dim));
}

.usecases-grid,
.deliver-steps,
.hiw-steps,
.thanks-link-grid,
.thanks-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.contact-sidebar-grid {
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 0;
}

/* Design-system cleanup guard: no visual icons or numeric badges inside content cards. */
.feature-icon,
.hiw-step-num,
.deliver-step-num,
.contact-info-icon,
.thanks-step-num,
.sol-bullet-icon,
.wyg-icon {
  display: none !important;
}


.feature-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.feature-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}
.feature-icon-text {
  color: var(--purple);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}
.fi-cyan svg { color: var(--cyan); }
.fi-purple svg { color: var(--purple); }
.fi-cyan   { background: rgba(0,210,255,0.12); border: 1px solid rgba(0,210,255,0.2); }
.fi-purple { background: rgba(139,92,246,0.12); border: 1px solid rgba(139,92,246,0.2); }
.fi-green  { background: rgba(0,255,135,0.1); border: 1px solid rgba(0,255,135,0.15); }
.fi-amber  { background: rgba(255,176,32,0.1); border: 1px solid rgba(255,176,32,0.2); }
.fi-red    { background: rgba(255,61,90,0.1); border: 1px solid rgba(255,61,90,0.2); }
.fi-blue   { background: rgba(100,149,237,0.1); border: 1px solid rgba(100,149,237,0.2); }

.feature-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
  line-height: 1.25;
}
.feature-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  margin-bottom: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--text-secondary);
}
.feature-list li::before {
  content: '›';
  color: var(--cyan);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Feature hero card (wide) */
.feature-card.feature-wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
.fw-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.fw-pipeline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fw-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.78rem;
}
.fw-step-num {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--bg-void);
  border: 1px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  color: var(--cyan);
  flex-shrink: 0;
}
.fw-step-name { color: var(--text-primary); font-weight: 500; flex: 1; }
.fw-step-badge {
  font-family: 'DM Mono', monospace;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 4px;
}
.fwb-auto { background: rgba(0,255,135,0.1); color: var(--green); }
.fwb-ai   { background: rgba(0,210,255,0.1); color: var(--cyan); }
.fwb-ml   { background: rgba(139,92,246,0.1); color: var(--purple); }
.fw-arrow {
  text-align: center;
  color: var(--border-strong);
  font-size: 0.8rem;
  line-height: 1;
}

.products-grid {
  align-items: stretch;
}

.product-card {
  min-height: 100%;
}

.product-card .feature-list {
  margin-bottom: 24px;
}

.product-card .feature-desc strong {
  color: rgba(255,255,255,0.9);
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 24px;
  }
}

/* ===========================
   HOW IT WORKS
=========================== */
.hiw { background: var(--bg-deep); }
.hiw-header {
  text-align: left;
  margin-bottom: 64px;
}
.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.hiw-steps::before {
  content: '';
  position: absolute;
  top: 40px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
}
.hiw-step {
  text-align: center;
  padding: 24px 20px;
  position: relative;
}
.hiw-step-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  transition: all var(--transition);
}
.hiw-step:hover .hiw-step-num {
  border-color: var(--cyan);
  box-shadow: 0 0 24px rgba(0,210,255,0.3);
  background: rgba(0,210,255,0.08);
}
.hiw-step-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.hiw-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===========================
   SOLUTIONS / PRODUCTS
=========================== */
.solutions { background: var(--bg-void); }
.solutions-header { margin-bottom: 60px; }
.solutions-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.sol-tab {
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 24px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: -1px;
}
.sol-tab:hover { color: var(--text-secondary); }
.sol-tab.active { color: var(--cyan); border-bottom-color: var(--cyan); }
.sol-panel { display: none; }
.sol-panel.active { display: block; }
.sol-panel-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.sol-mobile-header { display: none; } /* shown only in the mobile breakpoint */
.sol-panel-left {}
.sol-panel-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.sol-panel-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 28px;
}
.sol-bullets {
  list-style: none;
  padding: 0;
  margin: 22px 0 32px;
  display: grid;
  gap: 12px;
}
.sol-bullet {
  position: relative;
  display: block;
  padding-left: 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.sol-bullet::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.55);
}
.sol-bullet span {
  display: block;
}
.sol-bullet strong {
  color: var(--text-primary);
}
.sol-bullet-icon {
  display: none !important;
}

.sol-panel-visual {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spv-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.spv-header-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.spv-body { padding: 20px; }
.spv-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.spv-metric-row:last-child { border-bottom: none; }
.spv-metric-name { color: var(--text-secondary); }
.spv-metric-val {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
}
.spv-metric-val.good { color: var(--green); }
.spv-metric-val.warn { color: var(--amber); }
.spv-metric-val.bad  { color: var(--red-alert); }
.spv-metric-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.spv-bar-track {
  flex: 1;
  height: 4px;
  background: var(--bg-deep);
  border-radius: 2px;
  overflow: hidden;
}
.spv-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--cyan-dim), var(--cyan));
  transition: width 1s ease;
}

/* ===========================
   PRICING
=========================== */
.pricing { background: var(--bg-deep); }
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
  transition: all var(--transition);
}
.pricing-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.pricing-card.featured {
  border-color: var(--cyan);
  background: linear-gradient(180deg, rgba(0,210,255,0.06) 0%, var(--bg-card) 40%);
  box-shadow: 0 0 40px rgba(0,210,255,0.1);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cyan);
  color: var(--bg-void);
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-tier {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pricing-name {
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
}
.pricing-price {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.pricing-amount {
  font-family: 'Roboto', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-amount sup { font-size: 1.2rem; vertical-align: super; }
.pricing-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.pricing-custom {
  font-family: 'Roboto', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--cyan);
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pf-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.pf-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.pf-check.yes { background: rgba(0,255,135,0.1); color: var(--green); border: 1px solid rgba(0,255,135,0.2); }
.pf-check.no  { background: rgba(255,255,255,0.04); color: var(--text-muted); border: 1px solid rgba(255,255,255,0.08); }

/* ===========================
   TESTIMONIALS
=========================== */
.testimonials { background: var(--bg-void); }
.testimonials-header { text-align: center; margin-bottom: 60px; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
.testimonial-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Roboto', sans-serif;
  font-size: 5rem;
  line-height: 1;
  color: rgba(0,210,255,0.08);
  font-weight: 700;
  pointer-events: none;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
  color: var(--amber);
  font-size: 0.85rem;
}
.testimonial-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-dim), var(--purple-dim));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-void);
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-primary);
}
.testimonial-role {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-family: 'DM Mono', monospace;
}

/* ===========================
   INTEGRATIONS
=========================== */
.integrations { background: var(--bg-surface); }
.integrations-header { text-align: center; margin-bottom: 52px; }
.int-logos-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
}
.int-logo-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.int-logo-chip:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}
.int-logo-chip .int-icon { font-size: 1rem; }
.int-count {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.int-count a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

/* ===========================
   CTA BANNER
=========================== */
.cta-banner {
  background: var(--bg-deep);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-banner-orb {
  position: absolute;
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, rgba(0,210,255,0.08), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-banner-inner {
  text-align: left;
  position: relative;
  z-index: 1;
}
.cta-banner-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.cta-banner-sub {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 40px;
  line-height: 1.7;
}
.cta-banner-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}
.cta-trust-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}
.cta-trust-note::before { content: '🔒'; font-size: 0.75rem; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg-void);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.footer-brand-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
  max-width: 260px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-social {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  background: rgba(0,210,255,0.05);
}



.footer-social-linkedin img {
  width: auto; /* Adjust this percentage to make the icon bigger or smaller */
  height: 30px; 
}

.footer-col-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}
.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--text-secondary); }
.footer-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--green);
  font-family: 'DM Mono', monospace;
}
.footer-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-anim 2s infinite;
}

/* ===========================
   SCROLL REVEAL
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ===========================
   DYNAMIC SECTION DIVIDER
=========================== */
.dynamic-line {
  height: 2px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 210, 255, 0.20),
    rgba(155, 111, 250, 0.30),
    transparent
  );
}

.dynamic-line::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 32%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 210, 255, 0.75),
    rgba(155, 111, 250, 0.75),
    transparent
  );
  animation: czLineFlow 8s linear infinite;
}

@keyframes czLineFlow {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(330%); }
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card.feature-wide { grid-column: span 2; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wyg-grid { grid-template-columns: repeat(2, 1fr); }
  .related-pages-grid { grid-template-columns: repeat(2, 1fr); }
  .page-hero-two-col { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .container {
    width: min(100% - 32px, 1180px);
    padding: 0;
  }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .hero-content {
    display: block;
    max-width: 100%;
    padding: 64px 0 72px;
  }
  .hero-right { display: none; }
  .hero-title {
    font-size: clamp(2.65rem, 13vw, 4rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
  }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }

  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(2) { border-right: none; }

  .features-grid { grid-template-columns: 1fr; }
  .feature-card.feature-wide { grid-column: span 1; grid-template-columns: 1fr; }
  .fw-visual { display: none; }

  .hiw-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hiw-steps::before {
    display: none;
  }

  .hiw-step {
    padding: 28px 22px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
  }

  .hiw-step-num {
    margin-bottom: 18px;
  }

  /* Solutions section becomes an accordion on mobile */
  .solutions-tabs { display: none; }
  .sol-panel {
    display: block;
    border-top: 1px solid var(--border);
  }
  .sol-panel:last-of-type { border-bottom: 1px solid var(--border); }
  .sol-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 4px;
    background: transparent;
    border: 0;
    color: var(--text-primary);
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: left;
    cursor: pointer;
    transition: color var(--transition);
  }
  .sol-panel.active .sol-mobile-header { color: var(--cyan); }
  .sol-mobile-chevron {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.25s ease, color var(--transition);
  }
  .sol-panel.active .sol-mobile-chevron {
    transform: rotate(180deg);
    color: var(--cyan);
  }
  .sol-panel-body { display: none; }
  .sol-panel.active .sol-panel-body {
    display: flex;
    flex-direction: column;
    gap: 32px;
    grid-template-columns: 1fr;
    padding: 8px 0 28px;
  }
  .sol-panel-visual { display: block; }

  .pricing-grid { grid-template-columns: 1fr; }

  .testimonials-grid { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand-desc { max-width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .cta-banner-actions { flex-direction: column; align-items: center; }
  .cta-banner-actions .btn { width: 100%; max-width: 320px; justify-content: center; }

  .section-title { font-size: 1.8rem; }

  .td-stat-label,
  .td-threat-sub,
  .td-activity-line,
  .breadcrumb,
  .pill,
  .nav-dropdown-label,
  .stat-label,
  .section-eyebrow,
  .wyg-title,
  .deliver-step-num {
    font-size: 0.75rem;
  }

  .hero-desc,
  .page-hero-desc,
  .section-sub {
    font-size: 1rem;      /* ensure no shrinkage below 16px */
  }

  /* Subpage grids */
  .wyg-grid { grid-template-columns: 1fr; }
  .deliver-steps { grid-template-columns: 1fr; }
  .outputs-list { grid-template-columns: 1fr; }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
  .related-pages-grid { grid-template-columns: repeat(2, 1fr); }
  .next-step-box { padding: 32px 20px; }
}

@media (max-width: 480px) {
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .hiw-steps { grid-template-columns: 1fr; }
  .hero-trust-logos { gap: 10px; }
  .trust-logo-item { font-size: 0.75rem; padding: 5px 12px; }
  .footer-main { grid-template-columns: 1fr; }
  .btn-sm { font-size: 0.875rem; }
  /* Subpage grids */
  .usecases-grid { grid-template-columns: 1fr; }
  .related-pages-grid { grid-template-columns: 1fr; }
}


/* ===========================
   SUBPAGE EXTRAS
=========================== */

/* Page hero (subpages) */
.page-hero {
  padding: calc(var(--nav-height) + 72px) 0 72px;
  position: relative;
  overflow: hidden;
  contain: paint;
  background:
    radial-gradient(circle at 72% 34%, rgba(0, 210, 255, 0.13), transparent 34%),
    radial-gradient(circle at 18% 74%, rgba(155, 111, 250, 0.10), transparent 32%),
    linear-gradient(135deg, #07101E 0%, #050B16 58%, #02050B 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.page-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,210,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,210,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 45%, black 38%, transparent 100%);
  pointer-events: none;
}
.page-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(105px);
  pointer-events: none;
  width: 560px;
  height: 460px;
  background: rgba(0, 210, 255, 0.065);
  top: -120px;
  right: -140px;
  opacity: 0.85;
}
.page-hero-orb::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 420px;
  border-radius: 50%;
  left: -58vw;
  top: 42vh;
  background: rgba(155, 111, 250, 0.07);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 980px;
}
.page-hero-eyebrow { margin-bottom: 20px; }
.page-hero-title {
  font-family: 'Roboto', sans-serif;
  font-size: clamp(2.35rem, 5vw, 4.1rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.page-hero-desc {
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
  color: var(--text-secondary);
  max-width: 720px;
  line-height: 1.75;
  margin-bottom: 36px;
}

/* ── Shared image styles ─────────────────────────────── */
.page-hero-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* ── Beside layout: image alongside text ─────────────── */
.page-hero-layout-beside {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: flex-start;
}
.page-hero-layout-beside .page-hero-text {
  flex: 1;
  min-width: 0;
}
.page-hero-layout-beside .page-hero-image {
  flex: 0 0 520px;
  max-width: 520px;
}
@media (max-width: 1100px) {
  .page-hero-layout-beside .page-hero-image {
    flex: 0 0 420px;
    max-width: 420px;
  }
}
@media (max-width: 900px) {
  .page-hero-layout-beside {
    flex-direction: column;
  }
  .page-hero-layout-beside .page-hero-image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }
}

/* ── Below layout: image under text ──────────────────── */
.page-hero-layout-below {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.page-hero-layout-below .page-hero-text {
  width: 100%;
}
.page-hero-layout-below .page-hero-image {
  width: 100%;
  max-width: 640px;
}

.page-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-family: 'DM Mono', monospace;
}
.breadcrumb a { color: var(--cyan); transition: opacity 0.2s; }
.breadcrumb a:hover { opacity: 0.8; }
.breadcrumb-sep { opacity: 0.4; }

/* What you get grid */
.wyg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.wyg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}
.wyg-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}
.wyg-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
  display: block;
}
.wyg-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.wyg-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* How we deliver steps */
.deliver-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.deliver-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: all var(--transition);
}
.deliver-step:hover { border-color: var(--border-strong); }
.deliver-step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--cyan);
  background: rgba(0,210,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Roboto', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cyan);
  flex-shrink: 0;
}
.deliver-step-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.deliver-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Outputs list */
.outputs-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.output-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.875rem;
}
.output-check {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(0,255,135,0.1);
  border: 1px solid rgba(0,255,135,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}
.output-text { color: var(--text-secondary); line-height: 1.5; }

/* Use cases */
.usecases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.usecase-chip {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.usecase-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.usecase-chip-label {
  font-family: 'Roboto', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

/* Next step CTA box */
.next-step-box {
  background: linear-gradient(135deg, rgba(0,210,255,0.06), rgba(139,92,246,0.06));
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: left;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
}
.next-step-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.next-step-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.next-step-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 620px;
  margin: 0 0 28px;
  line-height: 1.7;
}
.next-step-actions { display: flex; gap: 16px; justify-content: flex-start; flex-wrap: wrap; }

/* Navigation cross-links */
.page-nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  flex-wrap: wrap;
  gap: 16px;
}
.page-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.page-nav-link:hover { color: var(--cyan); }
.page-nav-link-arrow { color: var(--cyan); }

/* Related pages bar */
.related-pages {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 40px 0;
}
.related-pages-title {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.related-pages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.related-page-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.related-page-chip:hover {
  border-color: var(--border-strong);
  color: var(--cyan);
  transform: translateY(-2px);
}
.related-page-chip-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
}

/* SVG page visuals */
.page-visual-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.page-visual-wrap::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.page-visual-wrap img,
.page-visual-wrap svg {
  width: 100%;
  display: block;
}

/* Two-col hero layout */
.page-hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Responsive subpages */

/* ===========================
   CONTACT PAGE
=========================== */

/* ── Two-column layout ───────────────────────────────────────────────── */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

/* ── Form panel ──────────────────────────────────────────────────────── */
.contact-form-panel {
  min-width: 0; /* prevent grid blowout on narrow screens */
}

/* ── Form groups ──────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 22px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-required {
  color: var(--cyan);
  margin-left: 3px;
  font-weight: 600;
}

.form-optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.8em;
  margin-left: 5px;
}

/* ── Form controls (inputs, textarea, select) ─────────────────────────── */
.form-control {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: 'Barlow', sans-serif;
  font-size: 0.9375rem;
  padding: 11px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.form-control::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group.has-error .form-control {
  border-color: var(--red-alert);
}

.form-group.has-error .form-control:focus {
  box-shadow: 0 0 0 3px rgba(255, 61, 90, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.65;
}

/* Select arrow */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A9BB5' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}

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

/* ── Error messages ───────────────────────────────────────────────────── */
.form-error-msg {
  display: block;
  margin-top: 6px;
  font-size: 0.82rem;
  color: var(--red-alert);
  line-height: 1.4;
}

.form-hint {
  display: block;
  margin-top: 5px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Legend and privacy note ──────────────────────────────────────────── */
.form-legend {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.contact-privacy-note {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-privacy-note a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.contact-privacy-note a:hover {
  color: var(--cyan);
}

/* ── Submit button ────────────────────────────────────────────────────── */
.contact-submit {
  width: 100%;
  justify-content: center;
}

.contact-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ── Error banner ─────────────────────────────────────────────────────── */
.contact-error-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 61, 90, 0.08);
  border: 1px solid rgba(255, 61, 90, 0.25);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: rgba(255, 61, 90, 0.95);
  line-height: 1.5;
}

/* ── Success card ─────────────────────────────────────────────────────── */
.contact-success {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-success::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.contact-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--cyan);
}

.contact-success-title {
  font-family: 'Roboto', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.contact-success-body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto;
}

/* ── Sidebar info cards ───────────────────────────────────────────────── */
.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-top: 1px;
}

.contact-info-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info-body {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── Honeypot — must be completely invisible to real users ────────────── */
.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  tab-size: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-sidebar {
    order: -1; /* Info cards above the form on mobile */
  }
}

@media (max-width: 768px) {
  .contact-success {
    padding: 28px 20px;
  }

  .contact-info-card {
    padding: 22px 18px;
  }
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .dynamic-line::after {
    animation: none !important;
  }
}

section[id] {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

@media (max-width: 480px) {
  .hero-content {
    padding: 56px 0 64px;
  }

  .hero-title {
    font-size: clamp(2.45rem, 12vw, 3.25rem);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .page-hero-title,
  .hero-title {
    word-break: normal;
    overflow-wrap: break-word;
  }

  .section-title {
    overflow-wrap: break-word;
  }

  .btn.btn-lg {
    width: 100%;
    justify-content: center;
  }

  .hero-actions,
  .page-hero-actions,
  .cta-banner-actions {
    width: 100%;
  }
}

/* ===========================
   FINAL HOME PAGE HOW-WE-DELIVER MOBILE OVERRIDE
   Purpose: the home-page "How it works" cards use .wyg-grid, not .hiw-steps.
   This must appear after the base .wyg-grid definition so it wins the cascade.
=========================== */
@media (max-width: 1024px) {
  #how-we-deliver .wyg-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}