/* ─── Ventus Go-Live Risiko-Simulator — light premium theme ─── */
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-display: swap; src: url('/assets/fonts/PlayfairDisplay-Bold.woff2') format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-weight: 400; font-display: swap; src: url('/assets/fonts/PlayfairDisplay-Regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 400; font-display: swap; src: url('/assets/fonts/DMSans-Regular.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 500; font-display: swap; src: url('/assets/fonts/DMSans-Medium.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-weight: 600; font-display: swap; src: url('/assets/fonts/DMSans-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2'); }

:root {
  --accent: #d32f2f;
  --accent-2: #b71c1c;
  --bg: #f6f3f0;
  --surface: #ffffff;
  --surface-2: #f2ede8;
  --border: #e7e1da;
  --border-strong: #d8d0c7;
  --text: #1c1a18;
  --muted: #7c746c;
  --amber: #c77700;
  --green: #1f9d64;
  --radius: 20px;
  --shadow-card: 0 24px 60px rgba(60, 40, 20, 0.08);
  --shadow-soft: 0 10px 30px rgba(60, 40, 20, 0.06);
  --transition: 260ms ease-out;
  --risk-critical: #E03E3E;
  --risk-high: #EA580C;
  --risk-medium: #D97706;
  --risk-low: #16A34A;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ─── Header ─── */
.glc-header { position: sticky; top: 0; z-index: 30; background: rgba(246,243,240,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.glc-header__inner { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 24px; }
.glc-brand { display: inline-flex; }
.glc-brand img { height: 44px; width: auto; }
.glc-nav { display: flex; gap: 22px; margin-left: auto; }
.glc-nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; transition: color var(--transition); }
.glc-nav a:hover { color: var(--text); }
.glc-back { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.glc-back:hover { color: var(--text); }
body.glc-ads .glc-nav { display: none; }
body.glc-ads .glc-back { margin-left: auto; }

/* ─── Progress ─── */
.glc-progress { max-width: 720px; margin: 24px auto 0; padding: 0 20px; }
.glc-progress__bar { height: 4px; background: var(--surface-2); border-radius: 999px; position: relative; overflow: hidden; }
.glc-progress__bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--progress, 0%); background: linear-gradient(90deg, var(--accent), #ef6b6b); border-radius: 999px; transition: width 400ms ease; }

/* ─── Layout ─── */
.glc-main { padding-bottom: 90px; }
.glc-app { max-width: 720px; margin: 0 auto; padding: 48px 20px; }
.glc-app.glc-app--wide { max-width: 980px; }

.glc-eyebrow { color: var(--accent); font-weight: 600; letter-spacing: 2px; font-size: 12px; text-transform: uppercase; margin: 0 0 14px; }
.glc-eyebrow::before { content: '—— '; letter-spacing: 0; }
.glc-h1 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.08; margin: 0 0 18px; letter-spacing: -0.01em; }
.glc-h2 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.5rem, 3.5vw, 2.2rem); line-height: 1.15; margin: 0 0 14px; }
.glc-lead { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 28px; max-width: 620px; }

.glc-fade { animation: glcFade 380ms ease both; }
@keyframes glcFade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ─── Buttons ─── */
.glc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: #fff; border: none; border-radius: 999px; font-family: inherit; font-size: 16px; font-weight: 600; padding: 15px 30px; cursor: pointer; transition: background var(--transition), transform var(--transition), box-shadow var(--transition); box-shadow: 0 12px 30px rgba(211,47,47,0.24); }
.glc-btn:hover { background: var(--accent-2); transform: translateY(-1px); }
.glc-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.glc-btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); box-shadow: none; }
.glc-btn--ghost:hover { background: var(--surface-2); }
.glc-btn--block { width: 100%; }
.glc-btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ─── Input screen ─── */
.glc-input-head { max-width: 620px; }
.glc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 30px; margin-top: 26px; }
.glc-field { margin-bottom: 26px; }
.glc-field:last-child { margin-bottom: 0; }
.glc-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.glc-field__head .glc-field__label { margin-bottom: 0; }
.glc-field__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text); margin-bottom: 12px; }
.glc-field__label span { color: var(--muted); font-weight: 400; }
.glc-step { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: 1px; color: var(--muted); flex: none; }

