/* =========================================================
   AI SKI — The Intelligent Mountain Resort Platform
   Stylesheet by TheMadHacker LLC
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #070a12;
  --bg-2: #0a0e1a;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-solid: #0f1524;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef2fb;
  --text-dim: #a7b1c9;
  --text-faint: #6b7690;

  --cyan: #38bdf8;
  --indigo: #818cf8;
  --violet: #a78bfa;
  --pink: #e879f9;
  --emerald: #34d399;

  --grad: linear-gradient(120deg, var(--cyan), var(--indigo) 45%, var(--pink));
  --grad-soft: linear-gradient(120deg, rgba(56,189,248,0.18), rgba(232,121,249,0.18));

  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 60px -12px rgba(129, 140, 248, 0.45);

  --maxw: 1200px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }

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

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

@media (max-width: 900px) { body { cursor: auto; } }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }

::selection { background: var(--indigo); color: #fff; }

/* ---------- Custom Cursor ---------- */
.cursor, .cursor-follow {
  position: fixed; top: 0; left: 0; border-radius: 50%;
  pointer-events: none; z-index: 9999; mix-blend-mode: difference;
}
.cursor { width: 8px; height: 8px; background: #fff; transform: translate(-50%, -50%); }
.cursor-follow {
  width: 40px; height: 40px; border: 1.5px solid rgba(255,255,255,0.6);
  transform: translate(-50%, -50%); transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s;
}
.cursor-follow.hover { width: 64px; height: 64px; background: rgba(255,255,255,0.08); border-color: transparent; }
@media (max-width: 900px) { .cursor, .cursor-follow { display: none; } }

/* ---------- Scroll Progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad); z-index: 1001; box-shadow: 0 0 12px var(--cyan);
}

/* ---------- Animated Background ---------- */
#bgCanvas {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(56,189,248,0.12), transparent 60%),
    radial-gradient(1000px 700px at 10% 110%, rgba(232,121,249,0.10), transparent 60%),
    var(--bg);
}
.gradient-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.orb-1 { width: 420px; height: 420px; background: var(--indigo); top: 8%; left: -6%; animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 360px; height: 360px; background: var(--pink); bottom: 12%; right: -4%; animation: float2 22s ease-in-out infinite; }
.orb-3 { width: 300px; height: 300px; background: var(--cyan); top: 50%; left: 50%; animation: float3 26s ease-in-out infinite; }
@keyframes float1 { 50% { transform: translate(80px, 60px) scale(1.15); } }
@keyframes float2 { 50% { transform: translate(-70px, -50px) scale(1.1); } }
@keyframes float3 { 50% { transform: translate(60px, -70px) scale(0.9); } }

