/*!
 * Stack208 Design System
 * Foundational, site-wide stylesheet built from the Stack208 brand guideline
 * and Web UI Kit. Every page draws from this single file — components are
 * named for what they are, not where they're used, so they can be reused
 * anywhere without modification.
 *
 * Contents
 *   1.  Font face
 *   2.  Design tokens
 *   3.  Reset & base
 *   4.  Typography
 *   5.  Layout & structure
 *   6.  Buttons
 *   7.  Forms
 *   8.  Badges & tags
 *   9.  Alerts
 *   10. Navigation (navbar, tabs, breadcrumbs, pagination, sidebar)
 *   11. Cards & table
 *   12. Avatars
 *   13. Overlays (dropdown, tooltip, modal, toast)
 *   14. Feedback & loading (skeleton, spinner, empty state)
 *   15. Input extras (date picker, file upload, range slider, chips)
 *   16. Data display (timeline, charts)
 *   17. Marketing (hero, logo cloud, features, testimonial, pricing, cta)
 *   18. Footer
 *   19. Utilities
 *   20. Motion (scroll reveal, hover lift, nav-on-scroll, reduced motion)
 */

/* ==========================================================================
   1. Font face
   ========================================================================== */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope/Manrope-Regular.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope/Manrope-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/manrope/Manrope-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope/Manrope-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/manrope/Manrope-ExtraBold.ttf') format('truetype');
}

/* Display face — used for headlines only, paired with Manrope for body/UI.
   Geometric and faceted like the stacked-diamond mark, with more character
   than Manrope alone for a display role. */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk/SpaceGrotesk-Medium.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk/SpaceGrotesk-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk/SpaceGrotesk-Bold.ttf') format('truetype');
}

/* ==========================================================================
   2. Design tokens
   ========================================================================== */

