:root {
  color-scheme: light;
  --bg: #eef2fb;
  --bg-accent: #dde6fb;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --border: rgba(65, 81, 145, 0.14);
  --text: #25304b;
  --text-soft: #5c6787;
  --primary: #4b59cf;
  --primary-strong: #3240a3;
  --secondary: #ff4e95;
  --shadow: 0 24px 60px rgba(62, 71, 119, 0.18);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Aptos", "Trebuchet MS", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 89, 207, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 78, 149, 0.12), transparent 26%),
    linear-gradient(180deg, #f7f9ff 0%, var(--bg) 36%, #edf1fb 100%);
}

a {
  color: var(--primary-strong);
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(100% - 32px, var(--content-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(241, 245, 255, 0.9)),
    linear-gradient(135deg, rgba(75, 89, 207, 0.06), rgba(255, 78, 149, 0.04));
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero::before {
  width: 420px;
  height: 420px;
  top: -180px;
  right: -140px;
  background: radial-gradient(circle, rgba(110, 146, 255, 0.18), transparent 68%);
}

.hero::after {
  width: 360px;
  height: 360px;
  bottom: -190px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 109, 170, 0.14), transparent 70%);
}

.top-nav {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid rgba(75, 89, 207, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary-strong);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(75, 89, 207, 0.32);
  background: rgba(255, 255, 255, 0.95);
}

.brand-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.brand-panel {
  padding: 28px 24px 14px;
  border-radius: calc(var(--radius-xl) - 8px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(244, 247, 255, 0.76));
  border: 1px solid rgba(75, 89, 207, 0.08);
}

.brand-image {
  margin: 0 auto;
  width: min(100%, 1100px);
  filter:
    saturate(0.92)
    contrast(0.98)
    drop-shadow(0 18px 28px rgba(52, 63, 122, 0.12));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 22px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.hero-copy p,
.lede {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 12px 32px rgba(89, 77, 173, 0.24);
}

.button.secondary {
  border-color: rgba(75, 89, 207, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--primary-strong);
}

.hero-metrics {
  display: grid;
  gap: 14px;
}

.metric-card,
.card,
.release-card,
.doc-card,
.panel,
.shot-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(62, 71, 119, 0.08);
  backdrop-filter: blur(10px);
}

.metric-card {
  padding: 18px 20px;
}

.metric-value {
  margin: 0 0 6px;
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary-strong);
}

.metric-label {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.5;
}

.section {
  margin-top: 28px;
}

.section-title {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2vw, 2.1rem);
}

.section-subtitle {
  margin: 0 0 18px;
  color: var(--text-soft);
  line-height: 1.72;
}

.card-grid,
.feature-grid,
.resource-grid,
.release-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid,
.resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.release-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.release-card,
.doc-card,
.panel {
  padding: 22px;
}

.card h3,
.release-card h3,
.doc-card h3,
.panel h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.card p,
.release-card p,
.doc-card p,
.panel p,
.panel li {
  color: var(--text-soft);
  line-height: 1.7;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(75, 89, 207, 0.08);
  color: var(--primary-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.release-meta {
  margin: 12px 0 18px;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.text-list {
  margin: 0;
  padding-left: 18px;
}

.text-list li + li {
  margin-top: 8px;
}

.license-panel pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-radius: var(--radius-md);
  background: rgba(18, 26, 49, 0.92);
  color: #ecf1ff;
  font-size: 0.92rem;
  line-height: 1.55;
  font-family: "Cascadia Code", Consolas, monospace;
}

.gallery-group {
  margin-top: 28px;
}

.group-title {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.group-note {
  margin: 0 0 18px;
  color: var(--text-soft);
}

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

.shot-card {
  overflow: hidden;
}

.shot-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.shot-frame {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(244, 246, 255, 0.9), rgba(229, 235, 250, 0.9));
}

.shot-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-meta {
  padding: 14px 16px 16px;
}

.shot-title {
  margin: 0 0 6px;
  font-size: 0.98rem;
  font-weight: 700;
}

.shot-caption {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.footer {
  margin-top: 28px;
  padding: 20px 8px 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  text-align: center;
}

@media (max-width: 980px) {
  .hero-grid,
  .card-grid,
  .feature-grid,
  .resource-grid,
  .release-grid {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 20px 14px 6px;
  }

  .site-shell {
    width: min(100% - 20px, var(--content-width));
    padding-top: 14px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 18px;
  }

  .hero-actions,
  .download-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-link,
  .button {
    width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
