:root {
  /* Colors - Rich space/midnight theme */
  --bg: #030712;
  --bg-soft: #0b0f19;
  --surface: #0e1322;
  --surface-alt: #161e38;
  --surface-2: #080c16;
  --glass: rgba(14, 20, 38, 0.65);
  --glass-strong: rgba(22, 30, 56, 0.85);
  --border: rgba(99, 102, 241, 0.12);
  --border-strong: rgba(99, 102, 241, 0.25);
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --text-faint: #6b7280;
  
  /* Primary & Accent branding */
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --primary-soft: rgba(79, 70, 229, 0.15);
  --accent: #818cf8;
  --accent-glow: rgba(129, 140, 248, 0.3);
  
  /* Semantic Colors */
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --danger: #ef4444;
  --danger-soft: rgba(239, 68, 68, 0.12);
  
  /* Border Radii */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  
  /* Shadows & Glows */
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glow: 0 0 15px rgba(79, 70, 229, 0.35);
  --ring: 0 0 0 3px rgba(99, 102, 241, 0.35);
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #4f46e5 0%, #818cf8 100%);
  --grad-text: linear-gradient(180deg, #ffffff 30%, #c7d2fe 100%);
  --grad-surface: linear-gradient(180deg, rgba(20, 26, 46, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Layered ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(79, 70, 229, 0.18), transparent 70%),
    radial-gradient(800px 400px at -10% 20%, rgba(129, 140, 248, 0.1), transparent 60%),
    radial-gradient(1200px 600px at 50% 110%, rgba(79, 70, 229, 0.08), transparent 50%);
  pointer-events: none;
}

/* Dotted grid overlay for tech look */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    radial-gradient(rgba(129, 140, 248, 0.1) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(800px 600px at 50% -10%, #000 40%, transparent 90%);
  -webkit-mask-image: radial-gradient(800px 600px at 50% -10%, #000 40%, transparent 90%);
  pointer-events: none;
  opacity: 0.85;
}

h1, h2, h3, h4 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-top: 0;
  color: #fff;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #fff;
  text-shadow: 0 0 10px rgba(129, 140, 248, 0.4);
}

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

::selection {
  background: rgba(79, 70, 229, 0.4);
  color: #fff;
}

/* Custom Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, 0.25) transparent;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: transparent;
}

*::-webkit-scrollbar-thumb {
  background: rgba(99, 102, 241, 0.25);
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: rgba(99, 102, 241, 0.5);
  background-clip: content-box;
}

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

/* Entrance Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

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

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(3, 7, 18, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s ease;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand-logo-only {
  gap: 0;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
  position: relative;
  overflow: hidden;
}

.brand-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 60%);
  mix-blend-mode: overlay;
}

.brand-logo {
  width: 160px;
  height: 100px;
  border-radius: 12px;
  object-fit: contain;
  display: block;
  border: none;
  box-shadow: none;
  background: transparent;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
  opacity: 0.92;
}

.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0;
  margin-top: 1px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.site-nav-links,
.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
}

.site-nav-actions {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
  flex-shrink: 0;
}

.nav-user {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0 10px;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  position: relative;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-nav a.nav-cta {
  color: #fff;
  background: var(--grad-primary);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.site-nav a.nav-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  transform: translateY(-1px);
}

.site-nav a.nav-cta::after {
  display: none;
}

.site-nav a:not(.btn):not(.nav-cta):hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.08);
}

.site-nav a:not(.btn):not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:not(.btn):not(.nav-cta).active {
  color: #fff;
}

.site-nav a:not(.btn):not(.nav-cta).active::after {
  transform: scaleX(1);
}

/* Legacy: nav no longer uses .btn in public header */
.site-nav .btn {
  margin-left: 0;
}

@media (min-width: 961px) {
  .site-nav-links {
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
}

/* Mobile toggle hidden by default */
.nav-toggle {
  display: none;
}
.nav-toggle-label {
  display: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: translateX(-100%);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6), 0 0 10px rgba(129, 140, 248, 0.3);
}

.btn-primary:hover::before {
  animation: shimmer 1.2s infinite;
}

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--surface-alt);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(129, 140, 248, 0.15);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fff;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
}

.btn[disabled],
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Hero Section ---------- */
.hero {
  padding: 96px 0 72px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-grid > div:first-child {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-card {
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.kpi-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.kpi-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-card {
  background: var(--grad-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg), 0 0 20px rgba(99, 102, 241, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.hero-card::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -30%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.25), transparent 70%);
  pointer-events: none;
  animation: floaty 8s ease-in-out infinite;
}

.hero-card h3 {
  position: relative;
  margin-bottom: 24px;
}

/* ---------- Grid Layouts & Cards ---------- */
.metric-grid,
.feature-grid {
  display: grid;
  gap: 20px;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 32px 0;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid > div {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.25s ease;
}

.metric-grid > div:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.feature-grid .card,
.download-box.card {
  overflow: hidden;
}

.feature-grid .card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(129, 140, 248, 0.4), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.feature-grid .card:hover,
.download-box.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow), 0 0 15px rgba(99, 102, 241, 0.08);
}

.feature-grid .card:hover::after {
  opacity: 1;
}

.card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------- Sections ---------- */
.section {
  padding: 64px 0 80px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin-bottom: 12px;
  font-weight: 800;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-sub {
  color: var(--text-muted);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent);
  font-size: 1.4rem;
  margin-bottom: 20px;
  box-shadow: inset 0 0 15px rgba(99, 102, 241, 0.15);
  transition: all 0.25s ease;
}

.card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
}

/* ---------- Features page ---------- */
.features-page {
  overflow: hidden;
}

.features-hero {
  padding: 56px 0 24px;
  position: relative;
}

.features-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: min(900px, 100vw);
  height: 420px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.22), transparent 68%);
  pointer-events: none;
}

