:root {
  --bg: #ffffff;
  --surface: #f6f8fb;
  --surface-2: #eef2f7;
  --card: #ffffff;
  --text: #111827;
  --muted: #667085;
  --border: #d9e2ec;
  --border-soft: #edf1f6;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --purple: #7c3aed;
  --gold: #c99a2e;
  --green: #16a34a;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

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

.section {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px clamp(20px, 5vw, 56px);
  border-bottom: 1px solid rgba(217, 226, 236, 0.82);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.site-header.scrolled {
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  letter-spacing: 0;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.15;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #475467;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  padding: 84px 0 76px;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 78%),
    radial-gradient(circle at 75% 20%, rgba(37, 99, 235, 0.12), transparent 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.badge,
.section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: var(--blue-dark);
  background: #eff6ff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.badge {
  margin-bottom: 18px;
  padding: 7px 10px;
}

.section-label {
  margin-bottom: 14px;
  padding: 7px 10px;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.hero-copy p,
.section-heading p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #ffffff;
  background: #111827;
}

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

.btn-secondary {
  border: 1px solid var(--border);
  color: #344054;
  background: #ffffff;
}

.btn-secondary:hover {
  border-color: #bfdbfe;
  color: var(--blue);
}

.btn.disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.notice {
  max-width: 620px;
  padding: 14px 16px;
  border: 1px solid #fde68a;
  border-radius: 12px;
  color: #7c5b12 !important;
  background: #fffbeb;
  font-size: 0.94rem !important;
}

.app-window,
.feature-card,
.coin-card,
.info-card,
.requirements-card,
.screenshot-card,
.download-box,
.faq-item {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.app-window {
  overflow: hidden;
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-soft);
  background: #f8fafc;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cbd5e1;
}

.window-bar span:first-child {
  background: #ef4444;
}

.window-bar span:nth-child(2) {
  background: #f59e0b;
}

.window-bar span:nth-child(3) {
  background: #22c55e;
}

.window-bar strong {
  margin-left: 8px;
  color: #475467;
  font-size: 0.86rem;
}

.app-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  min-height: 360px;
}

.app-sidebar {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--border-soft);
  background: #fbfcfe;
}

.app-sidebar span {
  padding: 8px 10px;
  border-radius: 8px;
  color: #667085;
  font-size: 0.86rem;
  font-weight: 700;
}

.app-sidebar .active {
  color: var(--blue);
  background: #eff6ff;
}

.app-content {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 22px;
}

.app-status,
.app-field,
.app-row > div {
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px;
  background: #ffffff;
}

.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-status span,
.app-field label,
.app-row label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.app-status strong {
  color: #b45309;
}

.app-field div {
  margin-top: 6px;
  color: #98a2b3;
  font-size: 0.92rem;
}

.app-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.usage-preview {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef2f7;
}

.usage-preview span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.preview-button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #111827;
  font: inherit;
  font-weight: 800;
}

.two-column,
.requirements-layout,
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.section-heading {
  max-width: 620px;
}

.section-heading.narrow {
  max-width: 760px;
  margin-bottom: 28px;
}

.muted-section {
  background: var(--surface);
}

.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feature-card,
.info-card,
.coin-card,
.screenshot-card {
  padding: 22px;
}

.feature-card p,
.info-card p,
.coin-card p,
.screenshot-card p,
.download-box p,
.site-footer p,
.faq-item p {
  color: var(--muted);
}

.coin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.coin-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--blue);
  background: #f8fafc;
  font-size: 0.78rem;
  font-weight: 800;
}

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

.steps li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
}

.steps span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #ffffff;
  background: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
}

.steps strong {
  display: block;
  margin-bottom: 2px;
}

.steps p {
  margin-bottom: 0;
  color: var(--muted);
}

.info-card strong {
  display: inline-flex;
  margin-top: 8px;
  padding: 7px 9px;
  border-radius: 8px;
  color: #7c5b12;
  background: #fffbeb;
  font-size: 0.86rem;
}

.requirements-card {
  overflow: hidden;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  vertical-align: top;
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th {
  width: 34%;
  color: #344054;
  font-size: 0.92rem;
}

td {
  color: var(--muted);
}

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

.placeholder-ui {
  display: grid;
  gap: 12px;
  min-height: 220px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.placeholder-ui span {
  display: block;
  border-radius: 10px;
  background: #e5eaf2;
}

.placeholder-ui span:first-child {
  width: 58%;
  height: 28px;
}

.placeholder-ui span:nth-child(2) {
  height: 82px;
}

.placeholder-ui span:nth-child(3) {
  width: 72%;
  height: 44px;
}

.placeholder-ui.compact span:first-child {
  width: 42%;
}

.placeholder-ui.compact span:nth-child(2) {
  height: 44px;
}

.placeholder-ui.compact span:nth-child(3) {
  height: 82px;
}

.download-box {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.42fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 36%);
}

.download-action {
  display: grid;
  gap: 12px;
}

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

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

.faq-item {
  overflow: hidden;
  box-shadow: none;
}

.faq-item summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 800;
}

.faq-item summary::marker {
  color: var(--blue);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
}

.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
}

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

.footer-links a,
.footer-note {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 72px 16px auto;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .hero-grid,
  .two-column,
  .requirements-layout,
  .faq-layout,
  .download-box,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

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

  .footer-grid {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 58px 0 64px;
  }

  h1 {
    font-size: 3rem;
  }

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

  .feature-grid,
  .info-grid,
  .coin-grid,
  .screenshot-grid,
  .app-row {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  th,
  td {
    display: block;
    width: 100%;
    padding: 12px 16px;
  }

  th {
    padding-bottom: 2px;
  }

  td {
    padding-top: 2px;
  }
}

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