:root {
  /* Brand colors — Navy (primary/ink), Muted Blue (secondary), Orange (accent) */
  --color-navy: #0F2438;
  --color-navy-700: #496076;
  --color-navy-400: #849AAB;
  --color-navy-200: #C1CDD6;

  --color-blue: #2F6B9A;
  --color-blue-600: #6C93B5;
  --color-blue-400: #97B3CA;
  --color-blue-200: #C8D8E4;

  --color-amber: #F59E0B;
  --color-amber-hover: #D97F06;
  --color-amber-600: #F7B64E;
  --color-amber-400: #F9CD88;
  --color-amber-200: #FCE4C0;

  /* Neutrals & surfaces */
  --color-white: #FFFFFF;
  --color-surface-muted: #F3F5F7;
  --color-border: #E4E8EB;
  --color-border-strong: #D5DBE1;
  --color-divider: #F0F2F4;
  --color-muted-200: #C5CCD2;

  /* Text */
  --color-text: #0F2438;
  --color-text-secondary: #4A5A68;
  --color-text-muted: #8A97A3;
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #A9BDD1;
  --color-text-on-dark-faint: #7F93A5;
  --color-text-disabled: #A5B0B9;

  /* Disabled */
  --color-disabled-bg: #E4E8EB;
  --color-disabled-text: #A5B0B9;

  /* Semantic feedback colors */
  --color-info-bg: #E8EEF3;
  --color-info-text: #2F6B9A;
  --color-success-bg: #DBEEE0;
  --color-success-text: #1E6B3A;
  --color-warning-bg: #FCE4C0;
  --color-warning-text: #8A5A06;
  --color-danger: #A5312A;
  --color-danger-bg: #F6DEDE;
  --color-danger-text: #A5312A;

  /* Typography */
  --font-family-base: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-family-display: 'Space Grotesk', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.8125rem;  /* 13px */
  --font-size-base: 0.875rem; /* 14px */
  --font-size-md: 0.9375rem;  /* 15px */
  --font-size-lg: 1rem;       /* 16px */
  --font-size-xl: 1.125rem;   /* 18px */
  --font-size-2xl: 1.25rem;   /* 20px */
  --font-size-3xl: 1.375rem;  /* 22px */
  --font-size-4xl: 1.5rem;    /* 24px */
  --font-size-5xl: 1.75rem;   /* 28px */
  --font-size-6xl: 2rem;      /* 32px */
  --font-size-7xl: 2.25rem;   /* 36px */
  --font-size-8xl: 2.5rem;    /* 40px */
  --font-size-9xl: 2.75rem;   /* 44px */
  --font-size-10xl: 3rem;     /* 48px */
  --font-size-11xl: 3.25rem;  /* 52px */

  --tracking-normal: 0;
  --tracking-wide: 0.5px;
  --tracking-wider: 1px;
  --tracking-widest: 3px;

  /* Spacing (4px base grid) */
  --space-1: 0.25rem;  /* 4px */
  --space-2: 0.5rem;   /* 8px */
  --space-3: 0.625rem; /* 10px */
  --space-4: 0.75rem;  /* 12px */
  --space-5: 0.875rem; /* 14px */
  --space-6: 1rem;     /* 16px */
  --space-7: 1.25rem;  /* 20px */
  --space-8: 1.5rem;   /* 24px */
  --space-9: 1.75rem;  /* 28px */
  --space-10: 2rem;    /* 32px */
  --space-11: 2.5rem;  /* 40px */
  --space-12: 3rem;    /* 48px */
  --space-13: 3.5rem;  /* 56px */
  --space-14: 4rem;    /* 64px */
  --space-15: 5rem;    /* 80px */
  --space-16: 6.25rem; /* 100px */

  /* Radius */
  --radius-xs: 3px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 10px;
  --radius-2xl: 12px;
  --radius-3xl: 16px;
  --radius-full: 999px;
  --radius-circle: 50%;

  /* Shadows */
  --shadow-sm: 0 6px 16px rgba(15, 36, 56, 0.10);
  --shadow-md: 0 10px 24px rgba(15, 36, 56, 0.1);
  --shadow-lg: 0 24px 48px rgba(15, 36, 56, 0.18);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.4);

  /* Motion */
  --transition-fast: 120ms ease;
  --transition-base: 180ms ease;
  --transition-reveal: 700ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Layered gradients — depth for dark surfaces, used instead of flat navy */
  --gradient-navy-glow:
    radial-gradient(120% 140% at 12% -10%, rgba(245, 158, 11, 0.16), transparent 55%),
    radial-gradient(90% 120% at 100% 110%, rgba(47, 107, 154, 0.35), transparent 60%),
    linear-gradient(180deg, #102a41 0%, var(--color-navy) 55%, #0a1b2c 100%);
  --gradient-mesh-soft:
    radial-gradient(60% 60% at 20% 20%, rgba(245, 158, 11, 0.14), transparent 65%),
    radial-gradient(55% 55% at 85% 80%, rgba(47, 107, 154, 0.16), transparent 65%);

  /* Layout */
  --container-max-width: 1200px;
  --container-padding: var(--space-7);
  --section-padding-y: var(--space-15);
  --section-padding-x: var(--space-16);

  /* Z-index scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal-backdrop: 900;
  --z-modal: 1000;
  --z-toast: 1100;
  --z-tooltip: 1200;
}

/* ==========================================================================
   3. Reset & base
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  color: inherit;
}

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

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

input::placeholder,
textarea::placeholder {
  color: var(--color-text-muted);
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

::selection {
  background: var(--color-amber-200);
  color: var(--color-navy);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-amber);
  outline-offset: 2px;
}

/* ==========================================================================
   4. Typography
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-10xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h2 {
  font-size: var(--font-size-7xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h3 {
  font-size: var(--font-size-5xl);
  font-weight: 600;
  line-height: 1.2;
}

h4 {
  font-size: var(--font-size-3xl);
  font-weight: 600;
  line-height: 1.3;
}

h5 {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: 1.3;
}

h6,
.label {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

p {
  margin: 0 0 var(--space-6);
  line-height: 1.6;
}

p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-amber);
}

.text-lead {
  font-size: var(--font-size-xl);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-body {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text);
}

.text-small {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.text-caption {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  color: var(--color-text-muted);
}

.text-muted {
  color: var(--color-text-muted);
}

.list-check {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.list-check li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  font-size: var(--font-size-md);
  line-height: 1.5;
}

.list-check li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: var(--radius-circle);
  background-color: var(--color-amber);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 9 17 20 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 60%;
}

blockquote {
  margin: 0;
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  color: var(--color-text);
}

/* ==========================================================================
   5. Layout & structure
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.section {
  padding-block: var(--section-padding-y);
  padding-inline: var(--section-padding-x);
}

.section--tight {
  padding-block: var(--space-12);
}

.surface-light {
  background: var(--color-white);
  color: var(--color-text);
}

.surface-muted {
  background: var(--color-surface-muted);
  color: var(--color-text);
}

.surface-dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
}

.surface-dark h1,
.surface-dark h2,
.surface-dark h3,
.surface-dark h4,
.surface-dark h5 {
  color: var(--color-text-on-dark);
}

.surface-dark .text-body {
  color: var(--color-text-on-dark);
}

.surface-dark .text-small,
.surface-dark .text-lead {
  color: var(--color-text-on-dark-muted);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

/* minmax(0, 1fr), not bare 1fr — otherwise a track won't shrink past the
   min-content width of its contents (e.g. a long unbroken word), and the
   grid blows out wider than its container on narrow viewports. */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Bento grid — asymmetric tile sizing on a 6-column track, for sections
   that shouldn't read as a uniform, evenly-sized template grid. */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-8);
}

