:root {
  --bg-color: #050b14;
  --text-color: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #10b981;
  --primary-glow: rgba(16, 185, 129, 0.4);
  --secondary: #0ea5e9;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Montserrat', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-main); background-color: var(--bg-color); color: var(--text-color); line-height: 1.6; overflow-x: hidden; }

/* Utilities */
.container { width: 90%; max-width: 1200px; margin: 0 auto; }

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--surface-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

/* Glass interactive glow — driven by main.js setting --mouse-x/--mouse-y */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255,255,255,0.04), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s;
}
.glass:hover::before { opacity: 1; }
.glass > * { position: relative; z-index: 2; }

.text-gradient { background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

h1, h2, h3 { line-height: 1.2; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }

.btn { display: inline-block; padding: 14px 28px; border-radius: 50px; font-weight: 600; text-decoration: none; transition: var(--transition); cursor: pointer; border: none; font-family: var(--font-main); font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #04121f; box-shadow: 0 0 24px var(--primary-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 40px var(--primary-glow); }
.btn-secondary { border: 1px solid var(--surface-border); color: var(--text-color); background: transparent; }
.btn-secondary:hover { border-color: var(--primary); color: var(--primary); }

/* Navbar */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; border-radius: 0; border-left: 0; border-right: 0; border-top: 0; }
.navbar.glass { overflow: visible; } /* glass clips overflow — required for the mobile dropdown */
.nav-content { display: flex; align-items: center; justify-content: space-between; padding: 0.8rem 0; }
.logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.logo-text { font-weight: 900; letter-spacing: 0.12em; color: var(--text-color); font-size: 1rem; }
.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-color); font-size: 1.6rem; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }

