/* Shared chrome */
.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(8, 11, 14, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(120%);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: 0.025em;
}

.site-title:hover { color: var(--text-primary); }

.site-title__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--text-inverse);
  background: var(--accent-primary);
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.site-title__label small {
  display: block;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.56rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-link {
  padding: 9px 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.065);
}

.nav-link.active::before {
  content: '';
  width: 5px;
  height: 5px;
  display: inline-block;
  margin: 0 7px 1px 0;
  background: var(--accent-primary);
  border-radius: 50%;
}

.mobile-menu-btn {
  width: 42px;
  height: 42px;
  display: none;
  place-items: center;
  padding: 0;
  color: var(--text-primary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
}

.mobile-menu-btn span,
.mobile-menu-btn::before,
.mobile-menu-btn::after {
  content: '';
  width: 18px;
  height: 1px;
  display: block;
  background: currentColor;
  transition: transform var(--transition-speed) ease, opacity var(--transition-speed) ease;
}

.mobile-menu-btn span { margin: 5px 0; }
.mobile-menu-btn[aria-expanded='true'] span { opacity: 0; }
.mobile-menu-btn[aria-expanded='true']::before { transform: translateY(6px) rotate(45deg); }
.mobile-menu-btn[aria-expanded='true']::after { transform: translateY(-6px) rotate(-45deg); }

.site-footer {
  padding: 64px 0 28px;
  background: #06080a;
  border-top: 1px solid var(--border-subtle);
}

.footer-content {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 36px 64px;
  align-items: start;
}

.footer-brand { max-width: 520px; }
.footer-brand strong { display: block; margin-bottom: 10px; font-size: 1.05rem; }
.footer-brand p, .disclaimer { margin: 0; color: var(--text-muted); font-size: 0.84rem; }

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 28px;
}

.footer-nav a { color: var(--text-secondary); font-size: 0.85rem; }
.footer-nav a:hover { color: var(--text-primary); }

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.copyright {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

/* Homepage */
.home-hero {
  min-height: min(760px, calc(100svh - var(--header-height)));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.home-hero__media,
.home-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-hero__media { z-index: -3; object-fit: cover; object-position: center; }

.home-hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.97) 0%, rgba(5, 8, 10, 0.86) 33%, rgba(5, 8, 10, 0.23) 70%, rgba(5, 8, 10, 0.14) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 26%, transparent 78%, rgba(5, 8, 10, 0.35) 100%);
}

.home-hero__content { padding-top: 68px; padding-bottom: 76px; }
.home-hero .eyebrow { margin-bottom: 22px; }

