/* ============================================================
   Vivarcus Website — Design System
   ============================================================ */

/* ----- Design tokens ----- */
:root {
  /* Brand */
  --brand: #f58220;
  --brand-strong: #e06a10;
  --brand-soft: #ff9d4d;
  --brand-tint: #fff5ec;
  /* Readable on white; the raw brand orange fails contrast as text */
  --brand-ink: #b8480a;

  /* Secondary accents used for gradients and category coding */
  --azure: #0b63ce;
  --azure-deep: #06407f;
  --cyan: #22b8d4;
  --violet: #7c5cf0;
  --teal: #0d9488;
  --rose: #e11d48;
  --success: #16a34a;

  /* Ink & neutrals */
  --ink-950: #060b18;
  --ink-900: #0a1223;
  --ink-800: #101b32;
  --ink-700: #1b2a45;
  --ink: #101828;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --line: #e6eaf0;
  --line-soft: #eef1f6;
  --surface: #ffffff;
  --surface-1: #f7f9fc;
  --surface-2: #eff3f9;

  /* Legacy aliases kept so older selectors keep resolving */
  --color-orange: var(--brand);
  --color-orange-hover: var(--brand-strong);
  --color-orange-light: var(--brand-tint);
  --color-blue: var(--azure);
  --color-blue-dark: var(--azure-deep);
  --color-navy: var(--ink-900);
  --color-dark: var(--ink);
  --color-text: #334155;
  --color-text-secondary: var(--slate-500);
  --color-text-light: var(--slate-400);
  --color-white: #ffffff;
  --color-bg: var(--surface-1);
  --color-border: var(--line);
  --color-success: var(--success);
  --color-success-bg: #f0fdf4;

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;

  --max-width: 1240px;
  --header-height: 76px;
  --section-y: clamp(80px, 8.5vw, 132px);

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow: 0 6px 16px -4px rgba(16, 24, 40, 0.08),
    0 2px 6px -2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 22px 44px -16px rgba(16, 24, 40, 0.18),
    0 8px 18px -10px rgba(16, 24, 40, 0.1);
  --shadow-xl: 0 48px 90px -28px rgba(6, 11, 24, 0.35),
    0 18px 40px -24px rgba(6, 11, 24, 0.2);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --transition: 0.25s var(--ease);
}

/* ----- Reset & base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.7;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a:hover {
  color: var(--azure-deep);
}

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

ul {
  list-style: none;
}

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

/* ----- Utilities ----- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition),
    height var(--transition);
}

.site-header--scrolled {
  height: 66px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(1.7);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.06), 0 8px 28px -18px rgba(16, 24, 40, 0.28);
}

/* Reading progress hairline pinned to the header's bottom edge */
.scroll-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft), var(--cyan));
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}

.site-header--scrolled .scroll-progress {
  opacity: 1;
}

/* On the dark hero the header is transparent, so invert its foreground */
.site-header:not(.site-header--scrolled) .header-logo-dark {
  color: #fff;
}

.site-header:not(.site-header--scrolled) .header-nav a {
  color: rgba(255, 255, 255, 0.74);
}

.site-header:not(.site-header--scrolled) .header-nav a:hover,
.site-header:not(.site-header--scrolled) .header-nav a.nav-active {
  color: #fff;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-logo {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.header-logo-dark {
  color: var(--ink);
}

.header-logo-accent {
  color: var(--brand);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 100px;
  color: var(--slate-500);
  font-size: 0.9375rem;
  font-weight: 550;
  transition: color var(--transition), background var(--transition);
}

.header-nav a:hover {
  color: var(--ink);
  background: rgba(16, 24, 40, 0.05);
}

.site-header:not(.site-header--scrolled) .header-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.header-nav a.nav-active {
  color: var(--brand-ink);
}

.header-nav a.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: var(--brand);
}

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

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 6px 11px;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.lang-switch:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.site-header--scrolled .lang-switch {
  color: var(--slate-500);
  background: transparent;
  border-color: var(--line);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.site-header--scrolled .lang-switch:hover {
  color: var(--brand-ink);
  border-color: var(--brand);
  background: var(--brand-tint);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 22px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
  overflow: hidden;
}

.btn .ic {
  font-size: 1.05em;
  transition: transform var(--transition);
}

.btn:hover .ic--arrow-right {
  transform: translateX(3px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-strong), var(--brand) 45%, var(--brand-soft));
  color: #fff;
  box-shadow: 0 1px 2px rgba(184, 72, 10, 0.4),
    0 8px 20px -10px rgba(245, 130, 32, 0.75);
}