/* Hero */
.hero { min-height: 92vh; display: flex; align-items: center; position: relative; padding-top: 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(circle at 50% 30%, rgba(16, 185, 129, 0.15) 0%, rgba(5, 11, 20, 0) 80%); }
.tech-grid {
  position: absolute;
  inset: -50%;
  background-image: linear-gradient(rgba(16,185,129,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(16,185,129,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  transform-origin: center top;
  transform: perspective(600px) rotateX(55deg) translateY(-10%);
  animation: gridMove 20s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 10%, black 40%, transparent 90%);
}
@keyframes gridMove {
  0% { transform: perspective(600px) rotateX(55deg) translateY(-10%); }
  100% { transform: perspective(600px) rotateX(55deg) translateY(0); }
}
.hero-content { position: relative; z-index: 2; max-width: 820px; }
.hero-subtitle { color: var(--primary); font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 1rem; }
.hero-title { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 900; margin-bottom: 1.4rem; }
.hero-desc { color: var(--text-muted); font-size: 1.1rem; max-width: 620px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Sections */
.section { padding: 5.5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header p { color: var(--text-muted); margin-top: 0.8rem; }
.kicker { color: var(--primary); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.78rem; display: block; margin-bottom: 0.6rem; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: center; }
.about-text p { color: var(--text-muted); margin: 1rem 0 1.4rem; }
.features-list { list-style: none; display: grid; gap: 0.6rem; }
.features-list li { padding-left: 1.6rem; position: relative; font-weight: 600; }
.features-list li::before { content: "▮"; color: var(--primary); position: absolute; left: 0; }
.about-image-card { border-radius: 20px; padding: 2.5rem; display: flex; justify-content: center; align-items: center; }

/* Impact */
.impact-matrix { background: var(--surface); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.impact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.impact-item { border-radius: 16px; padding: 1.8rem 1.2rem; text-align: center; }
.impact-number { font-size: 2.2rem; color: var(--primary); font-weight: 900; line-height: 1; text-shadow: 0 0 15px var(--primary-glow); }
.impact-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.4rem; }

/* Engagements (vignettes) */
.engagement-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
.engagement-card { border-radius: 20px; padding: 2.2rem; }
.engagement-card h3 { font-size: 1.25rem; margin-bottom: 0.9rem; }
.engagement-card p { color: var(--text-muted); font-size: 0.97rem; }
.engagement-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.tag { font-size: 0.74rem; font-weight: 600; padding: 0.3rem 0.7rem; border-radius: 30px; border: 1px solid var(--surface-border); color: var(--text-muted); }
.tag.hot { border-color: var(--primary); color: var(--primary); }
.confidential-note { text-align: center; color: var(--text-muted); font-size: 0.85rem; margin-top: 2rem; }

/* Solutions */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.service-card { border-radius: 20px; padding: 2.2rem; transition: var(--transition); }
.service-card:hover { transform: translateY(-6px); border-color: rgba(16,185,129,0.4); box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15); }
.service-card h3 { margin: 1.2rem 0 0.8rem; font-size: 1.4rem; }
.service-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Service lines (market mirror) */
.lines-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.line-card { border-radius: 16px; padding: 1.6rem 1.4rem; transition: var(--transition); }
.line-card:hover { transform: translateY(-4px); border-color: rgba(14,165,233,0.45); }
.line-card h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.line-card p { color: var(--text-muted); font-size: 0.84rem; }
.lines-strapline { text-align: center; margin-top: 2.2rem; color: var(--text-muted); }
.lines-strapline strong { color: var(--text-color); }

/* AI section */
.ai-section { background: linear-gradient(180deg, rgba(16,185,129,0.05), transparent); border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.ai-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.ai-text p { color: var(--text-muted); margin: 1rem 0; }
.ai-list { list-style: none; display: grid; gap: 0.8rem; margin-top: 1.4rem; }
.ai-list li { padding-left: 1.8rem; position: relative; color: var(--text-color); font-size: 0.97rem; }
.ai-list li::before { content: "⚡"; position: absolute; left: 0; color: var(--primary); }
.ai-card { border-radius: 20px; padding: 2.4rem; }
.ai-card h3 { margin-bottom: 1rem; }
.ai-card p { color: var(--text-muted); font-size: 0.95rem; }

/* Packages */
.packages-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.package-card { border-radius: 20px; padding: 2.4rem; display: flex; flex-direction: column; }
.package-card.flagship { border-color: rgba(16,185,129,0.5); box-shadow: 0 0 40px rgba(16,185,129,0.12); }
.package-kicker { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 0.5rem; display: block; }
.package-card h3 { font-size: 1.3rem; margin-bottom: 0.4rem; }
.package-duration { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.2rem; }
.package-list { list-style: none; display: grid; gap: 0.55rem; margin-bottom: 1.4rem; }
.package-list li { padding-left: 1.5rem; position: relative; color: var(--text-muted); font-size: 0.93rem; }
.package-list li::before { content: "▸"; position: absolute; left: 0; color: var(--secondary); }
.package-training { margin-top: auto; font-size: 0.84rem; font-weight: 600; color: var(--primary); border-top: 1px dashed var(--surface-border); padding-top: 1rem; }
.packages-strapline { text-align: center; margin-top: 2.4rem; font-weight: 600; color: var(--text-color); }
.packages-strapline em { color: var(--primary); font-style: normal; }

/* Contact */
.contact-container { max-width: 760px; margin: 0 auto; }
.contact-info { border-radius: 20px; padding: 3rem; text-align: center; }
.contact-info h2 { font-size: 2rem; margin-bottom: 1rem; }
.contact-info p { color: var(--text-muted); margin-top: 0.8rem; }
.personal-contact { margin-top: 1.8rem; line-height: 1.9; display: inline-block; text-align: left; padding: 1.2rem 1.6rem; border-radius: 12px; background: rgba(0,0,0,0.25); border-left: 3px solid var(--primary); }
.personal-contact a { color: var(--primary); text-decoration: none; }
.personal-contact a:hover { text-decoration: underline; }

/* Footer */
.footer { border-top: 1px solid var(--surface-border); padding: 2.5rem 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { color: var(--text-muted); font-size: 0.8rem; text-align: right; }

/* Animations */
.fade-in-up, .fade-in-down, .fade-in-left, .fade-in-right { opacity: 0; transition: opacity 0.8s ease var(--delay, 0s), transform 0.8s ease var(--delay, 0s); }
.fade-in-up { transform: translateY(24px); }
.fade-in-down { transform: translateY(-24px); }
.fade-in-left { transform: translateX(-24px); }
.fade-in-right { transform: translateX(24px); }
.visible { opacity: 1; transform: none; }

/* Responsive — tablet/mobile */
@media (max-width: 900px) {
  .about-grid, .ai-grid, .engagement-grid, .packages-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .impact-grid { grid-template-columns: repeat(2, 1fr); }
  .lines-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 99; flex-direction: column; background: rgba(5,11,20,0.97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 1.2rem 5%; gap: 1rem; border-bottom: 1px solid var(--surface-border); box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 8px 0; font-size: 1rem; }
  .mobile-menu-btn { display: flex; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { text-align: center; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  .section { padding: 3rem 0; }
  .contact-info { padding: 1.8rem 1rem; }
  .contact-info h2 { font-size: 1.4rem; }
  .personal-contact { padding: 1rem 1.2rem; font-size: 0.95rem; }
  .service-card, .engagement-card, .ai-card, .package-card { padding: 1.6rem; }
  .impact-number { font-size: 1.8rem; }
  .hero-desc { font-size: 1rem; }
  .hero-actions .btn { width: 100%; text-align: center; }
}