.bento-item--sm { grid-column: span 2; }
.bento-item--md { grid-column: span 3; }
.bento-item--lg { grid-column: span 4; }

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.cluster {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.text-center {
  text-align: center;
}

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

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

  .bento-item--sm,
  .bento-item--md,
  .bento-item--lg {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding-x: var(--space-7);
    --section-padding-y: var(--space-12);
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   6. Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 24px;
  font-family: inherit;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  line-height: 1;
  cursor: pointer;
  transition: filter var(--transition-fast), background-color var(--transition-fast), opacity var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-amber);
  color: var(--color-white);
}

.btn-primary:hover {
  filter: brightness(0.94);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.28);
}

.btn-secondary {
  background: var(--color-navy);
  color: var(--color-white);
}

.btn-secondary:hover {
  filter: brightness(1.2);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 12px 22px;
}

.btn-outline:hover {
  background: rgba(15, 36, 56, 0.05);
}

.btn-outline-inverse {
  background: transparent;
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 13px 23px;
}

.btn-outline-inverse:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-danger {
  background: var(--color-danger);
  color: var(--color-white);
}

.btn-danger:hover {
  filter: brightness(0.92);
}

.btn:disabled,
.btn[aria-disabled='true'] {
  background: var(--color-disabled-bg);
  color: var(--color-disabled-text);
  border-color: transparent;
  cursor: not-allowed;
  filter: none;
}

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

.btn-lg {
  padding: 18px 32px;
  font-size: var(--font-size-xl);
  border-radius: var(--radius-lg);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ==========================================================================
   7. Forms
   ========================================================================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
}

.input,
.select,
.textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  font-family: inherit;
  font-size: var(--font-size-md);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textarea {
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border: 2px solid var(--color-amber);
  padding: 11px 13px;
}

.input.is-invalid,
.select.is-invalid,
.textarea.is-invalid {
  border: 2px solid var(--color-danger);
  padding: 11px 13px;
}

.form-error {
  font-size: var(--font-size-xs);
  color: var(--color-danger);
}

.form-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.checkbox-field,
.radio-field {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  cursor: pointer;
}

.checkbox-field input,
.radio-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-amber);
}

