:root {
  color-scheme: dark;
  --bg: #071a27;
  --panel: #0c2536;
  --panel-2: #102c3f;
  --text: #f4fbff;
  --muted: #a9bfd0;
  --line: rgba(122, 176, 214, 0.26);
  --primary: #1f6fff;
  --primary-hover: #4387ff;
  --accent: #7fd2ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(42px);
  filter: blur(10px);
  transition:
    opacity 680ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 680ms cubic-bezier(0.22, 1, 0.36, 1),
    filter 680ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform, filter;
}

body.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

a {
  color: inherit;
  text-decoration: none;
}

.hero {
  position: relative;
  min-height: clamp(560px, 64vw, 820px);
  padding: 24px clamp(20px, 4vw, 44px) 42px;
  background-image:
    linear-gradient(180deg, rgba(7, 26, 39, 0.18), rgba(7, 26, 39, 0.82)),
    linear-gradient(90deg, rgba(7, 26, 39, 0.88) 0%, rgba(7, 26, 39, 0.48) 38%, rgba(7, 26, 39, 0.10) 64%),
    url("assets/hero.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center 18%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 26, 39, 0.06), rgba(7, 26, 39, 0.22));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 620px;
  padding-top: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.hero-title-accent {
  color: var(--primary);
}

.hero-copy,
.section-copy,
.download-card p,
.feature-card p,
.checklist-card li {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy {
  max-width: 580px;
  font-size: 1.05rem;
  white-space: pre-line;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 600;
  text-align: center;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.button-primary {
  background: var(--primary);
  color: #fff;
}

.button-primary:hover {
  background: var(--primary-hover);
}

.button-secondary {
  background: rgba(7, 26, 39, 0.52);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-secondary:hover {
  background: rgba(15, 40, 58, 0.82);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
  color: var(--text);
  font-size: 0.95rem;
}

.hero-points span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(7, 26, 39, 0.42);
}

main {
  padding-bottom: 56px;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 0;
}

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

.section-header {
  max-width: 700px;
  margin-bottom: 22px;
}

.section-header h2,
.download-card h2,
.highlight-grid h2 {
  margin-bottom: 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.steps-grid,
.features-grid {
  display: grid;
  gap: 14px;
}

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

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

.feature-card,
.checklist-card,
.download-card,
.pricing-card,
.pricing-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 18px;
}

.feature-card h3,
.checklist-card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(31, 111, 255, 0.18);
  color: var(--accent);
  font-size: 0.96rem;
  font-weight: 700;
}

.section-highlight {
  padding-top: 64px;
}

.highlight-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.checklist-card {
  padding: 22px;
  background: var(--panel-2);
}

.checklist-card ul {
  margin: 0;
  padding-left: 18px;
}

.checklist-card li + li {
  margin-top: 10px;
}

.download-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.pricing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: stretch;
  padding: 24px;
}

.pricing-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.pricing-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 22px;
  background: var(--panel-2);
}

.price-label,
.price-note {
  margin-bottom: 0;
}

.price-label {
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 600;
}

.price-value {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  line-height: 1;
  font-weight: 700;
}

.pricing-button {
  width: 100%;
  margin-top: 8px;
}

.pricing-secondary-button {
  margin-top: 0;
}

.download-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.download-note {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.locale-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 37, 54, 0.94);
  box-shadow: var(--shadow);
}

.redeem-page {
  min-height: 100vh;
  padding: 40px 20px 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.redeem-shell {
  width: min(860px, 100%);
}

.redeem-header {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.redeem-header h1 {
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1.02;
}

.redeem-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 18px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.recover-card {
  max-width: 560px;
  margin: 0 auto;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.recover-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 14px;
}

.recover-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.recover-label {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.recover-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  font: 400 1rem "Segoe UI", Arial, sans-serif;
}

.recover-input::placeholder {
  color: var(--muted);
}

.recover-input:focus {
  outline: none;
  border-color: rgba(127, 210, 255, 0.45);
}

.recover-submit {
  width: 100%;
}

.recover-result-panel {
  margin-top: 18px;
}

#recover-license-keys {
  white-space: pre-line;
}

.recover-icon-button {
  min-width: 48px;
  padding: 0 14px;
  font-size: 1.05rem;
}

.redeem-status-panel,
.redeem-result {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.redeem-status-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.redeem-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.redeem-loading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 600;
}

.redeem-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(127, 210, 255, 0.22);
  border-top-color: var(--accent);
  border-radius: 999px;
  animation: redeem-spin 0.8s linear infinite;
}

.redeem-status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 16px;
  line-height: 1;
}

.redeem-result-block {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 26, 39, 0.42);
}

.redeem-result-label {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
}

.redeem-license {
  display: block;
  color: var(--text);
  font: 700 1.05rem "Consolas", "Courier New", monospace;
  word-break: break-all;
}

.redeem-license-soft {
  color: var(--muted);
}

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

