@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

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

:root {
  --bg: #060a12;
  --surface: #0b1424;
  --card: #0f1d32;
  --card-2: #132040;
  --border: rgba(56, 178, 250, 0.12);
  --border-bright: rgba(56, 178, 250, 0.35);
  --primary: #38b2fa;
  --primary-dim: rgba(56, 178, 250, 0.15);
  --primary-glow: rgba(56, 178, 250, 0.3);
  --secondary: #818cf8;
  --secondary-dim: rgba(129, 140, 248, 0.15);
  --accent: #34d399;
  --accent-dim: rgba(52, 211, 153, 0.15);
  --warning: #f59e0b;
  --warning-dim: rgba(245, 158, 11, 0.15);
  --danger: #f87171;
  --text: #e8f0fe;
  --text-2: #8fafc7;
  --text-3: #4b6b8a;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(56, 178, 250, 0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 3px; }

/* ─── TYPOGRAPHY ─────────────────────────────────────────── */
h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 600; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-2); }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-green {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  height: 64px;
  background: rgba(6, 10, 18, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(6, 10, 18, 0.95);
  border-bottom-color: var(--border-bright);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 14px;
  color: white;
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.nav-brand-name {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-brand-tag {
  font-size: 0.65rem;
  color: var(--text-3);
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-left: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #000;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--primary-glow);
  text-decoration: none;
  color: #000;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}

.btn-outline:hover {
  background: var(--primary-dim);
  color: var(--primary);
  border-color: var(--primary);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  padding: 9px 16px;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--card);
  text-decoration: none;
}

/* ─── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  border: none;
  background: none;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: all 0.3s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(6, 10, 18, 0.98);
  z-index: 99;
  padding: 2rem;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
}

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

.mobile-nav a {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  text-decoration: none;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.mobile-nav a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-dim);
}

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(56, 178, 250, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 90%, rgba(129, 140, 248, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(52, 211, 153, 0.06) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 178, 250, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 178, 250, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ─── HERO NETWORK SVG ILLUSTRATION ──────────────────────────── */
.hero-network-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.52;
}

@media (max-width: 768px) {
  .hero-network-svg { opacity: 0.15; }
}

/* ─── PAGE HERO ENHANCEMENTS ──────────────────────────────────── */
.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.35;
}

/* ─── ENTITY GRAPH SVG (system architecture page) ────────────── */
.entity-graph-svg {
  width: 100%;
  max-width: 900px;
  margin: 0 auto 2.5rem;
  display: block;
  border-radius: var(--radius-lg);
  background: rgba(6, 10, 18, 0.6);
  border: 1px solid var(--border);
  padding: 1.5rem;
}

/* ─── ILLUSTRATION WRAPPERS ───────────────────────────────────── */
.section-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.section-illustration svg {
  max-width: 100%;
}

.hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-dim);
  border: 1px solid rgba(56, 178, 250, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 { margin-bottom: 1.5rem; }

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.hero-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  transition: all 0.3s;
}

.hero-stat:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-size: 0.78rem;
  color: var(--text-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── SECTIONS ────────────────────────────────────────────── */
section {
  padding: 6rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-header p {
  margin-top: 1rem;
  font-size: 1.05rem;
  max-width: 560px;
}

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-sm {
  padding: 1.5rem;
  border-radius: var(--radius);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.icon-primary { background: var(--primary-dim); }
.icon-secondary { background: var(--secondary-dim); }
.icon-accent { background: var(--accent-dim); }
.icon-warning { background: var(--warning-dim); }

/* ─── GRID LAYOUTS ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }

/* ─── DOC CARDS ────────────────────────────────────────────── */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.doc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s;
}

.doc-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  text-decoration: none;
}

.doc-card:hover::before { opacity: 1; }

.doc-card-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  width: fit-content;
}

