/* ================================================================
   Ai6iX Main Layout & Section Styles
   ================================================================ */

/* ─── Reset & Base ─── */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: var(--leading-normal);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

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

ul, ol { list-style: none; }

/* ─── Container ─── */

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

/* ─── Section Base ─── */

.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ─── Dark section variants ─── */

.section-dark {
  background: var(--bg-deepest);
}

.section-mid {
  background: var(--bg-mid);
}

#approach {
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-deepest) 50%, var(--bg-dark) 100%);
  padding-top: 80px;
}

/* ─── NATO Navigation ─── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: all var(--ease-normal);
}

.nav.scrolled {
  background: rgba(5, 8, 16, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: var(--weight-black);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Mobile menu */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--ease-normal);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(5, 8, 16, 0.97);
  backdrop-filter: blur(24px);
  border-bottom: var(--border-subtle);
  padding: 24px;
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-link {
  display: block;
  padding: 14px 16px;
  font-size: var(--size-md);
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  border-radius: 10px;
  transition: all var(--ease-fast);
}

.nav-mobile-link:hover {
  background: var(--cyan-dark);
  color: var(--cyan);
}

.nav-mobile-cta {
  margin-top: 16px;
  text-align: center;
}

/* ─── Hero Section ─── */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

/* Canvas bg */
#particleCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glows */
.hero-glow-1 {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(139,92,246,0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-2 {
  position: absolute;
  top: 30%;
  right: -15%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,229,255,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: calc(100vh - var(--nav-height));
}

.hero-content { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 24px;
  padding: 8px 18px;
  background: var(--cyan-dark);
  border: var(--border-cyan);
  border-radius: 20px;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: neonPulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px var(--cyan);
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  font-weight: var(--weight-black);
  line-height: 1.08;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-headline .word-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-headline .word-glow {
  color: var(--cyan);
  text-shadow: 0 0 30px rgba(0,229,255,0.5);
}

.hero-sub {
  font-size: var(--size-md);
  color: var(--text-secondary);
  line-height: var(--leading-loose);
  margin-bottom: 40px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.7s ease 0.4s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
  animation: fadeInUp 0.7s ease 0.5s both;
}

.hero-trust-text {
  font-size: var(--size-xs);
  color: var(--text-muted);
  font-weight: var(--weight-medium);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-trust-divider {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,0.08);
}

.hero-trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-trust-num {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: var(--weight-black);
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-trust-label {
  font-size: 11px;
  color: var(--text-muted);
}

/* Hero visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  animation: fadeInRight 0.8s ease 0.3s both;
}

.hero-img-wrap {
  position: relative;
  animation: floatSlow 8s ease-in-out infinite;
}

.hero-img-wrap img {
  width: 100%;
  max-width: 520px;
  border-radius: 24px;
  border: 1px solid rgba(0,229,255,0.15);
  box-shadow: var(--shadow-hero-img);
}

.hero-img-badge {
  position: absolute;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  border: var(--border-cyan);
  border-radius: 14px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-glow-cyan);
}

.hero-badge-bottom {
  bottom: -20px;
  left: -30px;
  animation: float 5s ease-in-out infinite;
}

.hero-badge-top {
  top: -16px;
  right: -24px;
  animation: float 7s ease-in-out infinite 1s;
}

.hero-badge-icon {
  font-size: 24px;
}

.hero-badge-text strong {
  display: block;
  font-size: var(--size-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.hero-badge-text span {
  font-size: var(--size-xs);
  color: var(--text-muted);
}

/* ─── Partners Ticker ─── */

#partners {
  padding: 60px 0;
  background: var(--bg-dark);
  border-top: var(--border-subtle);
  border-bottom: var(--border-subtle);
  overflow: hidden;
  position: relative;
}

#partners::before, #partners::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

#partners::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-dark) 0%, transparent 100%);
}

#partners::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-dark) 0%, transparent 100%);
}

.partners-label {
  text-align: center;
  font-size: var(--size-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.ticker-wrapper {
  display: flex;
  overflow: hidden;
  width: 100%;
  padding: 10px 0;
  white-space: nowrap;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partners-track {
  display: flex;
  flex-shrink: 0;
  width: max-content;
  align-items: center;
  gap: 0; /* Gaps handled inside partner-logo for better loop consistency */
  animation: ticker 40s linear infinite;
  will-change: transform;
}

.ticker-wrapper:hover .partners-track {
  animation-play-state: paused;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding: 0 40px; /* Even spacing between logos */
  opacity: 0.5;
  transition: all var(--ease-normal);
  filter: grayscale(1) brightness(1.5);
}

.partner-logo:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
  transform: translateY(-2px);
}

.partner-logo img,
.partner-logo svg {
  height: 28px;
  width: auto;
  min-width: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Specific SVG color fixes for consistency on dark bg if needed */
.partner-logo svg path {
  fill: currentColor;
}

.partner-logo span {
  font-family: var(--font-display);
  font-size: var(--size-xs);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Solutions / Services ─── */

#solutions {
  background: var(--bg-deepest);
  padding-bottom: 80px;
}

.solutions-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: stretch;
}

@media (max-width: 1200px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

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

/* ─── Approach ─── */

#approach {
  background: var(--bg-dark);
}

.approach-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.approach-connector {
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), #10b981);
  opacity: 0.15;
  pointer-events: none;
}

.phase-visual-wrap {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,0.05);
  background: radial-gradient(circle at center, rgba(255,255,255,0.05) 0%, transparent 70%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phase-svg {
  width: 80%;
  height: 80%;
  color: var(--icon-color);
  transition: transform 0.6s var(--ease-bounce), filter 0.6s ease;
}

.phase-card:hover .phase-svg {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 0 20px var(--icon-color));
}

/* Hologram Title Label */
.hologram-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 180px;
  min-height: 60px;
  padding: 8px 12px;
  background: rgba(0, 229, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.6);
  box-shadow: inset 0 0 10px rgba(0, 229, 255, 0.1), 0 2px 15px rgba(0,0,0,0.3);
  text-align: center;
  line-height: 1.3;
  white-space: normal;
}

.hologram-title::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.5), transparent, rgba(0, 229, 255, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.phase-desc-centered {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  text-align: center;
  margin-bottom: 0;
}

/* Integration Connectors — dotted lines from bottom-center of each phase card */
.gov-connectors-glow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  width: 100%;
  height: 50px;
  pointer-events: none;
  margin-top: 0;
}

