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

/* ─── DESIGN TOKENS ─── */
:root {
  --accent: #FAFAF9;
  --accent-dim: #d4d4d0;
  --accent-glow: rgba(250, 250, 249, 0.06);
  --accent-glow-strong: rgba(250, 250, 249, 0.12);
  --cta-bg: #FAFAF9;
  --cta-text: #09090B;
  --black: #09090B;
  --dark: #0c0c0e;
  --dark-card: #111113;
  --dark-border: #1c1c1f;
  --dark-border-hover: #2a2a2e;
  --gray-100: #FAFAF9;
  --gray-200: #e4e4e2;
  --gray-400: #a1a1aa;
  --gray-500: #71717A;
  --gray-600: #52525b;
  --font-display: 'Outfit', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ─── BASE ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-display);
  background: var(--black);
  color: var(--gray-200);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ─── GLOBAL NOISE TEXTURE ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* ─── SELECTION ─── */
::selection {
  background: var(--accent);
  color: var(--black);
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--dark-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-600); }

/* ─── CANVAS PARTICLES ─── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── NAVIGATION ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.5s var(--ease-out-expo);
  backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--dark-border);
  padding: 0.85rem 2rem;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-100);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo .logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-dim);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(250, 250, 249, 0.15);
  animation: pulse-dot 3s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 10px rgba(250, 250, 249, 0.1); }
  50% { box-shadow: 0 0 16px rgba(250, 250, 249, 0.2); }
}

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

.nav-links a {
  color: var(--gray-400);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}

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

.nav-cta {
  background: var(--cta-bg);
  color: var(--cta-text) !important;
  padding: 0.55rem 1.25rem;
  border-radius: 6px;
  font-weight: 600 !important;
  transition: all 0.3s var(--ease-out-expo) !important;
}

.nav-cta:hover {
  box-shadow: 0 4px 20px rgba(250, 250, 249, 0.1);
  transform: translateY(-1px);
  opacity: 0.9;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--gray-200);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-gradient-1 {
  position: absolute;
  width: 800px;
  height: 800px;
  top: -200px;
  right: -200px;
  background: radial-gradient(circle, rgba(250, 250, 249, 0.03) 0%, transparent 70%);
  opacity: 0.5;
  animation: float-slow 20s ease-in-out infinite;
}

.hero-gradient-2 {
  position: absolute;
  width: 600px;
  height: 600px;
  bottom: -100px;
  left: -100px;
  background: radial-gradient(circle, rgba(250, 250, 249, 0.02) 0%, transparent 70%);
  opacity: 0.6;
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
}

/* ─── FLOATING ELEMENTS ─── */
.hero-float {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
}

.float-element {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--dark-border);
  border-radius: 14px;
  background: rgba(17, 17, 19, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0.35;
  transition: opacity 0.5s;
}

.float-element svg {
  width: 26px;
  height: 26px;
  fill: var(--gray-400);
  opacity: 0.7;
}

.float-element:hover {
  opacity: 0.6;
}

.float-1 { top: 15%; left: 6%; animation: float-el-1 12s ease-in-out infinite; }
.float-2 { top: 20%; right: 5%; animation: float-el-2 14s ease-in-out infinite; }
.float-3 { bottom: 28%; left: 4%; animation: float-el-3 16s ease-in-out infinite; }
.float-4 { bottom: 18%; right: 8%; animation: float-el-1 13s ease-in-out infinite reverse; }
.float-5 { top: 42%; left: 3%; animation: float-el-2 11s ease-in-out infinite; }
.float-6 { top: 12%; left: 30%; animation: float-el-3 15s ease-in-out infinite reverse; }
.float-7 { bottom: 32%; right: 3%; animation: float-el-1 17s ease-in-out infinite; }

@keyframes float-el-1 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(15px, -25px, 20px) rotate(2deg); }
}
@keyframes float-el-2 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(1deg); }
  50% { transform: translate3d(-20px, 20px, 15px) rotate(-3deg); }
}
@keyframes float-el-3 {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(2deg); }
  50% { transform: translate3d(10px, -15px, 25px) rotate(-1deg); }
}

/* ─── HERO CONTENT ─── */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid var(--dark-border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-400);
  margin-bottom: 2rem;
  background: rgba(15, 15, 15, 0.5);
  backdrop-filter: blur(10px);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-dim);
  border-radius: 50%;
  animation: pulse-dot 3s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--gray-100);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.35s forwards;
}

