:root {
  color-scheme: dark;
  --bg: #08111f;
  --panel: #111c2d;
  --panel-soft: #17253a;
  --text: #f7fafc;
  --muted: #b7c4d6;
  --line: #2b3b52;
  --accent: #3ea6ff;
  --accent-strong: #71c3ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 17, 31, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--text);
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) 64px;
}

.hero {
  padding: clamp(72px, 11vw, 128px) 0 56px;
}

.hero.compact {
  padding-bottom: 32px;
}

.eyebrow,
.status {
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 10px 0 18px;
  max-width: 820px;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
}

h3 {
  margin: 0 0 10px;
}

p {
  max-width: 720px;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 750;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #06111f;
}

.button.secondary {
  background: var(--panel);
}

.section {
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.grid,
.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

article,
.demo-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.demo-card {
  max-width: 520px;
}

.cdm-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(135deg, rgba(8, 17, 31, 0.88), rgba(8, 17, 31, 0.5)),
    url("/assets/hero-bg-04-abstract-metal.png") center / cover;
}

.cdm-card .status,
.cdm-card p,
.cdm-card .button,
.demo-card-title {
  position: relative;
  z-index: 1;
}

.demo-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 10px 0 18px;
}

.demo-card-title h2 {
  margin: 0;
  max-width: 340px;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.demo-card-title img {
  width: clamp(72px, 13vw, 110px);
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

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

  .demo-card-title {
    align-items: flex-start;
  }

  .demo-card-title img {
    width: 76px;
  }
}
