/* StellarCube.ai — OpenCube-style day mode default + optional dark theme */

:root {
  --radius: 12px;
  --radius-lg: 20px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme (default — OpenCube-style day mode) */
html,
html[data-theme="light"] {
  --bg-deep: #f4f6fb;
  --bg-page: #ffffff;
  --bg-panel: rgba(255, 255, 255, 0.92);
  --bg-card: #ffffff;
  --border: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0044ff;
  --brand-bright: #2563eb;
  --cyan: #0284c7;
  --header-scrolled: rgba(255, 255, 255, 0.94);
  --nav-mobile-bg: rgba(255, 255, 255, 0.98);
  --hero-overlay: linear-gradient(
    165deg,
    rgba(248, 250, 252, 0.94) 0%,
    rgba(248, 250, 252, 0.72) 45%,
    rgba(219, 234, 254, 0.55) 100%
  );
  --hero-img-opacity: 0.55;
  --section-alt-mask: linear-gradient(
    180deg,
    transparent 0%,
    rgba(37, 99, 235, 0.04) 50%,
    transparent 100%
  );
  --orb-a: rgba(37, 99, 235, 0.12);
  --orb-b: rgba(14, 165, 233, 0.1);
  --logo-scrim: none;
}

html[data-theme="dark"] {
  --bg-deep: #03040a;
  --bg-page: #03040a;
  --bg-panel: rgba(12, 16, 32, 0.72);
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf4;
  --muted: #8b95a8;
  --brand: #0044ff;
  --brand-bright: #2d7cff;
  --cyan: #00c6ff;
  --header-scrolled: rgba(3, 4, 10, 0.88);
  --nav-mobile-bg: rgba(3, 4, 10, 0.97);
  --hero-overlay: linear-gradient(165deg, rgba(3, 4, 10, 0.92) 0%, rgba(3, 4, 10, 0.55) 45%, rgba(0, 40, 120, 0.35) 100%);
  --hero-img-opacity: 0.35;
  --section-alt-mask: linear-gradient(180deg, transparent 0%, rgba(0, 68, 255, 0.04) 50%, transparent 100%);
  --orb-a: rgba(0, 68, 255, 0.5);
  --orb-b: rgba(0, 198, 255, 0.35);
  --logo-scrim: none;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
  background: var(--bg-page, var(--bg-deep));
  overflow-x: hidden;
  transition: background-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

main {
  position: relative;
  z-index: 1;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Ambient background —— */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
  animation: orb-drift 22s ease-in-out infinite;
}

.ambient__orb--1 {
  width: min(60vw, 520px);
  height: min(60vw, 520px);
  background: radial-gradient(circle, var(--orb-a) 0%, transparent 70%);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.ambient__orb--2 {
  width: min(50vw, 420px);
  height: min(50vw, 420px);
  background: radial-gradient(circle, var(--orb-b) 0%, transparent 70%);
  bottom: 10%;
  left: -10%;
  animation-delay: -8s;
  animation-duration: 28s;
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.05);
  }
}

/* —— Stellar glow: soft blurred orbs (OpenCube-style), no asset image —— */
.stellar-glow {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.5s var(--ease-out), visibility 0.5s;
  /* clip-path set from JS on index: excludes homepage .hero (image + overlay) while scrolling */
}

.stellar-glow__bloom {
  position: absolute;
  width: min(95vw, 720px);
  height: min(95vw, 720px);
  border-radius: 50%;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  filter: blur(28px);
  animation: stellar-bloom-pulse 9s ease-in-out infinite;
  z-index: 0;
}

html[data-theme="light"] .stellar-glow__bloom {
  background: radial-gradient(
    circle,
    rgba(37, 99, 235, 0.16) 0%,
    rgba(59, 130, 246, 0.08) 28%,
    rgba(147, 197, 253, 0.05) 45%,
    transparent 70%
  );
  opacity: 0.82;
  filter: blur(36px);
}

html[data-theme="dark"] .stellar-glow__bloom {
  background: radial-gradient(
    circle,
    rgba(0, 120, 255, 0.28) 0%,
    rgba(0, 68, 255, 0.12) 28%,
    rgba(0, 198, 255, 0.06) 45%,
    transparent 68%
  );
  opacity: 1;
  filter: blur(28px);
}

@keyframes stellar-bloom-pulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.stellar-glow__orbs {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.stellar-glow__orb {
  position: absolute;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  filter: blur(42px);
  mix-blend-mode: screen;
  opacity: 0.85;
  will-change: transform;
}

html[data-theme="light"] .stellar-glow__orb {
  mix-blend-mode: normal;
  opacity: 0.72;
  filter: blur(52px);
}

/* Orbs distributed across the viewport (hero masked out on homepage via clip-path) */
.stellar-glow__orb--1 {
  width: min(42vw, 380px);
  height: min(42vw, 380px);
  left: 12%;
  top: 62%;
  animation: stellar-orb-drift-a 22s ease-in-out infinite;
}

.stellar-glow__orb--2 {
  width: min(55vw, 520px);
  height: min(55vw, 520px);
  left: 82%;
  top: 72%;
  animation: stellar-orb-drift-b 26s ease-in-out infinite;
  animation-delay: -4s;
}

.stellar-glow__orb--3 {
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  left: 58%;
  top: 38%;
  animation: stellar-orb-drift-c 18s ease-in-out infinite;
  animation-delay: -7s;
}

.stellar-glow__orb--4 {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  left: 22%;
  top: 88%;
  animation: stellar-orb-drift-b 24s ease-in-out infinite;
  animation-delay: -2s;
}

.stellar-glow__orb--5 {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  left: 68%;
  top: 12%;
  animation: stellar-orb-drift-a 15s ease-in-out infinite;
  animation-delay: -9s;
  opacity: 0.95;
}

html[data-theme="dark"] .stellar-glow__orb--1 {
  background: radial-gradient(circle at 35% 40%, rgba(0, 245, 255, 0.45) 0%, rgba(0, 120, 255, 0.18) 42%, transparent 68%);
}

html[data-theme="dark"] .stellar-glow__orb--2 {
  background: radial-gradient(circle at 60% 35%, rgba(0, 68, 255, 0.38) 0%, rgba(56, 189, 248, 0.15) 48%, transparent 70%);
}

html[data-theme="dark"] .stellar-glow__orb--3 {
  background: radial-gradient(circle at 45% 55%, rgba(14, 165, 233, 0.4) 0%, rgba(0, 80, 200, 0.12) 50%, transparent 72%);
}

html[data-theme="dark"] .stellar-glow__orb--4 {
  background: radial-gradient(circle at 50% 45%, rgba(99, 102, 241, 0.32) 0%, rgba(0, 198, 255, 0.14) 46%, transparent 68%);
}

html[data-theme="dark"] .stellar-glow__orb--5 {
  background: radial-gradient(circle at 50% 50%, rgba(186, 230, 253, 0.35) 0%, rgba(0, 150, 255, 0.1) 55%, transparent 75%);
}

html[data-theme="light"] .stellar-glow__orb--1 {
  background: radial-gradient(circle at 40% 40%, rgba(37, 99, 235, 0.22) 0%, rgba(147, 197, 253, 0.08) 45%, transparent 72%);
}

html[data-theme="light"] .stellar-glow__orb--2 {
  background: radial-gradient(circle at 55% 38%, rgba(59, 130, 246, 0.18) 0%, rgba(191, 219, 254, 0.06) 48%, transparent 74%);
}

html[data-theme="light"] .stellar-glow__orb--3 {
  background: radial-gradient(circle at 48% 52%, rgba(79, 70, 229, 0.12) 0%, rgba(125, 211, 252, 0.07) 50%, transparent 74%);
}

html[data-theme="light"] .stellar-glow__orb--4 {
  background: radial-gradient(circle at 50% 48%, rgba(14, 165, 233, 0.14) 0%, rgba(96, 165, 250, 0.06) 46%, transparent 72%);
}

html[data-theme="light"] .stellar-glow__orb--5 {
  background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, rgba(226, 232, 240, 0.05) 58%, transparent 78%);
  opacity: 0.62;
}

@keyframes stellar-orb-drift-a {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  33% {
    transform: translate(-50%, -50%) translate(4%, -3%) scale(1.04);
  }
  66% {
    transform: translate(-50%, -50%) translate(-3%, 5%) scale(0.98);
  }
}

@keyframes stellar-orb-drift-b {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) translate(-5%, 4%) scale(1.07);
  }
}