.gov-connectors-glow span {
  width: 0;
  height: 100%;
  border-left: 2px dashed rgba(0, 229, 255, 0.35);
  justify-self: center;
  opacity: 1;
}

/* Governance Ribbon — full width matching approach grid */
.governance-ribbon-wrap {
  width: 100%;
  margin-top: 0;
}

.gov-ribbon {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 12px;
  padding: 24px 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5), var(--shadow-glow-cyan-thin);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.gov-ribbon-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.gov-holo-label {
  margin-bottom: 0px !important;
  font-size: 15px;
  width: 100%;
  max-width: 900px;
}

.gov-ribbon-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 1024px) {
  .gov-ribbon {
    padding: 30px 24px;
  }
  .gov-connectors-glow {
    height: 30px;
  }
}

/* ─── Results / Stats ─── */

#results {
  background: var(--bg-deepest);
  overflow: hidden;
  position: relative;
}

.results-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 400px;
  border-radius: 50%;
  background: var(--grad-glow-purple);
  pointer-events: none;
  z-index: 0;
}

.stats-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

.compare-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--card-radius);
  overflow: hidden;
  margin-top: 60px;
  position: relative;
  z-index: 1;
}

.compare-header {
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: var(--weight-bold);
}

.compare-header-before {
  background: rgba(239,68,68,0.04);
  border-right: 1px solid rgba(255,255,255,0.06);
  border-bottom: var(--border-subtle);
  color: #ef4444;
}

.compare-header-after {
  background: var(--cyan-dark);
  border-bottom: var(--border-subtle);
  color: var(--cyan);
}

.compare-body {
  padding: 24px 32px 32px;
}

.compare-body-before {
  border-right: 1px solid rgba(255,255,255,0.06);
}

/* ─── Pricing ─── */

#pricing {
  background: var(--bg-mid);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

/* ─── Testimonials ─── */