/* ---------- Glass ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--indigo);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Sora', sans-serif; font-weight: 600; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  color: #fff; background: var(--btn-bg); position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  white-space: nowrap;
}
.btn svg { transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(5px); }
.btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.btn::before {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); transition: left 0.6s var(--ease);
}
.btn:hover::before { left: 130%; }
.btn-primary { background: var(--grad); color: #06121f; font-weight: 700; }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: var(--indigo); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h);
  z-index: 1000; display: flex; align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s, padding 0.4s;
}
.nav.scrolled {
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { filter: drop-shadow(0 0 12px rgba(129,140,248,0.5)); }
.brand-mark { animation: spinGrad 8s linear infinite; transform-origin: center; }
@keyframes spinGrad { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: 'Sora'; font-weight: 800; font-size: 1.25rem; letter-spacing: 0.02em; }
.brand-company { font-size: 0.62rem; color: var(--text-dim); letter-spacing: 0.16em; text-transform: uppercase; margin-top: 3px; }
.nav-links { display: flex; gap: 6px; align-items: center; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; color: var(--text-dim);
  font-weight: 500; position: relative; transition: color 0.3s, background 0.3s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { padding: 10px 20px; font-size: 0.9rem; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(320px, 82vw); height: 100dvh;
    flex-direction: column; justify-content: center; gap: 8px; background: rgba(10,14,26,0.96);
    backdrop-filter: blur(20px); padding: 40px; transform: translateX(100%);
    transition: transform 0.5s var(--ease); border-left: 1px solid var(--border); }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { font-size: 1.2rem; width: 100%; }
  .nav-toggle { display: flex; z-index: 1002; }
  .nav-cta { display: none; }
}

/* ---------- Section shared ---------- */
section { padding: 120px 24px; position: relative; }
.section-inner { max-width: var(--maxw); margin: 0 auto; }
.section-head { max-width: 720px; margin: 0 auto 64px; text-align: center; padding: 0 12px; }
.eyebrow {
  display: inline-block; font-family: 'Sora'; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--indigo);
  padding: 6px 16px; border: 1px solid var(--border); border-radius: 999px; margin-bottom: 20px;
  background: rgba(129,140,248,0.06);
}
.section-head h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin-bottom: 18px; }
.section-head p { color: var(--text-dim); font-size: 1.1rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- HERO ---------- */
.hero { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding-top: calc(var(--nav-h) + 60px); text-align: center; }
.hero-inner { max-width: 900px; margin: 0 auto; position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 auto 28px;
  padding: 9px 20px; border-radius: 999px; font-size: 0.85rem; color: var(--text-dim);
  border: 1px solid var(--border); background: rgba(255,255,255,0.03); width: fit-content;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.5); } 70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero-title { font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 800; margin-bottom: 24px; }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: var(--text-dim); max-width: 700px; margin: 0 auto 36px; }
.hero-sub em { color: var(--text); font-style: normal; background: var(--grad-soft); padding: 0 6px; border-radius: 6px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat { display: flex; align-items: baseline; gap: 3px; justify-content: center; }
.stat-num { font-family: 'Sora'; font-size: 2.6rem; font-weight: 800; }
.stat-plus { font-size: 1.6rem; font-weight: 700; color: var(--indigo); }
.stat-label { display: block; font-size: 0.82rem; color: var(--text-dim); margin-top: 4px; }

/* Hero dashboard visual */
.hero-visual { margin-top: 70px; max-width: 920px; margin-inline: auto; }
.dashboard-card { padding: 0; overflow: hidden; animation: floatCard 6s ease-in-out infinite; }
@keyframes floatCard { 50% { transform: translateY(-14px); } }
.dash-head { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid var(--border); }
.dash-dots { display: flex; gap: 7px; }
.dash-dots span { width: 11px; height: 11px; border-radius: 50%; }
.dash-dots span:nth-child(1) { background: #ff5f57; }
.dash-dots span:nth-child(2) { background: #febc2e; }
.dash-dots span:nth-child(3) { background: #28c840; }
.dash-title { font-family: 'Sora'; font-size: 0.85rem; color: var(--text-dim); }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); padding: 16px; }
.dash-metric { background: var(--bg-2); border-radius: 14px; padding: 18px; }
.dash-metric.wide { grid-column: 1 / -1; }
.mini-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.mini-num { font-family: 'Sora'; font-size: 1.5rem; font-weight: 700; }
.mini-num span { font-size: 0.9rem; color: var(--text-dim); margin-left: 6px; }
.mini-num.green { color: var(--emerald); }
.mini-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); margin-top: 12px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; width: 70%; background: var(--grad); border-radius: 4px; }
.mini-bar.green i { background: var(--emerald); }
.mini-tag { display: inline-block; margin-top: 10px; font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; background: rgba(52,211,153,0.15); color: var(--emerald); }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 70px; margin-top: 12px; }
.mini-chart i { flex: 1; background: var(--grad); border-radius: 3px 3px 0 0; opacity: 0.85; }
.dash-ai-tap { padding: 16px 22px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-dim); display: flex; gap: 12px; align-items: start; }
.dash-ai-tap em { color: var(--text); }
.tap-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--indigo); box-shadow: 0 0 10px var(--indigo); flex-shrink: 0; margin-top: 5px; animation: pulse 1.8s infinite; }

