/* veridis.no - landing page styles.
   Colour values are the Veridis dark-theme tokens (veridis frontend/src/css/tokens.css),
   so the site and the product read as one brand. No inline styles anywhere: the CSP
   allows stylesheets from 'self' only. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
}

:root {
  --bg: #060912;
  --surface: #0d1320;
  --surface-2: #131a2a;
  --border: #1f2a3d;
  --border-strong: #2d3a52;
  --text: #e8edf5;
  --text-muted: #95a1b6;
  --text-subtle: #5b6680;
  --brand: #38bdf8;
  --brand-hover: #7dd3fc;
  --brand-deep: #0369a1;
  --accent: #0ea5e9;
  --indigo: #6366f1;
  --success: #10b981;
  --brand-fill: #0369a1;
  --brand-fill-hover: #037ab5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --wrap: 1160px;
  --gutter: 24px;
}

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

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

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

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

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

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

/* Brand mark: the Veridis "V" tile (white bold V on the brand gradient). */
.brand-tile {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-deep), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.brand-tile-lg {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  font-size: 28px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(6, 9, 18, 0.78);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-deep), var(--accent), var(--indigo));
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-name {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.topnav {
  display: flex;
  gap: 28px;
}

.topnav a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 112px;
  border-bottom: 1px solid var(--border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/hero-porepressure.webp");
  background-size: cover;
  background-position: center 30%;
  opacity: 0.38;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 22%, rgba(0, 0, 0, 0.55) 65%, transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 70% at 15% 40%, rgba(6, 9, 18, 0.92) 0%, rgba(6, 9, 18, 0.55) 60%, rgba(6, 9, 18, 0.2) 100%),
    radial-gradient(40% 50% at 85% 10%, rgba(56, 189, 248, 0.16), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
}

.eyebrow,
.kicker {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 14px;
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 750;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff 30%, var(--brand) 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 640px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(18px, 2.2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: var(--brand-fill);
  color: #fff;
}

.btn-primary:hover {
  background: var(--brand-fill-hover);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(13, 19, 32, 0.6);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--text);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 9999px;
  background: rgba(13, 19, 32, 0.7);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

/* Sections */
.section {
  padding: 104px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 700;
}

.section-head {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-head p:not(.kicker),
.split-text > p:not(.kicker) {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 18px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}

.split-reverse .split-text {
  order: 2;
}

.ticks {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  margin-top: 14px;
  padding-left: 30px;
  color: var(--text-muted);
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.14);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.5);
}

.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 11px;
  width: 4px;
  height: 7px;
  border: solid var(--brand);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Screenshots */
.shot {
  margin: 0;
}

.shot img {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow), 0 0 0 6px rgba(56, 189, 248, 0.04);
}

.shot figcaption {
  margin-top: 14px;
  color: var(--text-subtle);
  font-size: 14px;
}

.shot-wide {
  margin-bottom: 48px;
}

/* Cards */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  border-left: 3px solid var(--brand);
}

.card h3 {
  font-size: 18px;
  font-weight: 650;
}

.card p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 15.5px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
  padding: 8px 16px;
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

/* About / ownership */
.about {
  text-align: center;
}

.about-inner {
  max-width: 760px;
}

.about h2 {
  margin-top: 22px;
}

.about p {
  margin-top: 18px;
  color: var(--text-muted);
  font-size: 18px;
}

/* 404 */
.notfound {
  min-height: calc(100vh - 80px);
  display: grid;
  place-items: center;
  text-align: center;
}

.notfound-inner {
  padding: 96px var(--gutter);
}

.notfound h1 {
  margin-top: 22px;
  font-size: 40px;
}

.notfound p {
  margin: 14px 0 32px;
  color: var(--text-muted);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.footer p {
  color: var(--text-subtle);
  font-size: 14px;
}

/* Active page in the shared header (the body class names the page). */
.page-home .nav-home,
.page-alarming .nav-alarming,
.page-visualisation .nav-visualisation,
.page-platform .nav-platform,
.page-about .nav-about {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--brand);
}

.topnav a {
  padding: 18px 0;
}

/* Inner-page heading band */
.page-hero {
  padding: 88px 0 40px;
  background:
    radial-gradient(50% 80% at 85% 0%, rgba(56, 189, 248, 0.12), transparent 70%),
    var(--bg);
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.page-hero + .section {
  padding-top: 48px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Tilted screenshot stacks: a light screenshot in front of its dark twin
   (and, in the hero, a third card behind), turned slightly in 3D. */
.stack {
  position: relative;
  aspect-ratio: 16 / 12;
  perspective: 1800px;
}

.stack img {
  position: absolute;
  width: 82%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 24px 60px rgba(0, 0, 0, 0.5);
  transform-origin: center;
  transition: transform 0.4s ease;
}

.stack .stack-back {
  top: 0;
  right: 0;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(2deg);
  filter: brightness(0.9);
}

.stack .stack-mid {
  top: 16%;
  right: 9%;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(0deg);
}

.stack .stack-front {
  bottom: 0;
  left: 0;
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(-2deg);
}

.stack-flip .stack-back {
  right: auto;
  left: 0;
  transform: rotateY(16deg) rotateX(6deg) rotateZ(-2deg);
}

.stack-flip .stack-front {
  left: auto;
  right: 0;
  transform: rotateY(16deg) rotateX(6deg) rotateZ(2deg);
}

.stack:hover .stack-front {
  transform: rotateY(-8deg) rotateX(3deg) rotateZ(-1deg) translateY(-6px);
}

.stack-flip:hover .stack-front {
  transform: rotateY(8deg) rotateX(3deg) rotateZ(1deg) translateY(-6px);
}

.stack-hero {
  aspect-ratio: 16 / 13;
}

.stack-hero img {
  width: 76%;
}

@media (prefers-reduced-motion: reduce) {
  .stack img {
    transition: none;
  }
}

/* Phone in front of a stack: the same view in Veridis's own phone layout,
   in a device-shaped frame, leaning against the front desktop screenshot. */
.stack .stack-phone {
  width: 23%;
  aspect-ratio: 390 / 844;
  height: auto;
  object-fit: cover;
  object-position: top;
  right: 3%;
  bottom: -6%;
  z-index: 2;
  border: 6px solid #0b0f19;
  border-radius: 24px;
  background: #0b0f19;
  box-shadow: 0 0 0 1px var(--border-strong), 0 18px 40px rgba(0, 0, 0, 0.6);
  transform: rotate(4deg);
  filter: none;
}

.stack-flip .stack-phone {
  right: auto;
  left: 3%;
  transform: rotate(-4deg);
}

.stack-hero .stack-phone {
  width: 21%;
  right: 1%;
  bottom: -4%;
}

/* Link cards on the home page */
.card-link h3 a {
  color: var(--text);
}

.card-link h3 a::after {
  content: " \2192";
  color: var(--brand);
}

.card-link h3 a:hover {
  color: var(--brand-hover);
}

.credits {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-muted);
  text-align: left;
}

.credits li {
  margin-top: 10px;
}

.footnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 12px;
}

.footnav a {
  color: var(--text-muted);
  font-size: 14px;
}

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

/* Narrow screens */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .stack img {
    width: 86%;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .split-reverse .split-text {
    order: 0;
  }

  .grid3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    padding: 88px 0 80px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }

  /* The site has five pages, so the menu stays: it moves below the brand as
     a row that scrolls sideways when it does not fit. */
  .topbar-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 10px;
  }

  .topnav {
    width: 100%;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .topnav a {
    padding: 12px 0;
    white-space: nowrap;
  }

  body {
    font-size: 16px;
  }
}
