/* ═══════════════════════════════════════
   PHALANX CONSULTING — ULTRA MODERN
   ═══════════════════════════════════════ */

:root {
  --bg:       #06080c;
  --bg2:      #0c1018;
  --bg3:      #111825;
  --surface:  #151d2c;
  --border:   rgba(200, 165, 92, 0.08);
  --border-h: rgba(200, 165, 92, 0.25);
  --gold:     #c8a55c;
  --gold-dim: rgba(200, 165, 92, 0.5);
  --gold-glow:rgba(200, 165, 92, 0.1);
  --cream:    #e8e0d0;
  --muted:    #6b6860;
  --text:     #c4bcac;
  --white:    #f5f0e8;
  --font-display: 'Satoshi', sans-serif;
  --font-body:    'Outfit', sans-serif;
}

/* ─── RESET ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}
a { color: inherit; text-decoration: none; cursor: none; }
button, input, textarea { cursor: none; }

/* ─── CURSOR ─── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.35s cubic-bezier(.22,1,.36,1), height 0.35s cubic-bezier(.22,1,.36,1), border-color 0.3s;
}

/* ─── PARTICLE CANVAS ─── */
#particleCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ─── NAV ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 clamp(24px, 4vw, 56px);
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo-icon { color: var(--gold); display: flex; }
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--cream);
}
.nav-links {
  display: flex;
  gap: 40px;
}
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  overflow: hidden;
  transition: color 0.3s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.35s cubic-bezier(.22,1,.36,1);
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 10px 24px;
  transition: background 0.3s, transform 0.3s;
}
.nav-cta:hover { background: var(--gold-dim); transform: translateY(-1px); }
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-burger span {
  display: block; width: 24px; height: 1.5px;
  background: var(--cream);
  transition: all 0.35s;
}
.nav-burger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 5px); }
.nav-burger.active span:nth-child(2) { opacity: 0; }
.nav-burger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -5px); }

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 72px; left: 0; right: 0;
  background: rgba(6, 8, 12, 0.97);
  backdrop-filter: blur(24px);
  z-index: 99;
  padding: 32px clamp(24px, 4vw, 56px) 40px;
  display: none;
  flex-direction: column;
  gap: 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.active { display: flex; }
.mobile-link {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--cream);
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.4s ease forwards;
}
.mobile-link:nth-child(1) { animation-delay: 0s; }
.mobile-link:nth-child(2) { animation-delay: 0.05s; }
.mobile-link:nth-child(3) { animation-delay: 0.1s; }
.mobile-link:nth-child(4) { animation-delay: 0.15s; }

/* ─── HERO ─── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 140px clamp(24px, 6vw, 80px) 80px;
}
.hero-content { max-width: 900px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 40px;
}
.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -1.5px;
  margin-bottom: 32px;
}
.hero-line {
  display: block;
  overflow: hidden;
}
.hero-line-inner {
  display: block;
  color: var(--white);
}
.hero-accent {
  background: linear-gradient(135deg, var(--gold), #e8c96e, var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.7;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(200,165,92,0.25); }
.btn-primary:hover::before { transform: translateX(100%); }
.btn-full { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid var(--border-h);
  color: var(--cream);
  transition: border-color 0.3s, background 0.3s;
}
.btn-ghost:hover { border-color: var(--gold); background: var(--gold-glow); }

.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: clamp(24px, 6vw, 80px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line {
  width: 40px; height: 1px;
  background: var(--gold-dim);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: var(--gold);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ─── MARQUEE ─── */
.marquee-wrap {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  background: var(--bg2);
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.marquee-sep { color: var(--gold); font-size: 8px; opacity: 0.6; }

/* ─── SECTIONS ─── */
.section-header {
  margin-bottom: 64px;
  max-width: 560px;
}
.section-number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 3px;
  display: block;
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.5px;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ─── SERVICES ─── */
.services {
  position: relative;
  z-index: 1;
  padding: 120px clamp(24px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2px;
}
.svc-card {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 36px 32px 28px;
  transition: all 0.45s cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.svc-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.svc-card:hover {
  background: var(--bg3);
  border-color: var(--border-h);
  transform: translateY(-4px);
}
.svc-card:hover::before { opacity: 1; }
.svc-index {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 20px;
  opacity: 0.5;
}
.svc-icon {
  color: var(--gold);
  margin-bottom: 20px;
}
.svc-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
  line-height: 1.3;
}
.svc-body {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 20px;
}
.svc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.svc-tags span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  transition: border-color 0.3s, color 0.3s;
}
.svc-card:hover .svc-tags span { border-color: var(--border-h); color: var(--gold-dim); }

/* ─── STATS ─── */
.stats {
  position: relative;
  z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 72px clamp(24px, 6vw, 80px);
}
.stats-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -2px;
  display: inline;
}
.stat-plus {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--gold);
}
.stat-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 8px;
}

/* ─── CLIENTS ─── */
.clients {
  position: relative;
  z-index: 1;
  padding: 120px clamp(24px, 6vw, 80px);
  max-width: 1400px;
  margin: 0 auto;
}
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}
.client-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  transition: all 0.35s;
}
.client-card:hover {
  background: var(--bg3);
  border-color: var(--border-h);
}
.client-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--cream);
  transition: color 0.3s;
}
.client-card:hover .client-name { color: var(--gold); }
.client-arrow {
  font-size: 18px;
  color: var(--muted);
  transition: color 0.3s, transform 0.3s;
}
.client-card:hover .client-arrow { color: var(--gold); transform: translate(3px, -3px); }

/* ─── ABOUT ─── */
.about {
  position: relative;
  z-index: 1;
  padding: 120px clamp(24px, 6vw, 80px);
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.about-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.about-right { display: flex; flex-direction: column; gap: 0; }
.about-item {
  display: flex;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.about-item:first-child { padding-top: 0; }
.about-item-num {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  min-width: 32px;
  padding-top: 4px;
}
.about-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.about-item p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

/* ─── CONTACT ─── */
.contact {
  position: relative;
  z-index: 1;
  padding: 120px clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-text {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 32px;
  max-width: 420px;
}
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gold);
  transition: opacity 0.3s;
  letter-spacing: 0.3px;
}
.contact-links a:hover { opacity: 0.7; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg2);
  border: 1px solid var(--border);
  padding: 16px 18px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
  resize: vertical;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-glow);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #3a3d42; }

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 1;
  padding: 28px clamp(24px, 6vw, 80px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
}
.footer-name {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--cream);
}
.footer-right {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.4); }
}
@keyframes scrollPulse {
  0%   { left: -100%; }
  50%  { left: 100%; }
  100% { left: 100%; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* REVEAL */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .cursor, .cursor-follower { display: none; }
  body { cursor: auto; }
  a, button, input, textarea { cursor: auto; }
}
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero { padding: 120px 20px 60px; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
