/* ===== ENDOSCOPIE.CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Outfit:wght@300;400;500;600;700&family=Roboto+Mono:wght@300;400;500&display=swap');

:root {
  --bg:        #0d0800;
  --deep:      #130a00;
  --panel:     #1c1000;
  --card:      #221400;
  --amber:     #e67e22;
  --amber-light:#f39c12;
  --amber-pale: rgba(230,126,34,0.12);
  --orange:    #e44d10;
  --gold:      #f4c430;
  --text:      #f5e6d0;
  --muted:     #8a6a4a;
  --border:    rgba(230,126,34,0.2);
  --border-s:  rgba(255,255,255,0.06);
  --green:     #2ecc71;
  --red:       #e74c3c;
  --font-head: 'Libre Baskerville', serif;
  --font-body: 'Outfit', sans-serif;
  --font-mono: 'Roboto Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* Radial glow from center */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(230,126,34,0.06) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}

#progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--gold));
  width: 0%; z-index: 200;
  box-shadow: 0 0 10px var(--amber);
  transition: width .1s;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3rem;
  background: rgba(13,8,0,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-id {
  display: flex; align-items: center; gap: .8rem;
  text-decoration: none;
}
.nav-scope {
  width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle at center, var(--amber) 0%, var(--orange) 60%, transparent 100%);
  opacity: .85;
}
.nav-name {
  font-family: var(--font-head); font-size: 1rem; font-style: italic;
  color: var(--text); letter-spacing: .02em;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-family: var(--font-mono); font-size: .72rem;
  color: var(--muted); text-decoration: none;
  letter-spacing: .08em; transition: color .2s;
}
.nav-links a:hover { color: var(--amber-light); }

.nav-badge {
  font-family: var(--font-mono); font-size: .68rem;
  color: var(--amber); background: var(--amber-pale);
  border: 1px solid var(--border); padding: .28rem .75rem; border-radius: 100px;
}

/* ── HERO ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 4rem;
  padding: 8rem 3rem 4rem;
  overflow: hidden;
}

/* Tunnel visual */
.tunnel-visual {
  display: flex; justify-content: center; align-items: center;
}
.tunnel-svg { width: 100%; max-width: 360px; }

.hero-tag {
  font-family: var(--font-mono); font-size: .7rem; color: var(--amber);
  letter-spacing: .2em; text-transform: uppercase;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: .7rem;
}
.hero-tag::before { content: ''; width: 24px; height: 1px; background: var(--amber); }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 700; line-height: 1.05; letter-spacing: -.01em;
  color: var(--text); margin-bottom: 1.2rem;
}
.hero h1 em { font-style: italic; color: var(--amber-light); }

.hero-desc {
  font-size: .95rem; color: var(--muted);
  max-width: 460px; line-height: 1.85; margin-bottom: 2.5rem; font-weight: 300;
}

.hero-kpis { display: flex; gap: 2.5rem; flex-wrap: wrap; }
.kpi { display: flex; flex-direction: column; }
.kpi-n {
  font-family: var(--font-head); font-size: 2rem; font-weight: 700;
  color: var(--amber); line-height: 1;
}
.kpi-l { font-family: var(--font-mono); font-size: .65rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: .3rem; }

/* ── BAND ── */
.band {
  background: linear-gradient(135deg, #1c1000, #2a1800);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 3rem;
}
.band-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center;
}
.band-n {
  font-family: var(--font-head); font-size: 2.6rem; font-weight: 700;
  color: var(--amber-light); line-height: 1;
}
.band-l { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

/* ── SEC ── */
.sec { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 5rem 3rem; }

.shead { display: flex; align-items: center; gap: 1rem; margin-bottom: 3rem; }
.shead-num { font-family: var(--font-mono); font-size: .7rem; color: var(--amber); letter-spacing: .18em; flex-shrink: 0; }
.shead-title { font-family: var(--font-head); font-size: clamp(1.5rem, 2.8vw, 2.3rem); font-weight: 700; font-style: italic; }
.shead-line { flex: 1; height: 1px; background: var(--border); margin-left: .8rem; }

/* ── TYPES CARDS ── */
.types-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5px; background: var(--border); border: 1px solid var(--border);
}
.type-card {
  background: var(--card); padding: 2rem;
  transition: background .25s; position: relative; overflow: hidden;
}
.type-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 3px; height: 0; background: var(--amber);
  transition: height .4s;
}
.type-card:hover::before { height: 100%; }
.type-card:hover { background: var(--panel); }