/* Specular sweep on hover */
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -80%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(184, 72, 10, 0.4),
    0 16px 34px -12px rgba(245, 130, 32, 0.75);
  color: #fff;
}

.btn-primary:hover::after {
  left: 135%;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.btn-outline-dark:hover {
  border-color: var(--slate-400);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.0625rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
  border-radius: var(--radius-xs);
}

/* Mobile menu toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--transition);
}

.mobile-toggle--open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.mobile-toggle--open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header:not(.site-header--scrolled) .mobile-toggle span {
  background: #fff;
}

.mobile-toggle--open span {
  background: var(--ink) !important;
}

/* The open menu paints a white sheet under the transparent header */
.site-header:has(.header-nav--open) .header-logo-dark {
  color: var(--ink);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 72px) 0 clamp(72px, 7vw, 104px);
  text-align: center;
  background: radial-gradient(120% 90% at 50% -10%, #16264a 0%, transparent 60%),
    linear-gradient(165deg, #060b18 0%, var(--ink-900) 38%, #0c1c38 70%, #070f1f 100%);
  overflow: hidden;
  isolation: isolate;
}

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

.hero__aurora::before,
.hero__aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
}

.hero__aurora::before {
  width: 52vw;
  height: 52vw;
  top: -16%;
  left: -12%;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.3) 0%,
    rgba(245, 130, 32, 0.06) 45%, transparent 70%);
  animation: aurora-drift-1 18s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.hero__aurora::after {
  width: 46vw;
  height: 46vw;
  top: 18%;
  right: -10%;
  background: radial-gradient(circle, rgba(34, 184, 212, 0.24) 0%,
    rgba(11, 99, 206, 0.1) 45%, transparent 70%);
  animation: aurora-drift-2 22s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.hero.is-inview .hero__aurora::before,
.hero.is-inview .hero__aurora::after,
.hero.is-inview .hero-title span {
  animation-play-state: running;
}

@keyframes aurora-drift-1 {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6vw, 5vh) scale(1.16); }
}

@keyframes aurora-drift-2 {
  from { transform: translate(0, 0) scale(1.1); }
  to { transform: translate(-5vw, -6vh) scale(0.94); }
}

/* Accent glow tracking the pointer (JS sets --mx/--my) */
.hero__glow {
  position: absolute;
  z-index: -1;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 166, 84, 0.16) 0%, transparent 65%);
  filter: blur(60px);
  transform: translate(-50%, -50%);
  left: var(--mx, 50%);
  top: var(--my, 34%);
  transition: left 0.9s var(--ease), top 0.9s var(--ease);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 78% 55% at 50% 30%, black 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 55% at 50% 30%, black 25%, transparent 78%);
  pointer-events: none;
}

.hero__beam {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: -1;
  transform: translateX(-50%);
  width: min(820px, 82vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 130, 32, 0.85), transparent);
  pointer-events: none;
}

.hero__beam::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 62%;
  height: 110px;
  background: radial-gradient(ellipse at top, rgba(245, 130, 32, 0.2), transparent 70%);
  filter: blur(6px);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 940px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Staged entrance */
.hero-eyebrow,
.hero-title,
.hero-subtitle,
.hero-actions,
.hero-trust,
.hero-showcase {
  animation: hero-rise 0.95s var(--ease) both;
}

.hero-title { animation-delay: 0.07s; }
.hero-subtitle { animation-delay: 0.16s; }
.hero-actions { animation-delay: 0.25s; }
.hero-trust { animation-delay: 0.34s; }
.hero-showcase { animation-delay: 0.42s; }

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  margin-bottom: 26px;
}

.hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero-title {
  font-size: clamp(2.5rem, 6.4vw, 5.25rem);
  font-weight: 800;
  line-height: 1.07;
  color: #fff;
  letter-spacing: -0.042em;
  margin-bottom: 26px;
  text-wrap: balance;
}