#testimonials {
  background: var(--bg-deepest);
}

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

/* ─── About ─── */

#about {
  background: var(--bg-dark);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 80px;
  row-gap: 0;
  align-items: start;
}

.about-visual {
  position: relative;
  margin-top: 110px;
}

.about-img {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(0,229,255,0.15);
  box-shadow: var(--shadow-hero-img);
}

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
  grid-column: 1 / -1;
}

@media (max-width: 992px) {
  .about-pillars {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .about-pillars {
    grid-template-columns: 1fr;
  }
}

.pillar-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: all var(--ease-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: -1;
  transition: opacity var(--ease-normal), transform 0.6s ease;
  filter: grayscale(1) brightness(0.8) contrast(1.2);
}

.pillar-card:hover::before {
  opacity: 0.45;
  transform: scale(1.05);
  filter: grayscale(0.2) brightness(1.2) contrast(1.1);
}

.pillar-card:hover {
  border-color: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0,229,255,0.2);
}

/* Specific Watermark Backgrounds */
.pillar-purpose::before { background-image: url('../images/pillar-purpose.png'); }
.pillar-bespoke::before { background-image: url('../images/pillar-bespoke.png'); }
.pillar-impact::before { background-image: url('../images/pillar-impact.png'); }
.pillar-partnership::before { background-image: url('../images/pillar-partnership.png'); }

.pillar-title {
  font-size: var(--size-md);
  font-weight: 800;
  color: #ffffff !important;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
  position: relative;
  z-index: 2;
}

.pillar-desc {
  font-size: var(--size-sm);
  color: #ffffff !important;
  line-height: var(--leading-normal);
  text-shadow: 0 1px 3px rgba(0,0,0,0.9);
  position: relative;
  z-index: 2;
  opacity: 0.9;
}

/* AIOS Panel */
.aios-panel {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.aios-panel::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--grad-primary);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

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

.agent-card {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: all var(--ease-normal);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.agent-card:hover {
  border-color: rgba(0,229,255,0.2);
  transform: translateY(-3px);
}

.agent-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.agent-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--cyan-dark);
  border: var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.agent-name {
  font-family: var(--font-display);
  font-size: var(--size-lg);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
}

.agent-title {
  font-size: var(--size-xs);
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--weight-semibold);
}

.agent-bio {
  font-size: var(--size-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* Benefit Tiles Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.benefit-tile {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: all var(--ease-normal);
}

.benefit-tile:hover {
  border-color: rgba(139,92,246,0.3);
}

.benefit-title {
  font-size: var(--size-md);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.benefit-title::before {
  content: '';
  display: block;
  position: relative;
  z-index: 10;
  width: 26px;
  height: 26px;
  background-image: url('../images/ai6ix-logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  animation: spinClockwise 6s linear infinite;
  flex-shrink: 0;
}

@keyframes spinClockwise {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.benefit-desc {
  font-size: var(--size-sm);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
}

/* ─── Org Chart ─── */

.org-chart-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.org-chart-header {
  text-align: center;
  margin-bottom: 60px;
}

.org-chart-title {
  font-family: var(--font-display);
  font-size: var(--size-2xl);
  font-weight: var(--weight-bold);
  line-height: 1.2;
}

.org-chart-title .gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.org-chart-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  position: relative;
  width: 100%;
}

.org-level {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
}

.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  width: 140px;
}

.org-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid rgba(0, 229, 255, 0.5);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
  padding: 4px;
  background: var(--bg-card);
  margin-bottom: 12px;
  position: relative;
  z-index: 2;
  transition: all var(--ease-normal);
}

.org-node:hover .org-avatar {
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.6);
  border-color: var(--cyan);
  transform: scale(1.05);
}

.org-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.org-info {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 8px;
  width: 100%;
}

.org-name {
  font-size: 13px;
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 2px;
}

.org-role {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Level 1: CEO is horizontally centered by default */

.node-ceo::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 50%;
  width: 300px;
  height: 1px;
  background: rgba(0, 229, 255, 0.3);
  z-index: 1;
}

.node-ceo::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  width: 1px;
  height: 60px;
  background: rgba(0, 229, 255, 0.3);
  z-index: 1;
}