/* Card selects (markets / systems) */
.glc-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.glc-card-opt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border: 1px solid var(--border-strong); background: var(--bg); border-radius: 14px; padding: 16px 10px; cursor: pointer; transition: border-color var(--transition), background var(--transition), box-shadow var(--transition); }
.glc-card-opt:hover { border-color: var(--accent); }
.glc-card-opt.is-active { border-color: var(--accent); background: rgba(211,47,47,0.05); box-shadow: 0 0 0 1px var(--accent) inset; }
.glc-card-opt__icon { width: 24px; height: 24px; color: var(--muted); margin-bottom: 4px; }
.glc-card-opt__icon svg { width: 100%; height: 100%; display: block; }
.glc-card-opt.is-active .glc-card-opt__icon { color: var(--accent); }
.glc-card-opt__val { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.1; }
.glc-card-opt__sub { font-size: 11px; color: var(--muted); letter-spacing: 0.3px; }
.glc-card-opt.is-active .glc-card-opt__sub { color: var(--accent); }

/* Radio pills */
.glc-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.glc-pills--even { display: grid; grid-template-columns: repeat(5, 1fr); }
.glc-pill { border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: inherit; font-size: 15px; font-weight: 500; padding: 11px 18px; border-radius: 999px; cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.glc-pill:hover { border-color: var(--accent); }
.glc-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Radio list */
.glc-radio-list { display: flex; flex-direction: column; gap: 10px; }
.glc-radio { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border-strong); background: var(--bg); border-radius: 12px; padding: 13px 16px; cursor: pointer; transition: border-color var(--transition), background var(--transition); font-size: 15px; }
.glc-radio:hover { border-color: var(--accent); }
.glc-radio.is-active { border-color: var(--accent); background: rgba(211,47,47,0.05); }
.glc-radio__label { flex: 1; }
.glc-radio__tag { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; flex: none; }
.glc-radio__tag.tone-critical { color: var(--risk-critical); }
.glc-radio__tag.tone-high { color: var(--risk-high); }
.glc-radio__tag.tone-solid { color: #0e8a8a; }
.glc-radio__tag.tone-ideal { color: var(--risk-low); }
.glc-radio__mark { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; position: relative; transition: border-color var(--transition); }
.glc-radio.is-active .glc-radio__mark { border-color: var(--accent); }
.glc-radio.is-active .glc-radio__mark::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }

/* Dropdown grid */
.glc-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.glc-select { width: 100%; background: var(--bg); border: 1px solid var(--border-strong); color: var(--text); font-family: inherit; font-size: 16px; padding: 14px 16px; border-radius: 12px; cursor: pointer; appearance: none; -webkit-appearance: none; transition: border-color var(--transition), box-shadow var(--transition); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237c746c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.glc-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,47,47,0.12); }

.glc-form__error { color: var(--accent); font-size: 14px; margin: 12px 0 0; min-height: 1em; }
.glc-proof { color: var(--muted); font-size: 14px; margin: 20px 0 0; }
.glc-trust { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 24px; color: var(--muted); font-size: 14px; }
.glc-trust span { display: inline-flex; align-items: center; gap: 7px; }
.glc-trust svg { color: var(--green); width: 16px; height: 16px; flex: none; }