.hero-title span {
  background: linear-gradient(105deg, var(--brand) 8%, #ffd0a1 45%, var(--brand) 85%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-slide 6s linear infinite;
  animation-play-state: paused;
}

@keyframes gradient-slide {
  to { background-position: 220% center; }
}

.hero-subtitle {
  font-size: clamp(1.0625rem, 1.6vw, 1.3125rem);
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.75;
  max-width: 660px;
  margin: 0 auto 34px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Compliance chips under the CTAs */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero-trust__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
  margin-right: 4px;
}

.hero-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 550;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-trust__item .ic {
  font-size: 0.9em;
  color: var(--brand-soft);
}

/* ----- Hero product showcase ----- */
.hero-showcase {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: clamp(44px, 4.5vw, 68px) auto 0;
  padding: 0 28px;
  perspective: 1600px;
}

.showcase {
  position: relative;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  padding: 1px;
  box-shadow: var(--shadow-xl);
  transform: rotateX(4deg) translateZ(0);
  transform-origin: 50% 0;
}

/* Halo behind the mock so it detaches from the hero gradient */
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 22% 10% -12%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(245, 130, 32, 0.32), rgba(34, 184, 212, 0.12) 45%, transparent 72%);
  filter: blur(64px);
  pointer-events: none;
}

.showcase__inner {
  border-radius: calc(var(--radius-lg) - 1px);
  overflow: hidden;
  background: #fbfcfe;
}

.showcase__bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  background: #f1f4f9;
  border-bottom: 1px solid #e4e9f1;
}

.showcase__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d3dae6;
}

.showcase__dot:first-child { background: #f9b4a5; }
.showcase__dot:nth-child(2) { background: #fbdba7; }
.showcase__dot:nth-child(3) { background: #b6e3c0; }

.showcase__url {
  margin: 0 auto;
  padding: 3px 14px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid #e4e9f1;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--slate-400);
}

.showcase__body {
  display: grid;
  grid-template-columns: 176px 1fr;
  min-height: 336px;
}

.showcase__side {
  padding: 18px 14px;
  background: linear-gradient(180deg, #0d1729, #0a1223);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.showcase__brand {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  padding: 4px 8px 16px;
}

.showcase__brand b {
  color: var(--brand);
  font-weight: 700;
}

.showcase__nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.5);
}

.showcase__nav .ic {
  font-size: 0.95em;
}

.showcase__nav--active {
  color: #fff;
  background: rgba(245, 130, 32, 0.14);
  box-shadow: inset 2px 0 0 var(--brand);
}

.showcase__nav--active .ic {
  color: var(--brand);
}

.showcase__main {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.showcase__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.showcase__title {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.showcase__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 650;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.showcase__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.showcase__kpi {
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
}

.showcase__kpi-label {
  font-size: 0.6875rem;
  color: var(--slate-400);
  letter-spacing: 0.02em;
}

.showcase__kpi-value {
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.showcase__kpi-value small {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-400);
}

.showcase__meter {
  height: 4px;
  border-radius: 4px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 8px;
}

.showcase__meter i {
  display: block;
  height: 100%;
  width: var(--v, 60%);
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  animation: meter-fill 1.4s var(--ease) both;
  animation-delay: 0.7s;
}

.showcase__meter--azure i {
  background: linear-gradient(90deg, var(--azure), var(--cyan));
}

@keyframes meter-fill {
  from { width: 0; }
}

.showcase__table {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-xs);
  overflow: hidden;
  background: #fff;
}

.showcase__row {
  display: grid;
  grid-template-columns: 1fr 96px 84px;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  font-size: 0.75rem;
  color: var(--color-text);
  border-top: 1px solid var(--line-soft);
}

.showcase__row:first-child {
  border-top: none;
  background: #f8fafc;
  font-size: 0.6875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate-400);
}

.showcase__doc {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.showcase__doc .ic {
  color: var(--slate-400);
  font-size: 0.95em;
}

.showcase__doc span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.showcase__code {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--slate-400);
}

.showcase__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  white-space: nowrap;
}

.showcase__status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.showcase__status--done { color: #15803d; background: #f0fdf4; }
.showcase__status--review { color: #a16207; background: #fefce8; }
.showcase__status--wait { color: var(--slate-500); background: var(--surface-2); }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section {
  padding: var(--section-y) 0;
}

.section--alt {
  position: relative;
  background: linear-gradient(180deg, var(--surface-1), #fff 92%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(44px, 5vw, 68px);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid rgba(245, 130, 32, 0.2);
  margin-bottom: 20px;
}

.section-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

.section-title {
  font-size: clamp(1.875rem, 3.6vw, 3rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin-bottom: 18px;
  text-wrap: balance;
}

.section-desc {
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  color: var(--slate-500);
  line-height: 1.75;
  text-wrap: pretty;
}

/* ============================================================
   PILLARS (value props)
   ============================================================ */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: pillar;
}

.pillar {
  position: relative;
  counter-increment: pillar;
  padding: 30px 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.pillar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft) 55%, transparent);
}

/* Oversized index watermark */
.pillar::after {
  content: "0" counter(pillar);
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
}

.pillar:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 130, 32, 0.3);
  box-shadow: var(--shadow-lg);
}

