/* ─────────────────────────────────────────────
   DESIGN SYSTEM — Orion (Glassmorphism)
   Single source of truth — DO NOT duplicate
   ───────────────────────────────────────────── */

/* ===== CSS Custom Properties (Design Tokens) ===== */
:root {
  /* -- Color Palette (SaaS General) -- */
  --color-primary: #2563EB;
  --color-on-primary: #FFFFFF;
  --color-secondary: #3B82F6;
  --color-on-secondary: #000000;
  --color-accent: #EA580C;
  --color-on-accent: #000000;
  --color-background: #F8FAFC;
  --color-foreground: #1E293B;
  --color-card: #FFFFFF;
  --color-card-foreground: #1E293B;
  --color-muted: #E9EFF8;
  --color-muted-foreground: #475569;
  --color-border: #E2E8F0;
  --color-destructive: #DC2626;
  --color-on-destructive: #FFFFFF;
  --color-ring: #2563EB;

  /* -- Glassmorphism Tokens -- */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --glass-blur: 16px;
  --glass-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --glass-shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.12);

  /* -- Gradient Accents -- */
  --gradient-primary: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  --gradient-accent: linear-gradient(135deg, #EA580C 0%, #F97316 100%);
  --gradient-text: linear-gradient(135deg, #2563EB 0%, #3B82F6 50%, #06B6D4 100%);
  --gradient-hero: radial-gradient(ellipse 80% 60% at var(--hero-gradient-x, 50%) var(--hero-gradient-y, 30%), rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  --gradient-products: radial-gradient(ellipse 60% 50% at var(--products-gradient-x, 78%) var(--products-gradient-y, 22%), rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  --gradient-cta: radial-gradient(ellipse 80% 60% at var(--cta-gradient-x, 50%) var(--cta-gradient-y, 120%), rgba(234, 88, 12, 0.15) 0%, transparent 70%);
  --gradient-footer: radial-gradient(ellipse 60% 50% at var(--footer-gradient-x, 50%) var(--footer-gradient-y, 120%), rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  --gradient-pillars: radial-gradient(ellipse 60% 50% at var(--pillars-gradient-x, 50%) var(--pillars-gradient-y, 50%), rgba(234, 88, 12, 0.12) 0%, transparent 70%);

  /* -- Typography -- */
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* -- Font Sizes (Fluid) -- */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);
  --text-sm: clamp(0.8125rem, 0.75rem + 0.3125vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.875rem + 0.3125vw, 1rem);
  --text-lg: clamp(1.0625rem, 1rem + 0.3125vw, 1.125rem);
  --text-xl: clamp(1.25rem, 1.125rem + 0.625vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 3rem);
  --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 4rem);
  --text-5xl: clamp(3rem, 2rem + 5vw, 6rem);

  /* -- Font Weights -- */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* -- Line Heights -- */
  --leading-tight: 1.1;
  --leading-snug: 1.375;
  --leading-normal: 1.55;
  --leading-relaxed: 1.7;

  /* -- Spacing Scale (Density 6/10 - Standard) -- */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  --space-4xl: 6rem;     /* 96px */

  /* -- Border Radius -- */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* -- Shadow Depths -- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);

  /* -- Transitions -- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* -- Container -- */
  --container-max: 1200px;
  --container-padding: 1.5rem;

  /* -- Z-Index -- */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;
}

/* ===== Dark Mode (Optional - respects prefers-color-scheme) ===== */
@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #3B82F6;
    --color-on-primary: #0F172A;
    --color-secondary: #60A5FA;
    --color-on-secondary: #0F172A;
    --color-accent: #F97316;
    --color-on-accent: #0F172A;
    --color-background: #0F172A;
    --color-foreground: #F8FAFC;
    --color-card: #1E293B;
    --color-card-foreground: #F8FAFC;
    --color-muted: #1E293B;
    --color-muted-foreground: #94A3B8;
    --color-border: #334155;
    --color-destructive: #EF4444;
    --color-on-destructive: #0F172A;
    --color-ring: #3B82F6;

    --glass-bg: rgba(30, 41, 59, 0.8);
    --glass-border: rgba(148, 163, 184, 0.2);
    --glass-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --glass-shadow-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  }
}

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

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

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

