/* =============================================
   ITPOOL TECHNOLOGIES — Shared Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary:        #ffffff;
  --primary-light:  #f8fafc;
  --accent:         #3b82f6;
  --accent-hover:   #2563eb;
  --accent-glow:    rgba(59,130,246,0.1);
  --neon:           #0891b2;
  --green:          #059669;
  --purple:         #7c3aed;
  --white:          #0f172a; /* Redefined to heading text color for automatic theme compliance */
  --off-white:      #f8fafc;
  --text:           #334155;
  --muted:          #64748b;
  --border:         rgba(15, 23, 42, 0.08);
  --glass:          rgba(15, 23, 42, 0.02);
  --glass-strong:   rgba(15, 23, 42, 0.04);
  --navbar-bg:      rgba(255, 255, 255, 0.85);
  --footer-bg:      #f8fafc;
  --card-shadow:    0 8px 32px rgba(15, 23, 42, 0.06);
  --radius:         16px;
  --radius-sm:      10px;
  --transition:     0.3s cubic-bezier(0.4,0,0.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 { font-family: 'Outfit', sans-serif; line-height: 1.2; }

img { max-width:100%; display:block; }
a  { text-decoration: none; color: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── NAVBAR ── */
.navbar {
  position: fixed; top:0; left:0; width:100%; z-index:1000;
  padding: 0;
  background: rgba(15, 23, 42, 0.92); /* Deep dark slate by default */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.9); /* Translucent white on scroll */
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 30%, var(--accent)); /* White to accent gradient by default */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  transition: background var(--transition);
}

.navbar.scrolled .logo {
  background: linear-gradient(135deg, var(--white) 30%, var(--accent)); /* Dark slate to accent gradient on scroll */
  -webkit-background-clip: text;
  background-clip: text;
}

.logo span { color: var(--accent); -webkit-text-fill-color: var(--accent); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7); /* Muted light gray for dark navbar */
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}

.navbar.scrolled .nav-links a {
  color: var(--muted); /* Standard muted gray for light navbar */
}

.nav-links a::after {
  content: '';
  position: absolute; bottom: -4px; left:0; right:0;
  height: 2px; border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: #ffffff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

.navbar.scrolled .nav-links a:hover, .navbar.scrolled .nav-links a.active { color: var(--white); }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Outfit', sans-serif;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all var(--transition);
  font-family: 'Outfit', sans-serif;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff; /* White spans for dark navbar */
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--white); /* Dark spans for light navbar */
}

/* ── SECTION TITLES ── */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
}

.section-header { text-align: center; margin-bottom: 4rem; }
.section-header .section-sub { margin: 0 auto; }

/* ── GLASS CARD ── */
.glass-card {
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.glass-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--card-shadow);
  border-color: rgba(59,130,246,0.3);
}

/* ── GRADIENT PILL ── */
.tag {
  display: inline-block;
  background: var(--accent-glow);
  color: var(--accent);
  border: 1px solid rgba(59,130,246,0.3);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* ── PAGE HERO ── */
.page-hero {
  padding: 160px 0 80px;
  background: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(59,130,246,0.2), transparent);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content:'';
  position: absolute; inset:0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 1.2rem;
  letter-spacing: -2px;
}

.page-hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* ── FOOTER ── */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 1rem;
  max-width: 280px;
  line-height: 1.8;
}

.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col ul { list-style:none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: var(--muted);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-contact-item .icon {
  width: 32px; height: 32px;
  background: var(--glass-strong);
  border-radius: 8px;
  display: flex; align-items:center; justify-content:center;
  font-size: 0.85rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.bi {
  line-height: 1;
  vertical-align: middle;
}

.footer-contact-item p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.footer-contact-item a {
  color: var(--muted);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { color: var(--muted); font-size: 0.85rem; }

.social-links { display:flex; gap:10px; }
.social-link {
  width: 36px; height: 36px;
  background: var(--glass-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items:center; justify-content:center;
  font-size: 0.9rem;
  color: var(--muted);
  transition: all var(--transition);
}
.social-link:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  background: var(--glass);
  padding: 2rem;
  text-align: center;
}

.stat-cell h3 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  font-family: 'Outfit', sans-serif;
  letter-spacing: -1px;
}

.stat-cell p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

/* ── CHECKMARK LIST ── */
.check-list { list-style: none; }
.check-list li {
  padding: 8px 0;
  color: var(--muted);
  font-size: 0.93rem;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  font-size: 0.85rem;
  width: 22px;
  height: 22px;
  background: rgba(16,185,129,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Outfit';
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}

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

@keyframes pulse-glow {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50%     { box-shadow: 0 0 30px 8px var(--accent-glow); }
}

.animate-up { animation: fadeUp 0.7s ease forwards; }
.animate-up-2 { animation: fadeUp 0.7s 0.15s ease both; }
.animate-up-3 { animation: fadeUp 0.7s 0.3s ease both; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 72px; left:0; right:0;
    background: rgba(15, 23, 42, 0.98); /* Dark background for dark navbar dropdown */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 1.5rem 2rem;
    gap: 1rem;
    z-index: 999;
  }
  .navbar.scrolled .nav-links.open {
    background: var(--primary-light); /* Light background for scrolled navbar dropdown */
    border-bottom: 1px solid var(--border);
  }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align:center; }
  .btn-primary { display:none; }
  .stats-bar { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 480px) {
  .stats-bar { grid-template-columns: 1fr 1fr; }
}