.toggle {
  --toggle-size: 24px;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: calc(var(--toggle-size) * 1.83);
  height: var(--toggle-size);
  border-radius: var(--radius-full);
  background: var(--color-disabled-bg);
  border: none;
  padding: 2px;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.toggle::after {
  content: '';
  width: calc(var(--toggle-size) - 4px);
  height: calc(var(--toggle-size) - 4px);
  border-radius: var(--radius-circle);
  background: var(--color-white);
  transition: transform var(--transition-base);
}

.toggle.is-on {
  background: var(--color-amber);
}

.toggle.is-on::after {
  transform: translateX(calc(var(--toggle-size) * 0.83));
}

/* ==========================================================================
   8. Badges & tags
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  background: var(--color-navy);
  color: var(--color-white);
  white-space: nowrap;
}

.badge-sm {
  padding: 4px 10px;
  font-size: var(--font-size-xs);
}

.badge-pending {
  background: var(--color-amber-200);
  color: var(--color-warning-text);
}

.badge-active,
.badge-success {
  background: var(--color-success-bg);
  color: var(--color-success-text);
}

.badge-failed,
.badge-danger {
  background: var(--color-danger-bg);
  color: var(--color-danger-text);
}

.badge-info,
.badge-beta {
  background: var(--color-info-bg);
  color: var(--color-info-text);
}

/* ==========================================================================
   9. Alerts
   ========================================================================== */

.alert {
  padding: var(--space-6) var(--space-7);
  border-radius: var(--radius-sm);
  border-left: 4px solid transparent;
  font-size: var(--font-size-base);
  line-height: 1.5;
}

.alert-info {
  background: var(--color-info-bg);
  border-left-color: var(--color-blue);
}

.alert-success {
  background: var(--color-success-bg);
  border-left-color: var(--color-success-text);
}

.alert-warning {
  background: var(--color-amber-200);
  border-left-color: var(--color-amber);
}

.alert-danger {
  background: var(--color-danger-bg);
  border-left-color: var(--color-danger);
}

/* ==========================================================================
   10. Navigation
   ========================================================================== */

.navbar {
  background: var(--color-navy);
  width: 100%;
  padding: 18px var(--section-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  transition: padding var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base);
}

.navbar.is-scrolled {
  padding-block: 12px;
  background: rgba(15, 36, 56, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: var(--font-size-xl);
  color: var(--color-white);
}

.navbar-brand img {
  height: 22px;
  width: auto;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  margin-left: var(--space-10);
  list-style: none;
  padding: 0;
}

.navbar-link {
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-base);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-base);
}

.navbar-link:hover {
  color: var(--color-white);
}

.navbar-link.is-active {
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  border-bottom-color: var(--color-amber);
}

.navbar-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
}

.navbar-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-white);
  border-radius: 1px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar-toggle[aria-expanded="true"] .navbar-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
  }

  .navbar-toggle {
    display: flex;
  }

  .navbar-nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    margin-top: var(--space-5);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-5);
  }

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

.tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 2px solid var(--color-border);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tab {
  padding: 10px 18px;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}

.tab.is-active {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
  border-bottom-color: var(--color-amber);
}

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--color-navy);
  padding: var(--space-7) 0;
}

.sidebar-link {
  display: block;
  padding: 10px 24px;
  font-size: var(--font-size-base);
  color: var(--color-text-on-dark-muted);
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  color: var(--color-white);
}

.sidebar-link.is-active {
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  background: rgba(134, 79, 254, 0.15);
  border-left-color: var(--color-amber);
}