body {
  font-family: var(--font-family);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  font-weight: var(--font-normal);
  color: var(--color-foreground);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* ===== Focus Visible (Accessibility) ===== */
:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ===== Selection ===== */
::selection {
  background-color: var(--color-primary);
  color: var(--color-on-primary);
}

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

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-foreground);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); }

p {
  line-height: var(--leading-relaxed);
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  min-height: 48px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  line-height: 1;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.btn-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--text-xs);
}

/* Primary Button */
.btn-primary {
  background: var(--gradient-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

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

/* Secondary Button */
.btn-secondary {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: var(--color-foreground);
}

.btn-ghost:hover {
  background: var(--color-muted);
}

/* ===== Glass Card ===== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--glass-shadow);
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}

.glass-card:hover {
  box-shadow: var(--glass-shadow-hover);
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-background);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(15, 23, 42, 0.85);
  }
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Navigation */
.nav-list {
  display: none;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .nav-list {
    display: flex;
  }
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-medium);
  color: var(--color-muted-foreground);
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--color-foreground);
}

.nav-link:hover::after {
  width: 100%;
}

.header-cta {
  display: none;
}

@media (min-width: 768px) {
  .header-cta {
    display: inline-flex;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  padding: 0;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-foreground);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

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

.hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  padding: var(--space-xl) var(--container-padding);
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: var(--z-fixed);
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-sm) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--color-foreground);
  transition: color var(--transition-fast);
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

.mobile-cta {
  margin-top: var(--space-md);
  width: 100%;
  justify-content: center;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  opacity: 0.6;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.badge-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.hero-title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

@media (min-width: 768px) {
  .hero-title {
    font-size: var(--text-5xl);
  }
}

.hero-description {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.hero-scroll-hint {
  margin-top: var(--space-2xl);
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
  opacity: 0.6;
}

/* Hero Visual - Card Stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4/3;
}

.hero-card {
  position: absolute;
  padding: var(--space-lg);
}

.hero-card-1 {
  top: 0%;
  left: 2%;
  right: 45%;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
  animation-delay: 0s;
}

.hero-card-2 {
  top: 24%;
  right: 3%;
  left: 42%;
  z-index: 4;
  animation: float 6s ease-in-out infinite;
  animation-delay: -1.2s;
}

.hero-card-3 {
  top: 46%;
  left: 2%;
  right: 45%;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
  animation-delay: -2.4s;
}

.hero-card-4 {
  top: 68%;
  right: 3%;
  left: 42%;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  animation-delay: -3.6s;
}

.hero-card-5 {
  bottom: 0%;
  left: 15%;
  right: 15%;
  z-index: 1;
  animation: float 6s ease-in-out infinite;
  animation-delay: -4.8s;
}

/* Floating animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-8px) rotate(0.5deg);
  }
  50% {
    transform: translateY(0px) rotate(0deg);
  }
  75% {
    transform: translateY(6px) rotate(-0.5deg);
  }
}

/* Reduced motion - disable float */
@media (prefers-reduced-motion: reduce) {
  .float-card {
    animation: none !important;
  }
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.hero-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

.hero-card-title {
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-xs);
}

.hero-card-value {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-foreground);
}

.hero-card-label {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

/* Product Hero Variant */
.product-hero .hero-visual {
  max-width: 600px;
}

.product-hero-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.product-hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
}

/* ===== Section Header ===== */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-3xl);
}

.section-badge {
  display: inline-block;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.1);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-description {
  margin-top: var(--space-md);
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== Value Proposition ===== */
.value-prop {
  padding: var(--space-4xl) 0;
}

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

@media (min-width: 768px) {
  .value-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  padding: var(--space-xl);
  text-align: center;
}

.value-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
}

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

.value-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.value-text {
  font-size: var(--text-base);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

.card-image {
  width: 62px;
  height: 62px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin: 0 auto var(--space-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}


/* ===== Mission Vision Values ===== */
.mvv {
  padding: var(--space-4xl) 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.mvv::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.15) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

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

@media (min-width: 768px) {
  .mvv-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mvv-card {
  padding: var(--space-xl);
  text-align: center;
}

.mvv-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  color: white;
}

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

.mvv-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.mvv-text {
  font-size: var(--text-base);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== Products ===== */
.products {
  position: relative;
  padding: var(--space-4xl) 0;
}

.products-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.products-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-products);
  opacity: 0.6;
}

.product {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-2xl) 0;
}