.features-hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  position: relative;
}

.features-title {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.features-lead {
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.7;
  margin: 0 0 28px;
  max-width: 54ch;
}

.features-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.features-hero-panel {
  background: var(--grad-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.features-hero-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 70%);
  pointer-events: none;
}

.features-hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  position: relative;
}

.features-hero-panel-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.features-hero-panel-badge {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.features-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.features-stack li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 500;
}

.features-stack-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 10px rgba(129, 140, 248, 0.5);
  flex-shrink: 0;
}

.features-metrics {
  padding: 8px 0 12px;
}

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

.features-metric {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.features-metric:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.features-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.features-metric-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.features-section {
  padding: 48px 0 72px;
}

.features-section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.features-section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 10px;
}

.features-section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.feature-card {
  --feature-accent: #818cf8;
  --feature-accent-soft: rgba(129, 140, 248, 0.14);
  --feature-accent-border: rgba(129, 140, 248, 0.28);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--feature-accent), transparent 80%);
  opacity: 0.85;
}

.feature-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, var(--feature-accent-soft), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--feature-accent-border);
  box-shadow: var(--shadow), 0 0 24px var(--feature-accent-soft);
}

.feature-card:hover::after {
  transform: scale(1.15);
}

.feature-card--violet { --feature-accent: #818cf8; --feature-accent-soft: rgba(129, 140, 248, 0.16); --feature-accent-border: rgba(129, 140, 248, 0.35); }
.feature-card--cyan { --feature-accent: #22d3ee; --feature-accent-soft: rgba(34, 211, 238, 0.14); --feature-accent-border: rgba(34, 211, 238, 0.32); }
.feature-card--pink { --feature-accent: #f472b6; --feature-accent-soft: rgba(244, 114, 182, 0.14); --feature-accent-border: rgba(244, 114, 182, 0.32); }
.feature-card--blue { --feature-accent: #60a5fa; --feature-accent-soft: rgba(96, 165, 250, 0.14); --feature-accent-border: rgba(96, 165, 250, 0.32); }
.feature-card--amber { --feature-accent: #fbbf24; --feature-accent-soft: rgba(251, 191, 36, 0.14); --feature-accent-border: rgba(251, 191, 36, 0.32); }
.feature-card--emerald { --feature-accent: #34d399; --feature-accent-soft: rgba(52, 211, 153, 0.14); --feature-accent-border: rgba(52, 211, 153, 0.32); }

.feature-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
  position: relative;
}

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--feature-accent-soft);
  border: 1px solid var(--feature-accent-border);
  color: var(--feature-accent);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.03);
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.feature-card-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card:hover .feature-card-icon {
  transform: scale(1.06);
  background: var(--feature-accent);
  color: #0b0f19;
}

.feature-card-index {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding-top: 4px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
  position: relative;
}

.feature-card-body {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
  flex: 1;
  position: relative;
}

.feature-card-footer {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  font-size: 0.9rem;
  line-height: 1.55;
  position: relative;
}

.feature-card-footer a {
  color: var(--feature-accent);
  font-weight: 600;
}

.features-cta {
  padding: 0 0 80px;
}

.features-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.18) 0%, rgba(10, 15, 30, 0.92) 55%);
  box-shadow: var(--shadow-lg);
}

.features-cta-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.features-cta-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.features-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Docs Layout ---------- */
.docs-page,
.download-page {
  overflow: hidden;
}

.docs-hero,
.download-hero {
  padding: 56px 0 20px;
  position: relative;
}

.docs-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100vw);
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(129, 140, 248, 0.18), transparent 68%);
  pointer-events: none;
}

.download-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100vw);
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.2), transparent 68%);
  pointer-events: none;
}

.docs-title,
.download-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.docs-lead,
.download-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 62ch;
  position: relative;
}