@media (max-width: 640px) {
  .dash-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 26px; }
}

/* ---------- TRUST ---------- */
.trust { padding: 50px 24px; text-align: center; }
.trust-label { color: var(--text-faint); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 24px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 44px; opacity: 0.6; }
.trust-logos span { font-family: 'Sora'; font-size: 1.15rem; font-weight: 600; color: var(--text-dim); white-space: nowrap; }

/* ---------- FEATURES ---------- */
.feature-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { padding: 34px 30px; transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; position: relative; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity 0.4s; }
.feature-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.feature-card:hover::after { opacity: 0.5; }
.feature-card > * { position: relative; z-index: 1; }
.feature-icon { font-size: 2.2rem; margin-bottom: 18px; display: inline-block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.feature-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.98rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------- CAPABILITIES / TABS ---------- */
.capabilities { max-width: var(--maxw); margin: 0 auto; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.tab {
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-dim); font-weight: 600; font-size: 0.92rem;
  transition: 0.35s var(--ease);
}
.tab:hover { color: var(--text); border-color: var(--border-strong); }
.tab.active { background: var(--grad); color: #06121f; border-color: transparent; }
.tab-panels { position: relative; }
.tab-panel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; animation: fadePanel 0.5s var(--ease); }
.tab-panel.active { display: grid; }
@keyframes fadePanel { from { opacity: 0; transform: translateY(12px); } }
.tab-text h3 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 20px; }
.tab-text ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tab-text li { position: relative; padding-left: 30px; color: var(--text-dim); }
.tab-text li::before { content: '▹'; position: absolute; left: 0; color: var(--indigo); font-size: 1.1rem; }
.tab-visual { height: 260px; border-radius: var(--radius); overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 24px; }
.viz-bar { width: 14%; background: var(--grad); border-radius: 8px 8px 0 0; animation: growBar 1.4s var(--ease) infinite alternate; }
@keyframes growBar { to { filter: brightness(1.25); } }
.viz-up { width: 100%; height: 60%; background: var(--grad); border-radius: 12px 12px 0 0; position: relative; animation: growBar 2s var(--ease) infinite alternate; }
.viz-up::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,0.06) 30px 31px); }
.viz-chat { flex-direction: column; justify-content: center; gap: 12px; }
.viz-chat span { padding: 10px 16px; border-radius: 12px; font-size: 0.9rem; max-width: 85%; }
.viz-chat span:first-child { background: rgba(255,255,255,0.06); border-radius: 4px 12px 12px 12px; }
.viz-chat .ai { background: var(--grad); color: #06121f; align-self: flex-start; border-radius: 12px 4px 12px 12px; }
.viz-alert { align-items: center; justify-content: center; background: rgba(232,121,249,0.1) !important; }
.viz-alert { font-size: 1.3rem; font-family: 'Sora'; color: var(--pink); animation: pulseAlert 2s infinite; }
@keyframes pulseAlert { 50% { opacity: 0.5; } }
.viz-pie { position: relative; }
.viz-pie { width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(var(--indigo) 0 30%, var(--pink) 30% 60%, var(--cyan) 60% 85%, rgba(255,255,255,0.1) 85% 100%); animation: spinGrad 10s linear infinite; }
.viz-fac { flex-direction: row; align-items: center; justify-content: center; gap: 20px; }
.viz-fac span { font-size: 2.4rem; animation: floatFac 3s ease-in-out infinite; }
.viz-fac span:nth-child(2) { animation-delay: 0.4s; }
.viz-fac span:nth-child(3) { animation-delay: 0.8s; }
.viz-fac span:nth-child(4) { animation-delay: 1.2s; }
@keyframes floatFac { 50% { transform: translateY(-12px); } }
@media (max-width: 800px) { .tab-panel { grid-template-columns: 1fr; gap: 28px; } .tab-visual { height: 200px; } }

/* ---------- SOLUTIONS ---------- */
.solutions { max-width: var(--maxw); margin: 0 auto; }
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.solution-item { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: 0.4s var(--ease); position: relative; }
.solution-item:hover { transform: translateY(-6px); border-color: var(--indigo); background: rgba(129,140,248,0.06); }
.solution-num { font-family: 'Sora'; font-size: 2.6rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0.8; }
.solution-item h3 { font-size: 1.25rem; margin: 6px 0 10px; }
.solution-item p { color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 900px) { .solution-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .solution-grid { grid-template-columns: 1fr; } }

/* ---------- FACILITY MANAGEMENT ---------- */
.facility { max-width: var(--maxw); margin: 0 auto; }
.facility-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.facility-card { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s; position: relative; overflow: hidden; }
.facility-card::before { content: ''; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity 0.4s; }
.facility-card:hover { transform: translateY(-8px); border-color: var(--border-strong); box-shadow: var(--shadow-glow); }
.facility-card:hover::before { opacity: 0.5; }
.facility-card > * { position: relative; z-index: 1; }
.facility-icon { font-size: 2.4rem; margin-bottom: 14px; display: inline-block; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)); }
.facility-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.facility-card > p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 14px; }
.facility-stat { font-size: 0.85rem; color: var(--emerald); font-weight: 600; padding-top: 12px; border-top: 1px solid var(--border); }
.facility-stat b { color: var(--text); }
.facility-showcase { margin-top: 60px; }
.facility-monitor { padding: 0; overflow: hidden; }
.monitor-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.monitor-title { font-family: 'Sora'; font-size: 0.9rem; }
.status-live { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--emerald); font-weight: 600; }
.monitor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); }
.monitor-cell { background: var(--bg-2); padding: 18px 20px; }
.monitor-cell.wide { grid-column: 1 / -1; }
.mc-label { font-size: 0.72rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.mc-val { font-family: 'Sora'; font-size: 1.6rem; font-weight: 700; }
.mc-val good { color: var(--emerald); }
.mc-val small { font-size: 0.8rem; color: var(--text-dim); font-weight: 400; }
.mc-bar { height: 6px; border-radius: 4px; background: rgba(255,255,255,0.08); margin-top: 10px; overflow: hidden; }
.mc-bar i { display: block; height: 100%; width: 70%; background: var(--grad); border-radius: 4px; }
.mc-bar.good i { background: var(--emerald); }
.mc-orders { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.wo { font-size: 0.82rem; padding: 6px 12px; border-radius: 8px; }
.wo.done { background: rgba(52,211,153,0.12); color: var(--emerald); }
.wo.open { background: rgba(254,188,46,0.12); color: #febc2e; }
.wo.new { background: rgba(129,140,248,0.12); color: var(--indigo); }
.monitor-ai { padding: 16px 24px; border-top: 1px solid var(--border); font-size: 0.88rem; color: var(--text-dim); display: flex; gap: 12px; align-items: start; }
.monitor-ai em { color: var(--text); }
@media (max-width: 900px) { .facility-grid { grid-template-columns: 1fr 1fr; } .monitor-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .facility-grid { grid-template-columns: 1fr; } .monitor-grid { grid-template-columns: 1fr; } }

/* ---------- METRICS ---------- */
.metrics { max-width: var(--maxw); margin: 0 auto; }
.metric-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.metric-card { text-align: center; padding: 40px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.donut { position: relative; width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; }
.donut::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--indigo) calc(var(--p) * 1%), rgba(255,255,255,0.08) 0); -webkit-mask: radial-gradient(farthest-side, transparent 62%, #000 63%); mask: radial-gradient(farthest-side, transparent 62%, #000 63%); transition: --p 1.4s var(--ease); }
.donut span { font-family: 'Sora'; font-size: 2rem; font-weight: 800; }
.metric-card label { color: var(--text-dim); font-size: 0.9rem; }
@media (max-width: 800px) { .metric-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- HOW ---------- */
.how { max-width: var(--maxw); margin: 0 auto; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 30px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); position: relative; transition: 0.4s var(--ease); }
.step:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.step-num { font-family: 'Sora'; font-size: 3rem; font-weight: 800; color: rgba(129,140,248,0.25); line-height: 1; margin-bottom: 12px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.92rem; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .steps { grid-template-columns: 1fr; } }

/* ---------- TESTIMONIALS ---------- */
.testimonials { max-width: var(--maxw); margin: 0 auto; }
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.quote { padding: 34px 30px; display: flex; flex-direction: column; gap: 20px; transition: 0.4s var(--ease); }
.quote:hover { transform: translateY(-6px); }
.quote p { font-family: 'Sora'; font-size: 1.1rem; line-height: 1.5; }
.quote footer { margin-top: auto; color: var(--text-dim); font-size: 0.9rem; font-style: normal; }
.quote cite { color: var(--text); font-style: normal; font-weight: 600; }
@media (max-width: 900px) { .testimonial-track { grid-template-columns: 1fr; max-width: 620px; margin: 0 auto; } }

/* ---------- PRICING ---------- */
.pricing { max-width: var(--maxw); margin: 0 auto; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan-card { padding: 38px 32px; display: flex; flex-direction: column; position: relative; transition: 0.4s var(--ease); }
.plan-card:hover { transform: translateY(-8px); }
.plan-card.featured { border-color: var(--indigo); box-shadow: var(--shadow-glow); background: rgba(129,140,248,0.06); }
.plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #06121f; font-family: 'Sora'; font-weight: 700; font-size: 0.78rem; padding: 6px 18px; border-radius: 999px; }
.plan-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 12px; }
.price .amt { font-family: 'Sora'; font-size: 2.8rem; font-weight: 800; }
.price .per { color: var(--text-dim); font-size: 1rem; }
.plan-card > p { color: var(--text-dim); margin-bottom: 22px; font-size: 0.95rem; }
.plan-card ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; flex: 1; }
.plan-card li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.94rem; }
.plan-card li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { margin-bottom: 14px; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: var(--panel); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; background: none; border: none; color: var(--text); font-family: 'Sora'; font-size: 1.05rem; font-weight: 600; text-align: left; }
.faq-q .icon { font-size: 1.4rem; color: var(--indigo); transition: transform 0.4s var(--ease); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-item.open .faq-q { color: var(--indigo); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.5s var(--ease); }
.faq-item.open .faq-a { max-height: 300px; }
.faq-a p { padding: 0 24px 22px; color: var(--text-dim); }

/* ---------- CONTACT ---------- */
.contact { max-width: 1000px; margin: 0 auto; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px; }
.contact-copy h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 14px 0 16px; }
.contact-copy > p { color: var(--text-dim); margin-bottom: 24px; }
.contact-facts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.contact-facts li { color: var(--text-dim); font-size: 0.95rem; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; color: var(--text-dim); font-weight: 600; }
.field input, .field select, .field textarea {
  padding: 13px 16px; border-radius: 12px; border: 1px solid var(--border);
  background: rgba(255,255,255,0.03); color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.3s, background 0.3s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); background: rgba(129,140,248,0.05); }
