/* ==========================================================================
   ProtonisAI Design System — "Where AI is the Nucleus"
   ========================================================================== */

:root {
  --navy: #0B2545;
  --navy-mid: #102F56;
  --navy-deep: #071930;
  --teal: #1B9AAA;
  --teal-dark: #0E7490;
  --teal-light: #25B6C8;
  --teal-mint: #5EEAD4;
  --teal-soft: #E6F6F8;
  --slate: #475569;
  --slate-muted: #64748B;
  --slate-light: #94A3B8;
  --bg: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --white: #FFFFFF;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 12px 32px rgba(11, 37, 69, 0.08);
  --shadow-lg: 0 24px 60px rgba(7, 25, 48, 0.18);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --transition: 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
  font-family: var(--font-sans);
  color: var(--navy);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background: var(--white);
  overflow-wrap: break-word;
}

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

.hero-grid > *,
.flagship-box > *,
.contact-grid > *,
.arch-layout > *,
.role-content-grid > *,
.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.compare-grid > *,
.footer-grid > * {
  min-width: 0;
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Navigation & Header
   ========================================================================== */

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-desktop {
  display: block;
  height: 54px;
  width: auto;
  mix-blend-mode: multiply;
}

.logo-mobile {
  display: none;
  height: 46px;
  width: 46px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 2px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.desktop-nav a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 2px;
  position: relative;
  transition: color var(--transition);
}

.desktop-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition);
}

.desktop-nav a:not(.btn):hover,
.desktop-nav a:not(.btn).active {
  color: var(--teal);
}

.desktop-nav a:not(.btn):hover::after,
.desktop-nav a:not(.btn).active::after {
  transform: scaleX(1);
}

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

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}

.menu-toggle:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.mobile-drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--white);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer-links {
  display: grid;
  gap: 6px;
}

.mobile-drawer-links a {
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  transition: background var(--transition), color var(--transition);
}