.docs-metrics,
.download-metrics {
  padding: 12px 0 8px;
}

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

.docs-metric,
.download-metric {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.docs-metric:hover,
.download-metric:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.docs-metric-value,
.download-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.docs-metric-label,
.download-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.docs-main-section,
.download-main-section {
  padding: 36px 0 28px;
}

.docs-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
  align-items: start;
}

.docs-nav-card {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  box-shadow: var(--shadow-sm);
}

.docs-nav-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.docs-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.docs-nav-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: inherit;
  transition: all 0.2s ease;
}

.docs-nav-item:hover {
  background: rgba(99, 102, 241, 0.06);
  border-color: rgba(99, 102, 241, 0.12);
}

.docs-nav-item.active {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.28);
  box-shadow: inset 0 0 20px rgba(99, 102, 241, 0.05);
}

.docs-nav-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  flex-shrink: 0;
}

.docs-nav-item.active .docs-nav-icon {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
}

.docs-nav-icon svg {
  width: 18px;
  height: 18px;
}

.docs-nav-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.docs-nav-text strong {
  font-size: 0.92rem;
  color: #fff;
}

.docs-nav-text span {
  font-size: 0.78rem;
  color: var(--text-faint);
}

.docs-nav-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-nav-footer .btn {
  width: 100%;
  justify-content: center;
}

.docs-content-card {
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.docs-content-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #818cf8, transparent 80%);
  opacity: 0.85;
}

.docs-content-head {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.docs-content-badge {
  display: inline-flex;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  margin-bottom: 12px;
}

.docs-content-head h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.docs-content-intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.docs-content h3,
.docs-content h4 {
  scroll-margin-top: 110px;
  margin-top: 28px;
  margin-bottom: 12px;
}

.docs-content h3:first-of-type {
  margin-top: 0;
}

.docs-content p {
  color: var(--text-muted);
  line-height: 1.7;
}

.docs-steps-list,
.docs-bullet-list {
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 1.25rem;
}

.docs-steps-list li,
.docs-bullet-list li {
  margin-bottom: 8px;
}

.docs-callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  background: rgba(99, 102, 241, 0.08);
}

.docs-callout strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.docs-callout p {
  margin: 0;
}

.docs-parts-grid,
.docs-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.docs-part-card,
.docs-role-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 12, 22, 0.55);
}

.docs-part-card strong,
.docs-role-card strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
}

.docs-part-card p,
.docs-role-card p {
  margin: 0;
  font-size: 0.92rem;
}

.docs-cta,
.download-cta {
  padding: 0 0 80px;
}

.docs-cta-card,
.download-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(10, 15, 30, 0.92) 55%);
  box-shadow: var(--shadow-lg);
}

.docs-cta-card h2,
.download-cta-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.docs-cta-card p,
.download-cta-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.docs-cta-actions,
.download-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Legacy docs nav (portal/admin) */
.docs-nav {
  position: sticky;
  top: 96px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.docs-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.docs-nav a:hover {
  background: rgba(99, 102, 241, 0.06);
  color: #fff;
}

.docs-nav a.active {
  background: var(--primary-soft);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.docs-content h2,
.docs-content h3 {
  scroll-margin-top: 110px;
}

.docs-content pre,
.portal pre {
  background: #050811;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 20px;
  overflow-x: auto;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.5;
  font-family: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
}

.docs-content code,
.portal code {
  background: rgba(14, 20, 38, 0.8);
  border: 1px solid var(--border);
  padding: 3px 6px;
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.88em;
  font-family: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
}

/* ---------- Download Page ---------- */
.download-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.download-section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.download-section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.download-box-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: center;
  padding: 34px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(79, 70, 229, 0.3);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(10, 15, 30, 0.96) 55%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.download-box-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.18), transparent 70%);
  pointer-events: none;
}

.download-box-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  position: relative;
}

.download-box-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.28);
  flex-shrink: 0;
}

.download-box-icon svg {
  width: 28px;
  height: 28px;
}

.download-box-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

.download-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.download-feature-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.download-feature-list li {
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
  font-size: 0.95rem;
  line-height: 1.5;
}

.download-feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 800;
}

.download-requirements-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.download-requirement-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.download-requirement-tag {
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(8, 12, 22, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.download-box-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  min-width: 240px;
}

.download-primary-btn {
  justify-content: center;
}

.download-box-actions .btn {
  width: 100%;
  justify-content: center;
}

.download-action-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.5;
}

.download-steps-section {
  padding: 8px 0 24px;
}

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

.download-step-card {
  --step-accent: #818cf8;
  --step-accent-soft: rgba(129, 140, 248, 0.14);
  --step-accent-border: rgba(129, 140, 248, 0.28);
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.download-step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--step-accent), transparent 80%);
}

