:root {
  color-scheme: dark;
  --bg: #071015;
  --panel: #101b22;
  --panel-strong: #152833;
  --text: #f5eee7;
  --muted: #c7b8ad;
  --soft: #7fa6a2;
  --accent: #e9689b;
  --accent-strong: #ff8bb7;
  --line: rgba(245, 238, 231, 0.18);
  --line-strong: rgba(233, 104, 155, 0.5);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(140deg, rgba(233, 104, 155, 0.2), transparent 32%),
    linear-gradient(215deg, rgba(77, 162, 158, 0.16), transparent 34%),
    var(--bg);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 21, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--text);
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

nav a:hover,
.nav-download {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(233, 104, 155, 0.14);
}

.hero,
.section,
.band,
footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  min-height: calc(100vh - 72px);
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.8rem, 7vw, 5.7rem);
  line-height: 0.95;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.hero-text,
.section-heading p,
.download-section p,
.summary-band p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

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

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

.button.primary {
  border-color: var(--accent);
  color: #1c0c12;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
}

.button.secondary {
  color: var(--text);
  background: rgba(245, 238, 231, 0.06);
}

.release-note {
  margin-top: 16px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 800;
}

.product-panel {
  min-width: 0;
  padding: 1px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--line-strong), rgba(127, 166, 162, 0.32));
}

.app-window {
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: #090d13;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.window-bar,
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.window-bar img {
  width: 32px;
  height: 32px;
}

.window-bar span,
.filter-row span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 900;
}

.slot-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
}

.slot-preview article {
  display: grid;
  grid-template-rows: auto minmax(260px, 1fr) auto auto;
  gap: 8px;
  min-height: 405px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(233, 104, 155, 0.14), rgba(7, 16, 21, 0.92));
}

.slot-preview strong {
  color: var(--accent-strong);
  text-align: center;
  font-size: 0.78rem;
}

.slot-preview span,
.slot-preview small {
  min-height: 30px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 238, 231, 0.04);
  font-weight: 900;
}

.slot-preview small {
  color: var(--muted);
}

.splash-placeholder {
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 238, 231, 0.1);
  background:
    linear-gradient(135deg, rgba(127, 166, 162, 0.12), transparent 42%),
    linear-gradient(180deg, rgba(245, 238, 231, 0.08), rgba(0, 0, 0, 0.1));
  color: rgba(245, 238, 231, 0.54);
  font-weight: 900;
}

.slot-preview .selected {
  border-color: var(--line-strong);
}

.band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 34, 0.78);
}

.section {
  padding: 86px 0;
}

.section-heading {
  margin-bottom: 28px;
}

.feature-grid,
.screenshot-grid,
.privacy-grid {
  display: grid;
  gap: 14px;
}

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

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

.feature-grid article,
.privacy-grid article,
.screenshot-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 34, 0.76);
}

.feature-grid p,
.privacy-grid p,
.screenshot-grid p,
footer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.stat-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

.stat-list span {
  min-height: 88px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 238, 231, 0.04);
  color: var(--muted);
}

.stat-list strong {
  display: block;
  color: var(--text);
  font-size: 1.4rem;
}

.screenshot-placeholder {
  display: grid;
  min-height: 210px;
  place-items: center;
  margin: 0 0 18px;
  padding: 20px;
  border: 1px dashed rgba(245, 238, 231, 0.35);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(245, 238, 231, 0.035);
  text-align: center;
  font-weight: 900;
}

.about-section {
  padding-top: 40px;
}

.about-copy {
  display: grid;
  gap: 16px;
  max-width: 880px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(16, 27, 34, 0.76);
}

.about-copy p,
.legal-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.about-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 6px;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 900;
  text-underline-offset: 3px;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 18px;
}

.legal-modal:target {
  display: grid;
}

.legal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 16, 21, 0.72);
  backdrop-filter: blur(10px);
}

.legal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  max-height: min(780px, calc(100vh - 36px));
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.legal-panel h2 {
  padding-right: 72px;
}

.legal-panel strong {
  color: var(--text);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(245, 238, 231, 0.06);
  font-size: 0.82rem;
  font-weight: 900;
  text-decoration: none;
}

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-bottom: 86px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

@media (max-width: 980px) {
  .hero,
  .band,
  .download-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .feature-grid,
  .privacy-grid,
  .screenshot-grid,
  .stat-list {
    grid-template-columns: 1fr;
  }

  .product-panel {
    max-width: 720px;
  }
}

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

  nav {
    justify-content: flex-start;
  }

  .slot-preview {
    grid-template-columns: 1fr;
  }

  .slot-preview article {
    min-height: 260px;
  }

  .slot-preview article:nth-child(n + 2) {
    display: none;
  }

  .app-window {
    min-height: 360px;
  }

  footer {
    flex-direction: column;
  }
}
