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

/* ── Variables ── */
:root {
  --bg:          #050d1a;   /* section A — deep navy  */
  --bg-alt:      #0c1a2e;   /* section B — slate navy */
  --blue-dark:   #1d4ed8;
  --blue:        #3b82f6;
  --blue-light:  #60a5fa;
  --blue-dim:    rgba(96, 165, 250, 0.15);
  --white:       #ffffff;
  --muted:       #94a3b8;
  --border:      rgba(255, 255, 255, 0.1);
  --font:        'Inter', sans-serif;
}

/* ── Base ── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  cursor: none;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Custom Cursor ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  will-change: left, top;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-light);
  transition: transform 0.1s;
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--blue-light);
  opacity: 0.55;
  transition: transform 0.25s ease, opacity 0.25s, border-color 0.2s;
}

.cursor-ring.hover {
  transform: translate(-50%, -50%) scale(1.6);
  opacity: 0.9;
  border-color: var(--blue-light);
}

/* ── Vanta canvas ── */
#vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* ────────────────────────
   HERO
──────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ── Nav ── */
.nav {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 6rem;
}

.nav-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
}

.nav-cta {
  color: var(--blue-light) !important;
  border: 1px solid rgba(96, 165, 250, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue-light) !important;
  color: var(--bg) !important;
}

/* ── Hero body ── */
.hero-inner {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6rem 4rem;
}

/* ── Text column ── */
.hero-text {
  text-align: center;
  max-width: 800px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.07);
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-light);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

/* ── Headline ── */
.headline {
  font-size: clamp(3rem, 5.5vw, 5.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.accent {
  color: var(--blue-light);
}

/* Typed.js cursor override */
.typed-cursor {
  color: var(--blue-light);
  font-weight: 200;
  font-size: 0.9em;
  opacity: 1;
  animation: typedblink 0.7s infinite;
}

@keyframes typedblink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

.headline-sub {
  color: var(--muted);
  font-weight: 700;
  display: block;
  margin-top: 0.15em;
}

/* ── Subtitle ── */
.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

/* ── CTA row ── */
.cta-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: none;
  letter-spacing: 0.01em;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border: 1px solid var(--blue);
}

.btn-primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
}

/* ── Social icons ── */
.socials {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.22s;
  cursor: none;
}

.social-link:hover {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: var(--blue-dim);
}

/* ── Photo column ── */
.hero-photo {
  flex-shrink: 0;
}

.photo-wrap {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  overflow: hidden;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
  display: block;
}

/* ── Scroll hint ── */
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: var(--muted);
  opacity: 0.4;
  animation: scrollDrop 1.8s ease-in-out infinite;
  transform-origin: top;
}

@keyframes scrollDrop {
  0%   { transform: scaleY(0); opacity: 0; }
  50%  { transform: scaleY(1); opacity: 0.4; }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ────────────────────────
   SERVICES
──────────────────────── */
#services {
  background: var(--bg-alt);
  padding: 8rem 6rem 4rem;
  text-align: center;
}

.services-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.services-inner .section-heading {
  margin-bottom: 4rem;
}

/* ── Cards grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-bottom: 3.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  text-align: left;
  transition: border-color 0.25s, background 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.04);
  transform: translateY(-4px);
}

.card-featured {
  border-color: rgba(96, 165, 250, 0.3);
  background: rgba(59, 130, 246, 0.07);
}

.card-featured:hover {
  border-color: var(--blue-light);
  background: rgba(59, 130, 246, 0.1);
}

/* ── Card header ── */
.card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(96, 165, 250, 0.12);
  border-radius: 10px;
  color: var(--blue-light);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.card-tag {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

/* ── Card service list ── */
.card-services {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-services li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-services li i {
  color: var(--blue-light);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.card-services li span {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}

.services-cta {
  font-size: 1rem;
  padding: 1rem 2.5rem;
}

/* ────────────────────────
   ABOUT
──────────────────────── */
#about {
  background: var(--bg);
  padding: 8rem 6rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6rem;
}

/* ── About photo ── */
.about-photo {
  flex-shrink: 0;
  width: 340px;
}

.about-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 8%;
  border-radius: 16px;
  display: block;
}

/* ── About text ── */
.about-text {
  flex: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-light);
  margin-bottom: 1.25rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 4px;
  background: rgba(96, 165, 250, 0.07);
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 1.75rem;
}