@keyframes stellar-orb-drift-c {
  0%,
  100% {
    transform: translate(-50%, -50%) translate(0, 0) scale(1);
  }
  45% {
    transform: translate(-50%, -50%) translate(6%, 3%) scale(1.05);
  }
  75% {
    transform: translate(-50%, -50%) translate(-4%, -4%) scale(0.97);
  }
}

@media (prefers-reduced-motion: reduce) {
  .stellar-glow__bloom,
  .stellar-glow__orb {
    animation: none !important;
  }
}

/* —— Header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s;
}

.site-header.is-scrolled {
  background: var(--header-scrolled);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  padding: 0.35rem 0;
}

.site-logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.site-logo img,
.site-logo__img {
  height: clamp(40px, 6vw, 54px);
  width: auto;
  max-width: min(300px, 55vw);
}

.site-footer .site-logo img,
.site-footer .site-logo__img {
  height: 40px;
}

.site-logo__img--dark {
  display: none;
}

html[data-theme="dark"] .site-logo__img--light {
  display: none;
}

html[data-theme="dark"] .site-logo__img--dark {
  display: block;
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  background: rgba(0, 68, 255, 0.08);
  border-color: rgba(0, 68, 255, 0.25);
}

.theme-toggle__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

@media (max-width: 960px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: var(--nav-mobile-bg);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
  }
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.97rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(0, 68, 255, 0.08);
  text-decoration: none;
}

html[data-theme="dark"] .site-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
}

.site-nav a.is-active {
  color: var(--text);
  background: rgba(0, 68, 255, 0.18);
}

.site-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
}

@media (max-width: 960px) {
  .site-nav-toggle {
    display: grid;
    place-items: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--brand) 0%, #0030cc 100%);
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 68, 255, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 68, 255, 0.45);
}

.btn--ghost {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

html[data-theme="dark"] .btn--ghost {
  background: rgba(255, 255, 255, 0.08);
}

.btn--ghost:hover {
  background: rgba(15, 23, 42, 0.1);
}

html[data-theme="dark"] .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding: 7rem 0 4rem;
  z-index: 1;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-parallax {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: var(--hero-img-opacity, 0.35);
}

.hero__photo--dark {
  display: none;
}

html[data-theme="dark"] .hero__photo--light {
  display: none;
}

html[data-theme="dark"] .hero__photo--dark {
  display: block;
}

.hero__bg-parallax::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero__stars {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

html[data-theme="dark"] .hero__stars {
  top: 50%;
  right: 0;
  bottom: 0;
  left: 0;
  height: auto;
}

html[data-theme="light"] .hero__stars {
  display: none;
}

.hero__star {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #dbeafe 45%, #93c5fd 100%);
  box-shadow:
    0 0 2px 0 rgba(255, 255, 255, 0.95),
    0 0 6px 1px rgba(186, 230, 253, 0.55),
    0 0 14px 2px rgba(59, 130, 246, 0.2);
  animation-name: hero-star-pulse;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  will-change: opacity, transform, filter;
}

.hero__star--warm {
  background: radial-gradient(circle at 30% 30%, #fffef8 0%, #fef3c7 55%, rgba(253, 230, 138, 0.4) 100%);
  box-shadow:
    0 0 2px 0 rgba(255, 252, 240, 0.9),
    0 0 8px 2px rgba(251, 191, 36, 0.25);
}

@keyframes hero-star-pulse {
  0%,
  100% {
    opacity: 0.38;
    transform: scale(0.88);
    filter: brightness(0.92);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.12);
    filter: brightness(1.38);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__star {
    animation: none !important;
    opacity: 0.55;
  }
}

.hero__content {
  position: relative;
  z-index: 3;
  max-width: 44rem;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(0, 68, 255, 0.2);
  border: 1px solid rgba(0, 68, 255, 0.35);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  animation: pulse-soft 5s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.2);
  }
  50% {
    opacity: 0.92;
    box-shadow: 0 0 24px 0 rgba(0, 68, 255, 0.15);
  }
}

.hero h1 {
  font-size: clamp(2.35rem, 4.8vw, 3.5rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
}

.hero__lead {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 0 1.75rem;
  max-width: 38rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__meta {
  margin-top: 2rem;
  font-size: 0.93rem;
  color: var(--muted);
}

.hero__meta strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Sections —— */
.section {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0;
}