.hero h1 em {
  font-style: italic;
  font-weight: inherit;
  margin-right: 0.15em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--gray-400);
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.65s forwards;
}

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: var(--cta-bg);
  color: var(--cta-text);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0, 0, 0, 0.06) 50%, transparent 60%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(250, 250, 249, 0.08), 0 4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--gray-200);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid var(--dark-border);
  cursor: pointer;
  transition: all 0.35s var(--ease-out-expo);
}

.btn-secondary:hover {
  border-color: var(--dark-border-hover);
  background: rgba(255, 255, 255, 0.03);
  transform: translateY(-2px);
}

/* ─── HERO SCROLL INDICATOR ─── */
.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 1s forwards;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gray-600), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── SOCIAL PROOF BANNER ─── */
.social-proof {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  border-top: 1px solid var(--dark-border);
  border-bottom: 1px solid var(--dark-border);
  overflow: hidden;
  background: rgba(12, 12, 14, 0.5);
}

.social-proof-label {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-500);
  margin-bottom: 2rem;
  font-weight: 500;
}

.logo-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
  opacity: 0.35;
  transition: opacity 0.3s;
  flex-shrink: 0;
}

.logo-item:hover {
  opacity: 0.7;
}

.logo-item svg {
  width: 24px;
  height: 24px;
  fill: var(--gray-400);
}

.logo-item span {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: -0.01em;
}

@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── SECTION COMMONS ─── */
.section {
  position: relative;
  z-index: 2;
  padding: 7rem 2rem;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-400);
  margin-bottom: 1rem;
}

.section-label::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--gray-600);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-100);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 550px;
  line-height: 1.7;
}

/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─── HOW IT WORKS ─── */
.how-it-works .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.how-it-works .section-header .section-desc {
  margin: 0 auto;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 3rem;
  left: calc(33.33% - 1rem);
  right: calc(33.33% - 1rem);
  height: 1px;
  background: linear-gradient(90deg, var(--dark-border) 0%, var(--gray-600) 50%, var(--dark-border) 100%);
  opacity: 0.5;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  border: 1px solid var(--dark-border);
  background: var(--dark-card);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-100);
  position: relative;
  z-index: 1;
  transition: all 0.5s var(--ease-out-expo);
}

.step:hover .step-number {
  border-color: var(--gray-600);
  box-shadow: 0 0 30px rgba(250, 250, 249, 0.05);
}

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gray-100);
  margin-bottom: 0.75rem;
}

.step-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--dark-border);
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.65;
  max-width: 320px;
  margin: 0 auto;
}

/* ─── SERVICES ─── */
.services {
  background: var(--dark);
}

.services .section-header {
  margin-bottom: 3.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  position: relative;
  border: 1px solid var(--dark-border);
  border-radius: 16px;
  padding: 2rem;
  background: var(--dark-card);
  transition: all 0.5s var(--ease-out-expo);
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(circle at 50% 0%, rgba(250, 250, 249, 0.03) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.service-card:hover {
  border-color: var(--dark-border-hover);
  transform: translateY(-4px);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  border: 1px solid var(--dark-border);
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--gray-200);
  position: relative;
  z-index: 1;
}

.service-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gray-200);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-100);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ─── CTA / GET IN TOUCH ─── */
.cta-section {
  padding: 8rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(250, 250, 249, 0.03) 0%, transparent 60%);
  opacity: 0.5;
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}

.cta-section .section-label {
  justify-content: center;
  margin-bottom: 1.5rem;
}

.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-100);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--gray-500);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.cta-section .btn-primary {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

.cta-trust {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: var(--gray-600);
}

.cta-trust span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.cta-trust svg {
  width: 14px;
  height: 14px;
  stroke: var(--gray-500);
  fill: none;
  stroke-width: 1.5;
}

/* ─── FOOTER ─── */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--dark-border);
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--gray-500);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--gray-100);
}

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

  .steps::before {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(9, 9, 11, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    border-left: 1px solid var(--dark-border);
    transition: right 0.5s var(--ease-out-expo);
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero { padding: 7rem 1.5rem 5rem; }
  .section { padding: 5rem 1.5rem; }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-cta-group {
    flex-direction: column;
  }

  .hero-float {
    display: none;
  }

  .steps,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-trust {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  .nav { padding: 1rem; }
  .hero { padding: 6rem 1rem 4rem; }
  .section { padding: 4rem 1rem; }
}
