/*
 * enterprise-modern.css — Apple-style fluid layer for all enterprise sub-pages
 * Loaded AFTER style.css — overrides only visual aesthetics, preserves layout.
 */

/* ── Ambient gradient ── */
html { scroll-behavior: smooth; }
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 65% -5%, rgba(99,102,241,0.09) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at -5% 60%, rgba(16,185,129,0.05) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .72s cubic-bezier(0.16,1,0.3,1), transform .72s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }

/* ── Nav ── */
nav, .nav {
  backdrop-filter: blur(28px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
  background: rgba(0,0,0,0.8) !important;
  border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

/* ── Gradient headings ── */
h1, .page-title {
  background: linear-gradient(165deg, #ffffff 35%, rgba(255,255,255,0.52) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em !important;
}

h2, h3 {
  letter-spacing: -0.032em !important;
}

/* ── Pill buttons ── */
.btn, .btn-primary, .btn-ghost, .btn-outline,
.cta-btn, .action-btn, [class*="btn-"] {
  border-radius: 100px !important;
  transition: all 0.28s cubic-bezier(0.16,1,0.3,1) !important;
}
.btn-primary, .btn[class*="primary"] {
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.btn-primary:hover, .btn[class*="primary"]:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 36px rgba(255,255,255,0.12) !important;
}
.btn-ghost:hover, .btn-outline:hover, .btn[class*="ghost"]:hover {
  transform: translateY(-2px) !important;
}

/* ── Cards ── */
.card, [class*="-card"], .p-card, .p-card-smart, .product-card {
  border-radius: 18px !important;
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1) !important;
  position: relative;
  overflow: hidden;
}
.card::before, [class*="-card"]::before, .p-card-smart::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,102,241,0.14) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s, transform 0.4s;
  transform: scale(0.5);
  pointer-events: none;
}
.card:hover, [class*="-card"]:hover, .p-card-smart:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 20px 56px rgba(0,0,0,0.55) !important;
  border-color: rgba(255,255,255,0.18) !important;
}
.card:hover::before, [class*="-card"]:hover::before, .p-card-smart:hover::before {
  opacity: 1;
  transform: scale(1);
}

/* ── Stats / metrics ── */
.stat-number, .stat-n, .metric-value, [class*="stat-num"] {
  font-size: clamp(36px,5vw,56px) !important;
  letter-spacing: -0.05em !important;
  font-weight: 700 !important;
}

/* ── Eyebrows ── */
.eyebrow, .label, .sub-label, [class*="eyebrow"] {
  letter-spacing: 0.14em !important;
  color: rgba(255,255,255,0.25) !important;
}

/* ── Hero sections ── */
.hero, .sg-hero, .page-hero {
  position: relative;
  z-index: 1;
}

/* ── Terminal / code blocks ── */
.term, .terminal, [class*="term-"] > .term,
pre, code[class*="language-"] {
  border-radius: 14px !important;
  box-shadow: 0 0 0 1px rgba(99,102,241,0.07), 0 32px 80px rgba(0,0,0,0.65) !important;
  transition: box-shadow 0.4s !important;
}
.term:hover, .terminal:hover {
  box-shadow: 0 0 0 1px rgba(99,102,241,0.18), 0 40px 100px rgba(0,0,0,0.75) !important;
}

/* ── Sections z-index ── */
section, .section, footer {
  position: relative;
  z-index: 1;
}

/* ── CTA areas ── */
.cta-strip, .cta-section, [class*="cta"] {
  position: relative;
}
.cta-strip::before, .cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(99,102,241,0.09) 0%, transparent 65%);
  pointer-events: none;
}

/* ── Dividers ── */
hr, .divider {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07) 20%, rgba(255,255,255,0.07) 80%, transparent) !important;
  border: none !important;
  height: 1px !important;
}

/* ── Mobile hero padding fix ── */
@media (max-width: 720px) {
  h1, .page-title { font-size: clamp(36px,8vw,54px) !important; }
  .hero, .sg-hero { padding-top: 80px !important; }
}