.download-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--step-accent-border);
  box-shadow: var(--shadow), 0 0 20px var(--step-accent-soft);
}

.download-step-card--violet { --step-accent: #818cf8; --step-accent-soft: rgba(129, 140, 248, 0.16); --step-accent-border: rgba(129, 140, 248, 0.35); }
.download-step-card--cyan { --step-accent: #22d3ee; --step-accent-soft: rgba(34, 211, 238, 0.14); --step-accent-border: rgba(34, 211, 238, 0.32); }
.download-step-card--emerald { --step-accent: #34d399; --step-accent-soft: rgba(52, 211, 153, 0.14); --step-accent-border: rgba(52, 211, 153, 0.32); }

.download-step-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.download-step-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--step-accent);
  background: var(--step-accent-soft);
  border: 1px solid var(--step-accent-border);
}

.download-step-icon svg {
  width: 24px;
  height: 24px;
}

.download-step-index {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.download-step-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.download-step-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Legacy download box */
.download-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 7, 18, 0.8) 100%);
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h4 {
  color: #fff;
  margin-bottom: 16px;
  font-size: 1rem;
  font-weight: 700;
}

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

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid a {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-grid a:hover {
  color: #fff;
}

/* ---------- Portal (Authenticated Customer Area) ---------- */
.portal .wrap {
  width: min(1200px, calc(100% - 32px));
  margin: 32px auto 64px;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.portal .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 22px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--grad-surface);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.portal .top::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.2), transparent);
}

.portal .top .brand {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.portal .meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

.portal .nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding: 6px;
  background: rgba(10, 15, 30, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.portal .nav a {
  padding: 10px 16px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.portal .nav a:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.08);
}

.portal .nav a.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.35);
}

.portal .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.portal .kpi-label {
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 6px;
}

.portal .kpi-value {
  font-size: 28px;
  font-weight: 800;
  margin-top: 4px;
  color: #fff;
}

.portal .card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  transition: all 0.2s ease;
}

.portal .card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.portal .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.portal .install-report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0 20px;
}

.portal .install-kpi {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: all 0.2s ease;
}

.portal .install-kpi:hover {
  border-color: var(--border-strong);
}

.portal .install-kpi-label {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.portal .install-kpi-value {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 6px;
}

.portal .install-kpi-value.ok { color: var(--success); }
.portal .install-kpi-value.warn { color: var(--warning); }
.portal .install-kpi-value.bad { color: var(--danger); }

.portal .install-report-table code {
  font-size: 0.82rem;
  white-space: nowrap;
}

.portal .install-report-table .mono {
  font-family: 'JetBrains Mono', SFMono-Regular, Consolas, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}

.portal .trial-days {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.82rem;
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.25);
  white-space: nowrap;
}

.portal .trial-days.soon {
  background: rgba(239, 68, 68, 0.08);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.2);
}

.portal .trial-days.urgent {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.35);
}

.portal .trial-days.expired {
  background: rgba(239, 68, 68, 0.2);
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.4);
}

.portal .trial-days.licensed {
  background: transparent;
  border: none;
  padding: 0;
  font-weight: 500;
  color: var(--text-faint);
}

.portal table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-2);
}

.portal th, .portal td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 0.9rem;
}

.portal th {
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  background: rgba(14, 20, 38, 0.9);
}

.portal tbody tr {
  transition: background 0.15s ease;
}

.portal tbody tr:hover {
  background: rgba(99, 102, 241, 0.05);
}

.portal tr:last-child td {
  border-bottom: 0;
}

.portal .ok { color: var(--success); font-weight: 600; }
.portal .warn { color: var(--warning); font-weight: 600; }
.portal .bad { color: var(--danger); font-weight: 600; }

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  gap: 16px;
}

.form-grid label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 15, 28, 0.8);
  color: var(--text);
  font-size: 0.94rem;
  font-family: inherit;
  transition: all 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--ring);
  background: #0f172a;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: var(--text-faint);
}

/* ---------- Alerts ---------- */
.alert {
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
}

.alert::before {
  font-weight: 700;
}

.alert-error {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.25);
  color: #fca5a5;
}
.alert-error::before { content: "!"; }

.alert-success {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
}
.alert-success::before { content: "✓"; }

.alert-info {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
}
.alert-info::before { content: "i"; }

.alert-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fde68a;
}
.alert-warning::before { content: "!"; }

/* ---------- Supplies ---------- */
.portal .supply-table .supply-cell {
  min-width: 240px;
}

.portal .supply-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.portal .supply-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.portal .supply-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.portal .supply-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.portal .supply-pill.ok { color: var(--success); background: var(--success-soft); }
.portal .supply-pill.warn { color: var(--warning); background: var(--warning-soft); }
.portal .supply-pill.bad { color: var(--danger); background: var(--danger-soft); }

