/* =========================================
   Business Outcome Engineering — styles.css
   ========================================= */

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

:root {
  --navy-deep: #0f1a30;
  --navy: #1a2a4a;
  --navy-mid: #1e3158;
  --navy-light: #243560;
  --teal: #00c4cc;
  --teal-light: #33d4db;
  --teal-dim: #009aa0;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy-deep);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
  cursor: none;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--navy-deep); }
::-webkit-scrollbar-thumb { background: var(--teal-dim); border-radius: 2px; }

/* ---- SELECTION ---- */
::selection { background: rgba(0, 196, 204, 0.3); color: var(--white); }

/* ---- CUSTOM CURSOR ---- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  width: 10px; height: 10px;
  background: var(--teal);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(0, 196, 204, 0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.1), width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
}

body:has(a:hover) .cursor,
body:has(button:hover) .cursor {
  width: 16px; height: 16px;
  background: var(--teal-light);
}

body:has(a:hover) .cursor-follower,
body:has(button:hover) .cursor-follower {
  width: 56px; height: 56px;
  border-color: rgba(0, 196, 204, 0.6);
}

@media (pointer: coarse) {
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
}

/* ---- GRADIENT TEXT ---- */
.gradient-text {
  background: linear-gradient(135deg, var(--teal) 0%, #4dd9e0 50%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- NAVIGATION ---- */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(15, 26, 48, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 196, 204, 0.08);
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

.nav-cta-btn {
  position: relative;
  overflow: hidden;
}

.nav-cta-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s cubic-bezier(0.77, 0, 0.175, 1);
  z-index: 0;
  border-radius: 9999px;
}

.nav-cta-btn:hover::before { transform: scaleX(1); transform-origin: left; }
.nav-cta-btn span, .nav-cta-btn svg { position: relative; z-index: 1; }
.nav-cta-btn:hover { color: var(--navy-deep); }

/* Mobile menu */
#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

#menu-btn.open .menu-line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
#menu-btn.open .menu-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-btn.open .menu-line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- HERO ---- */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 196, 204, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 196, 204, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.orb-1 { background: radial-gradient(circle, var(--teal) 0%, transparent 70%); }
.orb-2 { background: radial-gradient(circle, #1a6fff 0%, transparent 70%); }
.orb-3 { background: radial-gradient(circle, var(--teal) 0%, transparent 70%); }

.hero-eyebrow { opacity: 0; transform: translateY(20px); }
.hero-headline { opacity: 0; transform: translateY(30px); }
.hero-sub { opacity: 0; transform: translateY(20px); }
.hero-body { opacity: 0; transform: translateY(20px); }
.hero-cta { opacity: 0; transform: translateY(20px); }
.hero-scroll { opacity: 0; }

/* Primary button shimmer */
.btn-shimmer {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transform: translateX(-100%);
  transition: none;
}

.primary-btn:hover .btn-shimmer {
  animation: shimmer 0.7s ease forwards;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Scroll line animation */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 0.7; transform: scaleY(1.2); }
}

/* ---- WHAT I DO ---- */
.glass-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease, background 0.3s ease;
}

.glass-stat:hover {
  background: rgba(0, 196, 204, 0.05);
  border-color: rgba(0, 196, 204, 0.2);
}

.glass-card-main {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.glass-card-glow {
  background: radial-gradient(circle, var(--teal) 0%, transparent 70%);
}

.feature-row {
  opacity: 0;
  transform: translateX(-15px);
}

/* ---- TIERS ---- */
.tiers-bg {
  background:
    radial-gradient(ellipse 60% 40% at 20% 50%, rgba(0, 196, 204, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 50%, rgba(26, 111, 255, 0.04) 0%, transparent 60%);
}

.tier-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), border-color 0.3s ease, background 0.3s ease, box-shadow 0.4s ease;
}

.tier-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 196, 204, 0.3);
  background: rgba(0, 196, 204, 0.04);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 196, 204, 0.08);
}

.tier-featured {
  background: rgba(0, 196, 204, 0.06);
  border: 1px solid rgba(0, 196, 204, 0.25);
  box-shadow: 0 0 40px rgba(0, 196, 204, 0.08);
}

.tier-featured:hover {
  background: rgba(0, 196, 204, 0.1);
  border-color: rgba(0, 196, 204, 0.5);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3), 0 0 60px rgba(0, 196, 204, 0.15);
}

.tier-featured-glow {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(0, 196, 204, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- PHILOSOPHY ---- */
.philo-quote {
  opacity: 0;
  transform: translateY(40px);
}

.quote-mark {
  opacity: 0;
  transform: translateY(20px);
}

.philo-attr {
  opacity: 0;
}

/* ---- CTA SECTION ---- */
.cta-glow {
  background: radial-gradient(ellipse, var(--teal) 0%, transparent 70%);
}

.cta-content {
  opacity: 0;
  transform: translateY(30px);
}

/* ---- SECTION DIVIDER ---- */
.section-divider {
  opacity: 0.6;
}

/* ---- GSAP INITIAL STATES ---- */
.wid-left, .wid-right,
.tiers-header,
.tier-card-1, .tier-card-2, .tier-card-3 {
  opacity: 0;
  transform: translateY(40px);
}

/* ---- LOGO HANDLING ---- */
.logo-img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.logo-img:hover { opacity: 1; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .orb-1, .orb-2 { display: none; }

  .hero-headline {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }
}

/* ---- UTILITY ---- */
.section-label {
  opacity: 0;
  transform: translateY(15px);
}
