/* Rignomics — Coming Soon
   Built from the concept board "Rignomics_ Financial Intelligence for the Road.png"
   (lower half). Palette from the board: #0B0F14 background, #FF334D primary,
   #8A2BE2 secondary, #F5F7FA text.
   Type: system font stack. No web font ships (the board's Inter file is unapproved);
   Inter is used only if the visitor already has it installed. */

:root {
  color-scheme: dark;

  --bg: #0B0F14;
  --red: #FF334D;
  --text: #F5F7FA;
  --text-soft: #D3DAE3;   /* lede */
  --text-muted: #A3AEBC;  /* status, footer */

  --font-sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 76px);
  --header-h: 88px;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* The body fills the viewport exactly: header, hero (grows to fit) and footer. The page only scrolls
   when the content itself is taller than the window. */
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 55% at 10% 0%, rgba(31, 44, 68, 0.45), transparent 70%),
    radial-gradient(ellipse 60% 50% at 95% 100%, rgba(24, 28, 52, 0.55), transparent 70%),
    var(--bg);
}

h1, p {
  margin: 0;
}

.nowrap {
  white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  min-height: var(--header-h);
  padding: 16px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* Approved horizontal logo. Height drives the size; width follows the SVG's own proportions. */
.brand__logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 24px var(--gutter) 40px;
}

.headline {
  font-size: clamp(1.6875rem, 0.4rem + 6.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.headline__line {
  display: block;
}

.headline__line--accent {
  color: var(--red);
}

/* Short red rule under the headline, as on the board. */
.headline::after {
  content: '';
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 20px;
  background: var(--red);
}

.lede {
  max-width: 36rem;
  margin-top: 22px;
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
  line-height: 1.45;
  color: var(--text-soft);
  text-wrap: pretty;
}

.metrics {
  display: grid;
  gap: 14px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.metrics__item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Icons are drawn on a 24 grid and shown 1:1 at 24px so edges stay crisp.
   Fill follows the text colour set here; the faded dash is a quieter share of the same lane. */
.metrics__icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--red);
  fill: currentColor;
}

.metrics__icon .is-faded {
  fill-opacity: 0.3;
}

.status {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (max-width: 599px) {
  .status {
    letter-spacing: 0.16em;
  }
}

.status__rule {
  flex: none;
  width: 46px;
  height: 1px;
  background: var(--text-muted);
}

/* Very small phones: keep "In development · Coming soon" on one line by dropping the decorative rule. */
@media (max-width: 360px) {
  .status {
    letter-spacing: 0.12em;
  }

  .status__rule {
    display: none;
  }
}

/* Stacked layout (below 1200px): the truck sits below the copy, never behind it.
   The image is cropped a little at the sides (the truck spans roughly the middle 77% of the frame)
   so it reads larger on phones. It is capped at 750px wide: at that width a 2x display needs about
   1500 device px, which the 1774px file covers without enlarging.
   Edges are feathered with masks so it melts into the page instead of showing a hard box. */
.hero__media {
  position: relative;
  width: min(100%, 750px);
  margin-left: auto;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%);
  mask-image: linear-gradient(to right, transparent 0, #000 10%);
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 17 / 10;
  object-fit: cover;
  object-position: 56% 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20%, #000 90%, transparent 100%);
}

/* The three labels sit in one row with dividers only where they fit (about 600px of row plus gutters);
   below 760px they stack as on phones, so a wrapped row never leaves a stray divider. */
@media (min-width: 760px) {
  .metrics {
    display: flex;
    align-items: center;
    gap: 0;
  }

  .metrics__item + .metrics__item {
    margin-left: 20px;
    padding-left: 20px;
    border-left: 1px solid rgba(104, 120, 142, 0.6);
  }
}

/* Desktop (960px and up): the header floats over the hero and the copy block is centred in the space
   that is left, so the page has no dead band under the content. */
@media (min-width: 960px) {
  .site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .hero {
    position: relative;
    justify-content: center;
    min-height: 640px;
  }

  .hero__content {
    max-width: calc(46rem + 2 * var(--gutter));
    padding-top: var(--header-h);
    padding-bottom: 56px;
  }
}

/* Wide desktop (1280px and up): the truck is the focal point on the right, uncropped (full 2:1 frame).
   The image starts 720px from the left, just past the end of the label row (about 690px at these
   widths), and is capped at 1300px, under its 1774px native width. It is centred on the same line
   as the copy. Between 960px and 1279px the stacked layout is used instead. */
@media (min-width: 1280px) {
  .hero__media {
    position: absolute;
    top: 32px;
    right: 0;
    bottom: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    width: min(calc(100vw - 720px), 1300px);
    margin: 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 26%);
    mask-image: linear-gradient(to right, transparent 0, #000 26%);
  }

  .hero__image {
    aspect-ratio: auto;
    object-fit: fill;
  }
}

/* Large desktop (1600px and up): the headline grows with the screen (60px at 1600px, 72px from 1920px),
   and the truck starts further right so the larger headline stays clear of it. */
@media (min-width: 1600px) {
  .headline {
    font-size: clamp(3.75rem, 3.75vw, 4.5rem);
  }

  .hero__media {
    width: min(calc(100vw - 800px), 1300px);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid rgba(104, 120, 142, 0.25);
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Quieter than the copyright line: smaller, dimmer, understated link. */
.site-footer__credit {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: #8F9BAB;
}

.site-footer__credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.site-footer__credit a:hover {
  color: var(--text);
}

/* ---------- Small phones ---------- */

@media (max-width: 400px) {
  .brand__logo {
    height: 32px;
  }

  .status__rule {
    width: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (forced-colors: active) {
  .headline::after,
  .status__rule {
    background: CanvasText;
  }

  .metrics__icon {
    color: CanvasText;
  }
}
