:root {
  --bg: #070b12;
  --bg-elevated: #0d121c;
  --bg-card: #111827;
  --bg-card-hover: #151f30;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f6fb;
  --text-muted: #9aa4b8;
  --text-dim: #6b7280;
  --accent: #22d3ee;
  --accent-dim: rgba(34, 211, 238, 0.12);
  --accent-glow: rgba(34, 211, 238, 0.35);
  --success: #34d399;
  --warning: #fbbf24;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-display: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1200px;
  --nav-h: 77px;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(100% - 80px, var(--container));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 18, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
  gap: 24px;
}

.logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.94rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: #041018;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(34, 211, 238, 0.08), transparent),
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(99, 102, 241, 0.06), transparent);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 14ch;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 42rem;
  margin: 0 0 40px;
}

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

/* Stats */
.stats {
  padding: 64px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin: 12px 0 0;
  max-width: 40rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 1rem;
  white-space: nowrap;
}

.link-arrow::after {
  content: "→";
}

/* Bento grid */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.2s, background 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}

.card-featured {
  grid-column: span 8;
  min-height: 400px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.card-featured .card-tag {
  position: absolute;
  top: 32px;
  left: 32px;
}

.card-featured .card-big-num {
  position: absolute;
  top: 32px;
  right: 32px;
  font-size: 4rem;
  font-weight: 700;
  opacity: 0.15;
  line-height: 1;
}

.card-sm {
  grid-column: span 4;
  min-height: 310px;
  display: flex;
  flex-direction: column;
}

.card-md {
  grid-column: span 4;
}

.card-wide {
  grid-column: span 8;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 20px;
}

.card-tag {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 6px;
  background: var(--accent-dim);
  border: 1px solid rgba(34, 211, 238, 0.25);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 16px;
}

.card-link {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
}

/* Precision section */
.precision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.precision h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 40px;
  letter-spacing: -0.02em;
}

.feature-item {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-item h4 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.feature-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gauge-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gauge {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg 354deg, var(--border) 354deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.gauge::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: var(--bg);
}

.gauge-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.gauge-value {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
}

.gauge-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 4px;
}

.float-chip {
  position: absolute;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.9);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--success);
}

.float-chip.top-right {
  top: 0;
  right: 0;
}

.float-chip.bottom-left {
  bottom: 20px;
  left: 0;
}

/* CTA */
.cta {
  margin: 80px auto;
  max-width: var(--container);
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.06), rgba(99, 102, 241, 0.04));
  text-align: center;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta p {
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 auto 32px;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 32px;
  background: var(--bg-elevated);
}

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

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 16px 0 24px;
  max-width: 20rem;
}

.footer-col h5 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin: 0 0 20px;
  color: var(--text-muted);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom .mono {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Table */
.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-card);
}

.data-table td {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.data-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
}

.status-badge.provisioning {
  background: rgba(251, 191, 36, 0.12);
  color: var(--warning);
}

.status-badge.beta {
  background: rgba(156, 163, 175, 0.12);
  color: var(--text-muted);
}

/* ISO comparison */
.iso-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 32px;
}

.iso-col {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.iso-col.future {
  background: var(--accent-dim);
  border-color: rgba(34, 211, 238, 0.2);
}

.iso-col h4 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: 1.125rem;
}

.iso-code {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent);
}

.iso-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.iso-col li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.iso-col li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Pipeline steps */
.pipeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  padding: 32px 0;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 56px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-strong);
}

.pipeline-step {
  text-align: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.1rem;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

.step-name {
  font-size: 0.85rem;
  margin-top: 4px;
}

/* Candidate profile */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.profile-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.score-bars .bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.score-bars .bar-label {
  width: 140px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.score-bars .bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.score-bars .bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.score-bars .bar-pct {
  width: 40px;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tag {
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}

.metric-card {
  text-align: center;
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.metric-card .value {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-card .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
}

.newsletter-form input::placeholder {
  color: var(--text-dim);
}

/* Page hero compact */
.page-hero {
  padding: 64px 0 48px;
}

.page-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
  max-width: 16ch;
}

.page-hero .hero-lead {
  margin-bottom: 0;
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.resource-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px;
}

.resource-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 24px;
  flex: 1;
}

.resource-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* About */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

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

.values-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.values-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.values-list li:last-child {
  border-bottom: none;
}

.values-list strong {
  color: var(--text);
}

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

.office-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.office-card h3 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.office-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.faq-list { max-width: 720px; }

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.domain-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.domain-card h4 { margin: 0 0 8px; font-size: 1.05rem; }

.domain-card p {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.domain-card .mono { font-size: 0.68rem; color: var(--text-dim); }

.service-block {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.coming-soon-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(251, 191, 36, 0.1);
  color: var(--warning);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

@media (max-width: 1024px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .office-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .expertise-domain-grid { grid-template-columns: 1fr; }
}

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

/* Mobile nav */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.25rem;
}

@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; }
  .card-featured, .card-sm, .card-md, .card-wide { grid-column: span 1; }
  .precision { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .iso-compare { grid-template-columns: 1fr; }
  .pipeline { flex-wrap: wrap; gap: 24px; }
  .pipeline::before { display: none; }
  .pipeline-step { flex: 0 0 calc(25% - 18px); }
}

@media (max-width: 768px) {
  .container { width: min(100% - 40px, var(--container)); }
  .nav-links, .nav-actions { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    padding: 24px;
    border-bottom: 1px solid var(--border);
  }
  .menu-toggle { display: block; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .metrics-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .pipeline-step { flex: 0 0 calc(50% - 12px); }
}
