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

:root {
  --bg: #f6f1e8;
  --bg-soft: #efe6d6;
  --surface: #ffffff;
  --surface-warm: #f7efe2;
  --ink: #1c1a17;
  --muted: #6b665d;
  --accent: #d59c3f;
  --accent-dark: #b87b2b;
  --accent-teal: #2e8b7c;
  --accent-blue: #1f4d6d;
  --border: rgba(31, 26, 20, 0.12);
  --shadow: 0 18px 45px rgba(28, 24, 18, 0.12);
  --radius: 20px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Space Grotesk", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 450px at 12% -10%, #ffe7c2 0%, rgba(255, 231, 194, 0) 70%),
    radial-gradient(800px 500px at 90% 0%, #cce8df 0%, rgba(204, 232, 223, 0) 70%),
    var(--bg);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.3;
  pointer-events: none;
  z-index: -1;
}

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

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 5vw 48px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Space Grotesk", sans-serif;
}

.brand.small {
  font-size: 0.9rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  box-shadow: var(--shadow);
}

.brand-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.brand-tagline {
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 18px;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.nav a:hover::after {
  opacity: 1;
}

.lang-switch {
  display: flex;
  gap: 8px;
  background: var(--surface);
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  box-shadow: 0 6px 20px rgba(24, 20, 14, 0.08);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
}

.lang-btn[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
  padding: 24px 0 64px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
  background: rgba(213, 156, 63, 0.18);
  border: 1px solid rgba(213, 156, 63, 0.35);
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  line-height: 1.05;
  margin: 18px 0 12px;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}

.hero-list li {
  padding-left: 28px;
  position: relative;
  font-weight: 500;
}

.hero-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(46, 139, 124, 0.2);
}

.cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-teal));
  color: #fff;
  box-shadow: 0 12px 30px rgba(213, 156, 63, 0.3);
}

.btn.ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(28, 24, 18, 0.12);
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  transform: none;
  box-shadow: none;
}

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

.metric-card {
  background: var(--surface);
  border-radius: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(28, 24, 18, 0.08);
  display: grid;
  gap: 6px;
}

.metric-value {
  font-weight: 700;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-panel {
  display: grid;
  place-items: center;
}

.panel-card {
  width: 100%;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #fff, #f8f1e3);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  margin-bottom: 18px;
}

.panel-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46, 139, 124, 0.16);
  color: var(--accent-teal);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(46, 139, 124, 0.2);
}

.panel-grid {
  display: grid;
  gap: 16px;
}

.panel-item {
  display: flex;
  justify-content: space-between;
  font-weight: 500;
}

.panel-label {
  color: var(--muted);
}

.panel-footer {
  margin-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 72px 0;
}

.success {
  padding: 72px 0 120px;
}

.success-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.success-key-block {
  background: var(--surface-warm);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(31, 26, 20, 0.08);
  display: grid;
  gap: 10px;
}

.success-label {
  font-weight: 600;
  color: var(--muted);
}

.success-key {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  letter-spacing: 1px;
  padding: 12px 14px;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed rgba(31, 26, 20, 0.2);
  word-break: break-all;
}

.success-key-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.success-key-row .success-key {
  flex: 1 1 260px;
}

.success-key-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.success-key-actions .btn {
  padding: 10px 16px;
  font-size: 0.85rem;
}

.success-status {
  font-weight: 600;
  color: var(--accent-blue);
}

.success-status[data-state="success"] {
  color: var(--accent-teal);
}

.success-status[data-state="error"] {
  color: #b93838;
}

.success-hint {
  color: var(--muted);
  font-size: 0.95rem;
}

.success-actions {
  display: flex;
  justify-content: flex-start;
}

.policy {
  padding: 72px 0 120px;
}

.policy-card {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
}

.policy-meta {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.policy-section {
  display: grid;
  gap: 8px;
}

.policy-section h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.policy-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.section-title {
  max-width: 680px;
}

.section-title h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 12px;
}

.section-title p {
  color: var(--muted);
  font-size: 1rem;
  margin: 0;
}

.feature-grid,
.pricing-grid,
.faq-grid {
  margin-top: 32px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.feature-card,
.price-card,
.faq-card,
.step-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(28, 24, 18, 0.08);
}

.feature-card h3,
.price-card h3,
.faq-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", sans-serif;
}

.feature-card p,
.price-card p,
.faq-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.features .highlight-grid {
  margin-top: 26px;
}

.features .highlight-grid + .feature-grid {
  margin-top: 22px;
}

