/* ==========================================================================
   Iniscape - site stylesheet
   Plain CSS, no build step, no JavaScript.

   Contents
     1. Fonts
     2. Tokens          <- edit colours / spacing / type here
     3. Base
     4. Layout
     5. Type
     6. Buttons
     7. Header & nav
     8. Hero
     9. Cards
    10. Feature list
    11. Steps
    12. Panel art
    13. Contact
    14. CTA band
    15. Footer
   ========================================================================== */


/* 1. Fonts ================================================================= */

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-weight: 100 700;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}


/* 2. Tokens ================================================================ */

:root {
  /* Ink ramp - near-black with a blue cast. --ink-900 is the page. */
  --ink-950: #03070f;
  --ink-900: #060b16;
  --ink-850: #0a1120;
  --ink-800: #0e1626;
  --ink-750: #131d33;

  /* Brand ramp - azure. --brand-200 is the button fill, --brand-300 the accent. */
  --brand-100: #dbeeff;
  --brand-200: #8ecdff;
  --brand-300: #4aa8ff;
  --brand-400: #1f7fe0;
  --brand-500: #1560b4;
  --brand-900: #06213f;

  /* Text */
  --text:      #eaf0fb;
  --text-mute: #a3b0c9;
  --text-dim:  #6f7d9b;

  /* Hairlines */
  --line:      rgba(200, 215, 255, .11);
  --line-soft: rgba(200, 215, 255, .06);
  --line-hard: rgba(200, 215, 255, .22);

  /* Typefaces */
  --font-display: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Hero backdrop. Currently none - the hero is the radial glow alone.
     To bring artwork back, drop an SVG in ../img/ and name it here, e.g.
       --hero-art: url("../img/hero-scape.svg");
     Candidates and the tools that made them are in preview/ (not deployed). */
  --hero-art: none;

  /* Layout */
  --wrap: 1140px;
  --gutter: 24px;
  --radius: 14px;
  --radius-sm: 10px;

  /* Vertical rhythm between page sections */
  --section: 116px;
}

@media (max-width: 700px) {
  :root {
    --gutter: 20px;
    --section: 72px;
  }
}


/* 3. Base ================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

a {
  color: var(--brand-200);
  text-decoration: none;
}

a:hover { color: var(--brand-100); }

:focus-visible {
  outline: 2px solid var(--brand-300);
  outline-offset: 3px;
  border-radius: 4px;
}

hr {
  height: 1px;
  margin: 0;
  border: 0;
  background: var(--line);
}

/* Skip link - visible only when focused */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: var(--brand-200);
  color: var(--ink-950);
  font-weight: 600;
}

.skip:focus { left: 8px; top: 8px; }


/* 4. Layout ================================================================ */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.wrap--narrow { max-width: 760px; }

.section { padding: var(--section) 0; }

.section--tight { padding: calc(var(--section) * .62) 0; }

/* A section that sits on a slightly lifted surface, fenced by hairlines. */
.section--raised {
  background: linear-gradient(180deg, var(--ink-850), var(--ink-900));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.grid {
  display: grid;
  gap: 24px;
}

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

@media (max-width: 900px) {
  .grid--2,
  .grid--3 { grid-template-columns: 1fr; }
}

/* Centred section intro: eyebrow + heading + lead */
.intro {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.intro h2 { max-width: 24ch; margin-inline: auto; }

.intro .lead { margin-bottom: 0; }


/* 5. Type ================================================================== */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.85rem); }
h3 { font-size: 1.3rem; letter-spacing: -.01em; }
h4 { font-size: 1.05rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; }

p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.16rem;
  line-height: 1.6;
  color: var(--text-mute);
}

.muted { color: var(--text-mute); }

.eyebrow {
  display: inline-block;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand-300);
}

/* Eyebrow sitting next to a status pill */
.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.eyebrow-row .eyebrow { margin-bottom: 0; }

/* Status pill - nothing has shipped yet, and the site says so plainly */
.tag {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  padding: 4px 12px;
  border: 1px solid var(--line-hard);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}

.tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-300);
}

/* A quiet line under a button row, for the caveat the buttons cannot carry */
.note {
  margin-top: 18px;
  color: var(--text-dim);
  font-size: .92rem;
}

/* Inline link that shows an arrow, as used at the foot of cards */
.arrow {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  font-weight: 500;
}

.arrow::after {
  content: "\2192";
  transition: transform .18s ease;
}

.arrow:hover::after { transform: translateX(3px); }

/* Plain bullet list with a drawn marker instead of a disc */
.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
  color: var(--text-mute);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .62em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  border: 1.5px solid var(--brand-300);
}

.ticks li:last-child { margin-bottom: 0; }


/* 6. Buttons =============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}

.btn--primary {
  background: var(--brand-200);
  color: var(--ink-950);
}

.btn--primary:hover {
  background: var(--brand-100);
  color: var(--ink-950);
}

.btn--ghost {
  border-color: var(--line-hard);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--brand-300);
  background: rgba(74, 168, 255, .08);
  color: #fff;
}

.btn--sm { padding: 9px 18px; font-size: .92rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-row--center { justify-content: center; }


/* 7. Header & nav ========================================================== */

/* Slim utility strip above the main bar. Disabled for now; the markup is
   commented out in each page's header too, so re-enable both together.

.topbar {
  background: var(--ink-950);
  border-bottom: 1px solid var(--line-soft);
  font-size: .84rem;
}

.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 38px;
}

.topbar a { color: var(--text-mute); }

.topbar a:hover { color: var(--brand-200); }

.topbar__note {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .04em;
}

*/

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 11, 22, .86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}

.masthead .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -.025em;
}

.brand:hover { color: #fff; }

.brand svg { width: 28px; height: 28px; }

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.nav a {
  color: var(--text-mute);
  font-size: .97rem;
  font-weight: 500;
}

.nav a:hover { color: #fff; }

.nav a[aria-current="page"] { color: #fff; }

@media (max-width: 760px) {
  /* .topbar__links { display: none; } */

  .masthead .wrap {
    flex-wrap: wrap;
    gap: 12px 24px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav {
    width: 100%;
    margin-left: 0;
    gap: 20px;
    flex-wrap: wrap;
  }
}


/* 8. Hero ================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 120px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}

/* Radial glow behind the headline */
.hero::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -420px;
  width: 1600px;
  height: 1000px;
  transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(31, 127, 224, .34), rgba(31, 127, 224, 0) 70%),
    radial-gradient(closest-side at 50% 62%, rgba(142, 205, 255, .14), rgba(142, 205, 255, 0) 55%);
  pointer-events: none;
}

/* Landscape line art along the bottom of the hero.
   Drawn at its natural aspect ratio and anchored to the bottom edge; the top of
   the artwork is faded out in the SVG itself, so any overflow is invisible. */
.hero__art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 100%;
  background: var(--hero-art) no-repeat center bottom;
  background-size: max(1440px, 100%) auto;
  opacity: .95;
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero h1 { margin-bottom: 22px; }

.hero .lead {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.22rem;
}

.hero .btn-row { justify-content: center; }

/* Shorter hero used on the interior pages */
.hero--page {
  padding: 84px 0 88px;
  text-align: left;
}

.hero--page::before {
  left: 14%;
  top: -320px;
  width: 820px;
  height: 620px;
}

.hero--page .hero__art { opacity: .6; }

.hero--page .lead { margin-left: 0; margin-right: 0; }

.hero--page .btn-row { justify-content: flex-start; }

.hero__body { max-width: 720px; }

@media (max-width: 700px) {
  .hero { padding: 72px 0 84px; }
  .hero--page { padding: 60px 0 64px; }
  .hero .lead { font-size: 1.08rem; }
}


/* 9. Cards ================================================================= */

.card {
  display: flex;
  flex-direction: column;
  padding: 30px;
  background: var(--ink-850);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .18s ease, background-color .18s ease;
}

.card p { color: var(--text-mute); }

.card h3 { margin-bottom: .5em; }

/* Push a trailing link to the bottom so cards in a row line up */
.card .arrow { margin-top: auto; padding-top: 22px; }

.card--link:hover {
  border-color: var(--line-hard);
  background: var(--ink-800);
}

/* Larger card used for the two products on the home page */
.card--product { padding: 36px; }

.card--product .ticks { margin: 22px 0 0; }

.card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(74, 168, 255, .08);
  color: var(--brand-200);
}

.card__mark svg { width: 20px; height: 20px; }

.card__kicker {
  margin-bottom: 8px;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Kicker and status pill on one line at the top of a product card */
.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.card__meta .card__kicker { margin-bottom: 0; }


/* 10. Feature list ========================================================= */

/* Two-column block: hairline-separated features on one side, art on the other */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split--reverse .split__art { order: -1; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__art { order: 0; }
}

.featlist { border-top: 1px solid var(--line); }

.featlist__item {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.featlist__item h4 { margin-bottom: .35em; }

.featlist__item p {
  margin: 0;
  color: var(--text-mute);
  font-size: .98rem;
}


/* 11. Steps ================================================================ */

.steps {
  counter-reset: step;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
}

.step {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: .84rem;
  letter-spacing: .1em;
  color: var(--brand-300);
}

.step h4 { margin-bottom: .4em; }

.step p { margin: 0; color: var(--text-mute); font-size: .98rem; }


/* 12. Panel art ============================================================ */

/* Decorative panel that stands in for a product screenshot */
.panel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 90% at 30% 0%, rgba(74, 168, 255, .18), rgba(74, 168, 255, 0) 60%),
    linear-gradient(180deg, var(--ink-800), var(--ink-950));
}

/* Graph-paper grid inside the panel */
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}