.type-icon { font-size: 1.8rem; margin-bottom: .8rem; }
.type-code { font-family: var(--font-mono); font-size: .65rem; color: var(--amber); letter-spacing: .18em; text-transform: uppercase; margin-bottom: .5rem; }
.type-name { font-family: var(--font-head); font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.type-desc { font-size: .86rem; color: var(--muted); line-height: 1.75; }
.type-meta { margin-top: 1rem; font-family: var(--font-mono); font-size: .7rem; color: var(--amber); }

/* ── TABLE ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
thead { background: var(--panel); }
th {
  font-family: var(--font-mono); font-size: .67rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber);
  padding: .9rem 1.2rem; text-align: left; border-bottom: 1px solid var(--border);
}
td { padding: .9rem 1.2rem; border-bottom: 1px solid rgba(230,126,34,.07); color: var(--text); vertical-align: top; }
tr:hover td { background: var(--amber-pale); }
tr:last-child td { border-bottom: none; }

.tag {
  font-family: var(--font-mono); font-size: .63rem; padding: .18rem .55rem;
  border-radius: 2px; letter-spacing: .06em; text-transform: uppercase;
}
.tag-ok  { background: rgba(46,204,113,.12); color: var(--green); border: 1px solid rgba(46,204,113,.25); }
.tag-care{ background: rgba(230,126,34,.12); color: var(--amber-light); border: 1px solid var(--border); }
.tag-ci  { background: rgba(231,76,60,.12);  color: var(--red); border: 1px solid rgba(231,76,60,.25); }

/* ── PREP STEPS ── */
.prep-steps { display: flex; flex-direction: column; gap: .8rem; margin-top: 2rem; }
.prep-step {
  background: var(--card); border: 1px solid var(--border);
  padding: 1.4rem 1.6rem;
  display: grid; grid-template-columns: 44px 1fr;
  gap: 1.2rem; align-items: start;
  transition: border-color .25s;
  opacity: 0; transform: translateX(-12px);
  transition: opacity .5s, transform .5s, border-color .2s;
}
.prep-step.visible { opacity: 1; transform: translateX(0); }
.prep-step:hover { border-color: var(--amber); }
.prep-n {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--amber); color: #000;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700;
}
.prep-title { font-size: .92rem; font-weight: 600; color: var(--text); margin-bottom: .3rem; }
.prep-desc { font-size: .83rem; color: var(--muted); line-height: 1.7; }

/* ── COMPLICATIONS GRID ── */
.comp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.comp-card {
  background: var(--card); border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 1.4rem; transition: transform .25s;
}
.comp-card:hover { transform: translateY(-2px); }
.comp-title { font-family: var(--font-head); font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.comp-freq { font-family: var(--font-mono); font-size: .68rem; color: var(--amber-light); margin-bottom: .5rem; }
.comp-desc { font-size: .82rem; color: var(--muted); line-height: 1.65; }

/* ── INFO / WARN ── */
.infobox {
  background: var(--amber-pale); border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  padding: 1.2rem 1.5rem; font-size: .87rem; color: var(--text); line-height: 1.75; margin-top: 1rem;
}

/* ── FADE IN ── */
.fi { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.fi.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border); padding: 2rem 3rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  z-index: 1; position: relative;
}
.ft { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); }

@media(max-width:900px){
  .hero { grid-template-columns: 1fr; padding: 7rem 1.2rem 3rem; }
  .tunnel-visual { display: none; }
  .band-inner { grid-template-columns: repeat(2, 1fr); }
  nav { padding: 0 1.2rem; }
  .nav-links { display: none; }
  .sec { padding: 3rem 1.2rem; }
}