.field textarea { resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a7b1c9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.error { color: #ff7b7b; font-size: 0.8rem; min-height: 1em; }
.field.error input, .field.error textarea { border-color: #ff7b7b; }
.form-status { font-size: 0.95rem; min-height: 24px; text-align: center; font-weight: 600; }
.form-status.ok { color: var(--emerald); }
.form-status.err { color: #ff7b7b; }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(6,18,31,0.3); border-top-color: #06121f; border-radius: 50%; display: inline-block; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) { .contact-wrap { grid-template-columns: 1fr; padding: 30px; } }

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--border); padding: 70px 24px 30px; background: rgba(7,10,18,0.6); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-tag { color: var(--text-dim); font-size: 0.9rem; margin-top: 16px; max-width: 280px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.92rem; padding: 5px 0; transition: color 0.3s; }
.footer-col a:hover { color: var(--indigo); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--text-faint); font-size: 0.85rem; }
@media (max-width: 800px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal="delay-1"] { transition-delay: 0.1s; }
[data-reveal="delay-2"] { transition-delay: 0.2s; }
[data-reveal="delay-3"] { transition-delay: 0.3s; }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 120px 24px 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 12px; }
.legal .updated { color: var(--text-faint); margin-bottom: 32px; font-size: 0.9rem; }
.legal h2 { font-size: 1.4rem; margin: 36px 0 12px; }
.legal p, .legal li { color: var(--text-dim); margin-bottom: 14px; font-size: 1rem; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal a { color: var(--indigo); }
.legal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-dim); margin-bottom: 28px; font-size: 0.9rem; }
.legal-back:hover { color: var(--indigo); }

