/* VastarOrch — Sovereign BYOC AI & Workflow Orchestration Platform */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  
  /* Dark Mode Default */
  --page: #070b19;
  --surface: #0c1228;
  --surface-alt: #121b38;
  --card-bg: rgba(15, 23, 42, 0.7);
  --card-border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --secondary: #94a3b8;
  --muted: #64748b;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --emerald: #10b981;
  --accent: #38bdf8;
  --button-primary-bg: linear-gradient(135deg, #06b6d4, #3b82f6);
  --button-primary-text: #040814;
  --nav-bg: rgba(7, 11, 25, 0.88);
  --radius: 12px;
}

html.light {
  --page: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --text: #0f172a;
  --secondary: #475569;
  --muted: #64748b;
  --line: #e2e8f0;
  --cyan: #0284c7;
  --cyan-glow: rgba(2, 132, 199, 0.15);
  --blue: #2563eb;
  --violet: #7c3aed;
  --emerald: #059669;
  --accent: #0284c7;
  --button-primary-bg: linear-gradient(135deg, #0284c7, #2563eb);
  --button-primary-text: #ffffff;
  --nav-bg: rgba(248, 250, 252, 0.92);
}

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

html {
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--page);
  color: var(--text);
}

/* Background Gradients & Glows */
.bg-glow-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.glow-top {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 750px;
  height: 550px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.12) 0%, rgba(6, 182, 212, 0) 70%);
  filter: blur(80px);
}

html.light .glow-top {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, rgba(2, 132, 199, 0) 70%);
}

.glow-right {
  position: absolute;
  top: 35%;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(90px);
}

.glow-bottom {
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 9999px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(100px);
}

/* Container & Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p {
  color: var(--secondary);
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Gradient Text */
.gradient-text-orch {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-shield {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

html.light .nav-logo-img {
  filter: invert(1) hue-rotate(180deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--secondary);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
}

.nav-badge-almost {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: #06b6d4;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: 0.35rem;
}

html.light .nav-badge-almost {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: #0284c7;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Control Buttons (Theme, Lang, Mobile Menu) */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background-color: var(--surface-alt);
  border-color: var(--cyan);
}

.btn-icon svg {
  width: 18px;
  height: 18px;
}

/* Primary CTA Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  box-shadow: 0 4px 14px var(--cyan-glow);
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--cyan-glow);
  opacity: 0.95;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background-color: var(--surface);
  border: 1px solid var(--card-border);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--surface-alt);
  border-color: var(--cyan);
  color: var(--text);
}

.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--cyan);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-outline-cyan:hover {
  background: rgba(6, 182, 212, 0.16);
  border-color: var(--cyan);
}

/* Mobile Nav Drawer */
.mobile-nav-panel {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1.5rem;
  z-index: 49;
  flex-direction: column;
  gap: 1rem;
}

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

@media (min-width: 960px) {
  .mobile-toggle { display: none; }
}

@media (max-width: 959px) {
  .nav-links { display: none; }
}

/* Hero Section */
.hero-section {
  padding-top: 130px;
  padding-bottom: 70px;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan);
  margin-bottom: 1.5rem;
}

.hero-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  margin-bottom: 1rem;
  font-weight: 900;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 600;
  color: var(--text);
  max-width: 860px;
  margin: 0 auto 1.5rem auto;
}

.hero-description {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  max-width: 840px;
  margin: 0 auto 2rem auto;
  color: var(--secondary);
}

.hero-benchmark-box {
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  background: rgba(16, 185, 129, 0.08);
  font-size: 0.85rem;
  color: var(--emerald);
  text-align: center;
}

html.light .hero-benchmark-box {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

/* Feature Badges Grid */
.hero-badges-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 980px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-badges-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hero-badge-card {
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  backdrop-filter: blur(8px);
  text-align: center;
}

.hero-badge-card.highlight {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.05);
}

