/* ============================================
   ERP AI INTEGRATION — GLOBAL STYLES
   ============================================ */

:root {
  --primary: #0a1628;
  --accent: #0066ff;
  --accent-light: #3385ff;
  --accent-glow: rgba(0, 102, 255, 0.15);
  --green: #00c853;
  --yellow: #ffab00;
  --red: #ff3d00;
  --text: #e8edf5;
  --text-muted: #8a9bb5;
  --surface: #0d1f3c;
  --surface2: #112244;
  --surface3: #162d55;
  --border: rgba(0, 102, 255, 0.2);
  --border-light: rgba(255,255,255,0.07);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-accent: 0 4px 32px rgba(0,102,255,0.25);
  --transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY ---- */
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-muted); line-height: 1.75; }
a { color: var(--accent-light); text-decoration: none; transition: var(--transition); }
a:hover { color: #fff; }

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, #66aaff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- LAYOUT ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
}

/* ---- NAV ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 24px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 800; color: #fff;
  display: flex; align-items: center; gap: 10px;
}
.nav-logo .logo-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--accent), #0044cc);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 900; color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 9px 20px; border-radius: 8px; font-weight: 600; font-size: 0.85rem;
}
.nav-cta:hover { background: var(--accent-light) !important; color: #fff !important; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  transition: var(--transition); border: none; text-decoration: none;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); color: #fff; box-shadow: 0 8px 40px rgba(0,102,255,0.4); }
.btn-secondary {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--accent-glow); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; border-radius: 8px; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border-light); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); color: #fff; }

/* ---- CARDS ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
}
.card-icon {
  width: 52px; height: 52px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}

/* ---- BADGES ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 20px; font-size: 0.78rem; font-weight: 600;
}
.badge-blue { background: rgba(0,102,255,0.15); color: #66aaff; border: 1px solid rgba(0,102,255,0.3); }
.badge-green { background: rgba(0,200,83,0.12); color: #00e676; border: 1px solid rgba(0,200,83,0.3); }
.badge-yellow { background: rgba(255,171,0,0.12); color: #ffd740; border: 1px solid rgba(255,171,0,0.3); }
.badge-red { background: rgba(255,61,0,0.12); color: #ff6e40; border: 1px solid rgba(255,61,0,0.3); }

/* ---- STAT BLOCKS ---- */
.stat-block { text-align: center; }
.stat-block .stat-number {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-block .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-light); margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 20px; height: 2px; background: var(--accent);
}

/* ---- DIVIDERS ---- */
.divider { height: 1px; background: var(--border-light); margin: 0; }

/* ---- TRUST BAR ---- */
.trust-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 24px; padding: 16px 24px;
  background: var(--surface); border: 1px solid var(--border-light);
  border-radius: var(--radius); margin-top: 40px;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: var(--text-muted); font-weight: 500;
}
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ---- COMPARISON TABLE ---- */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
  padding: 14px 20px; text-align: left;
  border-bottom: 1px solid var(--border-light); font-size: 0.9rem;
}
.compare-table th { color: var(--text-muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; }
.compare-table td:first-child { color: var(--text-muted); }
.compare-table td:last-child { color: var(--text); font-weight: 500; }
.compare-table tr:last-child td { border-bottom: none; }
.check { color: var(--green); }
.cross { color: var(--red); }

/* ---- AUTHORITY INDICATORS ---- */
.authority-green { color: var(--green); font-weight: 700; }
.authority-yellow { color: var(--yellow); font-weight: 700; }
.authority-red { color: var(--red); font-weight: 700; }

/* ---- DEMO TERMINAL ---- */
.terminal {
  background: #060e1a; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  font-family: var(--font-mono); font-size: 0.82rem;
  line-height: 1.8; overflow-x: auto;
}
.terminal .t-prompt { color: var(--accent-light); }
.terminal .t-output { color: #a8c4e8; }
.terminal .t-success { color: var(--green); }
.terminal .t-warn { color: var(--yellow); }
.terminal .t-error { color: var(--red); }
.terminal .t-comment { color: #4a6080; }
.terminal .cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent-light); animation: blink 1s infinite; vertical-align: middle; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* ---- PROGRESS BARS ---- */
.progress-bar { height: 6px; background: var(--surface3); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transition: width 1.2s cubic-bezier(0.4,0,0.2,1); }

/* ---- FOOTER ---- */
footer {
  background: var(--surface); border-top: 1px solid var(--border-light);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-col h5 { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.88rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border-light); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: var(--text-muted); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp { from { opacity:0; transform:translateY(30px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
@keyframes float { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }
@keyframes spin { from{transform:rotate(0deg);} to{transform:rotate(360deg);} }
@keyframes shimmer { 0%{background-position:-200% 0;} 100%{background-position:200% 0;} }

.animate-fade-up { animation: fadeUp 0.7s ease forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease forwards; }

/* ---- HERO GLOW ---- */
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,102,255,0.12) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary); }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ---- UTILITY ---- */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.w-full { width: 100%; }
.hidden { display: none !important; }