.portal .supply-percent {
  font-size: 12px;
  font-weight: 700;
}

.portal .supply-percent.ok { color: var(--success); }
.portal .supply-percent.warn { color: var(--warning); }
.portal .supply-percent.bad { color: var(--danger); }

.portal .supply-bar {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.portal .supply-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease-out;
}

.portal .supply-bar-fill.ok { background: linear-gradient(90deg, #059669, var(--success)); box-shadow: 0 0 8px rgba(16, 185, 129, 0.3); }
.portal .supply-bar-fill.warn { background: linear-gradient(90deg, #d97706, var(--warning)); box-shadow: 0 0 8px rgba(245, 158, 11, 0.3); }
.portal .supply-bar-fill.bad { background: linear-gradient(90deg, #dc2626, var(--danger)); box-shadow: 0 0 8px rgba(239, 68, 68, 0.3); }

/* ---------- Pricing ---------- */
.pricing-page {
  overflow: hidden;
}

.pricing-hero {
  padding: 56px 0 20px;
  position: relative;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100vw);
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.2), transparent 68%);
  pointer-events: none;
}

.pricing-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.pricing-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 58ch;
  position: relative;
}

.pricing-metrics {
  padding: 12px 0 8px;
}

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

.pricing-metric {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.pricing-metric:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pricing-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.pricing-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-plans-section {
  padding: 36px 0 28px;
}

.pricing-flash {
  margin-bottom: 22px;
}

.pricing-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.pricing-section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.pricing-section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.pricing-card {
  --plan-accent: #818cf8;
  --plan-accent-soft: rgba(129, 140, 248, 0.14);
  --plan-accent-border: rgba(129, 140, 248, 0.28);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 28px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.pricing-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--plan-accent), transparent 80%);
  opacity: 0.75;
}

.pricing-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--plan-accent-soft), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s ease;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--plan-accent-border);
  box-shadow: var(--shadow), 0 0 24px var(--plan-accent-soft);
}

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

.pricing-card--emerald { --plan-accent: #34d399; --plan-accent-soft: rgba(52, 211, 153, 0.14); --plan-accent-border: rgba(52, 211, 153, 0.32); }
.pricing-card--violet { --plan-accent: #818cf8; --plan-accent-soft: rgba(129, 140, 248, 0.16); --plan-accent-border: rgba(129, 140, 248, 0.35); }
.pricing-card--cyan { --plan-accent: #22d3ee; --plan-accent-soft: rgba(34, 211, 238, 0.14); --plan-accent-border: rgba(34, 211, 238, 0.32); }
.pricing-card--blue { --plan-accent: #60a5fa; --plan-accent-soft: rgba(96, 165, 250, 0.14); --plan-accent-border: rgba(96, 165, 250, 0.32); }
.pricing-card--amber { --plan-accent: #fbbf24; --plan-accent-soft: rgba(251, 191, 36, 0.14); --plan-accent-border: rgba(251, 191, 36, 0.32); }
.pricing-card--pink { --plan-accent: #f472b6; --plan-accent-soft: rgba(244, 114, 182, 0.14); --plan-accent-border: rgba(244, 114, 182, 0.32); }

.pricing-card.featured {
  border-color: rgba(99, 102, 241, 0.45);
  background: linear-gradient(180deg, rgba(22, 28, 50, 0.98) 0%, rgba(12, 16, 30, 0.99) 100%);
  box-shadow: 0 20px 50px rgba(79, 70, 229, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transform: scale(1.02);
  z-index: 1;
}

.pricing-card.featured::before {
  height: 4px;
  opacity: 1;
  background: var(--grad-primary);
}

.pricing-card.featured:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 24px 56px rgba(79, 70, 229, 0.28), 0 0 30px rgba(129, 140, 248, 0.15);
}

.pricing-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--grad-primary);
  border: none;
  padding: 5px 12px;
  border-radius: 99px;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  z-index: 2;
}

.pricing-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  padding-right: 88px;
}

.pricing-plan-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--plan-accent);
  background: var(--plan-accent-soft);
  border: 1px solid var(--plan-accent-border);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.pricing-plan-icon svg {
  width: 24px;
  height: 24px;
}

.pricing-card:hover .pricing-plan-icon {
  background: var(--plan-accent);
  color: #0b0f19;
}

.pricing-card-head h3 {
  margin: 0 0 6px;
  font-size: 1.32rem;
}

.pricing-limit-pill {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--plan-accent);
  background: var(--plan-accent-soft);
  border: 1px solid var(--plan-accent-border);
  padding: 3px 10px;
  border-radius: 99px;
}

.pricing-price-block {
  position: relative;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.pricing-period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-gel-note {
  display: block;
  margin-top: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--plan-accent);
}

.pricing-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  position: relative;
}