.app-shell {
  display: flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.app-shell-content {
  flex: 1;
  background: var(--color-surface-muted);
  padding: var(--space-8);
}

@media (max-width: 768px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

.breadcrumb-item.is-current {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.pagination-item {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  color: var(--color-text);
  background: var(--color-white);
  cursor: pointer;
}

.pagination-item:hover {
  border-color: var(--color-navy);
}

.pagination-item.is-active {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

.pagination-item.is-disabled {
  color: var(--color-text-muted);
  cursor: default;
}

.pagination-ellipsis {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  background: var(--color-white);
}

.search-bar input {
  border: none;
  outline: none;
  flex: 1;
  font-size: var(--font-size-base);
  background: transparent;
}

/* ==========================================================================
   11. Cards & table
   ========================================================================== */

.card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--color-info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
}

.card-icon svg {
  width: 20px;
  height: 20px;
  color: var(--color-blue);
}

.card-media {
  height: 120px;
  margin: calc(var(--space-8) * -1) calc(var(--space-8) * -1) var(--space-8);
  background: linear-gradient(120deg, var(--color-navy), var(--color-blue));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card--flush .card-body {
  padding: var(--space-7);
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-2);
}

.card-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.card--featured {
  border: 2px solid var(--color-amber);
  position: relative;
}

.card-ribbon {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--color-amber);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.table thead th {
  background: var(--color-navy);
  color: var(--color-text-on-dark-muted);
  text-align: left;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  padding: 14px 20px;
}

.table tbody td {
  padding: 16px 20px;
  font-size: var(--font-size-base);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody td:first-child {
  color: var(--color-text);
}

.table-wrapper {
  overflow-x: auto;
}

/* ==========================================================================
   12. Avatars
   ========================================================================== */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-circle);
  background: var(--color-amber);
  color: var(--color-white);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-sm {
  width: 36px;
  height: 36px;
  font-size: var(--font-size-sm);
}

.avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.avatar-lg {
  width: 56px;
  height: 56px;
  font-size: var(--font-size-xl);
}

.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--color-white);
  margin-right: -12px;
}

.avatar-group .avatar:last-child {
  margin-right: 0;
}

.avatar-more {
  background: var(--color-border);
  color: var(--color-text-secondary);
}

/* ==========================================================================
   13. Overlays
   ========================================================================== */

.dropdown-menu {
  width: 220px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: var(--z-dropdown);
}

.dropdown-item {
  padding: 12px 16px;
  font-size: var(--font-size-base);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: var(--color-surface-muted);
}

.dropdown-item.is-highlighted {
  background: var(--color-amber-200);
}

.dropdown-item.is-danger {
  color: var(--color-danger);
}

.tooltip {
  position: relative;
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--font-size-xs);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
}

.tooltip::after {
  content: '';
  position: absolute;
  left: -5px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-navy);
  transform: rotate(45deg);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 36, 56, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  z-index: var(--z-modal-backdrop);
}

.modal {
  width: 100%;
  max-width: 480px;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  z-index: var(--z-modal);
}

.modal-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
}

.modal-close {
  color: var(--color-text-muted);
  font-size: var(--font-size-xl);
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}

.modal-body {
  padding: 16px 24px 24px;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.modal-footer {
  padding: 16px 24px;
  background: var(--color-surface-muted);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-4);
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  max-width: 380px;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  z-index: var(--z-toast);
}

.toast-close {
  color: var(--color-text-on-dark-muted);
  font-size: var(--font-size-xl);
  cursor: pointer;
  background: none;
  border: none;
}

.toast-danger {
  background: var(--color-white);
  color: var(--color-text);
  border-left: 4px solid var(--color-danger);
  box-shadow: var(--shadow-sm);
}

.toast-danger .toast-close {
  color: var(--color-text-muted);
}

.toast-success {
  background: var(--color-white);
  color: var(--color-text);
  border-left: 4px solid var(--color-success-text);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   14. Feedback & loading
   ========================================================================== */

.empty-state {
  background: var(--color-white);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-13);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
}

.empty-state-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-circle);
  background: var(--color-info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
}

.empty-state-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  max-width: 320px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-border), var(--color-divider), var(--color-border));
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-line {
  height: 16px;
  width: 100%;
}

.skeleton-media {
  height: 80px;
  border-radius: var(--radius-lg);
}

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

.spinner {
  animation: spin 0.9s linear infinite;
  transform-origin: center;
}

@keyframes pulse {
  0%, 80%, 100% { opacity: 0.3; }
  40% { opacity: 1; }
}

.spinner-dots {
  display: flex;
  gap: 6px;
  align-items: center;
  height: 44px;
}

.spinner-dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-amber);
  animation: pulse 1.2s ease-in-out infinite;
}