.mobile-drawer-links a:hover,
.mobile-drawer-links a.active {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

.mobile-drawer-cta {
  margin-top: 14px;
  width: 100%;
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-sm {
  padding: 9px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy), #133B6B);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(11, 37, 69, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--teal), #14818F);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(27, 154, 170, 0.24);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(27, 154, 170, 0.25);
}

.btn-teal:hover {
  background: var(--teal-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  background: var(--teal-soft);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--teal-mint);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.badge-flagship {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: 18px;
}

/* ==========================================================================
   Hero & Page Headers
   ========================================================================== */

.hero {
  padding: 76px 0 92px;
  background:
    radial-gradient(circle at 84% 18%, rgba(27, 154, 170, 0.11), transparent 44%),
    radial-gradient(circle at 10% 78%, rgba(11, 37, 69, 0.05), transparent 38%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero {
  padding: 72px 0 68px;
  background:
    radial-gradient(circle at 86% 18%, rgba(27, 154, 170, 0.12), transparent 45%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border-bottom: 1px solid var(--border);
}

.page-hero-dark {
  padding: 76px 0 76px;
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 182, 200, 0.20), transparent 46%),
    linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: var(--white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 52px;
  align-items: center;
}

.hero h1,
.page-hero h1,
.page-hero-dark h1 {
  font-size: clamp(34px, 4.4vw, 50px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.hero h1 span,
.page-hero h1 span {
  background: linear-gradient(135deg, var(--teal), #0F766E);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero-dark h1 span {
  color: var(--teal-mint);
}

.hero-lead {
  font-size: 18px;
  color: var(--slate);
  max-width: 580px;
  margin-bottom: 32px;
}

.page-hero-dark .hero-lead {
  color: #CBD5E1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
}

.page-hero-dark .hero-metrics {
  border-top-color: rgba(255, 255, 255, 0.14);
}

.metric-val {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.page-hero-dark .metric-val {
  color: var(--teal-mint);
}

.metric-lbl {
  font-size: 13px;
  color: var(--slate);
}

.page-hero-dark .metric-lbl {
  color: #CBD5E1;
}

/* ==========================================================================
   Interactive Nucleus Core Card
   ========================================================================== */

.nucleus-card {
  background: var(--navy-deep);
  color: var(--white);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.nucleus-card::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(27, 154, 170, 0.35), transparent 70%);
  top: -70px;
  right: -70px;
  pointer-events: none;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.dots span:first-child {
  background: var(--teal);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--teal-mint);
  background: rgba(27, 154, 170, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
}

.nucleus-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px 0 14px;
  position: relative;
  z-index: 1;
}

.orbit-ring {
  width: 184px;
  height: 184px;
  border-radius: 50%;
  border: 1.5px dashed rgba(94, 234, 212, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 16px;
}

.core-sphere {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  box-shadow: 0 0 38px rgba(27, 154, 170, 0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.5px;
  animation: corePulse 4s ease-in-out infinite;
}

.core-sphere small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  opacity: 0.92;
}

@keyframes corePulse {
  0%, 100% {
    box-shadow: 0 0 30px rgba(27, 154, 170, 0.55);
  }
  50% {
    box-shadow: 0 0 46px rgba(94, 234, 212, 0.8);
  }
}

.node-tag {
  position: absolute;
  background: var(--navy-mid);
  border: 1px solid rgba(94, 234, 212, 0.35);
  color: #E2E8F0;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
}

.node-tag:hover,
.node-tag.active {
  background: var(--teal);
  border-color: var(--teal-mint);
  color: var(--white);
  transform: translateY(-2px);
}

.node-top { top: -14px; }
.node-left { left: -34px; bottom: 26px; }
.node-right { right: -30px; bottom: 26px; }

.node-hint {
  font-size: 12px;
  color: var(--slate-light);
  margin-bottom: 12px;
}

.stack-list {
  width: 100%;
  display: grid;
  gap: 10px;
  text-align: left;
  position: relative;
  z-index: 1;
}

.stack-item {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.stack-item span:last-child {
  color: var(--teal-mint);
  font-weight: 600;
  font-size: 12px;
  text-align: right;
}

.stack-telemetry {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(27, 154, 170, 0.18);
  border: 1px solid rgba(94, 234, 212, 0.28);
  font-size: 12.5px;
  color: #F0FDFA;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Sections & Cards
   ========================================================================== */

section {
  padding: 88px 0;
}

.section-subtle {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
}

.section-head p {
  font-size: 16px;
  color: var(--slate);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #CBD5E1;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  color: var(--slate);
}

/* Comparison strip */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  border: 1px solid var(--border);
}

.compare-legacy {
  background: var(--bg);
}

.compare-nucleus {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.1);
}

.compare-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
}

.compare-legacy .compare-title {
  color: var(--slate-muted);
}

.compare-nucleus .compare-title {
  color: var(--teal-mint);
}

.compare-list {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}

.compare-legacy .compare-list li {
  color: var(--slate);
}

.compare-nucleus .compare-list li {
  color: #E2E8F0;
}

/* ==========================================================================
   Flagship Product: ScholaRector Spotlight & Console
   ========================================================================== */

.flagship-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 46px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  box-shadow: 0 20px 45px rgba(11, 37, 69, 0.05);
}

.sr-brand-title {
  font-size: clamp(30px, 3.2vw, 38px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.sr-brand-title .schola {
  color: var(--navy);
}

.sr-brand-title .rector {
  color: var(--teal);
}

.sr-brand-sub {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}

.sr-desc {
  color: var(--slate);
  font-size: 16px;
  margin-bottom: 24px;
}

.feature-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 18px;
  margin-bottom: 28px;
}

.feature-checks div {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 8px;
}

.feature-checks div::before {
  content: "✓";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.sr-preview-panel {
  background: linear-gradient(145deg, var(--navy), #103563);
  color: var(--white);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--shadow-md);
}

.sr-panel-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-size: 13px;
  color: #CBD5E1;
}

.sr-live-badge {
  color: var(--teal-mint);
  font-weight: 700;
}

.tab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #CBD5E1;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-pill:hover,
.tab-pill.active {
  background: var(--teal);
  border-color: var(--teal-mint);
  color: var(--white);
}

.tab-pills-light .tab-pill {
  background: var(--bg-subtle);
  border-color: var(--border);
  color: var(--navy);
}

.tab-pills-light .tab-pill:hover,
.tab-pills-light .tab-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.sr-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.sr-kpi {
  background: rgba(255, 255, 255, 0.08);
  padding: 15px;
  border-radius: 12px;
}

.sr-kpi strong {
  display: block;
  font-size: 22px;
  color: var(--teal-mint);
  margin-bottom: 2px;
}

.sr-kpi span {
  font-size: 12px;
  color: #E2E8F0;
}

.sr-ai-note {
  background: rgba(27, 154, 170, 0.22);
  border: 1px solid rgba(94, 234, 212, 0.3);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: #F0FDFA;
}

/* Role Switcher Card */
.role-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

.role-content-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  margin-top: 22px;
}

.role-highlights {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.role-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.role-highlights li::before {
  content: "→";
  color: var(--teal);
  font-weight: 800;
}

.role-stat-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* ==========================================================================
   Architecture Stack Explorer (Solutions Page)
   ========================================================================== */

.arch-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 32px;
  align-items: start;
}

.arch-layers {
  display: grid;
  gap: 12px;
}

.arch-layer-btn {
  text-align: left;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.arch-layer-btn:hover,
.arch-layer-btn.active {
  border-color: var(--teal);
  background: var(--teal-soft);
  box-shadow: var(--shadow-sm);
}

.arch-layer-btn strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
}

.arch-layer-btn span {
  font-size: 13px;
  color: var(--slate);
}

.arch-layer-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal-dark);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.arch-detail-card {
  background: linear-gradient(145deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.arch-detail-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.arch-detail-card p {
  color: #CBD5E1;
  margin-bottom: 22px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-mint);
  background: rgba(27, 154, 170, 0.2);
  border: 1px solid rgba(94, 234, 212, 0.25);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ==========================================================================
   Contact Form & FAQ Accordion
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.contact-info-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.contact-info-card h3 {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 4px;
}

.contact-info-card p,
.contact-info-card a {
  font-size: 14.5px;
  color: var(--slate);
  text-decoration: none;
}

.contact-info-card a:hover {
  color: var(--teal);
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 7px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(27, 154, 170, 0.14);
}

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

.form-feedback {
  display: none;
  margin-top: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--teal-soft);
  border: 1px solid rgba(27, 154, 170, 0.35);
  color: var(--navy);
  font-size: 14px;
}

.form-feedback.visible {
  display: block;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 20px 24px;
  text-align: left;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}

.faq-trigger span:last-child {
  color: var(--teal);
  font-size: 20px;
  line-height: 1;
}

.faq-panel {
  display: none;
  padding: 0 24px 20px;
  color: var(--slate);
  font-size: 15px;
}

.faq-item.open .faq-panel {
  display: block;
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px 44px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.cta-banner-left {
  text-align: left;
  padding: 48px 44px;
}

.cta-banner h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  margin-bottom: 14px;
}

.cta-banner p {
  color: #CBD5E1;
  max-width: 620px;
  margin: 0 auto 30px;
  font-size: 16px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

footer {
  background: var(--navy-deep);
  color: var(--slate-light);
  padding: 60px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  max-width: 320px;
  color: var(--slate-light);
}

footer h4 {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.1px;
  margin-bottom: 16px;
}

footer ul {
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
}

footer ul a {
  color: var(--slate-light);
  text-decoration: none;
  transition: color var(--transition);
}

footer ul a:hover {
  color: var(--teal-mint);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}

/* Scroll reveal enhancement */
.reveal {
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-hidden {
  opacity: 0;
  transform: translateY(16px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .core-sphere {
    animation: none;
  }
  .reveal.is-hidden {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .nav-actions .btn { display: none; }
  .menu-toggle { display: inline-flex; }

  .hero-grid,
  .flagship-box,
  .compare-grid,
  .role-content-grid,
  .arch-layout,
  .contact-grid,
  .grid-3,
  .grid-4,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .flagship-box {
    padding: 32px 24px;
  }

  .node-left { left: -12px; }
  .node-right { right: -12px; }
}

@media (max-width: 768px) {
  .logo-desktop { height: 42px; }

  section {
    padding: 60px 0;
  }

  .hero {
    padding: 48px 0 60px;
  }

  .page-hero,
  .page-hero-dark {
    padding: 48px 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-checks,
  .form-row,
  .sr-kpis {
    grid-template-columns: 1fr;
  }

  .form-control {
    font-size: 16px;
  }

  .cta-banner,
  .cta-banner-left {
    padding: 36px 24px;
  }

  .mobile-drawer {
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }
}

@media (max-width: 640px) {
  .logo-desktop { display: none; }
  .logo-mobile { display: block; }

  .nav-inner {
    height: 70px;
  }

  .mobile-drawer {
    max-height: calc(100vh - 70px);
  }

  .btn {
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero h1,
  .page-hero h1,
  .page-hero-dark h1 {
    font-size: clamp(27px, 7.5vw, 34px);
  }

  .hero-lead {
    font-size: 16px;
    margin-bottom: 24px;
  }

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

  .nucleus-card,
  .flagship-box,
  .form-card,
  .role-panel,
  .arch-detail-card,
  .sr-preview-panel,
  .card,
  .compare-card,
  .cta-banner,
  .cta-banner-left {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .orbit-ring {
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
  }

  .core-sphere {
    order: -1;
    margin-bottom: 8px;
  }

  .node-tag {
    position: static;
    width: 100%;
    text-align: center;
    padding: 9px 12px;
    white-space: normal;
  }

  .stack-item {
    flex-wrap: wrap;
    gap: 4px 12px;
  }

  .stack-item span:last-child {
    text-align: left;
  }

  .faq-trigger {
    padding: 16px 18px;
    font-size: 15px;
  }

  .faq-panel {
    padding: 0 18px 18px;
  }
}
