/* ============================================================================
   stellarindia.co — x.ai-style trial stylesheet
   Same class contract as production; entirely different visual system.

   Idiom: near-black canvas, pure-white ink, muted greys for hierarchy, ONE
   orange accent, tight negative tracking on display type, monospace labels,
   1px borders, no box-shadows. Depth comes from surface contrast plus
   restrained radial glows and dot-grid texture (added after the first pass
   read as too flat for a product site).
   ========================================================================== */

:root {
  color-scheme: dark;

  --canvas: #0a0a0a;
  --surface: #121416;
  --surface-2: #1b1e22;
  --ink: #ffffff;
  --ink-muted: #7d8187;
  --ink-dim: #a9b2bc;
  --line: #23272e;
  --line-strong: #343a43;
  --line-active: #d5d9e2;
  /* accent — x.ai orange. Change these two lines
     to re-theme the whole site: hex for solids, rgb triplet for glows/tints. */
  --accent: #ff6308;
  --accent-rgb: 255, 99, 8;
  --accent-hover: #ff7a2e;

  --font-sans: -apple-system, "SF Pro Display", "SF Pro Text", "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", "Geist Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --radius: 1rem;
  --radius-sm: 0.5rem;
  --pill: 9999px;

  --max-width: 1180px;
  --section-pad: 8rem;
}

/* ---------- base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.menu-lock,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: var(--pill);
  background: var(--ink);
  color: var(--canvas);
  text-decoration: none;
  font-weight: 500;
}

.skip-link:focus {
  left: 16px;
}

.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* mono label — the recurring x.ai "technical label" pattern */
.eyebrow,
.hero-card-label,
.capability-title,
.card-kicker,
.product-badge,
.contact-kicker,
.contact-detail span,
.breadcrumb,
.product-figure-hint,
.partner-name,
.lightbox-caption,
.footer-note,
small {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 90px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

/* original logo with only its grey tile removed; brand colours intact */
.brand-mark {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  gap: 2px;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}



.brand-copy span:last-child {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.desktop-nav a,
.mobile-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.mobile-nav a:hover,
.mobile-nav a:focus-visible {
  color: var(--ink);
}

.nav-item-dropdown {
  position: relative;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 260px;
  margin-top: 18px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  z-index: 60;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.desktop-nav .nav-dropdown a {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-dim);
}

.desktop-nav .nav-dropdown a:hover,
.desktop-nav .nav-dropdown a:focus-visible {
  background: var(--surface-2);
  color: var(--ink);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.site-header.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.mobile-nav a {
  display: block;
  padding: 18px 24px;
}

.mobile-nav a + a {
  border-top: 1px solid var(--line);
}

.site-header.menu-open .mobile-nav {
  display: block;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.hero {
  isolation: isolate;
  overflow: clip;
}

.hero-backdrop,
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* the plant photo, pushed far back: desaturated, darkened, fading into the canvas */
.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.65) contrast(1.08) brightness(0.72);
  opacity: 0.6;
}

/* darker on the left where the text sits, photo shows through on the right,
   everything settles into the canvas at the bottom */
.hero-overlay {
  background:
    radial-gradient(60% 55% at 18% 30%, rgba(var(--accent-rgb), 0.07), transparent 70%),
    linear-gradient(100deg, rgba(10, 10, 10, 0.88) 0%, rgba(10, 10, 10, 0.6) 45%, rgba(10, 10, 10, 0.2) 100%),
    linear-gradient(180deg, transparent 40%, var(--canvas) 100%);
}

/* faint technical dot grid over the whole hero */
.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 4rem;
  align-items: start;
  padding-block: 3.5rem 5rem;
}

/* section label: larger than the other mono labels, with a leading accent rule,
   so it holds its own against the display headline beneath it */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  flex: 0 0 auto;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.hero-copy h1,
.section-heading h2,
.custom-copy h2,
.contact-copy h2,
.hero-card h2,
.error-card h1 {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  max-width: 24ch;
  font-size: clamp(2.3rem, 4.2vw, 3.6rem);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #a9b2bc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title-sub {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--ink-muted);
}

.hero-lead {
  max-width: 56ch;
  margin: 1.5rem 0 0;
  color: var(--ink-dim);
  font-size: 1.125rem;
  line-height: 1.6;
}

.hero-lead a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-active);
  text-underline-offset: 3px;
}

.hero-actions,
.product-actions,
.contact-actions,
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 2rem;
}