.button.is-disabled,
.button[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.52;
}

.download-note.is-error,
#redeem-feedback.is-error {
  color: #ff9b9b;
}

#redeem-activation-hint[hidden] {
  display: none;
}

@keyframes redeem-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.locale-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: 600 0.92rem "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}

.locale-button.is-active {
  background: rgba(31, 111, 255, 0.18);
  border-color: rgba(127, 210, 255, 0.32);
  color: var(--text);
}

.locale-flag {
  font-size: 1rem;
  line-height: 1;
}

.locale-separator {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 920px) {
  .steps-grid,
  .features-grid,
  .highlight-grid,
  .pricing-card,
  .download-card,
  .redeem-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: clamp(500px, 86vw, 700px);
    background-position: 62% 16%;
  }

  .hero-content {
    max-width: 34rem;
  }

  .section {
    padding-top: 44px;
  }
}

@media (max-width: 680px) {
  body.reveal-ready [data-reveal] {
    transform: translateY(24px);
    filter: blur(6px);
  }

  .hero {
    min-height: auto;
    padding: 0 0 28px;
    background: none;
    display: block;
  }

  .hero::before {
    content: "";
    display: block;
    width: 100%;
    aspect-ratio: 1536 / 550;
    background-image:
      linear-gradient(180deg, rgba(7, 26, 39, 0.06), rgba(7, 26, 39, 0.22)),
      url("assets/hero.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
  }

  .hero-content {
    max-width: none;
    padding: 18px 14px 0;
  }

  .hero-overlay {
    display: none;
  }

  .section {
    width: min(1120px, calc(100% - 24px));
    padding-top: 36px;
  }

  .eyebrow {
    margin-bottom: 10px;
    font-size: 0.82rem;
  }

  h1 {
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 12vw, 3.2rem);
    line-height: 1;
  }

  .hero-copy {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 20px;
  }

  .hero-actions .button,
  .pricing-button,
  .download-actions .button,
  .redeem-actions .button,
  .recover-submit {
    width: 100%;
  }

  .feature-card,
  .checklist-card,
  .download-card,
  .pricing-card,
  .pricing-panel,
  .redeem-card,
  .recover-card,
  .redeem-status-panel,
  .redeem-result {
    padding: 18px;
  }

  .section-header {
    margin-bottom: 18px;
  }

  .section-header h2,
  .download-card h2,
  .highlight-grid h2 {
    margin-bottom: 10px;
    font-size: clamp(1.65rem, 8vw, 2.15rem);
  }

  .pricing-card,
  .download-card,
  .highlight-grid,
  .redeem-card {
    gap: 14px;
  }

  .download-actions,
  .redeem-actions {
    align-items: stretch;
  }

  .redeem-page {
    padding: 24px 12px 96px;
    align-items: flex-start;
  }

  .redeem-header {
    margin-bottom: 18px;
  }

  .redeem-header h1 {
    font-size: clamp(2rem, 10vw, 2.8rem);
  }

  .locale-switcher {
    left: 50%;
    right: auto;
    bottom: max(10px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    padding: 8px 10px;
  }

  main {
    padding-bottom: 90px;
  }
}

@media (max-width: 520px) {
  .hero {
    padding-bottom: 24px;
  }

  .hero::before {
    background-position: center top;
  }

  .button {
    min-height: 46px;
    padding: 10px 14px;
    font-size: 0.96rem;
  }

  .feature-card {
    padding: 16px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    font-size: 0.88rem;
  }

  .pricing-list,
  .checklist-card ul {
    padding-left: 16px;
  }

  .price-value {
    font-size: clamp(2.1rem, 12vw, 2.7rem);
  }

  .locale-switcher {
    width: calc(100% - 24px);
    justify-content: center;
    border-radius: 14px;
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 1rem "Segoe UI", Arial, sans-serif;
  text-align: left;
  cursor: pointer;
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-panel {
  padding: 0 20px 18px;
}

.faq-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.support-card,
.support-form-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.support-actions {
  display: flex;
  justify-content: flex-end;
}

.support-button {
  min-width: 220px;
}

.support-page {
  align-items: flex-start;
}

.support-shell {
  width: min(920px, 100%);
}

.support-form-card {
  grid-template-columns: 1fr;
}

.support-form {
  display: grid;
  gap: 16px;
}

.support-textarea {
  min-height: 128px;
  padding: 14px;
  resize: vertical;
}

.support-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.support-actions-row .button {
  min-width: 220px;
}

@media (max-width: 920px) {
  .support-card,
  .support-form-card {
    grid-template-columns: 1fr;
  }

  .support-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .faq-trigger {
    padding: 16px;
    font-size: 0.98rem;
  }

  .faq-panel {
    padding: 0 16px 16px;
  }

  .support-actions-row .button,
  .support-button {
    width: 100%;
    min-width: 0;
  }
}