.pillar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid rgba(245, 130, 32, 0.18);
  margin-bottom: 18px;
}

.pillar h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.pillar p {
  font-size: 0.9688rem;
  color: var(--slate-500);
  line-height: 1.72;
}

/* ============================================================
   CAPABILITY CARDS
   ============================================================ */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
  gap: 22px;
}

/* Six items: two wide on top, four below — no orphan cell */
.capability-grid--bento {
  grid-template-columns: repeat(12, 1fr);
}

.capability-grid--bento > * {
  grid-column: span 3;
}

.capability-grid--bento > :nth-child(1),
.capability-grid--bento > :nth-child(2) {
  grid-column: span 6;
  padding: 32px 32px 36px;
  background: linear-gradient(160deg, #fff, var(--surface-1));
}

.capability-grid--bento > :nth-child(1) h3,
.capability-grid--bento > :nth-child(2) h3 {
  font-size: 1.3125rem;
}

.capability-grid--bento > :nth-child(1) p,
.capability-grid--bento > :nth-child(2) p {
  font-size: 1rem;
  max-width: 52ch;
}

.capability-grid--quad {
  grid-template-columns: repeat(4, 1fr);
}

.capability-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px 30px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
  overflow: hidden;
  isolation: isolate;
}

/* Corner wash that blooms on hover */
.capability-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 70%;
  height: 90%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 130, 32, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  z-index: -1;
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245, 130, 32, 0.28);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  font-size: 1.3125rem;
  margin-bottom: 18px;
  transition: transform var(--transition);
}

.capability-card:hover .capability-card__icon {
  transform: scale(1.06) rotate(-3deg);
}

.capability-card__icon--blue {
  background: #e9f2ff;
  color: var(--azure);
  border: 1px solid #cfe3ff;
}

.capability-card__icon--orange {
  background: var(--brand-tint);
  color: var(--brand-ink);
  border: 1px solid #ffdcc0;
}

.capability-card__icon--green {
  background: #ecfdf3;
  color: #15803d;
  border: 1px solid #c9f2d8;
}

.capability-card__icon--purple {
  background: #f4efff;
  color: var(--violet);
  border: 1px solid #e2d8ff;
}

.capability-card__icon--teal {
  background: #e7fbf8;
  color: var(--teal);
  border: 1px solid #c5f0e9;
}

.capability-card__icon--rose {
  background: #ffeef1;
  color: var(--rose);
  border: 1px solid #ffd4dc;
}

.capability-card h3 {
  font-size: 1.125rem;
  font-weight: 680;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.capability-card p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
}

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.product-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(16, 24, 40, 0.12);
}

.product-card__visual {
  height: 172px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  position: relative;
  overflow: hidden;
}

.product-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.65) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
}

/* Concentric rings behind the glyph */
.product-card__visual::after {
  content: "";
  position: absolute;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.18;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.3) inset;
  transition: transform 0.5s var(--ease);
}

.product-card:hover .product-card__visual::after {
  transform: scale(1.12);
}

.product-card__visual .ic {
  position: relative;
  transition: transform 0.45s var(--ease);
  filter: drop-shadow(0 10px 22px rgba(16, 24, 40, 0.16));
}

.product-card:hover .product-card__visual .ic {
  transform: translateY(-5px) scale(1.06);
}