.spinner-dots span:nth-child(2) {
  background: var(--color-blue);
  animation-delay: 0.15s;
}

.spinner-dots span:nth-child(3) {
  background: var(--color-navy);
  animation-delay: 0.3s;
}

/* ==========================================================================
   15. Input extras
   ========================================================================== */

.datepicker {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 280px;
}

.datepicker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.datepicker-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

.datepicker-weekdays,
.datepicker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.datepicker-weekdays {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-bottom: 6px;
}

.datepicker-day {
  padding: 6px 0;
  font-size: var(--font-size-sm);
  border-radius: var(--radius-circle);
  cursor: pointer;
}

.datepicker-day:hover {
  background: var(--color-surface-muted);
}

.datepicker-day.is-muted {
  color: var(--color-muted-200);
}

.datepicker-day.is-selected {
  background: var(--color-amber);
  color: var(--color-white);
}

.upload-dropzone {
  border: 2px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: var(--space-11);
  text-align: center;
  background: var(--color-surface-muted);
  cursor: pointer;
}

.upload-dropzone-icon {
  margin: 0 auto var(--space-4);
  color: var(--color-text-muted);
}

.upload-dropzone-title {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.upload-dropzone-title a,
.upload-dropzone-title .upload-browse {
  color: var(--color-amber);
}

.upload-dropzone-hint {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.upload-file {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}

.upload-file-name {
  font-size: var(--font-size-sm);
  flex: 1;
}

.upload-progress {
  width: 70px;
  height: 6px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  background: var(--color-amber);
}

.upload-file-percent {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.range-slider {
  position: relative;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.range-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--color-amber);
}

.range-slider-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  border: 3px solid var(--color-amber);
  transform: translate(-50%, -50%);
}

input[type='range'] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  accent-color: var(--color-amber);
}

input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  border: 3px solid var(--color-amber);
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-circle);
  background: var(--color-white);
  border: 3px solid var(--color-amber);
  cursor: pointer;
}

.chip-field {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  padding: 10px;
  background: var(--color-white);
}

.chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-info-bg);
  color: var(--color-info-text);
  font-size: var(--font-size-sm);
  padding: 5px 10px;
  border-radius: var(--radius-md);
}

.chip.is-warning {
  background: var(--color-amber-200);
  color: var(--color-warning-text);
}

.chip-remove {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-size: inherit;
  line-height: 1;
  padding: 0;
}

.chip-field-input {
  border: none;
  outline: none;
  flex: 1;
  min-width: 80px;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* ==========================================================================
   16. Data display
   ========================================================================== */

.timeline {
  max-width: 520px;
}

.timeline-item {
  display: flex;
  gap: var(--space-4);
}

.timeline-track {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-marker {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-amber);
  margin-top: 4px;
  flex-shrink: 0;
}

.timeline-marker.is-muted {
  background: var(--color-border);
}

.timeline-line {
  width: 2px;
  flex: 1;
  background: var(--color-border);
}

.timeline-content {
  padding-bottom: var(--space-6);
  font-size: var(--font-size-base);
}

.timeline-time {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}

.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-4);
  height: 160px;
  border-bottom: 1px solid var(--color-border);
}