.section--tight {
  padding-top: 2rem;
}

.section--alt {
  background: var(--section-alt-mask);
}

.section__head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

.section__head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.65rem;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.section__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* —— Feature grid (OpenCube-style cards) —— */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.35rem;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 68, 255, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.card p {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
}

/* —— Products (homepage section anchor) —— */
.products {
  scroll-margin-top: 88px;
}

/* —— News / stories teaser —— */
.teaser-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

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

@media (max-width: 960px) {
  .teaser-row--3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .teaser-row {
    grid-template-columns: 1fr;
  }
}

.teaser {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.03);
  transition: border-color 0.3s, transform 0.3s;
}

html[data-theme="dark"] .teaser {
  background: rgba(255, 255, 255, 0.03);
}

.teaser:hover {
  border-color: rgba(0, 68, 255, 0.4);
  transform: translateY(-3px);
}

.teaser__brand {
  display: flex;
  align-items: center;
  min-height: 2.35rem;
  margin-bottom: 0.6rem;
}

.teaser__brand-img {
  display: block;
  max-height: 34px;
  width: auto;
  max-width: min(148px, 76%);
  object-fit: contain;
  object-position: left center;
  opacity: 0.95;
}

.teaser time {
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.teaser h3 {
  margin: 0.4rem 0;
  font-size: 1.12rem;
}

.teaser p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

/* —— Contact strip —— */
.contact-strip {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(0, 68, 255, 0.12) 0%, rgba(37, 99, 235, 0.06) 100%);
  padding: 2.5rem 2rem;
  text-align: center;
}

