:root {
  --primary: #0077C0;
  --secondary: #81CEFF;
  --dark: #00598E;
  --bg-dark: #ffffff;
  --bg-light: #f8fafc;
  --text-main: #1e293b;
  --text-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(0, 0, 0, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-padding-top: 80px;
}

html:has(body.admin-bar) {
  scroll-padding-top: 112px;
}

@media screen and (max-width: 782px) {
  html:has(body.admin-bar) {
    scroll-padding-top: 126px;
  }
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* WordPress: admin bar + fixed navbar (matches reference layout when logged in) */
body.admin-bar #navbar {
  top: 32px;
}

body.admin-bar .hero-section {
  padding-top: 112px;
}

@media screen and (max-width: 782px) {
  body.admin-bar #navbar {
    top: 46px;
  }

  body.admin-bar .hero-section {
    padding-top: 126px;
  }
}

.site-main--archive .container,
.site-main--singular .container {
  padding-top: 120px;
  padding-bottom: 4rem;
}

body.admin-bar .site-main--archive .container,
body.admin-bar .site-main--singular .container {
  padding-top: 152px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-main--archive .container,
  body.admin-bar .site-main--singular .container {
    padding-top: 166px;
  }
}

section[id] {
  scroll-margin-top: 80px;
}

body.admin-bar section[id] {
  scroll-margin-top: 112px;
}

@media screen and (max-width: 782px) {
  body.admin-bar section[id] {
    scroll-margin-top: 126px;
  }
}

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

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism Classes */
.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  color: var(--text-dark);
}

.glass-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

#nav-logo {
  height: 60px;
  width: auto;
}

.brand-name {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1.8rem;
  background: linear-gradient(135deg, var(--dark), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  opacity: 0.8;
  transition: var(--transition);
}

.nav-links a:hover {
  opacity: 1;
  color: var(--secondary);
}

.cta-button {
  display: inline-block;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary), var(--dark));
  color: white;
  border: none;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 119, 192, 0.3);
  transition: var(--transition);
}

.cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 119, 192, 0.5);
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.95) 30%, transparent 100%),
    var(--xytrion-hero-bg-image, none) no-repeat center center;
  background-size: cover;
}

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

h1 {
  font-family: var(--font-accent);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: #0c1e3a; /* Deep, high-contrast navy */
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), #004d7c); /* Richer blue gradient */
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 8px rgba(0, 119, 192, 0.15)); /* Adding subtle depth */
}

