:root {
  --bg: #0c0f14;
  --bg-elevated: #12161e;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f0f2f5;
  --text-muted: #8b95a8;
  --accent: #38bdf8;
  --accent-secondary: #2563eb;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --accent-glow: rgba(56, 189, 248, 0.22);
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-h: 64px;
  --transition: 0.2s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  scrollbar-gutter: stable;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #0a0f0d;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
  outline: none;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: #7dd3fc;
}

.logo img {
  border-radius: 6px;
  object-fit: contain;
}

.hero-logo {
  margin-bottom: 20px;
  filter: drop-shadow(0 0 24px var(--accent-glow));
  object-fit: contain;
}

.download-logo {
  margin-bottom: 12px;
  object-fit: contain;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(37, 99, 235, 0.06), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(56, 189, 248, 0.05), transparent);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(12, 15, 20, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-shrink: 1;
  min-width: 0;
}

.nav-links a {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
  padding: 6px 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}

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

.nav-links a:focus-visible {
  outline: none;
  border-bottom-color: var(--accent);
}

.nav-links a.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.nav-cta {
  color: var(--accent) !important;
}

.nav-cta.is-active {
  color: #7dd3fc !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #0a0f0d;
}

.btn-primary:hover {
  background: #7dd3fc;
  color: #0a0f0d;
}

.btn-secondary {
  background: var(--accent-dim);
  color: var(--accent);
  border-color: rgba(56, 189, 248, 0.25);
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-hover);
  background: var(--bg-card);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 80px 0 100px;
  min-height: calc(100vh - var(--header-h));
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-trust li::before {
  content: "✓ ";
  color: var(--accent);
}

.hero-studio {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-studio-link {
  display: inline-flex;
  opacity: 0.92;
  transition: opacity var(--transition);
}

.hero-studio-link:hover {
  opacity: 1;
}

.hero-studio-link img {
  height: 24px;
  width: auto;
}

/* Vault visual */

.hero-visual {
  display: flex;
  justify-content: center;
}

.vault-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 24px 48px rgba(0, 0, 0, 0.4),
    0 0 80px var(--accent-glow);
}

.vault-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.vault-brand {
  flex-shrink: 0;
  object-fit: contain;
}

.vault-title {
  flex: 1;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.vault-controls {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.vault-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.vault-controls .vault-dot:nth-child(1) { background: #ff5f57; }
.vault-controls .vault-dot:nth-child(2) { background: #febc2e; }
.vault-controls .vault-dot:nth-child(3) { background: #28c840; }

.vault-body {
  padding: 8px;
}

.vault-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  transition: background var(--transition);
}

.vault-row:hover {
  background: var(--bg-card);
}

.vault-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.vault-row div {
  flex: 1;
  min-width: 0;
}

.vault-row strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}

.vault-row span {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-lock {
  font-size: 0.75rem;
  opacity: 0.5;
}

.vault-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}

.vault-status {
  color: var(--text-muted);
}

.vault-badge {
  padding: 3px 8px;
  background: var(--accent-dim);
  color: var(--accent);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

/* Sections */

.section {
  padding: 100px 0;
}

.section-alt {
  background: rgba(255, 255, 255, 0.015);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Features */

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

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border-radius: 10px;
  margin-bottom: 18px;
  color: var(--accent);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Editions */

.edition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.edition-card {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}

.edition-featured {
  border-color: rgba(56, 189, 248, 0.3);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-card) 100%);
  box-shadow: 0 0 40px var(--accent-glow);
}

.edition-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 12px;
}

.edition-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.edition-card > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.edition-card ul {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.edition-card li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.edition-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

/* Download */

.download-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: start;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.download-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.download-content > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.download-meta {
  display: grid;
  gap: 12px;
  margin-bottom: 28px;
}

.download-meta div {
  display: flex;
  gap: 12px;
  font-size: 0.9rem;
}

.download-meta dt {
  color: var(--text-muted);
  min-width: 80px;
}

.download-meta dd {
  font-weight: 500;
}

.download-hash code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  word-break: break-all;
}

.download-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-requirements {
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.download-requirements h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.download-requirements ul {
  list-style: none;
}

.download-requirements li {
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  padding-left: 18px;
  position: relative;
}

.download-requirements li::before {
  content: "-";
  position: absolute;
  left: 4px;
  color: var(--accent);
  font-weight: 700;
}

/* Contact */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-intro h2 {
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-studio-logo {
  margin-bottom: 20px;
  height: 32px;
  width: auto;
}

.contact-intro > p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-benefits {
  list-style: none;
}

.contact-benefits li {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
}

.contact-benefits li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.contact-form {
  position: relative;
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.form-row {
  margin-bottom: 18px;
}

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.optional {
  font-weight: 400;
  opacity: 0.7;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(139, 149, 168, 0.6);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-consent {
  margin-bottom: 20px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}

.consent-label input {
  width: auto;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--accent);
}

.consent-label.error {
  color: #f87171;
}

.form-row input.error,
.form-row select.error,
.form-row textarea.error {
  border-color: #f87171;
}

.form-row select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b95a8' d='M3 4.5L6 7.5L9 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-row textarea {
  resize: vertical;
  min-height: 100px;
}

.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  min-height: 1.4em;
}

.contact-form [type="submit"] {
  min-width: 9.5rem;
}

.form-status.success {
  color: var(--accent);
}

.form-status.error {
  color: #f87171;
}

/* Footer */

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

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-studio-logo {
  display: inline-block;
  margin-top: 14px;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.footer-studio-logo:hover {
  opacity: 1;
}

.footer-studio-logo img {
  height: 28px;
  width: auto;
}

/* Legal pages */

.legal-page {
  padding: 80px 0 100px;
  max-width: 720px;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-updated {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 40px;
}

.legal-page section {
  margin-bottom: 32px;
}

.legal-page h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.legal-page p,
.legal-page li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.legal-page ul {
  padding-left: 20px;
  margin-top: 8px;
}

.legal-page li + li {
  margin-top: 6px;
}

.error-page {
  padding: 100px 0 120px;
  text-align: center;
  max-width: 520px;
}

.error-logo {
  margin: 0 auto 24px;
  filter: drop-shadow(0 0 24px var(--accent-glow));
  object-fit: contain;
}

.error-page h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.error-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Responsive */

@media (max-width: 1100px) {
  .nav-links {
    gap: 14px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 48px 0 72px;
    min-height: auto;
  }

  .hero-visual {
    order: -1;
  }

  .feature-grid,
  .edition-grid {
    grid-template-columns: 1fr 1fr;
  }

  .download-panel,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-panel {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(12, 15, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    padding: 0 24px;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, border-color 0.2s ease;
  }

  .nav-links.open {
    max-height: 420px;
    padding: 16px 24px 24px;
    opacity: 1;
    pointer-events: auto;
    border-bottom-color: var(--border);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 1rem;
    white-space: normal;
    border-bottom: none;
    border-left: 2px solid transparent;
    padding-left: 10px;
  }

  .nav-links a.is-active,
  .nav-links a:focus-visible {
    border-bottom: none;
    border-left-color: var(--accent);
  }

  .feature-grid,
  .edition-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 16px;
  }
}