/* ---------- buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border-radius: var(--pill);
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--accent);
  color: #0a0a0a;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-hover);
}

.button-light {
  background: var(--ink);
  color: var(--canvas);
}

.button-light:hover,
.button-light:focus-visible {
  background: #e8e8e8;
}

.button-secondary,
.button-ghost,
.button-outline-light {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-active);
}

.button-secondary:hover,
.button-secondary:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible,
.button-outline-light:hover,
.button-outline-light:focus-visible {
  background: var(--surface-2);
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.text-link::after {
  content: "\2192";
  margin-left: 8px;
  transition: transform 0.15s ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(3px);
}

/* on product cards the link is the card's only action, so it gets button weight:
   orange-outlined pill that fills on hover */
.product-actions .text-link {
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--accent);
  border-radius: var(--pill);
  color: var(--accent);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.product-actions .text-link:hover,
.product-actions .text-link:focus-visible {
  background: var(--accent);
  color: #0a0a0a;
  transform: none;
}

/* ---------- lists ---------- */

.hero-stats,
.feature-list,
.product-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* the data strip: four cells divided by hairlines, mono numerals */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hero-stats li {
  padding: 1.25rem 1.25rem 1.375rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-stats li:nth-child(2n) {
  border-right: 0;
}

.hero-stats li:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.hero-stats strong {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--accent);
}

.hero-stats span {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.hero-panel {
  align-self: start;
  margin-top: 3.25rem;
}

.hero-card,
.capability-shell {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.hero-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 100% 0%, rgba(var(--accent-rgb), 0.16), transparent 70%),
    rgba(18, 20, 22, 0.85);
  backdrop-filter: blur(10px);
}

.hero-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.hero-card-label,
.capability-title {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.hero-card h2 {
  font-size: 1.75rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.feature-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.feature-list li,
.product-points li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-dim);
}

.feature-list li::before,
.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 1.5px;
  background: var(--accent);
}

.hero-card-note,
.capability-note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: var(--section-pad) 0;
  border-bottom: 1px solid var(--line);
}

.section-products,
.section-partners {
  background:
    radial-gradient(50% 40% at 50% 0%, rgba(255, 255, 255, 0.03), transparent 70%),
    #0c0d0f;
}

/* first block under the header on inner pages: tighter than a mid-page section,
   with a very quiet backdrop — a soft accent glow behind the title and a dot
   grid that fades out before the copy begins */
main > .section:first-child {
  position: relative;
  padding-top: 3.5rem;
  background:
    radial-gradient(45% 40% at 8% 0%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    radial-gradient(35% 45% at 100% 30%, rgba(255, 255, 255, 0.025), transparent 70%),
    var(--canvas);
}

main > .section:first-child::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 45%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, transparent 45%);
  pointer-events: none;
}

main > .section:first-child > .container {
  position: relative;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 3.5rem;
}

.section-heading::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin-top: 1.5rem;
  background: var(--accent);
}

.section-heading h2,
.custom-copy h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 55%, #a9b2bc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-heading p,
.custom-copy p,
.contact-copy p,
.footer-note,
.contact-detail p,
.trust-card p,
.product-copy p,
.error-card p {
  margin: 1rem 0 0;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* Why Us: lifted band with an accent glow and a faint dot grid, so it reads as
   its own chapter between the hero photo and the product grid */
.section-trust {
  position: relative;
  padding-top: var(--section-pad);
  background:
    radial-gradient(55% 60% at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 65%),
    radial-gradient(40% 50% at 100% 100%, rgba(var(--accent-rgb), 0.08), transparent 70%),
    #0e1013;
}

.section-trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(60% 70% at 0% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(60% 70% at 0% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}

.section-trust > .container {
  position: relative;
}

/* ---------- cards: why-us grid ---------- */

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.trust-card,
.product-card {
  background: var(--surface);
}

.trust-card {
  position: relative;
  display: block;
  padding: 2.25rem 1.75rem 2rem;
  overflow: hidden;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.trust-card::before {
  content: attr(data-n);
  position: absolute;
  right: 1rem;
  top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 5.5rem;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.035);
  pointer-events: none;
}

.trust-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 30% 0%, rgba(var(--accent-rgb), 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.trust-card:hover::after,
a.trust-card:focus-visible::after {
  opacity: 1;
}

a.trust-card:hover,
a.trust-card:focus-visible {
  background: var(--surface-2);
}

/* the number itself is carried by the large watermark (::before on the card);
   the kicker collapses to just its orange rule so it isn't shown twice */
.card-kicker {
  position: relative;
  display: block;
  width: 36px;
  height: 2px;
  overflow: hidden;
  font-size: 0;
  color: transparent;
  background: var(--accent);
}

.trust-card h3 {
  position: relative;
  font-size: 1.25rem;
}

.trust-card p {
  position: relative;
}

.trust-card h3,
.product-copy h3 {
  margin: 1.25rem 0 0;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.trust-card p {
  font-size: 0.9375rem;
}

/* ---------- products ---------- */

.product-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}

.product-card:hover {
  border-color: var(--line-strong);
}

.product-card:last-child {
  grid-column: 1 / -1;
}

.product-media {
  position: relative;
  padding: 1.25rem 1.25rem 0;
}

.product-badge {
  position: absolute;
  left: 2rem;
  top: 2rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(var(--accent-rgb), 0.45);
  border-radius: var(--pill);
  background: rgba(10, 10, 10, 0.85);
  color: var(--accent);
  font-size: 0.6875rem;
}

.media-button,
.media-frame {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, 0.10), transparent 70%),
    var(--surface-2);
  transition: background 0.25s ease;
}

.product-card:hover .media-button,
.product-card:hover .media-frame {
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(var(--accent-rgb), 0.14), transparent 70%),
    var(--surface-2);
}