.hero-description {
  font-size: 1.4rem;
  color: #475569;
  margin-bottom: 3rem;
  max-width: 650px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

.btn {
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn.primary {
  background: var(--primary);
  color: white;
}

.btn.secondary {
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-dark);
  backdrop-filter: blur(5px);
}

.btn:hover {
  transform: translateY(-5px);
}

/* Info Sections */
.info-section {
  padding: 10rem 0;
}

.dark-bg {
  background-color: #f1f5f9;
}

.section-title {
  font-family: var(--font-accent);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 4rem;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  font-size: 1.25rem;
  color: #475569;
  max-width: 720px;
  line-height: 1.7;
  margin: -2rem auto 0;
}

.section-title.text-center + .section-subtitle {
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 2rem;
}

.grid.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.light-accent {
  background-color: #f8fafc;
}

.feature-card {
  padding: 2rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

.feature-card h4 {
  font-family: var(--font-accent);
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0c1e3a;
}

.feature-card p {
  color: #475569;
  font-size: 1rem;
  line-height: 1.7;
}

.grid {
  display: grid;
  gap: 2.5rem;
}

.cards {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card-icon {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1.2rem;
  background: linear-gradient(135deg, var(--primary), #004d7c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  background-color: rgba(0, 119, 192, 0.05); /* Soft blue background to sit behind the gradient text */
  width: fit-content;
  min-width: 70px;
  height: auto;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 119, 192, 0.1);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #0c1e3a; /* Deep navy used in hero headline */
  font-weight: 800;
}

.card p {
  color: #475569;
  font-size: 1.1rem;
}

/* Two Cols Grid for Protocols */
.two-cols {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
}

.feature-list li {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 15px;
}

.feature-list li::before {
  content: '→';
  color: var(--secondary);
  font-weight: 800;
}

.arch-diagram {
  padding: 3rem;
  border-radius: 30px;
  background: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
}

.full-arch-svg {
  width: 100%;
  height: auto;
  max-width: 500px;
}

.arch-node-main { stroke: white; stroke-width: 4; }
.arch-node-label { font-size: 14px; font-weight: 700; fill: var(--text-dark); }
.arch-flow-line { stroke: #cbd5e1; stroke-width: 2; }
.arch-flow-label { font-size: 10px; fill: #64748b; font-weight: 600; }
.arch-flow-label-bold { font-size: 12px; fill: var(--primary); font-weight: 800; }
.arch-flow-sublabel { font-size: 10px; fill: #94a3b8; }
.arch-node-box { stroke-width: 3; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.arch-node-title { font-size: 14px; font-weight: 800; fill: var(--primary); }
.arch-node-subtitle { font-size: 10px; fill: #64748b; }
.arch-flow-line-grpc { stroke: var(--primary); stroke-width: 3; stroke-linecap: round; }
.arch-node-box-cloud { filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1)); }
.arch-node-title-dark { font-size: 14px; font-weight: 800; fill: #1e293b; }
.arch-node-subtitle-dark { font-size: 10px; fill: #1e293b; opacity: 0.8; }
.arch-node-title-light { font-size: 14px; font-weight: 800; fill: white; }
.arch-node-subtitle-light { font-size: 10px; fill: white; opacity: 0.8; }

/* Architecture Table */
.table-wrapper {
  margin-top: 4rem;
  overflow-x: auto;
  border-radius: 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

th {
  background: rgba(0, 119, 192, 0.05); /* Soft brand blue wash */
  padding: 2rem;
  color: #0c1e3a; /* Deep high-contrast navy used in hero */
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1.5px;
  font-weight: 800;
  border-bottom: 2px solid rgba(0, 119, 192, 0.1);
}

td {
  padding: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 1.1rem;
  color: var(--text-dark);
}

/* Footer */
.site-footer,
footer {
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

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

.footer-address {
  color: #64748b;
  font-size: 0.9rem;
}

.footer-copy {
  margin: 0;
}

.footer-logo {
  font-family: var(--font-accent);
  font-weight: 800;
  font-size: 1.5rem;
}

/* E2E Diagram Styles */
.e2e-diagram-container {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
  margin-top: 3rem;
}

.e2e-svg { width: 100%; height: auto; }
.box-operator { stroke-dasharray: 5; }
.box-xytrion { stroke-width: 2; }
.box-xytrion-active { stroke-width: 3; }
.flow-line-dash { stroke: #94a3b8; stroke-width: 2; stroke-dasharray: 4; fill: none; }
.flow-line-grpc { stroke: var(--primary); stroke-width: 3; fill: none; }
.flow-line { stroke: #94a3b8; stroke-width: 2; fill: none; }
.title-bold { font-size: 14px; font-weight: 800; fill: #1e293b; }
.title-blue { font-size: 14px; font-weight: 800; fill: var(--primary); }
.title-primary { font-size: 14px; font-weight: 800; fill: var(--primary); }
.subtitle-grey { font-size: 10px; fill: #64748b; }
.txt-small { font-size: 11px; fill: #475569; }
.txt-tiny { font-size: 9px; fill: #64748b; }
.txt-tiny-bold { font-size: 10px; font-weight: 700; fill: #1e293b; }
.txt-micro { font-size: 8px; fill: #94a3b8; }
.lbl-protocol { font-size: 10px; fill: #64748b; font-weight: 600; }
.lbl-sub { font-size: 9px; fill: #94a3b8; }
.lbl-grpc { font-size: 10px; fill: var(--primary); font-weight: 700; }
.lbl-air { font-size: 10px; fill: var(--primary); font-weight: 700; }

.tech-diagram-container {
  margin-top: 3rem;
  padding: 3rem;
  background: white;
  border-radius: 30px;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.tech-svg {
  width: 100%;
  min-width: 900px;
  height: auto;
}

.tech-box-grey { fill: #f1f5f9; stroke: #cbd5e1; stroke-width: 1; }
.tech-txt-title { font-family: var(--font-accent); font-size: 14px; font-weight: 700; fill: #1e293b; }
.tech-txt-subtitle { font-size: 11px; fill: #64748b; font-weight: 500; }
.tech-txt-subtitle-bold { font-size: 14px; fill: #475569; font-weight: 800; }
.tech-txt-node { font-size: 12px; font-weight: 700; fill: #1e293b; pointer-events: none; }
.tech-txt-node-sm { font-size: 11px; font-weight: 600; fill: #1e293b; pointer-events: none; }
.tech-txt-label { font-size: 11px; fill: #94a3b8; font-weight: 800; }
.tech-txt-label-blue { font-size: 11px; fill: var(--primary); font-weight: 900; }

.tech-line-solid { stroke: #94a3b8; stroke-width: 2; fill: none; }
.tech-line-thin { stroke: #cbd5e1; stroke-width: 1.5; fill: none; }
.tech-line-blue { stroke: var(--primary); stroke-width: 2; fill: none; opacity: 0.7; }
.tech-line-blue-dash { stroke: var(--primary); stroke-width: 2; fill: none; stroke-dasharray: 6,3; }

.tech-node-stack { stroke-width: 1; stroke: #cbd5e1; }
.node-group:hover { filter: contrast(1.1); }

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
/* FAQ Section Styles */
.faq-list {
  margin-top: 3rem;
}

.faq-question {
  color: #0c1e3a;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.faq-answer p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.faq-sub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  background: rgba(0, 119, 192, 0.03);
  padding: 2rem;
  border-radius: 15px;
}

.faq-sub-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.faq-sub-item p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.faq-feature-list {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.faq-feature-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.5rem;
  color: #475569;
  line-height: 1.6;
}

.faq-feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 900;
  background: rgba(0, 119, 192, 0.1);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.8rem;
}

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

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delayed {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out 0.2s, transform 0.8s ease-out 0.2s;
}

.reveal-delayed.active {
  opacity: 1;
  transform: translateY(0);
}

/* Connectivity Step Styles */
.connectivity-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.conn-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: rgba(0, 119, 192, 0.05);
  border-radius: 12px;
  border-left: 4px solid var(--primary);
}

.step-num {
  background: var(--primary);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.step-content h4 {
  color: #0c1e3a;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 800;
}

.step-content p {
  font-size: 0.95rem;
  margin-bottom: 0;
  color: #475569;
}

/* Responsive */
@media (max-width: 968px) {
  h1 { font-size: 3rem; }
  .grid.two-cols { grid-template-columns: 1fr; }
  .grid.three-cols { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}

/* Skip link (accessibility) */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: var(--primary);
  display: block;
  font-size: 1rem;
  font-weight: 600;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 12px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100001;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
