:root {
  --page: #f4f7f3;
  --panel: #ffffff;
  --panel-soft: #f7faf7;
  --line: #dce6de;
  --text: #17221c;
  --muted: #65756c;
  --lime: #25a94f;
  --green: #168b46;
  --yellow: #d6a900;
  --orange: #e47d22;
  --red: #d94b4b;
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 0%, rgba(96,205,116,.14), transparent 29%),
    linear-gradient(180deg, #fbfcfa 0%, #f2f6f1 52%, #f8faf7 100%);
}

.topbar {
  height: 78px;
  border-bottom: 1px solid rgba(38,75,51,.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - var(--max))/2));
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 7px 24px rgba(24,61,37,.05);
}
.brand-pair { display: flex; align-items: center; gap: 12px; }
.logo-card {
  height: 42px;
  min-width: 132px;
  padding: 7px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(24,61,37,.06);
}
.logo-card img { max-height: 28px; max-width: 120px; }
.logo-card.aelyx { min-width: 105px; gap: 8px; color: #121713; }
.logo-card.aelyx img { max-width: 27px; }
.plus { color: var(--muted); }
.topbar nav { display: flex; gap: 26px; margin-left: auto; margin-right: 34px; }
.topbar nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 650; transition: color .16s; }
.topbar nav a:hover { color: var(--green); }
.status { font-size: 13px; color: var(--muted); letter-spacing: .02em; }
.status i {
  width: 8px; height: 8px; background: var(--lime); border-radius: 99px;
  display: inline-block; margin-right: 8px; box-shadow: 0 0 0 5px rgba(37,169,79,.1);
}

