/* ==========================================================================
   MetalSharp landing page. One frame with hairline rails, numbered
   sections, two-tone headlines, one light section for rhythm, and a
   halftone floor before the footer. Loaded after styles.css.
   ========================================================================== */

.home body, body.home { font-size: 1rem; }

/* film grain is lighter here: the page carries enough texture of its own */
body.home::after { opacity: 0.035; }


/* ── Shared atoms ─────────────────────────────────────────────────────── */
.h-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.h-label b { color: var(--accent); font-weight: 500; letter-spacing: 0.04em; }
.h-label span { width: 28px; height: 1px; background: currentColor; opacity: 0.5; }

.h-title {
  margin-top: 1.1rem;
  font-size: clamp(2.25rem, 5vw, 3.9rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.h-lede {
  max-width: 35rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.12rem);
  line-height: 1.6;
}
.h-lede a { color: var(--text-soft); text-decoration-color: var(--line-strong); }
.h-lede a:hover { color: var(--text); text-decoration-color: currentColor; }
.h-lede strong { color: var(--text-soft); font-weight: 500; }
.h-lede--left { margin-left: 0; }

.h-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 1.5rem 3rem;
  text-align: left;
}
.h-head--split .h-lede { margin-top: 0; }

.h-section {
  padding-block: clamp(4.5rem, 9vw, 7.5rem);
  border-top: 1px solid var(--line);
  scroll-margin-top: var(--nav-h);
}

.h-meta {
  margin-top: 1.4rem;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.h-meta i { margin-inline: 0.45rem; font-style: normal; opacity: 0.6; }

.h-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.6rem; }

/* command box */
.h-cmd {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  margin-top: 2rem;
  padding: 0.5rem 0.5rem 0.5rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(11, 15, 23, 0.7);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.h-cmd-prompt { color: var(--accent); }
.h-cmd code { min-width: 0; overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
.h-cmd .copy-btn {
  flex: none;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: 500 0.72rem var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.h-cmd .copy-btn:hover { color: var(--text); border-color: var(--line-strong); }
.h-cmd .copy-btn.is-copied { color: var(--ink-0); background: var(--accent); border-color: var(--accent); }

/* window frame for the screenshot and the video */
.h-window {
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--ink-1);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9);
}
.h-window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.h-window-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(200, 210, 230, 0.16); }
.h-window-bar span {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--dim);
  font-size: 0.75rem;
}
.h-window img, .h-window video { width: 100%; height: auto; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.h-hero { position: relative; overflow: hidden; padding-top: clamp(4.5rem, 10vw, 7.5rem); }
.h-hero .hero-field {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: min(820px, 100%);
  opacity: 0.5;
  -webkit-mask: radial-gradient(ellipse 52% 46% at 50% 36%, transparent 40%, #000 78%), linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(ellipse 52% 46% at 50% 36%, transparent 40%, #000 78%) intersect, linear-gradient(180deg, #000 70%, transparent);
  pointer-events: none;
}
.h-hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 900px;
  background: radial-gradient(60% 50% at 50% 0%, rgba(120, 140, 230, 0.13), transparent 70%);
  pointer-events: none;
}
.h-hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; }