/* ---------- Page Hero (feature pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 90px);
  padding-bottom: 70px;
  text-align: center;
}
.page-hero .eyebrow { margin-bottom: 22px; }
.page-hero h1 { font-size: clamp(2.4rem, 6.5vw, 4.2rem); font-weight: 800; }
.page-hero p { color: var(--text-dim); font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 660px; margin: 20px auto 0; }
.page-hero-stats { display: flex; gap: 44px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }

/* ---------- Split content blocks ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; max-width: var(--maxw); margin: 0 auto; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split-text h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin-bottom: 18px; }
.split-text p { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 14px; }
.split-text ul { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-top: 8px; }
.split-text li { position: relative; padding-left: 30px; color: var(--text-dim); }
.split-text li::before { content: '▹'; position: absolute; left: 0; color: var(--indigo); font-size: 1.1rem; }
.split-visual { min-height: 280px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-2); overflow: hidden; }

/* ---------- Two-column feature grid ---------- */
.feat2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; max-width: var(--maxw); margin: 0 auto; }

/* ---------- CTA section ---------- */
.cta { max-width: 960px; margin: 0 auto; text-align: center; }
.cta h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 16px; }
.cta p { color: var(--text-dim); font-size: 1.15rem; margin-bottom: 32px; }
.cta-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Feature list (icon rows) ---------- */
.feat-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: var(--maxw); margin: 0 auto; }
.feat-item { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); transition: 0.4s var(--ease); }
.feat-item:hover { transform: translateY(-6px); border-color: var(--indigo); box-shadow: var(--shadow-glow); }
.feat-item .fi-icon { font-size: 2rem; margin-bottom: 12px; }
.feat-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feat-item p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- Pricing page ---------- */
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pricing-features li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.94rem; }
.pricing-features li::before { content: '✓'; position: absolute; left: 0; color: var(--emerald); font-weight: 700; }

/* ---------- Team / about ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: var(--maxw); margin: 0 auto; }
.about-card { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.about-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--indigo); }
.about-card p { color: var(--text-dim); font-size: 0.95rem; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--maxw); margin: 0 auto; }
.value-card { padding: 26px 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); text-align: center; }
.value-card .vi { font-size: 2.2rem; margin-bottom: 12px; }
.value-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.value-card p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- FAQ page (full width) ---------- */
.faq-page { max-width: 860px; margin: 0 auto; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.reverse { direction: ltr; }
  .feat2 { grid-template-columns: 1fr; }
  .feat-list { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .page-hero-stats { gap: 28px; }
}
@media (max-width: 500px) { .values-grid { grid-template-columns: 1fr; } }
