:root {
  --stt-red: #e31937;
  --stt-red-deep: #c91430;
  --stt-orange: #f97316;
  --stt-orange-soft: #ffb267;
  --bg-page: #ffffff;
  --bg-alt: #f5f5f5;
  --bg-soft: #f8f8fa;
  --bg-dark: #1a1a2e;
  --text: #333333;
  --text-muted: #5f6570;
  --text-light: #e0e0e0;
  --line: rgba(26, 26, 46, 0.1);
  --line-strong: rgba(26, 26, 46, 0.16);
  --shadow-card: 0 22px 56px rgba(26, 26, 46, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(227, 25, 55, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfc 100%);
  color: var(--text);
}

h1,
h2,
h3 {
  font-family: "IBM Plex Serif", serif;
  letter-spacing: -0.03em;
}

#site-shell {
  background: var(--bg-page);
}

.gate-shell {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at top, rgba(227, 25, 55, 0.08), transparent 26%),
    linear-gradient(180deg, #f4f4f6 0%, #eceef2 100%);
}

.gate-panel {
  width: min(100%, 34rem);
  padding: 2.75rem;
  border: 1px solid rgba(26, 26, 46, 0.08);
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 70px rgba(26, 26, 46, 0.12);
}

.gate-kicker,
.eyebrow {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stt-red);
}

.gate-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1;
  color: var(--bg-dark);
}

.gate-copy {
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.85;
}

.hero-grid {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(135deg, rgba(227, 25, 55, 0.24), rgba(249, 115, 22, 0.12) 38%, rgba(26, 26, 46, 0) 60%),
    radial-gradient(circle at 80% 0%, rgba(255, 178, 103, 0.18), transparent 20%),
    linear-gradient(180deg, #151526 0%, #1a1a2e 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 40%),
    radial-gradient(circle at 18% 16%, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at 85% 10%, rgba(249, 115, 22, 0.16), transparent 22%);
  pointer-events: none;
}

#site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(26, 26, 46, 0.08);
}

.brand-lockup {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 26px;
  width: auto;
}

.nav-links {
  margin-top: 1rem;
}

.nav-link {
  position: relative;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(51, 51, 51, 0.72);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--stt-red);
}

.nav-link.active {
  color: var(--stt-red);
  font-weight: 700;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5rem;
  height: 2.5px;
  background: var(--stt-red);
  border-radius: 2px;
}

.hero-title {
  margin-top: 1.25rem;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.96;
  color: #ffffff;
}

.hero-subtitle {
  margin-top: 1.5rem;
  max-width: 48rem;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
}

.hero-copy {
  margin-top: 1.5rem;
  max-width: 46rem;
  font-size: 1.05rem;
  line-height: 1.95;
  color: rgba(224, 224, 224, 0.9);
}

.stat-card,
.insight-card,
.panel,
.pillar-card,
.avoid-card,
.telco-tier {
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-card);
}

.stat-card,
.insight-card {
  padding: 1.1rem 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 250, 0.98)),
    #ffffff;
}

.stat-value {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--bg-dark);
}

.stat-label,
.insight-copy {
  margin-top: 0.75rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.insight-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stt-orange);
}

.section-shell {
  width: min(100%, 80rem);
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

main section:nth-of-type(odd) {
  background: var(--bg-page);
}

main section:nth-of-type(even) {
  background: var(--bg-alt);
}

.section-head {
  max-width: none;
  margin-bottom: 2rem;
}

.section-title {
  margin-top: 0.85rem;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.02;
  color: var(--bg-dark);
}

.section-intro {
  margin-top: 1rem;
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-muted);
}

.panel,
.pillar-card,
.avoid-card,
.telco-tier {
  padding: 1.7rem;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.98)),
    #ffffff;
}

.pillar-card h3,
.avoid-card h3,
.telco-tier h3 {
  margin-top: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--bg-dark);
}