.node-nova {
  position: absolute;
  top: 0;
  left: calc(50% + 230px);
}

/* Level 2: Directors */
.level-2 {
  gap: 200px;
  padding-top: 20px;
}

.level-2::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 170px);
  width: 340px; 
  height: 1px;
  background: rgba(0, 229, 255, 0.3);
}

.level-2 .org-node::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 50%;
  width: 1px;
  height: 20px;
  background: rgba(0, 229, 255, 0.3);
}

.level-2::after {
  content: '';
  position: absolute;
  top: 56px;
  left: calc(50% - 100px);
  width: 200px;
  border-top: 2px dotted rgba(0, 229, 255, 0.4);
  z-index: 1;
  pointer-events: none;
}

/* Level 3: Agents */
.level-3 {
  gap: 20px;
  padding-top: 30px;
}

.level-3::before {
  content: '';
  position: absolute;
  top: 0;
  left: calc(50% - 480px);
  width: 960px;
  height: 1px;
  background: rgba(0, 229, 255, 0.3);
}

.level-3 .org-node::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  width: 1px;
  height: 30px;
  background: rgba(0, 229, 255, 0.3);
}

.level-3::after {
  content: '';
  position: absolute;
  top: -60px;
  left: calc(50% - 170px); 
  width: 1px;
  height: 60px;
  background: rgba(0, 229, 255, 0.3);
}

/* Leadership Council */
.org-council-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(0, 229, 255, 0.05));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  padding: 32px 40px;
  text-align: center;
  margin-top: 20px;
  width: 100%;
  max-width: 960px; /* same as level 3 line width for neatness */
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.15);
}

.council-title {
  font-family: var(--font-display);
  font-size: var(--size-xl);
  font-weight: var(--weight-bold);
  color: #fff;
  margin-bottom: 20px;
}

.council-detail {
  font-size: var(--size-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}
.council-detail:last-child {
  margin-bottom: 0;
}

/* ─── FAQ ─── */

#faq {
  background: var(--bg-deepest);
}

.faq-grid {
  max-width: 800px;
  margin: 0 auto;
}

/* ─── Contact ─── */

