@property --scan {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 0%;
}

:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-2: #0d141b;
  --ink: #f4f8fb;
  --muted: #9facbb;
  --line: rgba(175, 219, 232, 0.18);
  --glass: rgba(12, 19, 27, 0.74);
  --glass-strong: rgba(18, 29, 39, 0.88);
  --cyan: #36d7f6;
  --teal: #16b6a4;
  --amber: #f0b84a;
  --red: #ff5b5b;
  --violet: #9a7cff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(54, 215, 246, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 8%, rgba(240, 184, 74, 0.12), transparent 24rem),
    radial-gradient(circle at 72% 78%, rgba(255, 91, 91, 0.11), transparent 28rem),
    linear-gradient(135deg, #070a0f 0%, #0c1219 46%, #11100c 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 86%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: 0.42;
  background:
    repeating-radial-gradient(ellipse at 50% 10%, transparent 0 14px, rgba(54, 215, 246, 0.05) 15px 17px, transparent 18px 34px);
  transform: rotate(-12deg) scale(1.35);
}

a {
  color: var(--cyan);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 15, 0.74);
  backdrop-filter: blur(22px) saturate(1.35);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(54, 215, 246, 0.45);
  border-radius: var(--radius);
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 0 34px rgba(54, 215, 246, 0.24);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand-mark::after {
  position: absolute;
  inset: 7px;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(6, 16, 22, 0.65);
  border-left-color: transparent;
  border-right-color: transparent;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.03em;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
}

.year-tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.year-tabs a {
  position: relative;
  min-width: 74px;
  padding: 9px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.year-tabs a:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.year-tabs a.active {
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: var(--max);
  min-height: min(780px, calc(100vh - 76px));
  margin: 0 auto;
  padding: clamp(46px, 7vw, 92px) clamp(18px, 4vw, 56px);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.status-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(54, 215, 246, 0.24);
  border-radius: 999px;
  color: #dffaff;
  background: rgba(54, 215, 246, 0.08);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-chip::before {
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 999px;
  background: var(--accent, var(--cyan));
  box-shadow: 0 0 18px var(--accent, var(--cyan));
}

.hero h1 {
  max-width: 900px;
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 88px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, #fff, #bff5ff 38%, #f7cd71 78%, #ff9b8e);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  max-width: 780px;
  margin: 0 0 30px;
  color: #c1ccd7;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: #061016;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  box-shadow: 0 18px 48px rgba(54, 215, 246, 0.18);
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 66px rgba(54, 215, 246, 0.26);
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 930px;
}

.meta-card,
.card,
.side-nav,
.focus-panel,
.section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.032));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.meta-card {
  min-height: 104px;
  padding: 17px;
  border-radius: var(--radius);
}

.meta-card span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.meta-card strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1.08;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(54, 215, 246, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(54, 215, 246, 0.08), rgba(240, 184, 74, 0.04)),
    #091017;
  box-shadow: var(--shadow), 0 0 70px rgba(54, 215, 246, 0.13);
}

.hero-visual::before {
  position: absolute;
  inset: -1px;
  content: "";
  background:
    linear-gradient(115deg, transparent var(--scan), rgba(54, 215, 246, 0.18) calc(var(--scan) + 6%), transparent calc(var(--scan) + 14%)),
    radial-gradient(circle at 28% 18%, rgba(240, 184, 74, 0.18), transparent 24%),
    radial-gradient(circle at 80% 74%, rgba(255, 91, 91, 0.16), transparent 26%);
  animation: scan 5.5s linear infinite;
}

.hero-visual::after {
  position: absolute;
  inset: 22px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  box-shadow: inset 0 0 28px rgba(54, 215, 246, 0.12);
}

@keyframes scan {
  0% {
    --scan: -24%;
  }
  100% {
    --scan: 118%;
  }
}

.ridge-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
}

.analysis-card {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  width: min(330px, calc(100% - 56px));
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(4, 9, 13, 0.78);
  backdrop-filter: blur(20px);
}

.analysis-card h2 {
  margin: 0 0 12px;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-row {
  display: grid;
  grid-template-columns: 92px 1fr 46px;
  gap: 10px;
  align-items: center;
  margin: 10px 0;
  color: #d7e7ef;
  font-size: 12px;
  font-weight: 800;
}

.signal-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.signal-bar span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--amber), var(--red));
}

.page-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(22px, 4vw, 48px);
  max-width: var(--max);
  margin: 0 auto;
  padding: 4px clamp(18px, 4vw, 56px) 84px;
}

.side-nav {
  position: sticky;
  top: 102px;
  align-self: start;
  padding: 16px;
  border-radius: var(--radius);
}

.side-nav h2 {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 6px;
  color: #d7e0e7;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.side-nav a::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.new-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ff5b5b, #ff8c42);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 12px rgba(255, 91, 91, 0.5);
  animation: float-badge 2s ease-in-out infinite;
}

@keyframes float-badge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.side-nav a.active,
.side-nav a:hover {
  color: #071018;
  background: linear-gradient(135deg, var(--cyan), var(--amber));
  transform: translateX(2px);
}

.side-nav a.active::before,
.side-nav a:hover::before {
  background: #071018;
}

.focus-panel {
  margin-top: 18px;
  padding: 15px;
  border-radius: var(--radius);
}

.focus-panel strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.focus-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.content {
  min-width: 0;
}

.section,
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.section {
  margin-bottom: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.section.in-view,
.card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: linear-gradient(var(--cyan), var(--amber), var(--red));
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: 0;
}

.section h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

.section p,
.section li {
  color: #c4ced8;
  font-size: 16px;
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.info-list li {
  position: relative;
  padding-left: 24px;
}

.info-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 11px;
  height: 2px;
  content: "";
  background: var(--amber);
}

.table-wrap {
  overflow-x: auto;
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: #dffaff;
  background: rgba(54, 215, 246, 0.08);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

td {
  color: #c8d2dc;
}

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

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.card {
  min-height: 168px;
  padding: 19px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.card p {
  margin: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(5, 9, 13, 0.72);
}

.site-footer strong {
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .year-tabs {
    width: 100%;
  }

  .year-tabs a {
    flex: 1;
  }

  .hero,
  .page-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 420px;
  }

  .side-nav {
    position: static;
  }

  .cards,
  .meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .analysis-card {
    right: 16px;
    bottom: 16px;
    width: calc(100% - 32px);
  }
}