.media-button {
  cursor: zoom-in;
}

.media-frame {
  margin: 0;
}

.media-button img,
.media-frame img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}

.product-card-service .media-frame img {
  width: 100%;
  max-height: none;
}

.product-body {
  display: grid;
  gap: 1.25rem;
  padding: 1.5rem 1.5rem 1.75rem;
}

.product-copy h3 {
  position: relative;
  margin-top: 0;
  padding-bottom: 0.75rem;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* short accent rule under the name: distinct from the copy without a coloured word */
.product-copy h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2px;
  background: var(--accent);
}

.product-points {
  display: grid;
  gap: 0.5rem;
}

/* ---------- product detail (figure + copy) ---------- */

.product-figure {
  align-self: start;
  display: grid;
  gap: 0.75rem;
}

.product-figure-button,
.product-figure-static {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(255, 255, 255, 0.06), transparent 70%),
    var(--surface);
  transition: border-color 0.15s ease;
}

.product-figure-button {
  cursor: zoom-in;
}

.product-figure-button:hover,
.product-figure-button:focus-visible {
  border-color: var(--line-active);
}

.product-figure-button img,
.product-figure-static img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.product-figure-hint {
  margin: 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 2rem;
  color: var(--ink-muted);
  font-size: 0.75rem;
}

.breadcrumb a {
  color: var(--ink-muted);
  text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
  color: var(--ink);
}

.breadcrumb span[aria-current="page"] {
  color: var(--ink);
}

/* ---------- custom builds ---------- */

.custom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 1.5rem;
  align-items: stretch;
}

.custom-copy,
.capability-card {
  padding: 2.5rem;
  border-radius: var(--radius);
}

.custom-copy {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(50% 50% at 0% 0%, rgba(var(--accent-rgb), 0.10), transparent 70%),
    var(--surface);
}

.custom-copy > * {
  position: relative;
}

.custom-copy .button {
  margin-top: 2rem;
}

.capability-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(var(--accent-rgb), 0.26), transparent 65%),
    linear-gradient(160deg, #16191d, #0e1013);
}

.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 70% at 100% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 100% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}

.capability-shell {
  position: relative;
}

.capability-shell {
  padding: 0;
  border: 0;
  background: transparent;
}

.product-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.72fr);
}

.product-detail-grid .custom-copy h2 {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.product-detail-grid .custom-copy h2 + p,
.product-detail-grid .custom-copy h2 + ul {
  margin-top: 0.75rem;
}

.product-detail-grid .custom-copy p + h2,
.product-detail-grid .custom-copy ul + h2 {
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.product-detail-grid .custom-copy p + ul {
  margin-top: 0.875rem;
}

/* ---------- contact ---------- */

.section-contact {
  padding-top: var(--section-pad);
}

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: 2.5rem;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(55% 70% at 100% 0%, rgba(var(--accent-rgb), 0.32), transparent 65%),
    radial-gradient(40% 50% at 0% 100%, rgba(var(--accent-rgb), 0.12), transparent 70%),
    linear-gradient(160deg, #16191d 0%, #0e1013 100%);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(70% 80% at 90% 10%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 80% at 90% 10%, #000 30%, transparent 100%);
  pointer-events: none;
}

.contact-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 70%);
}