.about-intro {
  font-size: 1.45rem;
  color: var(--white);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 580px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.about-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.about-name {
  color: var(--white);
  font-weight: 800;
}

.about-highlight {
  color: var(--blue-light);
  font-weight: 600;
}

/* ── Stats ── */
.stats-row {
  display: flex;
  gap: 0;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.stat:first-child {
  padding-left: 0;
  border-left: none;
}

.stat-number {
  font-size: clamp(1.6rem, 2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--white);
  line-height: 1;
}

.stat-accent {
  color: var(--blue-light);
  font-weight: 900;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ────────────────────────
   TRUSTED BY
──────────────────────── */
#trusted {
  background: var(--bg-alt);
  padding: 4rem 0 8rem;
  overflow: hidden;
}

.trusted-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 6rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

/* ── Marquee strip ── */
.marquee-wrap {
  overflow: hidden;
  /* Fade edges to transparent so it feels infinite */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 12%,
    black 88%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 32s linear infinite;
  /* Stable GPU layer — prevents blink on loop reset */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee-wrap {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }
}

.marquee-item {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 0.6rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}


.marquee-sep {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.2);
  padding: 0 1.25rem;
  flex-shrink: 0;
  user-select: none;
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* Responsive */
@media (max-width: 1024px) {
  .trusted-inner { padding: 0 3rem; }
}

@media (max-width: 768px) {
  #trusted { padding: 5rem 0; }
  .trusted-inner { padding: 0 1.5rem; margin-bottom: 3rem; }
  .marquee-item { font-size: 0.88rem; padding: 0.5rem 1.25rem; }
  .marquee-sep  { padding: 0 0.75rem; }
}

/* ────────────────────────
   FOOTER
──────────────────────── */
footer {
  background: #030913;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 5rem 2rem 3rem;
}

.footer-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin: 1rem 0;
}

.footer-cta {
  margin: 0.5rem 0 1.5rem;
}

.footer-copy {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.45);
  letter-spacing: 0.03em;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .nav            { padding: 1.75rem 3rem; }
  .hero-inner     { padding: 0 3rem 4rem; gap: 3rem; }
  .photo-wrap     { width: 300px; height: 300px; }
  #services       { padding: 6rem 3rem; }
  .services-grid  { gap: 1rem; }
  #about          { padding: 6rem 3rem; }
  .about-inner    { gap: 4rem; }
  .about-photo    { width: 280px; }
}

@media (max-width: 768px) {
  .nav        { padding: 1.5rem 1.5rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero-inner {
    flex-direction: column-reverse;
    padding: 2rem 1.5rem 5rem;
    gap: 2.5rem;
    text-align: center;
  }
  .cta-group  { justify-content: center; }
  .photo-wrap { width: 220px; height: 220px; }
  #services       { padding: 5rem 1.5rem; }
  .services-grid  { grid-template-columns: 1fr; }
  #about      { padding: 5rem 1.5rem; }
  .about-inner {
    flex-direction: column;
    gap: 3rem;
    text-align: center;
  }
  .about-photo  { width: 100%; max-width: 300px; margin: 0 auto; }
  .about-body   { max-width: 100%; }
  .stats-row    { justify-content: center; }
  .stat         { padding: 0 1.5rem; }
  .stat:first-child { padding-left: 0; }
  body          { cursor: auto; }
  .cursor-dot,
  .cursor-ring  { display: none; }
}