.pricing-features {
  list-style: none;
  padding: 16px 0 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.pricing-features li {
  color: var(--text-muted);
  padding-left: 26px;
  position: relative;
  font-size: 0.94rem;
  line-height: 1.45;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.25);
  font-weight: 800;
}

.pricing-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  position: relative;
}

.pricing-actions .btn {
  width: 100%;
  justify-content: center;
}

.pricing-pay-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text-faint);
  text-align: center;
}

.pricing-custom-section {
  padding: 8px 0 24px;
}

.pricing-custom-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16) 0%, rgba(10, 15, 30, 0.94) 52%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.pricing-custom-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2), transparent 70%);
  pointer-events: none;
}

.pricing-custom-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 14px;
}

.pricing-custom-copy {
  position: relative;
}

.pricing-custom-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.pricing-custom-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 58ch;
}

.pricing-custom-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.pricing-custom-action .btn {
  width: 100%;
  justify-content: center;
}

.pricing-custom-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.pricing-cta {
  padding: 0 0 80px;
}

.pricing-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(10, 15, 30, 0.92) 55%);
  box-shadow: var(--shadow-lg);
}

.pricing-cta-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.pricing-cta-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.pricing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Legacy alias */
.pricing-custom-offer {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(10, 15, 30, 0.9) 100%);
  border-color: rgba(99, 102, 241, 0.3);
}

/* ---------- Supported Printers ---------- */
.supported-page {
  overflow: hidden;
}

.supported-hero {
  padding: 56px 0 20px;
  position: relative;
}

.supported-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100vw);
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.14), transparent 68%);
  pointer-events: none;
}

.supported-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.supported-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 62ch;
  position: relative;
}

.supported-offer-section {
  padding: 12px 0 8px;
}

.supported-offer-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  align-items: center;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(10, 15, 30, 0.94) 52%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}

.supported-offer-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18), transparent 70%);
  pointer-events: none;
}

.supported-offer-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-bottom: 14px;
}

.supported-offer-copy {
  position: relative;
}

.supported-offer-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
}

.supported-offer-copy p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 58ch;
}

.supported-offer-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.supported-offer-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-faint);
  line-height: 1.5;
}

.supported-metrics {
  padding: 20px 0 12px;
}

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

.supported-metric {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.supported-metric:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.supported-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.supported-metric-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.supported-catalog-section {
  padding: 40px 0 32px;
}

.supported-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.supported-section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.supported-section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

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

.supported-brand-card {
  --brand-accent: #818cf8;
  --brand-accent-soft: rgba(129, 140, 248, 0.14);
  --brand-accent-border: rgba(129, 140, 248, 0.28);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  position: relative;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.28s ease, box-shadow 0.28s ease;
}

.supported-brand-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-accent), transparent 80%);
  opacity: 0.85;
}

.supported-brand-card::after {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--brand-accent-soft), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s ease;
}

.supported-brand-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-accent-border);
  box-shadow: var(--shadow), 0 0 22px var(--brand-accent-soft);
}

.supported-brand-card:hover::after {
  transform: scale(1.12);
}

.supported-brand-card--violet { --brand-accent: #818cf8; --brand-accent-soft: rgba(129, 140, 248, 0.16); --brand-accent-border: rgba(129, 140, 248, 0.35); }
.supported-brand-card--cyan { --brand-accent: #22d3ee; --brand-accent-soft: rgba(34, 211, 238, 0.14); --brand-accent-border: rgba(34, 211, 238, 0.32); }
.supported-brand-card--blue { --brand-accent: #60a5fa; --brand-accent-soft: rgba(96, 165, 250, 0.14); --brand-accent-border: rgba(96, 165, 250, 0.32); }
.supported-brand-card--pink { --brand-accent: #f472b6; --brand-accent-soft: rgba(244, 114, 182, 0.14); --brand-accent-border: rgba(244, 114, 182, 0.32); }
.supported-brand-card--amber { --brand-accent: #fbbf24; --brand-accent-soft: rgba(251, 191, 36, 0.14); --brand-accent-border: rgba(251, 191, 36, 0.32); }
.supported-brand-card--emerald { --brand-accent: #34d399; --brand-accent-soft: rgba(52, 211, 153, 0.14); --brand-accent-border: rgba(52, 211, 153, 0.32); }

.supported-brand-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

.supported-brand-identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.supported-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-accent);
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}

.supported-brand-card:hover .supported-brand-icon {
  background: var(--brand-accent);
  color: #0b0f19;
}

.supported-brand-identity h3 {
  margin: 0 0 4px;
  font-size: 1.3rem;
}

.supported-brand-count {
  font-size: 0.82rem;
  color: var(--text-faint);
  font-weight: 600;
}

.supported-type-pill {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--brand-accent);
  background: var(--brand-accent-soft);
  border: 1px solid var(--brand-accent-border);
  padding: 5px 12px;
  border-radius: 99px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.supported-models {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: relative;
}

.supported-model-chip {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.supported-model-chip:hover {
  border-color: var(--brand-accent-border);
  background: var(--brand-accent-soft);
  color: #fff;
}

.supported-supplies {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.supported-supplies-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.supported-supply-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.supported-supply-tag {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.supported-fallback-section {
  padding: 8px 0 24px;
}

.supported-fallback-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 30px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.supported-fallback-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--primary-soft);
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.supported-fallback-icon svg {
  width: 26px;
  height: 26px;
}

.supported-fallback-card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.supported-fallback-card p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 72ch;
}

.supported-fallback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supported-cta {
  padding: 0 0 80px;
}

.supported-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16) 0%, rgba(10, 15, 30, 0.92) 55%);
  box-shadow: var(--shadow-lg);
}

.supported-cta-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.supported-cta-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.supported-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Legacy aliases (home/admin may still reference) */
.supported-free-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(10, 15, 30, 0.95) 100%);
  border-color: rgba(16, 185, 129, 0.25);
}

