:root {
  --ink: #132033;
  --ink-soft: #4a5872;
  --page: #f5f7fc;
  --card: #ffffff;
  --band: #eaf0fa;
  --line: #dde4f0;
  --accent: #2d7dd2;
  --accent-deep: #1b5fae;
  --glow: rgba(61, 139, 255, 0.32);
  --hero-a: #040b1f;
  --hero-b: #0d2a6a;
  --hero-c: #3d8bff;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef8;
    --ink-soft: #a3b2cb;
    --page: #060c1a;
    --card: #0e172b;
    --band: #091226;
    --line: #1d2a45;
    --accent: #5fa8ff;
    --accent-deep: #8cc2ff;
    --glow: rgba(95, 168, 255, 0.26);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.55em;
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.1vw, 2.55rem);
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1.15rem;
}

p {
  text-wrap: pretty;
}

.kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ----- Top bar: see-through over the hero, solid once scrolled ----- */

.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 48px);
  color: #fff;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), padding 0.35s var(--ease);
}

.top.solid {
  background: rgba(5, 12, 30, 0.84);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px rgba(0, 0, 0, 0.25);
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
}

.top nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.4vw, 28px);
}

.top nav a {
  color: #d3e1ff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

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

/* ----- Buttons ----- */

.button {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4a95ff, var(--accent));
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 24px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s;
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 12px 32px var(--glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.button.small {
  padding: 7px 16px;
  font-size: 0.9rem;
  box-shadow: none;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: none;
  backdrop-filter: blur(6px);
}

.button.ghost:hover {
  background: rgba(255, 255, 255, 0.14);
}

/* ----- Hero: WebGL light behind, a CSS gradient when there is none ----- */

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: center;
  min-height: min(100vh, 940px);
  padding: clamp(120px, 12vw, 160px) clamp(16px, 4vw, 56px) clamp(80px, 9vw, 130px);
  background: radial-gradient(1200px 600px at 75% 30%, var(--hero-c) 0%, transparent 60%), linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
  color: #fff;
  isolation: isolate;
}

#glow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}

#glow.on {
  opacity: 1;
}

.hero::before {
  /* A deep shade behind the headline, so the light never competes with it. */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(70% 90% at 12% 50%, rgba(3, 9, 26, 0.72) 0%, rgba(3, 9, 26, 0.38) 45%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  /* The hero fades into the page below. */
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 140px;
  background: linear-gradient(180deg, transparent, var(--page));
  z-index: -1;
  pointer-events: none;
}

.hero-text {
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #cfe0ff;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  /* Room below the last line: the gradient fill is painted only inside
     the box, and without it the descenders of p, g and y were cut. */
  padding-bottom: 0.14em;
  margin-bottom: 0.42em;
  background: linear-gradient(180deg, #ffffff 35%, #bcd6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.lead {
  color: #d3e2ff;
  font-size: 1.16rem;
  max-width: 34em;
}

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

.hero-shot {
  margin: 0;
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg);
  transform-origin: 60% 50%;
  transition: transform 0.7s var(--ease);
  will-change: transform;
}

.hero-shot img {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05), 0 0 90px rgba(61, 139, 255, 0.28);
}

figure {
  margin: 0;
}

figcaption {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 0.93rem;
}

figcaption strong {
  color: var(--ink);
}

/* ----- Pillars, just under the hero ----- */

.pillars {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: -70px auto 24px;
  padding: 0 clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.pillars article {
  background: color-mix(in srgb, var(--card) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(5, 15, 40, 0.14);
}

.pillars h3 {
  margin-top: 14px;
}

.pillars p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(95, 168, 255, 0.22), rgba(45, 125, 210, 0.08));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ----- Sections ----- */

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(60px, 7vw, 96px) clamp(16px, 4vw, 48px);
}

/* A full-width band whose content lines up with the other sections. */
.band {
  max-width: none;
  background: var(--band);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-left: max(clamp(16px, 4vw, 48px), calc((100% - 1084px) / 2));
  padding-right: max(clamp(16px, 4vw, 48px), calc((100% - 1084px) / 2));
}

.intro {
  max-width: 780px;
  margin-bottom: 40px;
}

.intro p {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.split p {
  color: var(--ink-soft);
}

.split figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(15, 30, 60, 0.2);
}

/* The steps of an AI action, joined by a line of light. */
.flow {
  list-style: none;
  margin: 0;
  padding: 8px 0 8px 34px;
  position: relative;
}

.flow::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent) 12%, #7b6cff 88%, transparent);
  border-radius: 2px;
}

.flow li {
  position: relative;
  padding: 14px 18px;
  margin: 10px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
}

.flow li:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.flow li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 18px var(--glow);
}

.flow strong {
  display: block;
  font-size: 1rem;
}

.flow span {
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.audiences {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.audiences article,
.grid > div {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

.audiences article::before,
.grid > div::before {
  /* A line of light along the top, as on LightOne's own panels. */
  content: "";
  position: absolute;
  inset: 0 24px auto 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.audiences article:hover,
.grid > div:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 20px 50px rgba(15, 30, 60, 0.16), 0 0 40px var(--glow);
}

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

.audiences li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-soft);
}

.audiences li + li {
  margin-top: 12px;
}

.audiences li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--glow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.grid h3 {
  font-size: 1.05rem;
}

.grid p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}

.gallery figure img {
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgba(15, 30, 60, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.gallery figure:hover img {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 24px 60px rgba(15, 30, 60, 0.24), 0 0 0 1px var(--accent);
}

.apps img {
  width: 100%;
  filter: drop-shadow(0 20px 40px rgba(5, 15, 40, 0.35));
}

.film video {
  width: 100%;
  border-radius: var(--radius);
  background: #000;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(15, 30, 60, 0.3), 0 0 90px var(--glow);
}

.contact {
  text-align: center;
  position: relative;
  isolation: isolate;
}

.contact::before {
  content: "";
  position: absolute;
  inset: 15% 20%;
  background: radial-gradient(closest-side, var(--glow), transparent);
  filter: blur(30px);
  z-index: -1;
}

.contact h2 {
  max-width: 18em;
  margin-left: auto;
  margin-right: auto;
}

.contact p {
  color: var(--ink-soft);
  margin: 0 auto 26px;
  max-width: 36em;
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 26px clamp(16px, 4vw, 48px);
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

/* ----- Rising into view (only with scripts on and motion allowed) ----- */

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .pillars .reveal:nth-child(2),
.js .audiences .reveal:nth-child(2),
.js .gallery .reveal:nth-child(3n + 2),
.js .grid .reveal:nth-child(4n + 2) {
  transition-delay: 0.08s;
}

.js .pillars .reveal:nth-child(3),
.js .audiences .reveal:nth-child(3),
.js .gallery .reveal:nth-child(3n),
.js .grid .reveal:nth-child(4n + 3) {
  transition-delay: 0.16s;
}

.js .pillars .reveal:nth-child(4),
.js .grid .reveal:nth-child(4n) {
  transition-delay: 0.24s;
}

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

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-shot {
    transform: none;
  }
}

/* ----- Narrower screens ----- */

@media (max-width: 1080px) {
  .pillars,
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .gallery,
  .audiences {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hero,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: 0;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(3, 9, 26, 0.65) 0%, rgba(3, 9, 26, 0.3) 55%, transparent 80%);
  }

  .hero-shot {
    transform: none;
  }

  .pillars {
    margin-top: -40px;
  }

  .top nav a:not(.button) {
    display: none;
  }
}

@media (max-width: 600px) {
  .pillars,
  .grid,
  .gallery,
  .audiences {
    grid-template-columns: minmax(0, 1fr);
  }
}