#contact {
  background: linear-gradient(135deg, #07091a 0%, #090520 50%, #06101e 100%);
  border-top: var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.contact-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(139,92,246,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--cyan-dark);
  border: var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-detail-label {
  font-size: var(--size-xs);
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-detail-value {
  font-size: var(--size-sm);
  font-weight: var(--weight-semibold);
  color: var(--text-primary);
}

.contact-form {
  background: var(--bg-card);
  border: var(--border-subtle);
  border-radius: var(--card-radius);
  padding: 40px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: var(--size-xs);
  font-weight: var(--weight-semibold);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: var(--size-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: all var(--ease-normal);
  outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(0,229,255,0.4);
  background: rgba(0,229,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.08);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-select {
  appearance: none;
  cursor: pointer;
}

.form-select option { background: var(--bg-card); }

/* ─── Footer ─── */

footer {
  background: var(--bg-deepest);
  border-top: var(--border-subtle);
  padding: 60px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: var(--size-sm);
  color: var(--text-muted);
  line-height: var(--leading-loose);
  margin-top: 16px;
  max-width: 300px;
}

.footer-col-title {
  font-size: var(--size-sm);
  font-weight: var(--weight-bold);
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: var(--size-sm);
  color: var(--text-muted);
  transition: color var(--ease-fast);
}

.footer-link:hover { color: var(--cyan); }

.footer-socials {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--bg-card);
  border: var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-muted);
  transition: all var(--ease-normal);
}

.social-btn:hover {
  background: var(--cyan-dark);
  border-color: rgba(0,229,255,0.3);
  color: var(--cyan);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 32px;
  border-top: var(--border-subtle);
  flex-wrap: wrap;
}

.footer-copy {
  font-size: var(--size-xs);
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: var(--size-xs);
  color: var(--text-muted);
  transition: color var(--ease-fast);
}
.footer-legal a:hover { color: var(--cyan); }

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .approach-grid  { grid-template-columns: repeat(3, 1fr); }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .pricing-grid   { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: scale(1); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner   { grid-template-columns: 1fr 1fr; }
  .about-inner    { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner  { grid-template-columns: 1fr; gap: 48px; }
  .approach-connector { display: none; }
}

@media (max-width: 768px) {
  :root {
    --section-pad-y: 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .hero-actions { justify-content: center; }
  .hero-trust   { justify-content: center; flex-wrap: wrap; }
  .hero-visual  { order: -1; }
  .hero-img-wrap img { max-width: 380px; margin: 0 auto; }

  .hero-badge-bottom { left: 0; bottom: -10px; }
  .hero-badge-top    { right: 0; top: -10px; }

  .solutions-grid { grid-template-columns: 1fr; gap: 40px; }
  .approach-grid  { grid-template-columns: repeat(2, 1fr); }
  .stats-grid     { grid-template-columns: 1fr 1fr; gap: 40px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .compare-wrap   { grid-template-columns: 1fr; }
  .compare-header-before { border-right: none; }
  .compare-body-before { border-right: none; border-bottom: var(--border-subtle); }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }

  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .floating-cta  { bottom: 16px; right: 16px; }
  .scroll-top    { bottom: 16px; left: 16px; }
}

@media (max-width: 480px) {
  .approach-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .about-pillars { grid-template-columns: 1fr; }
  .hero-trust    { flex-direction: column; gap: 12px; }
  .hero-trust-divider { display: none; }
  .partner-logo  { padding: 0 20px; }
}

/* ─── Additional Mobile Improvements ─── */

/* Hide complex connecting lines on mobile — org chart */
@media (max-width: 768px) {
  /* Governance connectors */
  .gov-connectors-glow { display: none; }

  /* Org chart — remove absolute-positioned tree lines */
  .node-ceo::before,
  .node-ceo::after,
  .level-2::before,
  .level-2::after,
  .level-3::before,
  .level-3::after,
  .level-2 .org-node::before,
  .level-3 .org-node::before { display: none !important; }

  /* Org chart layout — wrap and center */
  .org-chart-tree { gap: 32px; }
  .org-level { flex-wrap: wrap; gap: 16px; justify-content: center; }
  .level-2 { gap: 16px; padding-top: 0; }
  .level-3 { gap: 10px; padding-top: 0; }
  .node-nova { position: static; margin-top: 0; }
  .org-node { width: 110px; }
  .org-council-box { padding: 24px 16px; max-width: 100%; }

  /* Contact form — stack first/last name fields */
  .contact-form form > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  /* Contact form padding */
  .contact-form { padding: 24px 20px; }

  /* Section header spacing */
  .section-header { margin-bottom: 40px; }

  /* Pricing grid full width on mobile */
  .pricing-grid { max-width: 100%; }

  /* Ensure buttons are touch-friendly */
  .btn { min-height: 48px; }

  /* Cal modal height on mobile */
  #calModal > div { height: min(580px, 88vh); }
}

@media (max-width: 480px) {
  /* Hero — hide robot image on very small screens to focus on headline */
  .hero-visual { display: none; }
  .hero-inner  { min-height: auto; padding-top: 48px; padding-bottom: 60px; }

  /* Section title sizing */
  .section-title { font-size: clamp(26px, 7vw, 40px); }

  /* Hero headline */
  .hero-headline { font-size: clamp(34px, 9vw, 56px); }

  /* Org chart further simplified */
  .org-node { width: 95px; }
  .org-avatar { width: 56px; height: 56px; }

  /* Footer legal links wrap */
  .footer-legal { flex-wrap: wrap; gap: 12px; justify-content: center; }

  /* Approach grid single col */
  .approach-grid { grid-template-columns: 1fr; }

  /* Stats 2-col on small */
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* About pillars */
  .about-pillars { grid-template-columns: 1fr; }

  /* Hero trust */
  .hero-trust { flex-direction: column; gap: 12px; }
  .hero-trust-divider { display: none; }

  /* Ticker padding */
  .partner-logo { padding: 0 20px; }

  /* Testimonials - make cards readable */
  .testimonial-card { padding: 24px; }

  /* CTA Book button full-width on phone */
  .hero-actions .btn { width: 100%; justify-content: center; }
}