html[data-theme="dark"] .contact-strip {
  background: linear-gradient(135deg, rgba(0, 68, 255, 0.15) 0%, rgba(0, 30, 80, 0.4) 100%);
}

.contact-strip h2 {
  margin: 0 0 0.5rem;
}

.contact-strip p {
  margin: 0 0 1.25rem;
  color: var(--muted);
}

.contact-form {
  margin-top: 2rem;
  text-align: left;
  max-width: 520px;
  margin-inline: auto;
}

.contact-form.card {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.contact-form .form-field {
  margin-bottom: 1rem;
}

.contact-form label {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form__note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.contact-form__status {
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 68, 255, 0.28);
  background: rgba(0, 68, 255, 0.06);
  display: none;
}

.contact-form__status.is-visible {
  display: block;
}

.contact-form__address {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.map-embed {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.map-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 960px) {
  .header-actions {
    margin-left: auto;
  }
}

/* Content cards with media */
.content-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  margin-bottom: 2.5rem;
  transition: box-shadow 0.35s var(--ease-out);
}

.content-card:hover {
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

html[data-theme="dark"] .content-card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.content-card__media {
  margin: 0;
  max-height: 280px;
  overflow: hidden;
  background: var(--bg-deep);
}

.content-card__media img {
  width: 100%;
  height: 100%;
  max-height: 280px;
  object-fit: cover;
}

.content-card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  min-height: 180px;
  background: linear-gradient(135deg, rgba(0, 68, 255, 0.06), transparent);
}

.content-card__media--logo img {
  max-height: 96px;
  width: auto;
  max-width: min(420px, 92%);
  object-fit: contain;
}

.content-card__media--logo.content-card__media--logo-wide {
  max-height: none;
  min-height: 220px;
  padding: 2.25rem 1.5rem 3rem;
}

.content-card__media--logo.content-card__media--logo-wide img {
  max-height: 152px;
  max-width: min(720px, 100%);
  width: auto;
}

@media (min-width: 700px) {
  .content-card__media--logo.content-card__media--logo-wide img {
    max-height: 176px;
    max-width: min(800px, 100%);
  }
}

.content-card__media--partner-strip {
  max-height: none;
  min-height: 0;
}

.content-card__media--partner-strip img {
  max-height: none;
  width: 100%;
  min-height: 160px;
  max-height: 200px;
  object-fit: cover;
  object-position: center;
}

.content-card__body {
  padding: 1.5rem 1.5rem 1.75rem;
}

.content-card__body h2 {
  font-size: 1.48rem;
  margin: 0 0 0.75rem;
}

.content-card__body p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 1.045rem;
}