.hero-badge-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hero-badge-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Section Common */
.section {
  padding: 5rem 0;
  border-top: 1px solid var(--line);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3rem auto;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.section-desc {
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 840px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  padding: 1.75rem;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-2px);
}

.card-highlight {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 30px var(--cyan-glow);
  position: relative;
}

.card-badge-top {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--button-primary-bg);
  color: var(--button-primary-text);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: 9999px;
}

/* Tab Navigation (Workloads) */
.tab-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
  background-color: var(--surface-alt);
}

.tab-btn.active {
  background: rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.5);
  color: var(--cyan);
  box-shadow: 0 0 15px var(--cyan-glow);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.workload-card {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  padding: 2rem;
  backdrop-filter: blur(12px);
}

.usecase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 1rem;
}

@media (min-width: 640px) {
  .usecase-grid { grid-template-columns: repeat(2, 1fr); }
}

.usecase-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: 8px;
  background-color: var(--surface-alt);
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
}

.usecase-item svg {
  color: var(--cyan);
  margin-top: 2px;
  flex-shrink: 0;
}

/* BYOC Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.pricing-card.featured {
  border: 2px solid var(--cyan);
  box-shadow: 0 0 35px var(--cyan-glow);
}

.pricing-price-box {
  margin: 1.25rem 0;
  padding: 1rem;
  border-radius: 10px;
  background-color: var(--surface-alt);
  border: 1px solid var(--card-border);
}

.pricing-amount {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1.2;
}

.pricing-split {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.35rem;
}

.pricing-features {
  list-style: none;
  margin: 1.5rem 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.825rem;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-features li svg {
  color: var(--cyan);
  margin-top: 2px;
  flex-shrink: 0;
}

/* Platform Comparison Matrix Table */
.matrix-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  backdrop-filter: blur(12px);
  margin-top: 2rem;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.8rem;
}

.matrix-table th {
  padding: 1rem 1.25rem;
  background-color: var(--surface-alt);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.matrix-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.5;
}

.matrix-table tr:hover td {
  background-color: var(--surface-alt);
}

.matrix-col-vastar {
  background: rgba(6, 182, 212, 0.05);
  border-left: 1px solid rgba(6, 182, 212, 0.2);
  border-right: 1px solid rgba(6, 182, 212, 0.2);
}

.badge-score {
  display: inline-block;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.badge-score.first-class {
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.12);
}

.badge-score.supported {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
}

.badge-score.partial {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.12);
}

.badge-score.missing {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
}

/* Cloud Providers Grid */
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .provider-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 960px) {
  .provider-grid { grid-template-columns: repeat(4, 1fr); }
}

.provider-card {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background-color: var(--card-bg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all 0.2s ease;
}

.provider-card:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
}

.provider-logo-box {
  height: 40px;
  display: flex;
  align-items: center;
}

.provider-logo-img {
  max-height: 32px;
  max-width: 120px;
  object-fit: contain;
}

html.light .logo-on-light { display: inline-block; }
html.light .logo-on-dark { display: none; }
html:not(.light) .logo-on-light { display: none; }
html:not(.light) .logo-on-dark { display: inline-block; }

.provider-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.provider-tee-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(6, 182, 212, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.25);
  width: fit-content;
}

.provider-price {
  font-size: 0.8rem;
  color: var(--emerald);
  font-weight: 600;
}

/* YAML Code Block Showcase */
.yaml-container {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background-color: #070b19;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.yaml-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.yaml-code {
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: #cbd5e1;
  overflow-x: auto;
  max-height: 480px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
  padding: 4rem 0 2rem 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-col h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  color: var(--text);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--secondary);
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--muted);
}

/* Theme Toggle & Language Switcher Buttons */
.theme-toggle-btn, .lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--secondary);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.theme-toggle-btn:hover, .lang-switch-btn:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

/* Benchmark Banner */
.hero-benchmark-banner {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--text);
  font-size: 0.825rem;
  line-height: 1.5;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.15);
}

/* Matrix Column Peers */
.col-waas, .col-baaw {
  transition: opacity 0.2s ease;
}