.chart-bar {
  width: 32px;
  background: var(--color-info-bg);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.chart-bar.is-accent {
  background: var(--color-amber);
}

.chart-bar.is-secondary {
  background: var(--color-blue);
}

.chart-axis {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

.chart-axis span {
  width: 32px;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  text-align: center;
}

.chart-legend {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.chart-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-xs);
  background: var(--color-amber);
}

.stepper {
  display: flex;
  align-items: center;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.stepper-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--color-border-strong);
  background: var(--color-white);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.stepper-step.is-complete .stepper-circle,
.stepper-step.is-active .stepper-circle {
  background: var(--color-amber);
  border-color: var(--color-amber);
  color: var(--color-white);
}

.stepper-label {
  font-size: var(--font-size-xs);
  margin-top: var(--space-2);
  color: var(--color-text-muted);
}

.stepper-step.is-active .stepper-label {
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

.stepper-connector {
  flex: 1;
  height: 2px;
  background: var(--color-border-strong);
}

.stepper-connector.is-complete {
  background: var(--color-amber);
}

.accordion {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 600px;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  text-align: left;
}

.accordion-item:not(.is-open) .accordion-trigger {
  color: var(--color-text-secondary);
}

.accordion-icon {
  color: var(--color-text-muted);
}

.accordion-panel {
  padding: 0 20px 16px;
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   17. Marketing
   ========================================================================== */

.hero {
  background: var(--gradient-navy-glow);
  color: var(--color-text-on-dark);
  padding: var(--space-16) var(--section-padding-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative watermark — the actual logo mark, bleeding from the corner
   (see brand guideline cover treatment). */
.hero::before {
  content: '';
  position: absolute;
  top: -14%;
  right: -6%;
  width: 40%;
  aspect-ratio: 1060 / 1107;
  background-image: url('../images/identity/logo_white.svg');
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
  opacity: 0.06;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: var(--space-14);
  max-width: var(--container-max-width);
  margin-inline: auto;
  text-align: left;
  position: relative;
  z-index: 1;
}

.hero-content .hero-pill {
  margin-bottom: var(--space-8);
}

.hero-content .hero-title,
.hero-content .hero-subtitle {
  margin-inline: 0;
}

.hero-content .hero-actions {
  justify-content: flex-start;
}

.hero-media {
  position: relative;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: -12%;
  background: var(--gradient-mesh-soft);
  filter: blur(30px);
  z-index: 0;
}

.hero-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .hero-title,
  .hero-content .hero-subtitle {
    margin-inline: auto;
  }

  .hero-content .hero-actions {
    justify-content: center;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--color-amber);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-8);
}

.hero-title {
  position: relative;
  z-index: 2;
  font-size: clamp(var(--font-size-9xl), 6vw + 1rem, 4.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 640px;
  margin: 0 auto var(--space-7);
  color: var(--color-white);
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  font-size: var(--font-size-xl);
  color: var(--color-text-on-dark-muted);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: 1.6;
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

/* Background video fills the hero behind the gradient overlay and text.
   .hero keeps a background-image (poster frame) as the fallback for
   browsers that skip the video (reduced motion, autoplay blocked, slow
   connection before it loads). */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.logo-cloud {
  text-align: center;
}

.logo-cloud-label {
  font-size: var(--font-size-sm);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.logo-cloud-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-13);
  flex-wrap: wrap;
  opacity: 0.5;
}

.logo-cloud-item {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-12);
}

.split-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

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

/* Abstract product mockup — a light "app" card built from CSS alone,
   standing in for a screenshot until real product imagery exists.
   The glow behind it and the gentle float (see Motion) are there so it
   reads as a deliberate visual, not an empty placeholder. */
.mockup-panel {
  position: relative;
  z-index: 1;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.mockup-panel-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-border-strong);
}

.mockup-dot:first-child {
  background: var(--color-amber);
}

.mockup-row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.mockup-row-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-row-icon::before {
  content: '';
  width: 12px;
  height: 12px;
  background: var(--color-blue);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.mockup-row-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mockup-line {
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
}

.mockup-line.is-short {
  width: 40%;
}

.mockup-bars {
  display: flex;
  align-items: flex-end;
  gap: var(--space-3);
  height: 90px;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.mockup-bar {
  flex: 1;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-info-bg);
}

.mockup-bar.is-accent {
  background: var(--color-amber);
}

.mockup-bar.is-secondary {
  background: var(--color-blue);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-10);
}

.feature {
  text-align: center;
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-2xl);
  background: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-7);
  position: relative;
  transition: transform var(--transition-base);
}

.feature:hover .feature-icon {
  transform: scale(1.08);
}

/* Pages that haven't been updated to render a real icon inside
   .feature-icon yet fall back to this diamond mark. */
.feature-icon:empty::before {
  content: '';
  width: 18px;
  height: 18px;
  background: var(--color-amber);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  color: var(--color-amber);
}

