/* ============================================================
   NEXUS AGENCY — STYLESHEET
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #080b12;
  --surface:     #0e1420;
  --surface-2:   #141c2e;
  --border:      rgba(255,255,255,.08);
  --text:        #e8edf5;
  --text-muted:  #7a8599;
  --accent:      #6c63ff;
  --accent-2:    #00d4ff;
  --accent-warm: #ff6b6b;
  --gradient:    linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  --radius:      16px;
  --radius-lg:   24px;
  --shadow:      0 24px 64px rgba(0,0,0,.45);
  --transition:  .35s cubic-bezier(.4,0,.2,1);
  --max-w:       1200px;
  --font:        'Inter', system-ui, sans-serif;
}

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

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

img, svg { display: block; }
a { color: inherit; text-decoration: none; }

/* ── Typography helpers ───────────────────────────────────── */
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

.section { padding: 120px 0; }
.section--dark   { background: var(--surface); }
.section--tinted { background: var(--surface-2); }

.section__header { max-width: 640px; margin-bottom: 72px; }
.section__header.center { text-align: center; margin: 0 auto 72px; }

.section__tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 18px;
}

.section__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 32px rgba(108,99,255,.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(108,99,255,.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.2);
  transform: translateY(-2px);
}

.btn--nav {
  padding: 10px 22px;
  font-size: .875rem;
  background: var(--gradient);
  color: #fff;
  border-radius: 100px;
}
.btn--nav:hover { opacity: .9; transform: translateY(-1px); }


/* ── Reveal animation ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
}
.nav.scrolled {
  background: rgba(8,11,18,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo-img {
  height: 52px;
  width: auto;
}

.nav__logo-img--footer {
  height: 44px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__links a:not(.btn) {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__links a:not(.btn):hover { color: var(--text); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: rgba(8,11,18,.97);
  border-top: 1px solid var(--border);
  padding: 16px 0 24px;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .2s;
}
.nav__mobile a:hover { color: var(--text); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 24px 120px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -200px; right: -100px;
}
.orb--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -150px; left: -100px;
  opacity: .2;
}
.orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent-warm), transparent 70%);
  top: 40%; left: 30%;
  opacity: .12;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.04);
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.3); }
}

.hero__title {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.07;
  letter-spacing: -.03em;
  margin-bottom: 28px;
}

.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: fade-bob 2.5s infinite;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--text-muted));
}
@keyframes fade-bob {
  0%, 100% { opacity: .4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-track span {
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-track .sep {
  color: var(--accent);
  font-size: .7rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .4s;
  border-radius: inherit;
}
.service-card:hover { border-color: rgba(108,99,255,.4); transform: translateY(-4px); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: .04; }

.service-card__icon {
  width: 52px; height: 52px;
  background: rgba(108,99,255,.12);
  border: 1px solid rgba(108,99,255,.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--accent);
}
.service-card__icon svg { width: 24px; height: 24px; }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ============================================================
   PROCESS
   ============================================================ */
.process__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.process__list::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
}

.process-step {
  display: flex;
  gap: 40px;
  padding: 40px 0 40px 0;
  align-items: flex-start;
  position: relative;
}
.process-step + .process-step { border-top: 1px solid var(--border); }

.process-step__number {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent);
  background: var(--bg);
  border: 1px solid rgba(108,99,255,.3);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.process-step__body { padding-top: 10px; }
.process-step__body h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.process-step__body p { color: var(--text-muted); font-size: .95rem; line-height: 1.7; max-width: 580px; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.cta-section { padding: 80px 0 120px; }

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  position: relative;
  overflow: hidden;
}

.cta-card__orbs { pointer-events: none; }
.orb--sm { width: 300px; height: 300px; }
.orb--a {
  background: radial-gradient(circle, var(--accent), transparent 70%);
  top: -100px; right: -80px;
  opacity: .2;
}
.orb--b {
  background: radial-gradient(circle, var(--accent-2), transparent 70%);
  bottom: -100px; left: -80px;
  opacity: .15;
}

.cta-card__content { margin-bottom: 48px; position: relative; z-index: 1; }
.cta-card__content h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.cta-card__content p { color: var(--text-muted); font-size: 1rem; }

.cta-email {
  position: relative;
  z-index: 1;
  display: inline-block;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 2px solid rgba(108,99,255,.35);
  padding-bottom: 4px;
  transition: border-color .2s, color .2s;
}
.cta-email:hover { color: #fff; border-color: var(--accent); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer__top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer__brand p {
  margin-top: 14px;
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px; }
.footer__col a { font-size: .88rem; color: var(--text-muted); transition: color .2s; }
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}
.footer__bottom span { font-size: .82rem; color: var(--text-muted); }

.footer__social { display: flex; gap: 16px; }
.footer__social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer__social a svg { width: 16px; height: 16px; }
.footer__social a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

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

@media (max-width: 768px) {
  .section { padding: 80px 0; }
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }
  .services__grid { grid-template-columns: 1fr; }
.cta-card { padding: 36px 24px; }
  .footer__top { flex-direction: column; }
  .footer__links { gap: 32px; }
  .process__list::before { display: none; }
  .process-step { gap: 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2.4rem; }
  .section__title { font-size: 1.8rem; }
  .cta-card__content h2 { font-size: 1.8rem; }
}