@media (min-width: 1024px) {
  .product {
    grid-template-columns: 1fr 1fr;
  }
}

.product-reverse .product-visual {
  order: 2;
}

.product-reverse .product-info {
  order: 1;
}

.product-glow {
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.product-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-image-wrapper:hover .product-image {
  transform: scale(1.02);
}

.product-info {
  max-width: 480px;
}

.product-name {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-category {
  margin-top: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.product-description {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

.product-features {
  margin-top: var(--space-xl);
  display: grid;
  gap: var(--space-md);
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-foreground);
  line-height: var(--leading-relaxed);
}

.feature-dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--color-primary);
}

.product-info .btn {
  margin-top: var(--space-xl);
}

/* ===== Modules (OmniPDV) ===== */
.modules {
  padding: var(--space-4xl) 0;
}

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

@media (min-width: 768px) {
  .modules-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.module-card {
  padding: var(--space-xl);
}

.module-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
}

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

.module-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.module-text {
  font-size: var(--text-base);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-lg);
}

.module-features {
  display: grid;
  gap: var(--space-sm);
}

.module-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== Features ===== */
.features {
  padding: var(--space-4xl) 0;
}

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

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  padding: var(--space-xl);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-lg);
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  color: white;
}

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

.feature-title {
  font-size: var(--text-lg);
  margin-bottom: var(--space-sm);
}

.feature-text {
  font-size: var(--text-base);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== Pillars (Análise de Crédito) ===== */
.pillars {
  position: relative;
  padding: var(--space-4xl) 0;
}

.pillars-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pillars-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-pillars);
  opacity: 0.6;
}

.pillars-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .pillars-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pillar-card {
  padding: var(--space-xl);
  text-align: center;
  position: relative;
}

.pillar-number {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-primary);
  opacity: 0.3;
  margin-bottom: var(--space-md);
}

.pillar-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.pillar-text {
  font-size: var(--text-base);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== Tech Specs / Boost ===== */
.tech-specs {
  padding: var(--space-4xl) 0;
}

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

@media (min-width: 768px) {
  .specs-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.spec-card {
  padding: var(--space-xl);
}

.spec-title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-lg);
}

.spec-list {
  display: grid;
  gap: var(--space-md);
}

.spec-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: var(--color-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== CTA Section ===== */
.cta-section {
  position: relative;
  padding: var(--space-4xl) 0;
}

.cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cta-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-cta);
  opacity: 0.6;
}

.cta-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.cta-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .cta-title {
    font-size: var(--text-4xl);
  }
}