.home-hero h1 {
  max-width: 760px;
  margin-bottom: 28px;
  font-size: clamp(2.65rem, 6.2vw, 5.55rem);
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.home-hero__description {
  max-width: 630px;
  margin-bottom: 36px;
  color: #c1cbca;
  font-size: clamp(1rem, 1.6vw, 1.18rem);
}

.home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.home-hero__note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 40px 0 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.home-hero__note span {
  width: 7px;
  height: 7px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(131, 216, 198, 0.12);
}

.workshop-intro {
  padding: 78px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.workshop-intro__grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(340px, 1.2fr);
  gap: clamp(48px, 9vw, 130px);
  align-items: start;
}

.workshop-intro__lead {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(1.55rem, 3.3vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.workshop-intro__grid > p:last-child { margin: 0; color: var(--text-secondary); font-size: 1.02rem; }

.project-section { padding: 104px 0 120px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 410px);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.section-heading .eyebrow { margin-bottom: 13px; }
.section-heading h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.section-heading > p { margin: 0; color: var(--text-secondary); }

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

.download-card {
  min-height: 440px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px;
  color: var(--text-primary);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 44%), var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

a.download-card:hover {
  color: var(--text-primary);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
}

.download-card.is-static { cursor: default; }

.download-card::before {
  content: '';
  width: 180px;
  height: 180px;
  position: absolute;
  z-index: 0;
  top: -90px;
  right: -70px;
  background: var(--status-color, var(--accent-primary));
  border-radius: 50%;
  filter: blur(86px);
  opacity: 0.12;
  pointer-events: none;
}

.download-card > * { position: relative; z-index: 1; }

.download-card.is-priority {
  grid-column: span 2;
  background:
    linear-gradient(115deg, rgba(131, 216, 198, 0.085), transparent 48%),
    var(--surface-base);
}

.status-priority { --status-color: var(--accent-primary); }
.status-preparing { --status-color: var(--violet); }
.status-paused { --status-color: var(--warning-amber); }
.status-stopped { --status-color: var(--danger); }
.status-private { --status-color: #8a9495; }

.download-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 34px;
}

.download-card__icon,
.download-card__monogram {
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  object-fit: cover;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
}

.download-card__monogram { font-family: var(--font-mono); font-size: 0.92rem; font-weight: 750; }

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  color: var(--status-color, var(--text-secondary));
  background: color-mix(in srgb, var(--status-color, #8a9495) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--status-color, #8a9495) 27%, transparent);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.project-status__dot { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.project-status--priority { --status-color: var(--accent-primary); }
.project-status--preparing { --status-color: var(--violet); }
.project-status--paused { --status-color: var(--warning-amber); }
.project-status--stopped { --status-color: var(--danger); }
.project-status--private { --status-color: #929c9d; }

.download-card__category {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.download-card__title { margin-bottom: 8px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.download-card__subtitle { margin: 0 0 20px; color: var(--accent-primary); font-size: 0.86rem; }
.download-card__summary { margin: 0 0 18px; color: var(--text-secondary); font-size: 0.91rem; line-height: 1.72; }
.download-card__status-detail { margin: 0 0 20px; color: var(--text-primary); font-size: 0.82rem; }

.download-card__tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }

.download-tag {
  padding: 5px 8px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}

.download-card__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.download-card__platforms { color: var(--text-muted); font-size: 0.7rem; }
.download-card__action { color: var(--status-color, var(--accent-primary)); font-size: 0.78rem; font-weight: 680; text-align: right; }
a.download-card .download-card__action::after { content: ' ↗'; }

.contact-band { padding: 0 0 110px; }

.contact-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(32px, 5vw, 58px);
  background:
    linear-gradient(120deg, rgba(131, 216, 198, 0.1), transparent 48%),
    var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.contact-band .eyebrow { margin-bottom: 12px; }
.contact-band h2 { margin-bottom: 13px; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.contact-band p:last-child { max-width: 620px; margin: 0; color: var(--text-secondary); }
.contact-band .btn { flex: 0 0 auto; }

/* Internal pages */
.page-header { margin: 0 0 48px; padding-top: 72px; }
.page-title { margin-bottom: 14px; font-size: clamp(2.4rem, 5vw, 4.5rem); }
.page-description { max-width: 720px; margin: 0 auto; color: var(--text-secondary); font-size: 1.05rem; }

.product-header {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-bottom: 48px;
}

.product-icon {
  width: 128px;
  height: 128px;
  object-fit: cover;
  background: var(--surface-hover);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.product-info h1 { margin-bottom: 8px; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.product-subtitle { margin-bottom: 16px; color: var(--accent-primary); font-size: 1.1rem; }
.product-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }

.prose { color: var(--text-secondary); }
.prose h2 { margin-top: 2.9rem; padding-bottom: 10px; border-bottom: 1px solid var(--border-subtle); font-size: 1.65rem; }
.prose h3 { margin-top: 2rem; font-size: 1.25rem; }
.prose p, .prose li { color: var(--text-secondary); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 9px; }
.prose code { color: #d6dfde; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-subtle); border-radius: 5px; padding: 2px 6px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

.notice-panel {
  padding: 22px 24px;
  background: rgba(131, 216, 198, 0.055);
  border: 1px solid rgba(131, 216, 198, 0.22);
  border-radius: var(--radius-md);
}

.notice-panel p:last-child { margin-bottom: 0; }

.legal-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px 0 42px;
}

.legal-summary a {
  padding: 16px 18px;
  color: var(--text-secondary);
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  font-size: 0.84rem;
}

.legal-summary a:hover { color: var(--text-primary); border-color: var(--border-strong); }

.feedback-status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
}

.feedback-status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 13px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  font-size: 0.78rem;
}

.feedback-status-list strong { color: var(--text-primary); font-weight: 620; }

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(28px, 6vw, 84px);
  align-items: start;
  max-width: 1040px;
  margin: 0 auto 100px;
}

.feedback-context {
  position: sticky;
  top: calc(var(--header-height) + 28px);
}

.feedback-context .eyebrow { margin-bottom: 12px; }
.feedback-context h2 { margin-bottom: 24px; font-size: 1.7rem; }
.feedback-context__note { color: var(--text-muted); font-size: 0.82rem; }

.feedback-form-container {
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface-base);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.feedback-form-container > h2 { margin-bottom: 22px; font-size: 1.7rem; }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; color: var(--text-primary); font-size: 0.9rem; font-weight: 650; }

.form-required {
  margin-left: 6px;
  color: var(--warning-amber);
  font-family: var(--font-mono);
  font-size: 0.67rem;
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  padding: 13px 15px;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.form-control:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(131, 216, 198, 0.12); }
textarea.form-control { min-height: 180px; resize: vertical; }
.form-note { margin-top: 7px; color: var(--text-muted); font-family: var(--font-mono); font-size: 0.7rem; text-align: right; }

.alert {
  margin-bottom: 22px;
  padding: 15px 17px;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

.alert strong { display: block; margin-bottom: 4px; color: var(--text-primary); }
.alert p { margin: 0; }
.alert-info { background: rgba(99, 174, 185, 0.065); border-color: rgba(99, 174, 185, 0.22); }
.alert-danger { color: #f0aaa5; background: rgba(223, 129, 123, 0.07); border-color: rgba(223, 129, 123, 0.28); }
.alert-success { color: #ade6d9; background: rgba(131, 216, 198, 0.07); border-color: rgba(131, 216, 198, 0.28); }
.alert[hidden] { display: none; }

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: -4px 0 24px;
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
}

.consent-check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--accent-primary); }

.btn-submit { width: 100%; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(8, 17, 15, 0.25); border-left-color: var(--text-inverse); border-radius: 50%; animation: spin 0.8s linear infinite; }
.spinner[hidden] { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 15px 15px 15px 38px;
  background: var(--surface-soft);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
}

.feature-list li::before { content: '✓'; position: absolute; left: 14px; color: var(--accent-primary); font-weight: 700; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.gallery-item { overflow: hidden; background: var(--surface-base); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.gallery-img { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: cover; background: #050607; cursor: pointer; }
.gallery-caption { padding: 12px; color: var(--text-secondary); border-top: 1px solid var(--border-subtle); font-size: 0.83rem; text-align: center; }

.specs-table { width: 100%; margin-top: 1rem; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 13px 16px; border-bottom: 1px solid var(--border-subtle); text-align: left; }
.specs-table th { width: 30%; color: var(--text-primary); background: var(--surface-soft); font-weight: 620; }
.specs-table td { color: var(--text-secondary); font-family: var(--font-mono); font-size: 0.84rem; }

.ad-placeholder { margin: 40px 0; padding: 24px; background: var(--surface-soft); border: 1px dashed var(--border-subtle); border-radius: 10px; text-align: center; }
.ad-label { display: block; margin-bottom: 8px; color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }

.modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: rgba(4, 6, 8, 0.96);
  backdrop-filter: blur(10px);
}

.modal.open { display: flex; }
.modal-content { max-width: 90%; max-height: 80vh; display: block; object-fit: contain; border-radius: 10px; box-shadow: var(--shadow-lift); }
.modal-close { width: 46px; height: 46px; position: absolute; top: 22px; right: 24px; display: grid; place-items: center; color: var(--text-secondary); background: rgba(255,255,255,0.04); border: 1px solid var(--border-subtle); border-radius: 50%; font-size: 30px; cursor: pointer; }
.modal-caption { width: 90%; margin: 16px auto 0; color: var(--text-secondary); text-align: center; }

@media (max-width: 1024px) {
  .downloads-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .download-card.is-priority { grid-column: span 2; }
}

@media (max-width: 820px) {
  .mobile-menu-btn { display: grid; }

  .site-nav {
    position: absolute;
    top: calc(var(--header-height) - 1px);
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    padding: 12px;
    background: rgba(13, 18, 22, 0.98);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    box-shadow: var(--shadow-lift);
  }

  .site-nav.open { display: grid; }
  .nav-link { padding: 12px 14px; }
  .footer-content { grid-template-columns: 1fr; }
  .footer-meta { grid-column: auto; flex-direction: column; }
  .workshop-intro__grid, .section-heading { grid-template-columns: 1fr; gap: 26px; }
  .contact-band__inner { align-items: flex-start; flex-direction: column; }
  .legal-summary { grid-template-columns: 1fr; }
  .feedback-layout { grid-template-columns: 1fr; }
  .feedback-context { position: static; }
}

@media (max-width: 640px) {
  .site-title__label small { display: none; }
  .home-hero { min-height: 680px; align-items: flex-end; }
  .home-hero__media { object-position: 64% center; }
  .home-hero__veil {
    background:
      linear-gradient(0deg, rgba(5, 8, 10, 0.98) 4%, rgba(5, 8, 10, 0.8) 52%, rgba(5, 8, 10, 0.18) 100%),
      linear-gradient(90deg, rgba(5, 8, 10, 0.56), transparent 80%);
  }
  .home-hero__content { padding-top: 130px; padding-bottom: 52px; }
  .home-hero h1 { font-size: clamp(2.45rem, 12vw, 3.55rem); }
  .home-hero__actions { align-items: stretch; flex-direction: column; }
  .home-hero__actions .btn { width: 100%; }
  .workshop-intro { padding: 58px 0; }
  .project-section { padding: 76px 0 88px; }
  .downloads-grid { grid-template-columns: 1fr; }
  .download-card, .download-card.is-priority { grid-column: auto; min-height: 0; padding: 22px; }
  .download-card__top { margin-bottom: 28px; }
  .project-status { max-width: 180px; white-space: normal; text-align: right; }
  .contact-band { padding-bottom: 82px; }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .product-header { align-items: center; flex-direction: column; text-align: center; }
  .product-meta { justify-content: center; }
  .specs-table th, .specs-table td { display: block; width: 100%; }
  .feedback-status-list { grid-template-columns: 1fr; }
}