.content-card__body p:last-child {
  margin-bottom: 0;
}

.site-footer__slogan {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.5rem;
  max-width: 22rem;
  line-height: 1.4;
}

/* —— Footer —— */
.site-footer {
  position: relative;
  z-index: 1;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  margin-top: 2rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 520px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 1rem;
}

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

.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

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

.site-footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer__copyright {
  flex: 1 1 12rem;
  min-width: 0;
}

.site-footer__bottom-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1.35rem;
  margin-left: auto;
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.35rem;
}

.site-footer__legal a {
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--muted);
}

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

.site-footer__top-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  flex-shrink: 0;
  transition:
    color 0.2s,
    background 0.2s,
    border-color 0.2s;
}

.site-footer__top-icon:hover {
  color: var(--text);
  background: rgba(0, 68, 255, 0.08);
  border-color: rgba(0, 68, 255, 0.25);
  text-decoration: none;
}

.site-footer__top-icon svg {
  display: block;
}

.tm-note {
  font-size: 0.75rem;
  color: var(--muted);
  max-width: 36rem;
}

/* —— Homepage MVP cards (OpenCube-style) —— */
.mvp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 0.25rem;
}

@media (max-width: 960px) {
  .mvp-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.mvp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem 1rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow:
    0 22px 45px -18px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(15, 23, 42, 0.06);
  text-decoration: none;
  color: var(--text);
  transition:
    transform 0.38s var(--ease-out),
    box-shadow 0.38s var(--ease-out),
    border-color 0.35s;
  isolation: isolate;
  overflow: visible;
  cursor: pointer;
}

html[data-theme="dark"] .mvp-card {
  background: rgba(30, 41, 59, 0.88);
  border-color: rgba(148, 163, 184, 0.22);
  box-shadow:
    0 24px 48px -16px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.mvp-card:hover {
  transform: scale(1.03);
  border-color: rgba(0, 68, 255, 0.35);
  box-shadow:
    0 28px 56px -20px rgba(37, 99, 235, 0.35),
    0 0 0 1px rgba(0, 68, 255, 0.18);
}

html[data-theme="dark"] .mvp-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.mvp-card__glow {
  position: absolute;
  width: min(88%, 360px);
  height: 200px;
  left: 50%;
  top: -18px;
  transform: translateX(-50%);
  border-radius: var(--radius-lg);
  background: linear-gradient(105deg, #2563eb 0%, #6366f1 45%, #7c3aed 100%);
  filter: blur(26px);
  opacity: 0.42;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out);
}

html[data-theme="dark"] .mvp-card__glow {
  background: linear-gradient(105deg, #1d4ed8 0%, #4f46e5 40%, #06b6d4 100%);
  opacity: 0.38;
}

.mvp-card:hover .mvp-card__glow {
  opacity: 0.78;
  transform: translateX(-50%) scale(1.04);
}

.mvp-card__inner {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 22rem;
}

.mvp-card__figure {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 0.35rem 0 0.25rem;
}

.mvp-card__figure img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: var(--radius);
  margin-inline: auto;
}

.mvp-card__title {
  margin: 0.75rem 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: inherit;
}

.mvp-card__text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.mvp-card:hover .mvp-card__title {
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .mvp-card,
  .mvp-card__glow {
    transition: none;
  }

  .mvp-card:hover {
    transform: none;
  }

  .mvp-card:hover .mvp-card__glow {
    transform: translateX(-50%);
  }
}

/* —— Products page: flush Icomera-style feature strips —— */
.section--flush.section--block {
  padding: 0;
  margin: 0;
  max-width: none;
}

.section--accent-grey {
  background: var(--bg-deep);
  position: relative;
  z-index: 1;
}

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  min-height: min(520px, 78vh);
  position: relative;
  z-index: 1;
}

.feature-split__body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.25rem, 5vw, 4.25rem) clamp(1.5rem, 4vw, 3.5rem);
}

.feature-split__inner {
  max-width: 34rem;
}