.h-announce {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  margin-bottom: 2rem;
  padding: 0.35rem 0.8rem 0.35rem 0.35rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(11, 15, 23, 0.6);
  color: var(--text);
  font-size: 0.88rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.h-announce:hover { color: var(--text); border-color: rgba(200, 212, 255, 0.38); background: rgba(20, 26, 40, 0.7); }
.h-announce-tag {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0d14;
  font: 600 0.66rem var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.h-announce-meta { color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.06em; white-space: nowrap; }
.h-announce-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h-announce-arrow { color: var(--muted); transition: transform 0.2s var(--ease-out); }
.h-announce:hover .h-announce-arrow { transform: translateX(3px); color: var(--text); }

.h-hero h1 {
  font-size: clamp(2.6rem, 7.6vw, 6.2rem);
  font-weight: 600;
  letter-spacing: -0.058em;
  line-height: 0.98;
  color: #f2f4f9;
}
.h-hero h1 em { padding-right: 0.04em; }
.h-hero .h-lede { margin-top: 1.6rem; max-width: 34rem; color: var(--text-soft); }

.h-shot { position: relative; margin: clamp(3.5rem, 7vw, 5.5rem) auto 0; padding-inline: var(--wrap-x); max-width: calc(1080px + var(--wrap-x) * 2); }
.h-shot::before {
  content: "";
  position: absolute;
  inset: 8% 6% -6%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(120, 140, 240, 0.28), transparent);
  filter: blur(40px);
}
.h-shot .h-window { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.h-shot .h-window picture { display: block; -webkit-mask: linear-gradient(180deg, #000 70%, transparent); mask: linear-gradient(180deg, #000 70%, transparent); }

/* ── Store strip ──────────────────────────────────────────────────────── */
.h-stores {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid var(--line);
}
.h-stores-label {
  padding: 1.6rem var(--wrap-x);
  padding-right: 2rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  line-height: 1.7;
  text-transform: uppercase;
  white-space: nowrap;
}
.h-stores-list {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.h-stores-list li {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.6rem 0.8rem;
  border-left: 1px solid var(--line);
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.h-stores-list li:hover { color: var(--text); background: rgba(255, 255, 255, 0.02); }
.h-stores-list i {
  flex: none;
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--ic) center / contain no-repeat;
  mask: var(--ic) center / contain no-repeat;
}

/* ── The one light section (Under the hood) ───────────────────────────── */
.h-light {
  --l-ink: #101624;
  --l-soft: #3d4658;
  --l-muted: #5a6478;
  --l-line: rgba(25, 35, 70, 0.14);
  color: var(--l-ink);
  background:
    radial-gradient(70% 60% at 85% 10%, rgba(255, 255, 255, 0.7), transparent 70%),
    linear-gradient(180deg, #e8ecf4, #dde3ee);
  border-top: 0;
}
.h-light .h-label { color: var(--l-muted); }
.h-light .h-label b { color: #4655c9; }
.h-light .h-title { color: var(--l-ink); }
.h-light .h-title em { background: linear-gradient(100deg, #3346b8, #5a5fd6 55%, #7656cf); -webkit-background-clip: text; background-clip: text; }
.h-light .h-lede { color: var(--l-soft); }
.h-light .h-lede a { color: #3346b8; text-decoration-color: rgba(51, 70, 184, 0.35); }
.h-light .h-stack { border-color: var(--l-line); }
.h-light .h-stack li + li { border-color: var(--l-line); }
.h-light .h-stack a:hover { background: rgba(255, 255, 255, 0.45); }
.h-light .h-stack-ver { background: linear-gradient(180deg, #19213a 25%, #6d7896); -webkit-background-clip: text; background-clip: text; }
.h-light .h-stack strong { color: var(--l-ink); }
.h-light .h-stack-kind { color: var(--l-muted); }
.h-light .h-stack p { color: var(--l-soft); }
.h-light .h-more { color: #3346b8; }
.h-light + .h-section { border-top: 0; }

/* ── 01 Interface ─────────────────────────────────────────────────────── */
.h-video { max-width: 1040px; margin: 0 auto; }
.h-video-frame { position: relative; }
.h-video .essentials-sound-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.7);
  color: var(--text);
  font: 500 0.75rem var(--font-mono);
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.h-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.6rem 1.6rem;
  margin: clamp(3.5rem, 7vw, 5rem) 0 0;
  padding: 0;
  list-style: none;
}
.h-features li { position: relative; padding-top: 1.3rem; border-top: 1px solid var(--line-strong); }
.h-features li::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.5s var(--ease-out);
}
.h-features li:hover::before { width: 100%; }
.h-features b { color: var(--accent); font: 500 0.7rem var(--font-mono); }
.h-features h3 { display: inline; margin-left: 0.55rem; font-size: 1.08rem; font-weight: 500; letter-spacing: -0.015em; }
.h-features p { margin-top: 0.6rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── 03 Under the hood ────────────────────────────────────────────────── */
.h-stack {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.h-stack li + li { border-left: 1px solid var(--line); }
.h-stack a {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  height: 100%;
  padding: 2rem clamp(1.2rem, 2.4vw, 2rem) 2.2rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.25s;
}
.h-stack a:hover { background: rgba(255, 255, 255, 0.02); }
.h-stack-ver {
  margin-bottom: 0.6rem;
  font-size: clamp(3.4rem, 6.6vw, 5.4rem);
  font-weight: 500;
  letter-spacing: -0.065em;
  line-height: 0.9;
  background: linear-gradient(180deg, #f1f4fb 20%, #7e8ba8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.h-stack strong { color: var(--text); font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.h-stack-kind { color: var(--dim); font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.h-stack p { margin-top: 0.4rem; color: var(--muted); font-size: 0.95rem; line-height: 1.6; }
.h-more { margin-top: 0.8rem; color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.h-more span { display: inline-block; transition: transform 0.2s var(--ease-out); }
.h-stack a:hover .h-more span { transform: translateX(4px); }

/* ── 04 FAQ ───────────────────────────────────────────────────────────── */
.h-faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 2.5rem clamp(2.5rem, 6vw, 6rem); align-items: start; }
.h-faq header { position: sticky; top: calc(var(--nav-h) + 2rem); }
.h-faq-more { margin-top: 1.4rem; color: var(--muted); font-size: 0.95rem; }
.h-faq-more a { color: var(--text-soft); }
.h-faq-list { border-bottom: 1px solid var(--line); }
.h-faq-list details { border-top: 1px solid var(--line); }
.h-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  color: var(--text);
  font-size: 1.06rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
}
.h-faq-list summary::-webkit-details-marker { display: none; }
.h-faq-list summary::after { content: "+"; flex: none; color: var(--muted); font: 400 1.2rem var(--font-mono); transition: transform 0.25s var(--ease-out); }
.h-faq-list details[open] summary::after { transform: rotate(45deg); }
.h-faq-list summary:hover { color: #fff; }
.h-faq-list p { padding: 0 2rem 1.4rem 0; color: var(--muted); font-size: 0.97rem; line-height: 1.65; }
.h-faq-list p a { color: var(--text-soft); }
.h-faq-list p strong { color: var(--text-soft); font-weight: 500; }

/* ── 05 Get started ───────────────────────────────────────────────────── */
.h-start { overflow: hidden; padding-bottom: 0; text-align: center; }
.h-start .h-cmd { margin-top: 0; }
.h-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin: 3rem auto 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  text-align: left;
}
.h-steps li { display: grid; align-content: start; gap: 0.5rem; padding: 1.8rem 1.6rem 0.4rem; }
.h-steps li + li { border-left: 1px solid var(--line); }
.h-step-n { color: #aeb8cd; font-size: 2.4rem; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.h-steps h3 { margin-top: 0.8rem; font-size: 1.05rem; font-weight: 500; }
.h-steps p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }
.h-steps code {
  justify-self: start;
  margin-top: 0.8rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--text-soft);
  font-size: 0.72rem;
}
.h-start .h-actions { margin-top: 2.6rem; }

/* the halftone floor the page ends on */
.h-floor { position: relative; height: clamp(240px, 32vw, 380px); margin-top: 2.5rem; overflow: hidden; pointer-events: none; }
.h-floor::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 18%;
  height: 2px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(210, 220, 255, 0.95), rgba(140, 160, 255, 0.4) 50%, transparent);
  box-shadow: 0 0 40px 8px rgba(120, 140, 255, 0.25);
  z-index: 1;
}
.h-floor span {
  position: absolute;
  left: -30%;
  right: -30%;
  top: 18%;
  bottom: -40%;
  background-image: radial-gradient(circle, rgba(169, 185, 255, 0.7) 1.1px, transparent 1.6px);
  background-size: 16px 16px;
  transform: perspective(520px) rotateX(60deg);
  transform-origin: 50% 0;
  -webkit-mask: radial-gradient(ellipse 50% 90% at 50% 0%, #000 20%, transparent 75%);
  mask: radial-gradient(ellipse 50% 90% at 50% 0%, #000 20%, transparent 75%);
  animation: h-floor 5s linear infinite;
}
.h-floor::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 50% 100%, rgba(80, 100, 220, 0.22), transparent 70%);
}
@keyframes h-floor { to { background-position: 0 16px; } }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .h-stores { grid-template-columns: minmax(0, 1fr); }
  .h-stores-label { padding: 1.4rem var(--wrap-x) 0; text-align: center; white-space: normal; }
  .h-stores-label br { display: none; }
  .h-stores-list { flex-wrap: wrap; justify-content: center; padding: 0.6rem var(--wrap-x) 1.2rem; }
  .h-stores-list li { flex: 0 0 auto; padding: 0.7rem 0.9rem; border-left: 0; }
}

@media (max-width: 960px) {
  .h-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-faq { grid-template-columns: minmax(0, 1fr); }
  .h-faq header { position: static; }
}

@media (max-width: 720px) {
  .h-head--split { grid-template-columns: minmax(0, 1fr); }
  .h-announce-meta { display: none; }
  .h-cmd { font-size: 0.78rem; }
  .h-actions .btn-primary, .h-actions .btn-ghost { flex: 1 1 100%; }
  .h-shot { margin-top: 3rem; }
  .h-shot .h-window-bar { height: 26px; }
  .h-shot .h-window-bar i { width: 8px; height: 8px; }
  .h-features { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .h-stack { grid-template-columns: minmax(0, 1fr); }
  .h-stack li + li { border-left: 0; border-top: 1px solid var(--line); }
  .h-steps { grid-template-columns: minmax(0, 1fr); }
  .h-steps li { padding-inline: 0.2rem; }
  .h-steps li + li { border-left: 0; border-top: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  .h-floor span { animation: none; }
  .h-features li::before, .h-announce-arrow, .h-more span { transition: none; }
}