.product-card__visual--etmf {
  background: linear-gradient(140deg, #eaf3ff, #d3e6ff);
  color: var(--azure);
}

.product-card__visual--ctms {
  background: linear-gradient(140deg, #fff5ec, #ffe2c8);
  color: var(--brand-strong);
}

.product-card__visual--startup {
  background: linear-gradient(140deg, #edfdf3, #d6f6e2);
  color: #15803d;
}

.product-card__body {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.product-card__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.product-card__body p {
  font-size: 0.9375rem;
  color: var(--slate-500);
  line-height: 1.7;
  flex: 1;
}

.product-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  display: inline-block;
  padding: 4px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 100px;
  background: var(--surface-1);
  border: 1px solid var(--line-soft);
  color: var(--slate-500);
}

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-ink);
}

.product-card__link .ic {
  transition: transform var(--transition);
}

.product-card:hover .product-card__link .ic {
  transform: translateX(4px);
}

/* ============================================================
   STATS
   ============================================================ */
.stats-section {
  position: relative;
  padding: 84px 0;
  background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-900) 100%);
  overflow: hidden;
}

/* Homepage variant: picks up the hero's closing tone so the two dark
   bands read as one continuous surface instead of two stacked sections. */
.stats-section--merge {
  background: linear-gradient(180deg, transparent 0%, var(--ink-950) 62%),
    linear-gradient(100deg, #0a1832 0%, #0a1730 45%, #071122 100%);
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 130%, rgba(245, 130, 32, 0.14) 0%, transparent 62%);
  pointer-events: none;
}

.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.stat-card {
  text-align: center;
  padding: 34px 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform var(--transition), border-color var(--transition),
    background var(--transition);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 130, 32, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.stat-card__value {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 20%, rgba(255, 195, 138, 0.9));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat-card__label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
}

/* ============================================================
   CTA
   ============================================================ */
.cta-section {
  position: relative;
  padding: var(--section-y) 0;
  overflow: hidden;
  background: var(--ink-950);
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: clamp(52px, 6vw, 80px) clamp(24px, 5vw, 72px);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #0b1425 0%, var(--ink-800) 55%, #0d1d38 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 15%, rgba(245, 130, 32, 0.22) 0%, transparent 52%),
    radial-gradient(circle at 82% 85%, rgba(34, 184, 212, 0.2) 0%, transparent 52%);
  animation: cta-breathe 11s ease-in-out infinite alternate;
  animation-play-state: paused;
  pointer-events: none;
}

.cta-section.is-inview .cta-content::before {
  animation-play-state: running;
}

.cta-content::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 15%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 15%, transparent 78%);
  pointer-events: none;
}

@keyframes cta-breathe {
  from { opacity: 0.65; transform: scale(1); }
  to { opacity: 1; transform: scale(1.05); }
}

.cta-content > * {
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  font-weight: 760;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
  text-wrap: balance;
}

.cta-content p {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.62);
  max-width: 560px;
  margin: 0 auto 34px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  position: relative;
  background: #050a14;
  color: rgba(255, 255, 255, 0.55);
  padding: 76px 0 30px;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 88vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 130, 32, 0.55), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 48px 40px;
  margin-bottom: 52px;
}

.footer-brand .header-logo {
  margin-bottom: 14px;
}

.footer-brand .header-logo-dark {
  color: #fff;
}

.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.75;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  width: fit-content;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 11px;
  transition: color var(--transition), transform var(--transition);
}

.footer-col a:hover {
  color: var(--brand-soft);
  transform: translateX(3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom a:hover {
  color: var(--brand-soft);
}

/* ============================================================
   INNER PAGE HERO
   ============================================================ */
.page-hero {
  position: relative;
  background: radial-gradient(110% 120% at 50% -20%, #16264a 0%, transparent 58%),
    linear-gradient(160deg, #060b18, var(--ink-900) 55%, #0c1c38);
  padding: calc(var(--header-height) + 72px) 0 88px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 12%, rgba(245, 130, 32, 0.18) 0%, transparent 48%),
    radial-gradient(circle at 84% 34%, rgba(34, 184, 212, 0.16) 0%, transparent 48%);
  pointer-events: none;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 72% 80% at 50% 34%, black 22%, transparent 76%);
  mask-image: radial-gradient(ellipse 72% 80% at 50% 34%, black 22%, transparent 76%);
  pointer-events: none;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  margin-bottom: 22px;
}

.page-hero-eyebrow .ic {
  color: var(--brand-soft);
  font-size: 0.9em;
}

.page-hero-title {
  font-size: clamp(2rem, 4.4vw, 3.375rem);
  font-weight: 780;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.14;
  margin-bottom: 18px;
  text-wrap: balance;
}

.page-hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 620px;
  margin: 0 auto;
  text-wrap: pretty;
}

/* ============================================================
   PRODUCT DETAIL
   ============================================================ */
.product-detail {
  padding: clamp(64px, 7vw, 104px) 0;
}

.product-detail--alt {
  background: linear-gradient(180deg, var(--surface-1), #fff 94%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.product-detail--reverse .product-detail-grid {
  direction: rtl;
}

.product-detail--reverse .product-detail-text {
  direction: ltr;
}

.product-detail-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-detail-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: 0.55;
}

/* Stack of translucent sheets, suggesting a set of controlled documents */
.product-detail-visual::after {
  content: "";
  position: absolute;
  width: 52%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px -14px rgba(16, 24, 40, 0.28),
    16px -16px 0 -5px rgba(255, 255, 255, 0.5),
    32px -32px 0 -10px rgba(255, 255, 255, 0.3);
  transition: transform 0.5s var(--ease);
}

.product-detail-visual:hover::after {
  transform: translate(-6px, 6px);
}

.product-detail-visual .ic {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 14px 30px rgba(16, 24, 40, 0.2));
}