main { max-width: var(--max); margin: auto; padding: 0 28px; }
.hero { padding: 74px 0 42px; display: flex; justify-content: space-between; gap: 48px; align-items: end; }
.eyebrow { font-size: 12px; letter-spacing: .16em; font-weight: 800; color: var(--green); margin: 0 0 12px; }
.hero h1 { font-family: "Aptos Display", Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(44px,6vw,76px); letter-spacing: -.055em; line-height: .91; margin: 0 0 24px; max-width: 900px; }
.hero h1 span { color: var(--green); font-weight: 650; }
.lede { max-width: 810px; color: var(--muted); font-size: 18px; line-height: 1.65; margin: 0; }
.context-strip { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.context-strip span { background: rgba(255,255,255,.76); border: 1px solid var(--line); border-radius: 99px; padding: 8px 12px; color: var(--muted); font-size: 12px; box-shadow: 0 4px 14px rgba(25,70,42,.04); }
.context-strip b { color: var(--green); font-size: 10px; letter-spacing: .1em; margin-right: 5px; }
.review-date { border-left: 1px solid var(--line); padding: 14px 0 14px 28px; white-space: nowrap; }
.review-date span { display: block; color: var(--muted); font-size: 11px; letter-spacing: .14em; }
.review-date strong { display: block; margin-top: 8px; }

.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.kpis article, .panel, .behaviour {
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(25,70,42,.07);
}
.kpis article { padding: 23px; position: relative; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.kpis article::after {
  content: ""; position: absolute; right: -30px; top: -45px; width: 120px; height: 120px;
  border-radius: 50%; background: linear-gradient(145deg,rgba(66,190,91,.17),rgba(66,190,91,0));
}
.kpis article:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(25,70,42,.11); }
.kpis span { color: var(--muted); font-size: 13px; }
.kpis strong { display: block; font-size: 38px; margin: 8px 0 2px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpis small { color: var(--green); font-size: 12px; font-weight: 700; }

.panel, .behaviour { padding: 26px; margin-bottom: 18px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-head h2, .panel h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.secondary {
  border: 1px solid #cbd9ce; color: var(--green); background: #f8fbf8;
  padding: 9px 13px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 700; transition: .18s;
}
.secondary:hover { border-color: var(--green); background: #eef8f0; transform: translateY(-1px); }
.video-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.action-button { font: inherit; cursor: pointer; }
.primary {
  border: 1px solid var(--green); color: #fff; background: var(--green);
  padding: 9px 14px; border-radius: 8px; font-size: 13px; font-weight: 750; cursor: pointer;
  box-shadow: 0 5px 14px rgba(22,139,70,.19); transition: .18s;
}
.primary:hover { background: #10783b; transform: translateY(-1px); }
.main-video-wrap { position: relative; }
.video-panel video {
  width: 100%; display: block; background: #101512; border-radius: 11px; aspect-ratio: 16/9;
  box-shadow: 0 12px 26px rgba(20,44,28,.13);
}
.timeline-wrap { margin-top: 20px; }
.timeline-label { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.timeline { height: 34px; margin-top: 8px; position: relative; background: linear-gradient(90deg,#eff5ef,#e7f1e8); border: 1px solid var(--line); border-radius: 8px; }
.event-dot {
  position: absolute; top: 7px; width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%;
  background: var(--lime); transform: translateX(-50%); cursor: pointer; transition: .15s; box-shadow: 0 2px 7px rgba(21,112,50,.28);
}
.event-dot:hover, .event-dot.active { transform: translateX(-50%) scale(1.3); background: #f2ba25; }

.two-col { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.mix-list > div { display: grid; grid-template-columns: 1fr 65px 110px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.mix-list > div:last-child { border: 0; }
.mix-list span { display: flex; align-items: center; gap: 10px; }
.mix-list b { text-align: right; font-size: 20px; }
.mix-list em { text-align: right; color: var(--muted); font-size: 12px; font-style: normal; }
.dot { width: 10px; height: 10px; border-radius: 3px; background: #aaa; }
.dot.red { background: var(--red); } .dot.yellow { background: #e8bd2f; } .dot.green { background: var(--green); }
.dot.mixed { background: linear-gradient(135deg,var(--green) 50%,var(--red) 50%); }
.rule-card dl { margin: 0; }
.rule-card dl > div { display: flex; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 12px 0; }
.rule-card dt { color: var(--muted); } .rule-card dd { margin: 0; text-align: right; }
.note { background: #f0f7f1; border-left: 3px solid var(--lime); padding: 13px 15px; color: var(--muted); font-size: 13px; line-height: 1.5; }

.table-scroll { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 920px; }
th { text-align: left; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding: 11px 10px; border-bottom: 1px solid var(--line); }
td { padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
tbody tr { transition: background .15s; } tbody tr:hover { background: #f5faf5; }
td strong { color: var(--green); }
button.seek { border: 1px solid var(--line); background: #f6faf6; color: var(--green); border-radius: 7px; padding: 7px 10px; cursor: pointer; font-weight: 700; }
button.seek:hover { border-color: var(--green); background: #ecf7ee; }

.behaviour { padding: 28px; }
.review-chip, .finding { font-size: 11px; font-weight: 800; letter-spacing: .09em; border-radius: 99px; padding: 8px 11px; }
.review-chip { color: #916f00; background: #fff8d7; border: 1px solid #ead77e; }
.clip-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.clip-card { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: var(--panel-soft); transition: transform .2s ease, box-shadow .2s ease; }
.clip-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(25,70,42,.10); }
.clip-card video { width: 100%; aspect-ratio: 16/9; background: #101512; display: block; }
.clip-video { position: relative; }
.expand-video {
  position: absolute; top: 12px; right: 12px; z-index: 2; border: 1px solid rgba(255,255,255,.65);
  border-radius: 8px; padding: 7px 11px; color: #fff; background: rgba(12,20,15,.78);
  backdrop-filter: blur(8px); font: 700 12px Inter,system-ui,sans-serif; cursor: pointer; transition: .18s;
}
.expand-video:hover { background: var(--green); border-color: var(--green); transform: translateY(-1px); }
.clip-card > div { padding: 20px; }
.clip-card > .clip-video { padding: 0; }
.clip-card h3 { margin: 16px 0 8px; font-size: 19px; }
.clip-card p { color: var(--muted); line-height: 1.55; font-size: 14px; margin: 0; }
.finding { display: inline-block; padding: 6px 9px; }
.finding.amber { color: #9c580e; background: #fff0dc; } .finding.gray { color: #58665e; background: #e9efeb; }
.finding.red { color: #a52f2f; background: #ffe9e9; }

.bottom-grid .panel { padding: 28px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; }
.check-list li { padding: 10px 0 10px 27px; border-bottom: 1px solid var(--line); color: var(--muted); position: relative; }
.check-list li::before { content: "✓"; color: var(--green); position: absolute; left: 2px; font-weight: 900; }
footer { border-top: 1px solid var(--line); margin-top: 35px; padding: 30px 0 55px; color: var(--muted); display: flex; justify-content: space-between; font-size: 13px; }
footer div { display: flex; gap: 20px; } footer a { color: var(--green); text-decoration: none; font-weight: 700; }

body.theatre-mode { overflow: hidden; }
body.theatre-mode .video-panel {
  position: fixed; inset: 14px; z-index: 50; margin: 0; padding: 18px; display: flex; flex-direction: column;
  background: #f8fbf8; box-shadow: 0 25px 90px rgba(7,24,13,.28);
}
body.theatre-mode .video-panel .section-head { margin-bottom: 12px; }
body.theatre-mode .main-video-wrap { min-height: 0; flex: 1; display: grid; place-items: center; background: #101512; border-radius: 11px; overflow: hidden; }
body.theatre-mode .video-panel video { width: 100%; height: 100%; object-fit: contain; aspect-ratio: auto; }
body.theatre-mode .timeline-wrap { margin-top: 12px; }

.hero, .kpis, .panel, .behaviour { animation: rise .55s ease both; }
.kpis { animation-delay: .06s; } .video-panel { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2,1fr); } .two-col, .clip-grid { grid-template-columns: 1fr; }
  .hero { align-items: start; flex-direction: column; } .review-date { border-left: 0; padding-left: 0; }
  .topbar { padding: 0 18px; } .topbar nav { display: none; } main { padding: 0 16px; } .status { display: none; }
}
@media (max-width: 560px) {
  .logo-card { min-width: 100px; } .hero { padding-top: 45px; } .kpis { grid-template-columns: 1fr 1fr; }
  .kpis article { padding: 17px; } .kpis strong { font-size: 30px; } .panel, .behaviour { padding: 18px; }
  .section-head { align-items: flex-start; } .video-actions { justify-content: flex-start; } .review-chip { display: none; } footer { flex-direction: column; gap: 18px; }
}
