:root {
  --bg: #09090b;
  --panel: #18181b;
  --panel-2: #121214;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --amber: #f59e0b;
  --amber-2: #f39a16;
  --amber-dim: rgba(245, 158, 11, 0.14);
  --amber-line: rgba(245, 158, 11, 0.4);
  --green: #22c55e;
  --red: #ef4444;
  --radius: 12px;
  --max: 1120px;
  --font: Inter, "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--amber);
  color: #18181b;
  padding: 8px 12px;
  z-index: 20;
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(9, 9, 11, 0.82);
  border-bottom: 1px solid var(--border);
}

.nav,
.hero,
.how,
.features,
.mt5,
.download,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img:first-child {
  border-radius: 8px;
}

.wordmark {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 10px;
}

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

.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 7px 12px !important;
  background: var(--panel);
}

.hero {
  padding: 72px 0 24px;
  text-align: center;
  perspective: 1400px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h1 {
  margin: 0 auto 18px;
  max-width: 18ch;
  font-size: clamp(2.2rem, 5.4vw, 4rem);
}

h2 {
  margin: 0 0 28px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.lede {
  margin: 0 auto 28px;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.lede.narrow {
  max-width: 36rem;
}

.hero-actions {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  column-gap: 16px;
  row-gap: 8px;
}

.hero-actions .btn {
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
}

.hero-actions .store-badge {
  height: 44px;
  line-height: 0;
}

.hero-actions .store-badge img {
  width: auto;
  height: 44px;
}

.hero-platforms {
  grid-column: 1;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary {
  background: rgba(69, 26, 3, 0.55);
  border-color: var(--amber-line);
  color: #fcd34d;
}

.btn-primary:hover {
  background: rgba(120, 53, 15, 0.7);
}

.btn-ghost {
  background: var(--panel);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: #52525b;
}

.ph-badge {
  display: inline-flex;
  align-items: center;
  margin: 18px 0 0;
  line-height: 0;
}

.ph-badge img {
  width: 250px;
  height: auto;
  max-width: min(250px, 100%);
}

.hero-meta {
  margin: 16px 0 48px;
  color: var(--dim);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

@media (min-width: 1100px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.18fr);
    gap: 40px 48px;
    align-items: center;
    text-align: left;
    width: min(1320px, calc(100% - 48px));
    padding: 64px 0 40px;
  }

  .hero h1 {
    margin: 0 0 16px;
    max-width: 12ch;
    font-size: clamp(2.15rem, 3.2vw, 3.35rem);
  }

  .hero .lede {
    margin: 0 0 24px;
    max-width: 38rem;
  }

  .hero-actions {
    justify-content: start;
  }

  .hero-meta {
    margin: 16px 0 0;
  }

  .imac {
    min-width: 0;
    transform: rotateY(-18deg) rotateX(7deg);
    transform-origin: 30% 80%;
  }

  .imac-screen img {
    width: 100%;
    height: auto;
  }
}

.imac {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotateY(-10deg) rotateX(6deg);
  transform-origin: 50% 85%;
  transform-style: preserve-3d;
}

.imac-body {
  width: 100%;
  background: linear-gradient(118deg, #fafafa 0%, #d4d4d8 52%, #8b8b94 100%);
  border: 1px solid #71717a;
  border-radius: 20px 20px 18px 18px;
  padding: 9px 9px 0;
  box-shadow:
    22px 32px 48px rgba(0, 0, 0, 0.42),
    6px 10px 16px rgba(0, 0, 0, 0.28),
    inset 1px 1px 0 rgba(255, 255, 255, 0.45);
}

.imac-screen {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 4px 4px;
  background: #09090b;
  line-height: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.imac-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.1) 0%,
    rgba(255, 255, 255, 0.02) 26%,
    transparent 42%
  );
}

.imac-screen img {
  width: 100%;
  height: auto;
  display: block;
}

.imac-body::after {
  content: "";
  display: block;
  height: 22px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #cfcfd4, #8e8e98);
}

.imac-stand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 42%;
}

.imac-neck {
  display: block;
  width: 42%;
  height: 46px;
  background: linear-gradient(90deg, #6f6f78 0%, #d8d8de 36%, #b8b8c0 64%, #5f5f68 100%);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
}

.imac-foot {
  display: block;
  width: 100%;
  height: 9px;
  margin-top: -1px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d4d4d8, #52525b);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.45);
}

.imac-stand::after {
  content: "";
  width: 150%;
  height: 22px;
  margin-top: 2px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.5) 0%, transparent 72%);
}

@media (prefers-reduced-motion: reduce) {
  .imac {
    transform: none;
  }
}

.how,
.features,
.mt5,
.download {
  padding: 80px 0 8px;
}

.how h2,
.features h2,
.mt5 h2,
.download h2 {
  max-width: 22ch;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps li,
.mt5-steps li,
.card,
.platform {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 20px;
}

.steps li {
  border-top: 2px solid var(--amber-line);
}

.step-num {
  display: block;
  margin-bottom: 18px;
  color: var(--amber);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.steps p,
.mt5-steps p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.feature-grid,
.platform-grid {
  display: grid;
  gap: 16px;
}

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

.card-label {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mt5-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.lede.mt5-copy {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
  text-align: left;
}

.mt5-copy code,
.mt5-steps code {
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.86em;
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: 4px;
  padding: 0.08em 0.35em;
}

.mt5-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mt5-note {
  margin: 14px 0 0;
  color: var(--dim);
  font-size: 0.85rem;
}

.mt5-note a {
  color: var(--muted);
}

.mt5-note a:hover {
  color: var(--amber);
}

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

.mt5-steps li {
  border-top: 2px solid var(--amber-line);
}

.download {
  padding-bottom: 72px;
}

.platform-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 8px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
}

.store-badge img {
  width: 200px;
  height: auto;
}

.download .store-badge {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.platform {
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.platform:hover {
  border-color: var(--amber-line);
  background: var(--amber-dim);
}

.platform strong {
  font-size: 1rem;
}

.platform span {
  color: var(--muted);
  font-size: 0.85rem;
}

.disclaimer {
  margin: 28px 0 0;
  color: var(--dim);
  font-size: 0.88rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #070708;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0;
  color: var(--dim);
  font-size: 0.85rem;
}

.brand.compact span {
  font-weight: 500;
  color: var(--text);
}

.footer-inner a:hover {
  color: var(--amber);
}

@media (max-width: 960px) {
  .feature-grid,
  .steps,
  .platform-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 720px) {
  .nav-links li:not(:last-child) {
    display: none;
  }

  .hero {
    padding-top: 48px;
  }

  .imac-body {
    padding: 7px 7px 0;
    border-radius: 16px 16px 14px 14px;
  }

  .imac-body::after {
    height: 16px;
  }

  .imac-neck {
    height: 32px;
  }

  .imac-foot {
    height: 7px;
  }

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

  .how,
  .features,
  .mt5,
  .download {
    padding-top: 56px;
  }
}