.supported-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}

.supported-stats .card {
  padding: 22px 16px;
}

.supported-brand-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Contact Layout ---------- */
.contact-page {
  overflow: hidden;
}

.contact-hero {
  padding: 56px 0 20px;
  position: relative;
}

.contact-hero::before {
  content: "";
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(820px, 100vw);
  height: 360px;
  background: radial-gradient(ellipse at center, rgba(96, 165, 250, 0.16), transparent 68%);
  pointer-events: none;
}

.contact-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.contact-lead {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
  max-width: 62ch;
  position: relative;
}

.contact-metrics {
  padding: 12px 0 8px;
}

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

.contact-metric {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-metric:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.contact-metric-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.contact-metric-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-main-section {
  padding: 36px 0 28px;
}

.contact-section-head {
  max-width: 640px;
  margin-bottom: 28px;
}

.contact-section-title {
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  margin: 0 0 10px;
}

.contact-section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: start;
}

.contact-form-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(18, 24, 44, 0.95) 0%, rgba(10, 14, 26, 0.98) 100%);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.contact-form-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #60a5fa, transparent 80%);
  opacity: 0.85;
}

.contact-form-card::after {
  content: "";
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.12), transparent 70%);
  pointer-events: none;
}

.contact-topic-pills {
  margin-bottom: 22px;
  position: relative;
}

.contact-topic-label {
  display: block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.contact-topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-topic-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 99px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(8, 12, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.contact-topic-pill:hover,
.contact-topic-pill.active {
  color: #fff;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.14);
}

.contact-form {
  position: relative;
}

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

.contact-submit {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}

.contact-sidebar-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}

.contact-sidebar-card h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.contact-sidebar-intro {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact-help-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-help-item {
  --help-accent: #818cf8;
  --help-accent-soft: rgba(129, 140, 248, 0.14);
  --help-accent-border: rgba(129, 140, 248, 0.28);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(8, 12, 22, 0.45);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-help-item:hover {
  border-color: var(--help-accent-border);
  background: var(--help-accent-soft);
}

.contact-help-item--violet { --help-accent: #818cf8; --help-accent-soft: rgba(129, 140, 248, 0.12); --help-accent-border: rgba(129, 140, 248, 0.3); }
.contact-help-item--cyan { --help-accent: #22d3ee; --help-accent-soft: rgba(34, 211, 238, 0.1); --help-accent-border: rgba(34, 211, 238, 0.28); }
.contact-help-item--emerald { --help-accent: #34d399; --help-accent-soft: rgba(52, 211, 153, 0.1); --help-accent-border: rgba(52, 211, 153, 0.28); }
.contact-help-item--amber { --help-accent: #fbbf24; --help-accent-soft: rgba(251, 191, 36, 0.1); --help-accent-border: rgba(251, 191, 36, 0.28); }

.contact-help-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--help-accent);
  background: var(--help-accent-soft);
  border: 1px solid var(--help-accent-border);
  flex-shrink: 0;
}

.contact-help-icon svg {
  width: 20px;
  height: 20px;
}

.contact-help-item strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 4px;
  color: #fff;
}

.contact-help-item p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.contact-sidebar-note {
  margin: 0 0 18px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-faint);
}

.contact-sidebar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-sidebar-actions .btn {
  flex: 1;
  min-width: 120px;
  justify-content: center;
}

.contact-cta {
  padding: 0 0 80px;
}

.contact-cta-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  padding: 36px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(99, 102, 241, 0.28);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.14) 0%, rgba(10, 15, 30, 0.92) 55%);
  box-shadow: var(--shadow-lg);
}

.contact-cta-card h2 {
  margin: 10px 0 8px;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
}