.feature-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.feature-text {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* Workflow diagram — a left-to-right, Visio-style process flow: numbered
   nodes connected by directional arrows. Wraps to a vertical flow on
   narrow viewports, with arrows rotating to point downward. */
.workflow {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: var(--space-6);
}

.workflow-step {
  flex: 1 1 150px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}

.workflow-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-circle);
  background: var(--color-navy);
  color: var(--color-amber);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-md);
  margin-bottom: var(--space-5);
}

.workflow-title {
  font-family: var(--font-family-display);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-2);
}

.workflow-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.workflow-arrow {
  flex: 0 0 auto;
  align-self: center;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--color-border-strong);
}

@media (max-width: 900px) {
  .workflow {
    flex-direction: column;
  }

  .workflow-arrow {
    align-self: center;
    transform: rotate(90deg);
  }
}

.testimonial {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.testimonial-quote {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1.5;
  margin-bottom: var(--space-8);
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
}

.testimonial-author-meta {
  text-align: left;
}

.testimonial-author-name {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
}

.testimonial-author-role {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card--featured {
  background: var(--gradient-navy-glow);
  color: var(--color-white);
  border: none;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pricing-card--featured:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.pricing-plan {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.pricing-card--featured .pricing-plan {
  color: var(--color-text-on-dark-muted);
}

.pricing-price {
  font-size: var(--font-size-7xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-1);
}

.pricing-price-period {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
}

.pricing-card--featured .pricing-price-period {
  color: var(--color-text-on-dark-muted);
}

.pricing-note {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}

.pricing-card--featured .pricing-note {
  color: var(--color-text-on-dark-muted);
}

.pricing-card .btn {
  width: 100%;
  margin-bottom: var(--space-9);
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  font-size: var(--font-size-base);
}

.cta-section {
  background: var(--gradient-navy-glow);
  padding: var(--space-15) var(--section-padding-x);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -22%;
  left: -6%;
  width: 26%;
  aspect-ratio: 1060 / 1107;
  background-image: url('../images/identity/logo_white.svg');
  background-repeat: no-repeat;
  background-size: contain;
  transform: rotate(8deg);
  opacity: 0.06;
  pointer-events: none;
}

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

.cta-title {
  font-size: var(--font-size-6xl);
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}

.cta-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-on-dark-muted);
  margin-bottom: var(--space-10);
}

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

/* ==========================================================================
   18. Footer
   ========================================================================== */

.site-footer {
  background: var(--color-navy);
  padding: var(--space-13) var(--section-padding-x) var(--space-11);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-on-dark);
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-11);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  font-family: var(--font-family-display);
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-white);
}

.footer-brand img {
  height: 20px;
  width: auto;
}

.footer-tagline {
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-faint);
  max-width: 220px;
  line-height: 1.5;
}

.footer-heading {
  font-size: var(--font-size-xs);
  letter-spacing: var(--tracking-wider);
  color: var(--color-text-on-dark-faint);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text-on-dark-muted);
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: inherit;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-subscribe {
  display: flex;
  gap: var(--space-2);
}

.footer-subscribe input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-white);
  font-size: var(--font-size-sm);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-8);
  font-size: var(--font-size-sm);
  color: var(--color-text-on-dark-faint);
}

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

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

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }
}

/* ==========================================================================
   19. Utilities
   ========================================================================== */

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

/* ==========================================================================
   20. Motion
   ========================================================================== */

/* Scroll reveal — toggled by assets/js/motion.js via IntersectionObserver.
   Opacity/transform only, so revealing an element never shifts layout. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

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

/* Stagger children of a revealed group (e.g. a feature grid) so items
   settle in sequence instead of all at once. The group itself is what
   gets observed; children fade in together, offset by --reveal-index. */
.reveal-group > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
  transition-delay: calc(var(--reveal-index, 0) * 90ms);
}

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

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hero-media {
  animation: hero-float 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-media {
    animation: none;
  }

  .hero-video-bg {
    display: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}