.product-detail-visual--etmf {
  background: linear-gradient(140deg, #eaf3ff, #cfe4ff);
  color: var(--azure);
}

.product-detail-visual--ctms {
  background: linear-gradient(140deg, #fff5ec, #ffe0c4);
  color: var(--brand-strong);
}

.product-detail-visual--startup {
  background: linear-gradient(140deg, #edfdf3, #d3f5e0);
  color: #15803d;
}

.product-detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-ink);
  background: var(--brand-tint);
  border: 1px solid rgba(245, 130, 32, 0.2);
  margin-bottom: 16px;
}

.product-detail-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin-bottom: 14px;
}

.product-detail-text p {
  font-size: 1.0625rem;
  color: var(--slate-500);
  line-height: 1.78;
  margin-bottom: 26px;
}

.feature-list {
  display: grid;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition),
    transform var(--transition);
}

.feature-list li:hover {
  border-color: rgba(245, 130, 32, 0.3);
  box-shadow: var(--shadow-sm);
  transform: translateX(3px);
}

.feature-list__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 21px;
  height: 21px;
  margin-top: 3px;
  border-radius: 50%;
  background: #ecfdf3;
  border: 1px solid #c9f2d8;
  color: #15803d;
  font-size: 0.75rem;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-intro {
  padding: clamp(64px, 7vw, 104px) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
}

.about-text h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.125rem);
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1.24;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.0625rem;
  color: var(--slate-500);
  line-height: 1.82;
  margin-bottom: 18px;
}

.about-text strong {
  color: var(--ink);
  font-weight: 680;
}

.about-visual {
  position: relative;
  padding: 44px 32px;
  background: linear-gradient(160deg, #f8fafc, var(--surface-2));
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}

.arch-layer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  border-radius: var(--radius);
  font-weight: 650;
  font-size: 0.9375rem;
  padding: 15px 22px;
  transition: transform var(--transition);
}

.arch-layer:hover {
  transform: translateY(-3px);
}

.arch-layer--app {
  background: linear-gradient(135deg, #fff6ee, #ffe6d1);
  color: var(--brand-ink);
  border: 1.5px dashed var(--brand);
  width: 58%;
  z-index: 3;
  box-shadow: var(--shadow-sm);
}

.arch-layer--vault {
  background: #fff;
  color: var(--azure);
  border: 1.5px solid var(--azure);
  width: 78%;
  margin-top: -6px;
  z-index: 2;
  box-shadow: var(--shadow);
}

.arch-layer--domain {
  background: linear-gradient(135deg, #eaf3ff, #d3e6ff);
  color: var(--azure-deep);
  border: 1.5px solid var(--azure-deep);
  width: 96%;
  margin-top: -6px;
  z-index: 1;
  box-shadow: var(--shadow);
}

.arch-arrow {
  color: var(--slate-400);
  font-size: 1.125rem;
  margin: -2px 0;
}

/* ============================================================
   TRIAL FORM
   ============================================================ */
.trial-form-section {
  padding: clamp(56px, 6vw, 84px) 0 clamp(64px, 7vw, 100px);
}

.trial-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

/* Lift the form card over the dark page hero */
.trial-form-section--overlap {
  margin-top: clamp(-72px, -5vw, -48px);
  position: relative;
  z-index: 3;
}

.trial-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px);
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 8px;
}

.form-required {
  color: var(--rose);
  font-weight: 700;
}