.pillar-card p:last-child,
.avoid-card p:last-child,
.telco-tier p:last-child {
  margin-top: 1rem;
  line-height: 1.85;
  color: var(--text-muted);
}

.pillar-number {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stt-red);
}

.telco-shell {
  position: relative;
}

.telco-shell::before {
  content: "";
  position: absolute;
  inset: 4rem 1rem auto 1rem;
  height: 26rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 18% 28%, rgba(227, 25, 55, 0.1), transparent 18%),
    radial-gradient(circle at 72% 35%, rgba(249, 115, 22, 0.12), transparent 16%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.65), rgba(255, 255, 255, 0));
  filter: blur(10px);
  pointer-events: none;
  z-index: -1;
}

.telco-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.comparison-table {
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
  background: var(--bg-soft);
}

.comparison-head,
.comparison-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.comparison-head {
  background: linear-gradient(90deg, rgba(100, 100, 120, 0.08), rgba(100, 100, 120, 0.04));
}

.comparison-head span {
  padding: 1rem 1.1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--bg-dark);
}

.comparison-row + .comparison-row {
  border-top: 1px solid var(--line);
}

.comparison-row p:first-child {
  padding: 1rem 1.1rem;
  line-height: 1.75;
  color: #888;
}

.comparison-row p:last-child {
  padding: 1rem 1.1rem;
  line-height: 1.75;
  color: var(--bg-dark);
  font-weight: 500;
  background: rgba(227, 25, 55, 0.03);
}

.comparison-row p + p,
.comparison-head span + span {
  border-left: 2px solid var(--stt-red);
  border-left-style: solid;
}

.comparison-head span:last-child {
  color: var(--stt-red);
}

.tier-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stt-red);
}

.avoid-card {
  min-height: 100%;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--stt-red);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(227, 25, 55, 0.3);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--stt-red);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(227, 25, 55, 0.3);
}

canvas {
  margin-top: 1.25rem;
  max-width: 100%;
  max-height: 300px;
}

.arch-cards {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .arch-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .arch-cards .panel {
    display: flex;
    flex-direction: column;
  }
  .arch-cards .panel .arch-img {
    margin-top: auto;
    padding-top: 1.25rem;
  }
}

.arch-img img {
  background: #f0f0f2;
  border: 1px solid rgba(26, 26, 46, 0.06);
}

.site-footer {
  background:
    linear-gradient(135deg, rgba(227, 25, 55, 0.12), rgba(26, 26, 46, 0) 32%),
    var(--bg-dark);
}

#macro .space-y-6,
#telco .text-slate-300,
#telco .text-slate-400,
#quantum .space-y-6,
#thesis .space-y-6,
#summary .text-slate-300,
#summary .text-slate-400,
.panel .text-slate-300,
.panel .text-slate-400 {
  color: var(--text-muted) !important;
}

#macro .text-white,
#sectors .text-white,
#telco .text-white,
#quantum .text-white,
#avoid .text-white,
#thesis .text-white,
.panel .text-white {
  color: var(--bg-dark) !important;
}

#macro .text-cyan\/70,
#telco .text-cyan\/70,
#thesis .text-cyan\/70 {
  color: rgba(227, 25, 55, 0.82) !important;
}

#telco .text-mint\/70,
#telco .text-amber-300\/80,
#quantum .text-amber-300\/80 {
  color: rgba(249, 115, 22, 0.9) !important;
}

@media (min-width: 1024px) {
  .telco-hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }

  .nav-links {
    margin-top: 0;
  }
}

@media (max-width: 1023px) {
  .nav-links.open {
    display: flex;
    width: 100%;
    padding-top: 1rem;
  }
}

@media (max-width: 767px) {
  .gate-panel {
    padding: 1.5rem;
  }

  .section-shell {
    padding-top: 4.25rem;
    padding-bottom: 4.25rem;
  }

  .comparison-head,
  .comparison-row {
    grid-template-columns: 1fr;
  }

  .comparison-row p + p,
  .comparison-head span + span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .brand-logo {
    height: 22px;
  }
}