.contact-copy,
.contact-grid,
.contact-actions {
  position: relative;
  z-index: 1;
}

.contact-copy {
  max-width: 720px;
}

.contact-kicker {
  display: inline-block;
  margin: 0;
  color: var(--accent);
}

.contact-copy h2 {
  margin-top: 0.75rem;
  font-size: clamp(2.2rem, 3.8vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 50%, #a9b2bc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-lead {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--ink);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--line);
  overflow: hidden;
}

.contact-detail {
  padding: 1.25rem 1.5rem;
  background: rgba(10, 10, 10, 0.55);
  transition: background-color 0.15s ease;
}

.contact-detail:hover {
  background: rgba(10, 10, 10, 0.8);
}

.contact-detail span {
  display: block;
  margin-bottom: 0.625rem;
  color: var(--accent);
  font-size: 0.6875rem;
}

.contact-detail a {
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.contact-detail a:hover,
.contact-detail a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-detail p {
  margin-top: 0;
  font-size: 0.9375rem;
}

/* ---------- partners ---------- */

.section-partners {
  padding-top: var(--section-pad);
  border-bottom: 0;
}

.partners-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}

.partner-card {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  text-align: center;
  transition: background-color 0.15s ease;
}

.partner-card:hover {
  background: var(--surface-2);
}

/* logos are flat-RGB with baked white backgrounds; a white chip keeps them
   consistent rather than showing mismatched boxes on the dark surface */
.partner-logo {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #fff;
}

.partner-logo img {
  max-width: 100%;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.partner-name {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

/* ---------- footer ---------- */

.site-footer {
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.footer-note {
  max-width: 52ch;
  margin-top: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.6875rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

small {
  color: var(--ink-muted);
  font-size: 0.6875rem;
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(10, 10, 10, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox-dialog {
  position: relative;
  width: min(1040px, 100%);
  padding: 64px 20px 20px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.lightbox-caption {
  padding-top: 14px;
  color: var(--ink-muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.lightbox-close,
.lightbox-arrow,
.thumb-button {
  cursor: pointer;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  border: 1px solid var(--line-active);
  border-radius: var(--pill);
  background: transparent;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  background: var(--surface-2);
}

.lightbox-close {
  top: 16px;
  right: 16px;
  min-width: 84px;
  min-height: 40px;
}

.lightbox-arrow {
  top: calc(50% - 20px);
  width: 44px;
  height: 44px;
}

.lightbox-arrow-prev {
  left: 20px;
}

.lightbox-arrow-next {
  right: 20px;
}

.lightbox-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 16px;
  padding-bottom: 4px;
}

.thumb-button {
  flex: 0 0 84px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
}

.thumb-button img {
  width: 100%;
  height: 64px;
  object-fit: contain;
}

.thumb-button.is-active {
  border-color: var(--accent);
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- error pages ---------- */

.error-page {
  min-height: 100svh;
}

.error-main {
  padding: 4rem 0 6rem;
}

.error-card {
  max-width: 720px;
  padding: 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.error-card h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid,
  .custom-grid:not(.product-detail-grid) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-panel {
    margin-top: 0;
  }

  .trust-grid,
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root {
    --section-pad: 6rem;
  }
}

@media (min-width: 821px) {
  .product-card:last-child {
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    align-items: center;
  }

  .product-card:last-child .product-media {
    padding: 1.25rem;
  }
}

@media (max-width: 820px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .hero-grid {
    padding-block: 2.5rem 4rem;
  }

  main > .section:first-child {
    padding-top: 2.5rem;
  }

  .product-grid,
  .contact-grid,
  .trust-grid,
  .partners-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    display: grid;
    align-items: start;
  }

  .lightbox-dialog {
    padding-top: 72px;
  }

  .lightbox-arrow {
    top: auto;
    bottom: 118px;
  }

  :root {
    --section-pad: 5rem;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .brand-copy span:last-child {
    display: none;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats li {
    border-right: 0;
  }

  .hero-stats li:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-stats li:last-child {
    border-bottom: 0;
  }

  .hero-card,
  .trust-card,
  .product-body,
  .custom-copy,
  .capability-card,
  .contact-panel,
  .error-card {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .contact-panel {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-dialog {
    padding: 68px 14px 14px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-arrow-prev {
    left: 12px;
  }

  .lightbox-arrow-next {
    right: 12px;
  }
}

@media (max-width: 559px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}

@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;
  }

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