.contact-cta-card p {
  margin: 0;
  color: var(--text-muted);
  max-width: 48ch;
  line-height: 1.6;
}

.contact-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Portal Subnav ---------- */
.portal-subnav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.portal-subnav a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(14, 20, 38, 0.5);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.portal-subnav a:hover {
  color: #fff;
  background: rgba(99, 102, 241, 0.08);
}

.portal-subnav a.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.contact-inbox-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-inbox-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(14, 20, 38, 0.6);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.contact-inbox-item.unread {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.05);
}

.contact-inbox-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  align-items: center;
  background: rgba(10, 15, 28, 0.4);
}

.contact-inbox-field .label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-inbox-field .value {
  font-size: 0.92rem;
  color: var(--text);
  word-break: break-word;
}

.contact-inbox-body {
  padding: 16px 20px;
}

.contact-inbox-body .label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 8px;
}

.contact-message-box {
  background: rgba(10, 15, 28, 0.8);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 16px;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.contact-inbox-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 20px 16px;
}

/* ---------- Org Switcher ---------- */
.org-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.org-switcher select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 15, 28, 0.8);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
}

.org-switcher select:focus {
  border-color: var(--accent);
}

/* ---------- Responsive Queries ---------- */
@media (max-width: 960px) {
  .hero {
    padding: 64px 0 48px;
  }
  .hero-grid,
  .docs-grid,
  .footer-grid,
  .download-box,
  .download-box-card,
  .download-steps-grid,
  .download-metrics-grid,
  .docs-metrics-grid,
  .docs-parts-grid,
  .docs-role-grid,
  .pricing-grid,
  .pricing-metrics-grid,
  .pricing-custom-card,
  .contact-grid,
  .contact-metrics-grid,
  .contact-form-row,
  .supported-stats,
  .supported-brand-grid {
    grid-template-columns: 1fr;
  }
  .supported-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-grid,
  .feature-grid,
  .features-card-grid,
  .features-metrics-grid,
  .features-hero-inner,
  .supported-metrics-grid,
  .supported-offer-card,
  .supported-brand-grid,
  .pricing-metrics-grid,
  .pricing-custom-card,
  .contact-metrics-grid,
  .contact-form-row,
  .download-metrics-grid,
  .download-steps-grid,
  .docs-metrics-grid,
  .portal .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-sidebar-card {
    position: static;
  }

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

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-6px);
  }
  .docs-nav,
  .docs-nav-card {
    position: static;
  }

  /* Hamburger Menu Layout styling */
  .nav-toggle-label {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--border-strong);
    background: var(--glass);
    cursor: pointer;
    padding: 0 11px;
    z-index: 52;
  }
  
  .nav-toggle-label span {
    display: block;
    height: 2px;
    border-radius: 2px;
    background: var(--text);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  }
  
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px 24px 24px;
    background: rgba(3, 7, 18, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .site-nav-links,
  .site-nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    flex-wrap: wrap;
  }

  .site-nav-actions {
    margin-left: 0;
    padding-left: 0;
    padding-top: 8px;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .nav-user {
    max-width: none;
    padding: 8px 14px;
  }
  
  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  
  .site-nav a {
    padding: 12px 14px;
  }

  .site-nav a.nav-cta {
    text-align: center;
    margin-top: 4px;
  }
  
  .site-header-inner {
    position: relative;
    flex-wrap: nowrap;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 32px);
  }
  .metric-grid,
  .feature-grid,
  .features-card-grid,
  .features-metrics-grid,
  .features-hero-inner,
  .supported-metrics-grid,
  .supported-offer-card,
  .supported-brand-grid,
  .supported-fallback-card,
  .supported-stats,
  .pricing-metrics-grid,
  .pricing-grid,
  .pricing-custom-card,
  .pricing-cta-card,
  .contact-metrics-grid,
  .contact-grid,
  .contact-form-row,
  .contact-cta-card,
  .download-metrics-grid,
  .download-box-card,
  .download-steps-grid,
  .docs-metrics-grid,
  .docs-parts-grid,
  .docs-role-grid,
  .download-cta-card,
  .docs-cta-card,
  .portal .grid {
    grid-template-columns: 1fr;
  }
  .features-cta-card,
  .supported-cta-card,
  .pricing-cta-card,
  .contact-cta-card,
  .download-cta-card,
  .docs-cta-card {
    padding: 28px 24px;
  }
  .docs-content-card {
    padding: 24px 20px;
  }
  .download-box-card {
    padding: 24px 20px;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
  .pricing-card.featured {
    transform: none;
  }
  .pricing-card-head {
    padding-right: 0;
  }
  .supported-offer-action {
    align-items: stretch;
  }
  .supported-offer-action .btn {
    width: 100%;
    justify-content: center;
  }
  .portal .top {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