.form-input {
  display: block;
  width: 100%;
  padding: 12px 15px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface-1);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), box-shadow var(--transition),
    background var(--transition);
  outline: none;
}

.form-input::placeholder {
  color: var(--slate-400);
}

.form-input:focus {
  background: #fff;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12);
}

.form-input:user-invalid {
  border-color: var(--rose);
}

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

.form-error {
  display: block;
  font-size: 0.8125rem;
  color: var(--rose);
  margin-top: 6px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--transition), transform var(--transition);
}

.form-error--visible {
  opacity: 1;
  transform: translateY(0);
}

.checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition),
    box-shadow var(--transition), transform var(--transition);
}

.checkbox-card:hover {
  border-color: var(--brand);
  background: var(--brand-tint);
  transform: translateY(-2px);
}

.checkbox-card:has(input:checked) {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: 0 0 0 4px rgba(245, 130, 32, 0.12);
}

.checkbox-card input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--brand);
  cursor: pointer;
}

.checkbox-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.checkbox-card__title {
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--ink);
}

.checkbox-card__desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.55;
}

.form-actions {
  margin-top: 4px;
}

.form-actions .btn {
  width: 100%;
}

.form-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--slate-400);
  text-align: center;
}

.btn--loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn--loading .btn-text {
  display: none;
}

.btn--loading .btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn .btn-loading {
  display: none;
}

.ic--spin {
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.trial-success {
  text-align: center;
  padding: clamp(44px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.trial-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  margin: 0 auto 22px;
  font-size: 2.25rem;
  color: #15803d;
  background: #ecfdf3;
  border: 1px solid #c9f2d8;
  border-radius: 50%;
}

.trial-success h2 {
  font-size: 1.625rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}

.trial-success p {
  font-size: 1.0625rem;
  color: var(--slate-500);
  line-height: 1.75;
  max-width: 480px;
  margin: 0 auto 30px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .capability-grid--quad {
    grid-template-columns: repeat(2, 1fr);
  }

  .capability-grid--bento > * {
    grid-column: span 6;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .showcase__body {
    grid-template-columns: 162px 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .header-nav,
  .header-actions {
    display: none;
  }

  .header-nav--open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    background: #fff;
    padding: calc(var(--header-height) + 24px) 28px 40px;
    gap: 6px;
    z-index: 999;
    margin: 0;
  }

  .header-nav--open a {
    font-size: 1.1875rem;
    font-weight: 600;
    color: var(--ink);
    padding: 14px 12px;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0;
  }

  .header-nav--open ~ .header-actions--open {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: 36px;
    left: 28px;
    right: 28px;
    z-index: 1000;
  }

  .header-actions--open .btn {
    flex: 1;
  }

  .header-actions--open .lang-switch {
    color: var(--slate-500);
    background: #fff;
    border-color: var(--line);
    padding: 10px 14px;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + 56px);
  }

  .hero-showcase {
    margin: 44px auto 0;
    perspective: none;
  }

  .showcase {
    transform: none;
  }

  .showcase__body {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .showcase__side {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    padding: 10px 12px;
  }

  .showcase__brand {
    padding: 0 6px 0 2px;
  }

  .showcase__nav {
    white-space: nowrap;
  }

  .showcase__nav:not(.showcase__nav--active) {
    display: none;
  }

  .showcase__kpis {
    grid-template-columns: 1fr;
  }

  .showcase__row {
    grid-template-columns: 1fr 78px;
  }

  /* Drop the ID column, header cell included */
  .showcase__code,
  .showcase__row:first-child > :nth-child(2) {
    display: none;
  }

  .capability-grid,
  .capability-grid--bento,
  .capability-grid--quad {
    grid-template-columns: 1fr;
  }

  .capability-grid--bento > *,
  .capability-grid--bento > :nth-child(1),
  .capability-grid--bento > :nth-child(2) {
    grid-column: auto;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-detail-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .product-detail--reverse .product-detail-grid {
    direction: ltr;
  }

  .product-detail-visual {
    aspect-ratio: 16 / 9;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .form-row,
  .checkbox-group {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-hero {
    padding: calc(var(--header-height) + 48px) 0 64px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 20px;
  }

  .hero-content,
  .hero-showcase {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.125rem;
    letter-spacing: -0.03em;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-trust__label {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.625rem;
  }

  .showcase__url {
    display: none;
  }
}
