/* Nanna Coder landing styles. Sources:
   - design-system tokens (colors_and_type.css, fonts.css)
   - landing.css from the design ui_kit
*/

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2-variations"),
       url("/assets/fonts/InterVariable.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable-Italic.woff2") format("woff2-variations"),
       url("/assets/fonts/InterVariable-Italic.woff2") format("woff2");
}
@font-face {
  font-family: "Noto Sans Cuneiform";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Noto Sans Cuneiform"),
       url("/assets/fonts/NotoSansCuneiform-Regular.woff2") format("woff2");
}

:root {
  --mono-0:    #FFFFFF;
  --mono-50:   #F5F5F5;
  --mono-100:  #EAEAEA;
  --mono-200:  #CFCFCF;
  --mono-300:  #999999;
  --mono-400:  #6B6B6B;
  --mono-500:  #4A4A4A;
  --mono-600:  #2A2A2A;
  --mono-700:  #1A1A1A;
  --mono-800:  #0E0E0E;
  --mono-900:  #000000;

  --shield-green:   #3FB950;
  --shield-grey:    #555555;
  --shield-text:    #FFFFFF;

  --hero-sky-top:    rgb(0, 0, 60);
  --hero-sky-bottom: var(--mono-900);

  --font-sans:      "Inter", "Inter Variable", -apple-system, BlinkMacSystemFont,
                    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono:      "JetBrains Mono", "Berkeley Mono", ui-monospace,
                    SFMono-Regular, Menlo, Consolas, monospace;
  --font-cuneiform: "Noto Sans Cuneiform", "Inter", sans-serif;

  --bg-gradient-landing: linear-gradient(180deg, var(--mono-0) 0%, var(--mono-900) 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  background: var(--bg-gradient-landing);
  color: var(--mono-0);
  font-family: var(--font-sans);
  min-height: 100vh;
  max-width: 100vw;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--mono-0);
  color: var(--mono-900);
}

/* ===== Hero ===== */
.nc-hero {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: linear-gradient(var(--hero-sky-top), var(--hero-sky-bottom));
  display: grid;
  grid-template-rows: 1fr auto auto;
}
.nc-hero__stage {
  position: relative;
  width: 100%;
  min-height: 0;
  min-width: 0;
}
.nc-hero__moon {
  position: absolute;
  left: 38%;
  top: 50%;
  width: min(440px, 58vmin);
  height: min(440px, 58vmin);
  border-radius: 50%;
  background: var(--mono-50);
  box-shadow: 0 0 120px rgba(255, 255, 255, 0.22);
  transform: translate(-50%, -50%);
  will-change: transform;
}
.nc-hero__disc {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(500px, 66vmin);
  height: min(500px, 66vmin);
  border-radius: 50%;
  background: var(--mono-900);
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0 32px;
}
.nc-hero__wordmark {
  font-size: clamp(36px, 11vmin, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 500;
  color: var(--mono-50);
  margin: 0;
  text-align: center;
  white-space: nowrap;
  max-width: 100%;
}
.nc-hero__copy {
  position: relative;
  z-index: 2;
  padding: 0 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  min-width: 0;
}
.nc-hero__subtitle {
  font-size: clamp(16px, 2.4vw, 24px);
  line-height: 1.3;
  color: var(--mono-50);
  margin: 0;
  max-width: 700px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.55);
}
.nc-hero__install {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 16px 14px;
  min-width: 0;
  overflow: hidden;
}
.nc-install__line {
  font-family: var(--font-mono);
  font-size: clamp(13px, 2.2vw, 22px);
  color: var(--mono-50);
  background: rgba(0, 0, 0, 0.55);
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  white-space: nowrap;
  overflow-x: auto;
  max-width: 100%;
  min-width: 0;
  display: inline-block;
}

/* ===== Badges ===== */
ol.nc-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 6px;
  max-width: 100%;
}
ol.nc-badges > li {
  display: inline-block;
  margin: 0;
}
ol.nc-badges img {
  height: 28px;
  display: block;
}

/* ===== Sections ===== */
.nc-section {
  background: var(--mono-900);
  color: var(--mono-0);
  padding: 96px 96px 64px;
  overflow: hidden;
}
.nc-section__title {
  font-size: clamp(28px, 5vw, 50px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 56px;
  color: var(--mono-0);
}
.nc-section__layout {
  display: grid;
  grid-template-columns: 484px 1fr;
  gap: 80px;
  align-items: start;
}
.nc-section__layout + .nc-section__layout,
.nc-section__layout + .nc-section__charts,
.nc-section__charts + .nc-section__layout {
  margin-top: 64px;
}
.nc-section__charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.nc-section__layout--left {
  grid-template-columns: 1fr 484px;
}
.nc-section__layout--left .nc-section__prose { order: 2; }
.nc-section__layout--left .nc-section__figure { order: 1; }
.nc-section__prose {
  font-size: 17px;
  line-height: 1.55;
  color: var(--mono-0);
  width: 484px;
  max-width: 100%;
}
.nc-section__prose p { margin: 0 0 14px; }
.nc-section__prose code {
  font-family: var(--font-mono);
  font-size: 14px;
  background: rgba(255,255,255,0.06);
  padding: 2px 6px;
  border-radius: 3px;
  word-break: break-word;
}
.nc-section__figure {
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
  min-width: 0;
}
.nc-section__figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.nc-section__caption {
  margin: 16px 4px 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--mono-300);
}
.nc-section__caption a {
  color: var(--mono-200);
  text-decoration: underline;
}
.nc-section__prose a,
.nc-section__caption a {
  text-underline-offset: 2px;
}
.nc-section__prose a:link {
  color: cyan;
}
.nc-section__prose a {
  text-decoration: underline;
}
.nc-section__prose a:hover {
  opacity: 0.75;
}

/* ===== Footer ===== */
.nc-footer {
  background: var(--mono-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 96px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.nc-footer__wordmark {
  font-size: 32px;
  letter-spacing: -0.02em;
  color: var(--mono-50);
}
.nc-footer__dingir {
  font-family: var(--font-cuneiform);
  font-size: 18px;
  letter-spacing: 0.2em;
  color: var(--mono-300);
  margin-top: 6px;
}
.nc-footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.nc-footer__links a {
  color: var(--mono-200);
  text-decoration: none;
  font-size: 15px;
  transition: opacity 180ms cubic-bezier(0.2, 0, 0, 1);
}
.nc-footer__links a:hover { opacity: 0.7; text-decoration: underline; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nc-hero__moon { width: min(60vw, 50vmin); height: min(60vw, 50vmin); }
  .nc-hero__disc { width: min(76vw, 62vmin); height: min(76vw, 62vmin); padding: 0 12px; }
  .nc-hero__wordmark { font-size: clamp(26px, 8.2vmin, 48px); }
  .nc-hero__copy { padding: 0 16px 24px; }
  .nc-section { padding: 64px 24px 40px; }
  .nc-section__title { margin: 0 0 32px; }
  .nc-section__layout,
  .nc-section__layout--left,
  .nc-section__charts {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .nc-section__layout--left .nc-section__prose { order: 1; }
  .nc-section__layout--left .nc-section__figure { order: 2; }
  .nc-section__prose { width: auto; font-size: 18px; line-height: 1.5; }
  .nc-section__prose code { font-size: 15px; }
  .nc-footer { padding: 32px 24px; }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  .nc-hero__moon { transform: translate(-50%, -50%) !important; }
}