/* ─── Simulation terminal ─── */
.glc-scan-title { margin-bottom: 22px; }
.glc-terminal { background: #17130f; border: 1px solid #2a231c; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-card); }
.glc-terminal__bar { display: flex; gap: 8px; padding: 14px 18px; background: #1f1a15; border-bottom: 1px solid #2a231c; }
.glc-terminal__bar span { width: 12px; height: 12px; border-radius: 50%; background: #3a322a; }
.glc-terminal__bar span:first-child { background: #e05a4d; }
.glc-terminal__bar span:nth-child(2) { background: #d8a13a; }
.glc-terminal__bar span:nth-child(3) { background: #4bae66; }
#glc-term-body { padding: 22px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; line-height: 1.9; color: #e8e2d8; min-height: 260px; }
.glc-term-line { white-space: pre-wrap; word-break: break-word; }
.glc-term-line .dim { color: #9a9088; }
.glc-term-line .ok { color: #4bae66; }
.glc-cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); margin-left: 4px; vertical-align: middle; animation: glcBlink 1s steps(1) infinite; }
@keyframes glcBlink { 50% { opacity: 0; } }
.glc-sim-bar { max-width: 520px; margin: 22px auto 0; }
.glc-sim-bar__track { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.glc-sim-bar__fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #ef6b6b); border-radius: 999px; transition: width 500ms ease; }
.glc-sim-bar__pct { text-align: center; color: var(--muted); font-size: 13px; margin-top: 8px; font-family: 'JetBrains Mono', monospace; }

/* ─── Results: score gauge ─── */
.glc-result-head { text-align: center; margin-bottom: 28px; }
.glc-score-wrap { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; margin-top: 8px; }
.glc-gauge { position: relative; width: 200px; height: 200px; }
.glc-gauge__num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.glc-gauge__num b { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 3rem; line-height: 1; }
.glc-gauge__num span { color: var(--muted); font-size: 13px; margin-top: 4px; }
.glc-gauge__level { display: block; font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-top: 8px; }
.glc-delay { text-align: left; }
.glc-delay__pct { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 3rem; line-height: 1; color: var(--amber); }
.glc-delay__label { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 200px; }
.glc-params { color: var(--muted); font-size: 15px; margin-top: 24px; }

/* Metric cards */
.glc-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-top: 28px; }
.glc-metric { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px; text-align: center; box-shadow: var(--shadow-soft); }
.glc-metric b { display: block; font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.9rem; line-height: 1; }
.glc-metric span { display: block; color: var(--muted); font-size: 13px; margin-top: 8px; }

/* ─── Panels ─── */
.glc-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 26px; margin-top: 26px; }
.glc-panel > h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.3rem; margin: 0 0 18px; }

/* ─── Heatmap ─── */
.glc-hm-caption { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.glc-heatmap-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.glc-heatmap { border-collapse: separate; border-spacing: 6px; width: 100%; min-width: 640px; }
.glc-heatmap th { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: center; padding: 6px 4px; white-space: nowrap; }
.glc-heatmap th.glc-hm-rowhead, .glc-heatmap td.glc-hm-rowhead { text-align: left; font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; padding-right: 12px; }
.glc-heatmap td.glc-hm-rowhead span { display: block; color: var(--muted); font-weight: 400; font-size: 11px; }
.glc-hm-cell { width: 74px; height: 46px; border-radius: 8px; text-align: center; font-size: 12px; font-weight: 600; font-family: 'JetBrains Mono', monospace; vertical-align: middle; cursor: help; }
.glc-hm-cell[data-tip]:hover, .glc-hm-cell[data-tip]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.glc-hm-cell.risk-critical { background: rgba(224,62,62,0.15); border: 1px solid var(--risk-critical); color: #a31f1f; }
.glc-hm-cell.risk-high { background: rgba(234,88,12,0.15); border: 1px solid rgba(234,88,12,0.5); color: #b34509; }
.glc-hm-cell.risk-medium { background: rgba(217,119,6,0.13); border: 1px solid rgba(217,119,6,0.4); color: #8a5a05; }
.glc-hm-cell.risk-low { background: rgba(22,163,74,0.13); border: 1px solid rgba(22,163,74,0.4); color: #0f7a38; }
.glc-hm-cell.is-empty { background: transparent; border: 1px dashed var(--border); color: var(--border-strong); }
.glc-hm-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 16px; font-size: 13px; color: var(--muted); }
.glc-hm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.glc-hm-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.glc-hm-legend i.risk-critical { background: rgba(224,62,62,0.3); border: 1px solid var(--risk-critical); }
.glc-hm-legend i.risk-high { background: rgba(234,88,12,0.3); border: 1px solid rgba(234,88,12,0.6); }
.glc-hm-legend i.risk-medium { background: rgba(217,119,6,0.3); border: 1px solid rgba(217,119,6,0.6); }
.glc-hm-legend i.risk-low { background: rgba(22,163,74,0.3); border: 1px solid rgba(22,163,74,0.6); }
.glc-hm-tip { position: absolute; z-index: 90; transform: translate(-50%, -100%); background: var(--text); color: #fff; font-size: 12px; line-height: 1.4; padding: 8px 12px; border-radius: 8px; max-width: 260px; box-shadow: 0 8px 24px rgba(0,0,0,0.22); pointer-events: none; opacity: 0; transition: opacity 0.12s ease; white-space: normal; }
.glc-hm-tip.is-visible { opacity: 1; }
.glc-hm-tip::after { content: ''; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%); border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 5px solid var(--text); }

/* ─── Risk cards ─── */
.glc-risk { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.glc-risk--critical { border-left-color: var(--risk-critical); }
.glc-risk--high { border-left-color: var(--risk-high); }
.glc-risk--medium { border-left-color: var(--risk-medium); }
.glc-risk--low { border-left-color: var(--risk-low); }
.glc-risk__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; margin-top: 6px; }
.glc-risk--critical .glc-risk__dot { background: var(--risk-critical); }
.glc-risk--high .glc-risk__dot { background: var(--risk-high); }
.glc-risk--medium .glc-risk__dot { background: var(--risk-medium); }
.glc-risk--low .glc-risk__dot { background: var(--risk-low); }
.glc-risk__title { font-weight: 600; margin: 0 0 4px; }
.glc-risk__detail { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* ─── AI insights ─── */
.glc-ai { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.glc-ai__label { font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 0 0 12px; }
.glc-ai__item { margin-bottom: 14px; }
.glc-ai__item:last-child { margin-bottom: 0; }
.glc-ai__title { font-weight: 600; margin: 0 0 4px; }
.glc-ai__text { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }
.glc-ai__locked { position: relative; max-height: 3.4em; overflow: hidden; margin-top: 4px; -webkit-user-select: none; user-select: none; }
.glc-ai__locked .glc-ai__text { filter: blur(3.5px); opacity: 0.75; }
.glc-ai__locked::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, var(--surface) 92%); pointer-events: none; }
.glc-ai__unlock { display: inline-block; margin-top: 14px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; }
.glc-ai__unlock:hover { text-decoration: underline; }
.glc-ai__source { color: var(--muted); font-size: 12px; margin: 14px 0 0; font-style: italic; }

/* ─── Email gate ─── */
.glc-gate { margin-top: 30px; }
.glc-gate__card { background: #17130f; color: #f4efe8; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-card); }
.glc-gate__card h3 { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.5rem; margin: 0 0 10px; color: #fff; }
.glc-gate__card > p { color: #b8afa4; font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.glc-form label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #e8e2d8; }
.glc-form input, .glc-form select { width: 100%; background: #201a14; border: 1px solid #362d24; color: #f4efe8; font-family: inherit; font-size: 16px; padding: 13px 15px; border-radius: 10px; appearance: none; -webkit-appearance: none; }
.glc-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8afa4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.glc-form input:focus, .glc-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(211,47,47,0.2); }
.glc-form .glc-btn { margin-top: 22px; }
.glc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.glc-gate__hint { color: #8f867b; font-size: 13px; margin: 16px 0 0; }
.glc-gate__hint a { color: #e69b96; }

/* ─── Thanks / error ─── */
.glc-thanks { text-align: center; padding: 40px 0; }
.glc-thanks__icon { width: 68px; height: 68px; border-radius: 50%; background: rgba(31,157,100,0.15); color: var(--green); display: inline-flex; align-items: center; justify-content: center; font-size: 32px; margin-bottom: 22px; }

.glc-footnote { color: var(--muted); font-size: 13px; text-align: center; margin: 40px auto 0; max-width: 560px; line-height: 1.6; }

/* CTA button */
.glc-btn--cta { margin-top: 30px; text-transform: uppercase; letter-spacing: 1.5px; font-size: 15px; padding: 17px 30px; }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .glc-nav { display: none; }
  .glc-back { margin-left: auto; }
  .glc-grid-2 { grid-template-columns: 1fr; }
  .glc-cards { grid-template-columns: repeat(2, 1fr); }
  .glc-pills--even { grid-template-columns: repeat(3, 1fr); }
  .glc-score-wrap { gap: 28px; }
  .glc-delay { text-align: center; }
  .glc-delay__label { margin-left: auto; margin-right: auto; }
}