.tag-investor { background: var(--warning-dim); color: var(--warning); }
.tag-market { background: var(--primary-dim); color: var(--primary); }
.tag-overview { background: var(--accent-dim); color: var(--accent); }
.tag-pm { background: var(--secondary-dim); color: var(--secondary); }
.tag-slides { background: rgba(244, 114, 182, 0.15); color: #f472b6; }
.tag-tech { background: rgba(251, 146, 60, 0.15); color: #fb923c; }
.tag-arch { background: rgba(99, 211, 211, 0.15); color: #67e8f9; }

.doc-card h3 { color: var(--text); font-size: 1.05rem; }
.doc-card p { font-size: 0.875rem; color: var(--text-2); }

.doc-card-arrow {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  opacity: 0.7;
  transition: all 0.2s;
}

.doc-card:hover .doc-card-arrow { opacity: 1; gap: 10px; }

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead {
  background: var(--card-2);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  vertical-align: top;
}

td:first-child { color: var(--text); font-weight: 500; }

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

tr:hover td { background: rgba(56, 178, 250, 0.03); }

/* ─── BADGES ───────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-primary { background: var(--primary-dim); color: var(--primary); }
.badge-secondary { background: var(--secondary-dim); color: var(--secondary); }
.badge-accent { background: var(--accent-dim); color: var(--accent); }
.badge-warning { background: var(--warning-dim); color: var(--warning); }
.badge-danger { background: rgba(248, 113, 113, 0.15); color: var(--danger); }

/* ─── STAT CARDS ───────────────────────────────────────────── */
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.stat-card:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 30px rgba(56, 178, 250, 0.1);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-sub {
  font-size: 0.75rem;
  color: var(--accent);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* ─── LAYER CARDS ─────────────────────────────────────────── */
.layer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: all 0.3s;
}

.layer-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.layer-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  flex-shrink: 0;
  margin-top: 2px;
}

.layer-body h4 { color: var(--text); margin-bottom: 0.4rem; font-size: 1rem; }
.layer-body p { color: var(--text-2); font-size: 0.875rem; }

/* ─── TIMELINE ────────────────────────────────────────────── */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: 0 0 2rem 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.625rem;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--primary-glow);
}

.timeline-phase {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.timeline-desc {
  font-size: 0.85rem;
  color: var(--text-2);
}

/* ─── COMPETITIVE TABLE ───────────────────────────────────── */
.check-yes { color: var(--accent); font-weight: 700; }
.check-no { color: var(--text-3); }
.check-partial { color: var(--warning); font-weight: 500; }
.tegi-row { background: rgba(56, 178, 250, 0.05) !important; }
.tegi-row td { color: var(--text) !important; font-weight: 600 !important; }
.tegi-row td:first-child { color: var(--primary) !important; }

/* ─── PROGRESS BARS ───────────────────────────────────────── */
.progress-bar-wrap {
  background: var(--surface);
  border-radius: 100px;
  height: 8px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.progress-bar {
  height: 100%;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 1.5s ease-in-out;
}

/* ─── MARKET CARD ─────────────────────────────────────────── */
.market-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.market-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--primary-dim);
  transform: translate(30%, 30%);
}

.market-card:hover {
  border-color: var(--border-bright);
  box-shadow: var(--shadow-glow);
}

.market-size-from { font-size: 1rem; color: var(--text-3); font-weight: 500; }
.market-arrow { font-size: 1rem; color: var(--text-3); margin: 0 0.4rem; }
.market-size-to { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.market-cagr {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.75rem;
}

/* ─── RISK BADGE ───────────────────────────────────────────── */
.risk-h { background: rgba(248, 113, 113, 0.15); color: var(--danger); }
.risk-m { background: var(--warning-dim); color: var(--warning); }
.risk-l { background: var(--accent-dim); color: var(--accent); }

/* ─── CODE BLOCK ───────────────────────────────────────────── */
.code-block {
  background: #000814;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.825rem;
  color: var(--accent);
  overflow-x: auto;
  line-height: 1.8;
}

.code-comment { color: var(--text-3); }
.code-key { color: var(--primary); }
.code-val { color: #fbbf24; }
.code-type { color: var(--secondary); }

/* ─── DIVIDER ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  margin: 4rem 0;
}

/* ─── FOOTER ───────────────────────────────────────────────── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
  text-align: center;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

.confidential-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--danger);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── PAGE HERO (doc pages) ───────────────────────────────── */
.page-hero {
  padding: 8rem 2rem 4rem;
  background: linear-gradient(180deg, rgba(56, 178, 250, 0.05) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.page-hero-inner {
  max-width: 800px;
  margin: 0 auto;
}

.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.breadcrumb a { color: var(--text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-3); }

/* ─── ANIMATIONS ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ─── CALLOUT ──────────────────────────────────────────────── */
.callout {
  background: var(--primary-dim);
  border: 1px solid rgba(56, 178, 250, 0.25);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: var(--text-2);
  font-size: 0.9rem;
}

.callout-warning {
  background: var(--warning-dim);
  border-color: rgba(245, 158, 11, 0.25);
  border-left-color: var(--warning);
}

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

/* ─── GANTT ────────────────────────────────────────────────── */
.gantt {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gantt-label {
  padding: 12px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: var(--card);
  display: flex;
  align-items: center;
}

.gantt-label:last-child, .gantt-row:last-child .gantt-label { border-bottom: none; }

.gantt-row {
  display: contents;
}

.gantt-bar-wrap {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  position: relative;
}

.gantt-bar {
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  position: absolute;
  min-width: 80px;
}

/* ─── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta .btn-outline { display: none; }
  .hamburger { display: flex; }

  section { padding: 4rem 1.25rem; }
  .hero { padding: 6rem 1.25rem 4rem; }
  .page-hero { padding: 6rem 1.25rem 3rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }

  .layer-card { flex-direction: column; }
  .gantt { grid-template-columns: 120px 1fr; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