.feature-split__title {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 2.8vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.feature-split__text {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: inherit;
  opacity: 0.92;
}

.feature-split__text + .feature-split__text {
  margin-top: -0.5rem;
}

.feature-split__list {
  margin: 0 0 1.35rem;
  padding-left: 1.15rem;
  font-size: 1.02rem;
  line-height: 1.6;
  opacity: 0.95;
}

.feature-split__list li {
  margin-bottom: 0.45rem;
}

.feature-split__media {
  position: relative;
  margin: 0;
  min-height: 260px;
  overflow: hidden;
  isolation: isolate;
}

.feature-split__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s var(--ease-out);
}

.feature-split:hover .feature-split__media img {
  transform: scale(1.04);
}

.feature-split--white {
  background: var(--bg-page);
  color: var(--text);
}

.feature-split--white .feature-split__text,
.feature-split--white .feature-split__list {
  color: var(--muted);
}

.feature-split--navy {
  background: linear-gradient(165deg, #0f1c33 0%, #0b1528 75%);
  color: #f8fafc;
}

.feature-split--navy .feature-split__text,
.feature-split--navy .feature-split__list {
  color: rgba(226, 232, 240, 0.88);
}

.feature-split--navy .link-view-all {
  color: #93c5fd;
}

.feature-split--navy .link-view-all:hover {
  color: #bfdbfe;
}

.feature-split--teal {
  background: linear-gradient(160deg, #0c4a6e 0%, #0e7490 55%, #155e75 100%);
  color: #ecfeff;
}

.feature-split--teal .feature-split__text,
.feature-split--teal .feature-split__list {
  color: rgba(204, 251, 241, 0.9);
}

.feature-split--teal .link-view-all {
  color: #a5f3fc;
}

.feature-split--teal .link-view-all:hover {
  color: #cffafe;
}

.link-view-all {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--brand-bright);
  text-decoration: none;
  transition: color 0.25s, gap 0.25s;
}

.feature-split--white .link-view-all {
  color: var(--brand);
}

.link-view-all::after {
  content: "→";
  font-weight: 700;
  transition: transform 0.25s var(--ease-out);
}

.link-view-all:hover {
  text-decoration: none;
}

.link-view-all:hover::after {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .feature-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .feature-split__media {
    order: -1;
    min-height: 220px;
  }

  .feature-split--image-left .feature-split__media {
    order: -1;
  }

  .feature-split__media img {
    min-height: 220px;
    max-height: 320px;
  }

  .feature-split:hover .feature-split__media img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-split:hover .feature-split__media img {
    transform: none;
  }

  .link-view-all::after {
    transition: none;
  }
}

.site-nav a[aria-current="page"] {
  color: var(--brand-bright);
  font-weight: 700;
}

/* —— Cookie / consent strip (local storage & optional analytics notice) —— */
.cookie-banner {
  position: fixed;
  z-index: 10000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.25rem calc(1rem + env(safe-area-inset-bottom));
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 100%;
}

html[data-theme="dark"] .cookie-banner {
  background: rgba(15, 23, 42, 0.96);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
}

.cookie-banner p {
  margin: 0;
  flex: 1 1 280px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 52rem;
}

.cookie-banner p a {
  color: var(--brand-bright);
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cookie-banner button {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-banner button:hover {
  background: rgba(0, 68, 255, 0.08);
  border-color: rgba(0, 68, 255, 0.35);
}

.cookie-banner button.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.cookie-banner button.btn--primary:hover {
  filter: brightness(1.06);
}

/* —— Page hero (inner pages) —— */
.page-hero {
  padding: 7rem 0 3rem;
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(1.95rem, 3.2vw, 2.45rem);
  margin: 0 0 0.5rem;
}

.page-hero p {
  color: var(--muted);
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.article {
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
  max-width: 720px;
  margin: 0 auto;
}

.article p {
  color: var(--muted);
  font-size: 1.045rem;
}

.legal-article {
  max-width: 820px;
}

.legal-section {
  margin-bottom: 2.5rem;
}

.legal-section h2 {
  font-size: 1.35rem;
  margin: 0 0 1rem;
  color: var(--text);
}

.legal-section h3 {
  font-size: 1.12rem;
  margin: 1.5rem 0 0.65rem;
  color: var(--text);
}

.legal-section p,
.legal-list {
  font-size: 1.045rem;
  line-height: 1.65;
  color: var(--muted);
}

.legal-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.legal-list li {
  margin-bottom: 0.45rem;
}

.legal-back {
  margin-top: 3rem;
}