.cta-text {
  margin-top: var(--space-lg);
  font-size: var(--text-lg);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

/* ===== Footer ===== */
.footer {
  position: relative;
  padding: var(--space-4xl) 0 var(--space-2xl);
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.footer-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-footer);
  opacity: 0.6;
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

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

.footer-logo {
  width: 84px;
  height: 84px;
  object-fit: contain;
  margin-bottom: var(--space-md);
}

.footer-description {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

.footer-cnpj {
  display: block;
  font-size: var(--text-xs);
  opacity: 0.6;
}

.footer-title {
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-foreground);
}

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.copyright {
  font-size: var(--text-xs);
  font-weight: var(--font-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.footer-dots {
  display: flex;
  gap: var(--space-sm);
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
  opacity: 0.4;
  animation: pulse 2s ease-in-out infinite;
}

.footer-dot:nth-child(2) { animation-delay: 0.3s; }
.footer-dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

@media (prefers-reduced-motion: reduce) {
  .footer-dot { animation: none; }
}

/* ===== Page Wrapper ===== */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* ===== Reveal Animation (Base - Enhanced by JS) ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

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

/* Stagger delays for grid items */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 50ms; }
.reveal:nth-child(3) { transition-delay: 100ms; }
.reveal:nth-child(4) { transition-delay: 150ms; }
.reveal:nth-child(5) { transition-delay: 200ms; }
.reveal:nth-child(6) { transition-delay: 250ms; }

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

/* ===== Skip Link (Accessibility) ===== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-on-primary);
  background: var(--color-primary);
  border-radius: var(--radius-md);
  z-index: var(--z-tooltip);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ===== Utility Classes ===== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ===== Pricing Page ===== */
.pricing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: var(--space-4xl) 0;
  overflow: hidden;
}

.pricing-hero .container {
  position: relative;
  z-index: 1;
}

.pricing-hero .section-title {
  color: #FFFFFF;
}

.pricing-hero .section-description {
  color: rgba(255, 255, 255, 0.8);
}

.pricing-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.pricing-hero-gradient {
  position: absolute;
  inset: 0;
  background: var(--gradient-cta);
  opacity: 0.6;
}

.pricing-toggle-header {
  max-width: 800px;
  margin: 0 auto var(--space-2xl);
}

.pricing-toggle-pill-wrap {
  display: flex;
  gap: var(--space-xs);
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: var(--space-xs);
  overflow-x: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.pricing-toggle-pill-wrap::-webkit-scrollbar {
  display: none;
}

.pricing-toggle-btn {
  flex: 1;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: rgba(255, 255, 255, 0.7);
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.pricing-toggle-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.1);
}

.pricing-toggle-btn.active {
  background: var(--gradient-accent);
  color: var(--color-on-accent);
  box-shadow: var(--shadow-md);
}

.pricing-carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.pricing-carousel-track {
  display: flex;
  transition: transform var(--transition-slow);
}

.pricing-product-slide {
  flex: 0 0 100%;
  padding: var(--space-xl) 0;
  min-height: 500px;
}

.pricing-hero-grid {
  display: grid;
  gap: var(--space-2xl);
  align-items: start;
  height: 100%;
}

@media (min-width: 1024px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr 380px;
  }
}

.pricing-hero-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.pricing-hero-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .pricing-hero-title {
    font-size: var(--text-4xl);
  }
}

.pricing-hero-desc {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.8);
  line-height: var(--leading-relaxed);
}

.pricing-checklist {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.9);
  line-height: var(--leading-relaxed);
}

.check-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #3B82F6;
  margin-top: 2px;
}

.pricing-hero-actions {
  margin-top: var(--space-xl);
}

.pricing-hero-actions .btn-secondary {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

.pricing-hero-actions .btn-secondary:hover {
  background: #FFFFFF;
  color: #0F172A;
  border-color: #FFFFFF;
}

.pricing-widget-card {
  position: sticky;
  top: 100px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.widget-plan-title {
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
}

.pricing-divider {
  height: 1px;
  background: var(--color-border);
}

.pricing-widget-card.popular {
  border: 2px solid var(--color-accent);
}

.popular-badge {
  display: inline-block;
  text-align: center;
  padding: var(--space-xs) var(--space-md);
  font-size: var(--text-xs);
  font-weight: var(--font-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-on-accent);
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}

.radio-price-main {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-xs);
}

.currency {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-muted-foreground);
}

.price-val {
  font-weight: 800;
  color: var(--color-foreground);
}

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

.radio-price-sub {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--color-muted-foreground);
}

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

.pricing-card-disclaimer {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

.pricing-card-disclaimer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Carousel Dots ─────────────────────────────────────── */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition-base);
}

.carousel-dot.active {
  width: 24px;
  background: var(--gradient-primary);
}

.carousel-dot:hover:not(.active) {
  background: var(--color-muted-foreground);
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.carousel-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  color: var(--color-foreground);
  cursor: pointer;
  transition: all var(--transition-base);
}

.carousel-arrow:hover:not(.disabled) {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.carousel-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel-arrow:focus-visible {
  outline: 3px solid var(--color-ring);
  outline-offset: 2px;
}

.features-grid details.feature-card {
  border: 1px solid var(--glass-border);
}

.features-grid details.feature-card summary {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  list-style: none;
}

.features-grid details.feature-card summary::-webkit-details-marker {
  display: none;
}

.features-grid details.feature-card .feature-text {
  font-size: var(--text-base);
  color: var(--color-muted-foreground);
  line-height: var(--leading-relaxed);
}

/* ===== Print ===== */
@media print {
  .header,
  .hero-actions,
  .cta-section,
  .footer {
    display: none;
  }
  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }
  body {
    background: white;
    color: black;
  }
  .glass-card {
    background: white;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}