.panel__inner {
  position: absolute;
  inset: 14%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(6, 11, 22, .55);
  backdrop-filter: blur(2px);
}

/* Faux window chrome + content rows */
.panel__bar {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.panel__bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-hard);
}

.panel__rows { padding: 16px 14px; }

.panel__rows i {
  display: block;
  height: 7px;
  margin-bottom: 11px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(142, 205, 255, .35), rgba(142, 205, 255, .06));
}

.panel__rows i:nth-child(2) { width: 78%; }
.panel__rows i:nth-child(3) { width: 54%; }
.panel__rows i:nth-child(4) { width: 88%; }
.panel__rows i:nth-child(5) { width: 42%; }


/* 13. Contact ============================================================== */

.contact-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.contact-list__row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list dt {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: .3em;
}

.contact-list dd {
  margin: 0;
  font-size: 1.05rem;
}

@media (max-width: 620px) {
  .contact-list__row { grid-template-columns: 1fr; gap: 6px; }
}


/* 14. CTA band ============================================================= */

.cta {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  text-align: center;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--ink-850), var(--ink-950));
}

.cta::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -420px;
  width: 1000px;
  height: 640px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(74, 168, 255, .28), rgba(74, 168, 255, 0) 70%);
  pointer-events: none;
}

.cta .wrap { position: relative; z-index: 1; }

.cta h2 { margin-bottom: .4em; }

.cta .lead { max-width: 560px; margin: 0 auto 30px; }


/* 15. Footer =============================================================== */

.footer {
  padding: 64px 0 40px;
  background: var(--ink-950);
  border-top: 1px solid var(--line-soft);
  font-size: .95rem;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 40px;
}

@media (max-width: 820px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 460px) {
  .footer__cols { grid-template-columns: 1fr; }
}

.footer h5 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer li { margin-bottom: 9px; }

.footer a { color: var(--text-mute); }

.footer a:hover { color: #fff; }

.footer__blurb {
  max-width: 300px;
  margin: 16px 0 0;
  color: var(--text-dim);
  font-size: .92rem;
}

.footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--text-dim);
  font-size: .88rem;
}


/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  * {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