.feature-card.highlight {
  background: linear-gradient(150deg, #fffaf1, #f5ebdb);
  border-color: rgba(213, 156, 63, 0.35);
  box-shadow: 0 18px 38px rgba(213, 156, 63, 0.18);
}

.feature-card.highlight h3 {
  color: var(--accent-blue);
}

.download-intro {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.download-detect {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 10px 22px rgba(28, 24, 18, 0.08);
  font-weight: 600;
}

.download-detect-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.download-detect-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.9rem;
}

.download-support {
  color: var(--muted);
  font-weight: 500;
}

.download-grid {
  margin-top: 28px;
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.download-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(28, 24, 18, 0.08);
  display: grid;
  gap: 16px;
  grid-template-rows: auto auto 1fr auto auto;
  position: relative;
  overflow: hidden;
}

.download-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-teal));
  opacity: 0.25;
}

.download-card.is-active {
  border-color: rgba(46, 139, 124, 0.4);
  box-shadow: 0 18px 36px rgba(46, 139, 124, 0.18);
}

.download-card.is-active::after {
  opacity: 1;
}

.download-head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.download-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 52px;
  font-weight: 700;
  font-family: "Space Grotesk", sans-serif;
  background: var(--surface-warm);
  color: var(--accent-blue);
  border: 1px solid var(--border);
}

.download-card h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.download-tagline {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(31, 77, 109, 0.12);
  color: var(--accent-blue);
  white-space: nowrap;
}

.download-badge.ready {
  background: rgba(46, 139, 124, 0.14);
  color: var(--accent-teal);
}

.download-badge.muted {
  background: rgba(31, 26, 20, 0.08);
  color: var(--muted);
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.download-list li {
  padding-left: 22px;
  position: relative;
  color: var(--muted);
  font-weight: 500;
}

.download-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-teal);
  box-shadow: 0 0 0 4px rgba(46, 139, 124, 0.18);
}

.download-list.muted li {
  color: var(--muted);
}

.download-list.muted li::before {
  background: rgba(31, 26, 20, 0.12);
  box-shadow: none;
}

.download-card .btn {
  width: 100%;
}

.download-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-teal);
  background: rgba(46, 139, 124, 0.14);
  padding: 6px 10px;
  border-radius: 999px;
  width: fit-content;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.download-card.is-active .download-note {
  opacity: 1;
  transform: translateY(0);
}

.steps .step-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.step-index {
  display: inline-flex;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.pricing .price-card {
  background: var(--surface-warm);
}

.price-card.highlight {
  border: 1px solid rgba(46, 139, 124, 0.4);
  box-shadow: 0 18px 36px rgba(46, 139, 124, 0.18);
}

.price-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.price-tag {
  font-weight: 600;
  color: var(--accent-dark);
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.price-card li {
  padding-left: 22px;
  position: relative;
  font-weight: 500;
}

.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.purchase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.purchase-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(31, 77, 109, 0.12);
  border-radius: 14px;
  font-weight: 500;
  color: var(--accent-blue);
}

.purchase-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  background: var(--surface);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.purchase-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.9rem;
}

.purchase-form input,
.purchase-form select {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.95rem;
  font-family: inherit;
}

.purchase-form .full {
  grid-column: 1 / -1;
}

.purchase-notice {
  grid-column: 1 / -1;
  min-height: 22px;
  color: var(--accent-blue);
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.purchase-notice.visible {
  opacity: 1;
}

.purchase-notice[data-state="success"] {
  color: var(--accent-teal);
}

.purchase-notice[data-state="error"] {
  color: #b93838;
}

.faq .faq-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.site-footer {
  padding: 56px 0 32px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(213, 156, 63, 0.4),
    rgba(46, 139, 124, 0.5),
    transparent
  );
}

.site-footer::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -120px;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(213, 156, 63, 0.16), transparent 70%);
  pointer-events: none;
  opacity: 0.9;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
  align-items: center;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  padding: 24px 28px;
  border-radius: 24px;
  background: linear-gradient(145deg, #ffffff, #f7efe2);
  border: 1px solid rgba(31, 26, 20, 0.12);
  box-shadow: 0 22px 55px rgba(28, 24, 18, 0.14);
  overflow: hidden;
}

.footer-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(160px 160px at 12% 0%, rgba(255, 231, 194, 0.35), transparent 60%),
    radial-gradient(220px 220px at 90% 0%, rgba(204, 232, 223, 0.35), transparent 60%);
  opacity: 0.7;
  pointer-events: none;
}

.footer-inner > * {
  position: relative;
  z-index: 1;
}

.site-footer .brand-mark {
  box-shadow: 0 12px 26px rgba(213, 156, 63, 0.35);
}

.footer-note {
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.85rem;
}

.footer-links a {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 77, 109, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(31, 77, 109, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-links a:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(31, 77, 109, 0.18);
  text-decoration: none;
}

.footer-year {
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--muted);
  justify-self: end;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .download-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .download-detect {
    width: 100%;
    justify-content: space-between;
  }

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

  .footer-inner {
    padding: 20px;
  }

  .footer-year {
    justify-self: start;
  }

  .metric-row {
    grid-template-columns: 1fr;
  }

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

  .hero-list li {
    padding-left: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
