/* Pixelstretch — landing styles, values transcribed 1:1 from Pixelstretch.dc.html */

:root {
  --acc: #ffd400;
  --acc-ink: #14120a;
  --acc2: #7a5cff;
  --bg: #0d0c13;
  --panel: #161522;
  --panel2: #11101a;
  --ink: #f6f4f0;
  --muted: #8e8aa8;
  --line: #2a2838;
  --rad: 10px;
  --font-d: 'Anton', sans-serif;
  --font-ui: 'Archivo', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; background: var(--bg); }

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-ui);
}

a { color: var(--acc); }
a:hover { color: #ffe45c; }

h1, h2 { margin: 0; font-weight: 400; }

.btn-pill {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--acc-ink);
  background: var(--acc);
  border: 0;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.btn-pill:hover { color: var(--acc-ink); }

/* --- Nav --- */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 40px;
  position: relative;
  z-index: 2;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 26px;
  height: 26px;
  background: var(--acc);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-d);
  font-size: 15px;
  color: var(--acc-ink);
}
.nav-name { font-family: var(--font-d); font-size: 17px; letter-spacing: 0.06em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}
.nav-link:hover { color: var(--ink); }
.nav-login {
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-login[hidden] { display: none; }
.nav-cta { font-size: 12.5px; padding: 10px 18px; }

/* --- Hero --- */

.hero { position: relative; height: 660px; overflow: hidden; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,12,19,0.82) 0%, rgba(13,12,19,0.25) 40%, rgba(13,12,19,0.9) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 60px;
}
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--acc-ink);
  background: var(--acc);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 26px;
}
.hero-title {
  font-family: var(--font-d);
  font-size: 132px;
  line-height: 0.92;
  letter-spacing: 0.01em;
  font-style: italic;
}
.hero-title-acc { color: var(--acc); }
.hero-copy {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  opacity: 0.85;
  max-width: 54ch;
  margin: 26px 0 30px;
}
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; }
.hero-cta { font-size: 14px; padding: 15px 28px; }
.hero-cta-alt {
  color: var(--ink);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--acc);
}
.hero-cta-alt:hover { color: var(--acc-ink); background: var(--acc); }
.hero-note {
  font-family: var(--font-ui);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  opacity: 0.7;
}

/* --- Tools --- */

.tools {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 44px 20px;
}
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--rad);
  padding: 28px 28px 26px;
}
.tool-card-cham {
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(122,92,255,0.14) 0%, rgba(122,92,255,0) 55%),
    var(--panel);
  border-color: #37324f;
}
.tool-eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--acc);
  margin-bottom: 12px;
}
.tool-title {
  font-family: var(--font-d);
  font-size: 34px;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}
.tool-copy {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 20px;
}
.tool-cta { font-size: 12.5px; padding: 12px 22px; margin-top: auto; }
.cham-figures {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  min-height: 148px;
  padding: 12px 14px;
  margin-bottom: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, rgba(255,255,255,0) 10px 20px),
    var(--panel2);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.cham-figure {
  flex: none;
  height: 118px;
  width: auto;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.45));
}

/* --- Editor section shell (panel layout in editor.css) --- */

/* fill the viewport so the fitted image is as large as possible while the
   toolbar (top) and sidebar (right) stay visible — no scrolling to see them */
.editor { height: 100vh; height: 100dvh; border-top: 1px solid var(--line); }

/* --- Footer --- */

.footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 40px;
  border-top: 1px solid var(--line);
}
.footer-note {
  font-family: var(--font-ui);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* --- Quality floor: small screens (not part of the desktop spec) --- */

@media (max-width: 900px) {
  .nav { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .hero-title { font-size: clamp(56px, 16vw, 132px); }
  .hero-content { padding: 0 24px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { flex-direction: column; gap: 12px; }
  .tools { grid-template-columns: 1fr; }
  .footer { flex-direction: column; gap: 6px; padding: 18px 20px; }
}

@media (max-width: 560px) {
  .nav-link { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
