:root {
  color-scheme: dark;
  --bg: #05080d;
  --panel: #0b1420;
  --panel-2: #121923;
  --line: rgba(106, 217, 255, 0.22);
  --cyan: #62d9ff;
  --blue: #2f86ff;
  --amber: #d7b166;
  --green: #8bd68d;
  --text: #e8f4fb;
  --muted: #9aafbc;
  --soft: rgba(232, 244, 251, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(5, 8, 13, 0.88);
  border-bottom: 1px solid rgba(98, 217, 255, 0.18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text);
}

.brand-mark {
  width: 22px;
  height: 22px;
  display: inline-block;
  border: 2px solid var(--cyan);
  border-right-color: var(--amber);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--cyan);
}

.product-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-download,
.primary-action,
.secondary-action,
.site-footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.header-download,
.primary-action {
  background: linear-gradient(180deg, #67dcff, #2376c9);
  color: #03101b;
  box-shadow: 0 0 32px rgba(98, 217, 255, 0.18);
}

.secondary-action,
.site-footer a {
  border: 1px solid var(--line);
  background: rgba(7, 18, 30, 0.78);
  color: var(--text);
}

.redirect-page {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  display: grid;
  align-items: end;
  padding: 120px clamp(18px, 5vw, 72px) 84px;
  border-bottom: 1px solid rgba(98, 217, 255, 0.16);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 6, 11, 0.94) 0%, rgba(3, 6, 11, 0.58) 46%, rgba(3, 6, 11, 0.18) 100%),
    linear-gradient(0deg, #05080d 0%, rgba(5, 8, 13, 0.10) 38%, rgba(5, 8, 13, 0.52) 100%);
}

.hero-content {
  position: relative;
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--amber);
  text-transform: uppercase;
  font-weight: 800;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(46px, 8vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 54px);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  letter-spacing: 0;
}

.lead {
  max-width: 650px;
  color: #d6e6ef;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 14px;
}

.release-note {
  max-width: 610px;
  color: var(--muted);
  font-size: 13px;
}

.format-bar {
  position: absolute;
  left: clamp(18px, 5vw, 72px);
  right: clamp(18px, 5vw, 72px);
  bottom: 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(98, 217, 255, 0.22);
  border: 1px solid rgba(98, 217, 255, 0.25);
}

.format-bar span {
  padding: 13px 16px;
  background: rgba(6, 17, 28, 0.88);
  color: #d8edf7;
  font-weight: 700;
  text-align: center;
}

.download-panel,
.intro-grid,
.feature-band,
.split-section,
.browser-section,
.requirements-section,
.workflow,
.showcase {
  padding: clamp(56px, 8vw, 110px) clamp(18px, 5vw, 72px);
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
  gap: 36px;
  align-items: center;
  background: #090d13;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.download-tile,
.feature-grid article,
.stats-grid div,
.steps div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(21, 39, 55, 0.92), rgba(6, 14, 24, 0.92));
}

.download-tile {
  min-height: 126px;
  padding: 20px;
  display: grid;
  align-content: space-between;
}

.download-tile span {
  color: var(--muted);
  font-size: 13px;
}

.download-tile strong {
  color: var(--cyan);
  font-size: 20px;
}

.requirements-section {
  background: #070b11;
}

.requirements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.requirements-grid article {
  min-height: 172px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(18, 34, 49, 0.92), rgba(6, 13, 22, 0.94));
}

.requirements-grid h3 {
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 18px;
}

.requirements-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 52px;
  align-items: center;
  background: #070b11;
}

.intro-copy p,
.feature-band > p + h2 + .feature-grid,
.split-section p,
.browser-section p,
.workflow p {
  color: var(--muted);
  line-height: 1.8;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.stats-grid div {
  min-height: 132px;
  padding: 22px;
}

.stats-grid strong {
  display: block;
  color: var(--cyan);
  font-size: 54px;
  line-height: 1;
}

.stats-grid span {
  color: var(--muted);
}

.showcase {
  background: #0a1018;
}

.showcase-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(98, 217, 255, 0.24);
  border-radius: 8px;
  color: var(--cyan);
  font-weight: 800;
  white-space: nowrap;
}

.showcase-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.shot-tab {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(98, 217, 255, 0.22);
  border-radius: 8px;
  background: rgba(13, 25, 38, 0.86);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.shot-tab.is-active {
  background: #2b8edb;
  color: #04111b;
}

.shot-frame {
  margin: 0;
  border: 1px solid rgba(98, 217, 255, 0.24);
  border-radius: 8px;
  overflow: hidden;
  background: #03060a;
}

.shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.feature-band {
  background: #070b11;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.feature-grid article {
  padding: 22px;
  min-height: 230px;
}

.split-section,
.browser-section {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: center;
  background: #0b1017;
}

.browser-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  background: #060a10;
}

.split-section img,
.browser-section img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(98, 217, 255, 0.20);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.mini-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

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

.check-list li {
  padding-left: 18px;
  border-left: 3px solid var(--cyan);
  color: #dbeaf1;
}

.workflow {
  background: #090d13;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.steps div {
  padding: 22px;
  min-height: 146px;
}

.steps span {
  display: block;
  color: var(--amber);
  font-weight: 900;
  margin-bottom: 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid rgba(98, 217, 255, 0.16);
  background: #04070b;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.log-hero {
  min-height: 430px;
  padding: 130px clamp(18px, 5vw, 72px) 74px;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.96), rgba(5, 8, 13, 0.62)),
    url("assets/cobalt-mod.jpg") center top / cover no-repeat;
  border-bottom: 1px solid rgba(98, 217, 255, 0.16);
}

.log-list {
  display: grid;
  gap: 22px;
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 72px);
  background: #070b11;
}

.log-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 35, 50, 0.92), rgba(7, 14, 23, 0.94));
}

.log-version {
  color: var(--amber);
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
}

.log-content {
  max-width: 1120px;
}

.log-content h2 {
  margin-bottom: 22px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.18;
}

.change-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.change-group {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid rgba(98, 217, 255, 0.14);
}

.change-group h3 {
  margin-bottom: 10px;
  color: var(--cyan);
  font-size: 16px;
  text-transform: uppercase;
}

.change-group ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.85;
  max-width: 980px;
}

.change-group li {
  margin-bottom: 10px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto auto;
  }

  .nav-links {
    display: none;
  }

  .download-panel,
  .intro-grid,
  .split-section,
  .browser-section {
    grid-template-columns: 1fr;
  }

  .download-grid,
  .requirements-grid,
  .feature-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .format-bar {
    grid-template-columns: 1fr 1fr;
  }

  .showcase-heading,
  .log-item,
  .change-groups {
    grid-template-columns: 1fr;
  }

  .showcase-heading {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    padding: 12px 14px;
  }

  .brand span:last-child {
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .header-download {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }

  .product-links {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .product-links .header-download {
    flex: 1 1 160px;
  }

  .hero {
    min-height: 660px;
    padding-top: 96px;
  }

  .hero-actions,
  .showcase-tabs {
    flex-direction: column;
  }

  .download-grid,
  .stats-grid,
  .requirements-grid,
  .feature-grid,
  .steps,
  .format-bar {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
