/* === TOKENS === */
:root {
  --color-bg: #F5F6FA;
  --color-text: #111319;
  --color-brand: #5B4FE9;
  --color-accent: #C9FF3D;
  --color-white: #ffffff;
  --color-dark: #0D0E14;
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s ease;
  --transition-slow: 0.8s ease;
  
  --shadow-sm: 0 2px 8px rgba(17, 19, 25, 0.05);
  --shadow-md: 0 4px 16px rgba(17, 19, 25, 0.08);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}
img, picture, video, canvas, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); line-height: 1.2; font-weight: 600; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; }

/* === TYPOGRAPHY & UTILITIES === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-padding { padding: 96px 0; }
.section-heading { font-size: 2.5rem; margin-bottom: 48px; letter-spacing: -0.02em; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.hidden { display: none !important; }

/* Focus States */
*:focus-visible { outline: 2px solid var(--color-brand); outline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-weight: 600;
  border-radius: 4px;
  transition: all var(--transition-fast);
  text-align: center;
}
.btn-primary { background: var(--color-brand); color: var(--color-white); }
.btn-primary:hover { background: #4a3fdc; transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--color-text); color: var(--color-text); background: transparent; }
.btn-outline:hover { background: var(--color-text); color: var(--color-white); }
.btn-white { background: var(--color-white); color: var(--color-brand); }
.btn-white:hover { background: #f0f0f0; transform: translateY(-2px); }

/* === NAV === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--color-white);
  z-index: 1000;
  transition: box-shadow var(--transition-fast), padding var(--transition-fast);
  padding: 20px 0;
}
.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 700; display: flex; align-items: flex-start; gap: 2px; }
.logo-chevron { color: var(--color-brand); margin-top: 4px; }
.main-nav { display: none; }
.nav-links { display: flex; gap: 32px; font-weight: 500; }
.nav-links a { transition: color var(--transition-fast); }
.nav-links a:hover { color: var(--color-brand); }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-actions .btn { display: none; }

/* Hamburger Menu */
.menu-toggle { display: flex; flex-direction: column; justify-content: center; width: 32px; height: 32px; z-index: 1001; }
.hamburger, .hamburger::before, .hamburger::after {
  content: ''; display: block; background: var(--color-text); height: 2px; width: 24px;
  transition: all var(--transition-fast);
}
.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(6px); }

/* Mobile Menu Active State */
.nav-open .site-header { background: var(--color-white); }
.nav-open .main-nav {
  display: flex; position: absolute; top: 100%; left: 0; right: 0; background: var(--color-white);
  flex-direction: column; padding: 24px; box-shadow: var(--shadow-sm); border-top: 1px solid #eaeaea;
}
.nav-open .nav-links { flex-direction: column; gap: 24px; font-size: 1.25rem; }
.nav-open .hamburger { background: transparent; }
.nav-open .hamburger::before { transform: rotate(45deg) translate(0, 0); }
.nav-open .hamburger::after { transform: rotate(-45deg) translate(2px, -2px); }

@media (min-width: 768px) {
  .main-nav { display: block; }
  .menu-toggle { display: none; }
  .nav-actions .btn { display: inline-flex; }
  .nav-open .main-nav { position: static; box-shadow: none; border-top: none; padding: 0; background: transparent; flex-direction: row; }
}

/* === HERO === */
.hero { padding: 160px 0 96px; min-height: 90vh; display: flex; align-items: center; }
.hero-container { display: grid; grid-template-columns: 1fr; gap: 64px; align-items: center; }
.hero-headline { font-size: 3rem; margin-bottom: 24px; letter-spacing: -0.02em; }
.hero-sub { font-size: 1.25rem; color: #4b5563; margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.chart-container { background: var(--color-white); border-radius: 12px; padding: 32px; box-shadow: var(--shadow-md); position: relative; }
.growth-chart { width: 100%; height: auto; display: block; margin-bottom: 24px; }
.chart-dot { opacity: 0; }
.hero-stats { display: flex; flex-direction: column; }
.stat-highlight { font-family: var(--font-mono); font-size: 3rem; font-weight: 700; color: var(--color-text); line-height: 1; display: flex; align-items: baseline; }
.stat-plus, .stat-percent { color: var(--color-brand); font-size: 2.5rem; }
.stat-label { font-size: 1.125rem; font-weight: 600; margin-top: 8px; font-family: var(--font-mono); }
.stat-sublabel { font-size: 0.875rem; color: #6b7280; margin-top: 4px; }

@media (min-width: 992px) {
  .hero-container { grid-template-columns: 1.1fr 0.9fr; }
  .hero-headline { font-size: 4rem; }
}

/* === MARQUEE === */
.marquee-section { background: var(--color-brand); color: var(--color-white); padding: 16px 0; overflow: hidden; display: flex; }
.marquee-track { display: flex; width: max-content; animation: marquee 25s linear infinite; }
.marquee-content { font-family: var(--font-mono); font-size: 1.125rem; padding-right: 2rem; white-space: nowrap; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { 
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-content[aria-hidden="true"] { display: none; }
  .marquee-content { white-space: normal; text-align: center; }
}

/* === SERVICES === */
.services-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.service-card { background: var(--color-white); border: 1px solid #e5e7eb; border-radius: 8px; padding: 40px 32px; transition: box-shadow var(--transition-fast), transform var(--transition-fast); }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon { color: var(--color-brand); margin-bottom: 24px; }
.service-title { font-size: 1.25rem; margin-bottom: 12px; }
.service-desc { color: #4b5563; }
@media (min-width: 768px) { .services-grid { grid-template-columns: 1fr 1fr; } }

/* === WORK / CASE STUDIES === */
.work-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.case-card { cursor: pointer; }
.case-img-wrapper { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 4/3; margin-bottom: 24px; background: #000; }
.case-img-wrapper::after { content: ''; position: absolute; inset: 0; background: rgba(91, 79, 233, 0.5); mix-blend-mode: multiply; transition: opacity var(--transition-normal); pointer-events: none; }
.case-img-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: filter var(--transition-normal), transform var(--transition-slow); }
.case-card:hover .case-img-wrapper::after { opacity: 0; }
.case-card:hover .case-img-wrapper img { filter: grayscale(0%); transform: scale(1.05); }
.case-content { display: flex; flex-direction: column; align-items: flex-start; }
.case-tag { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; color: var(--color-brand); margin-bottom: 8px; }
.case-client { font-size: 1.5rem; margin-bottom: 8px; }
.case-result { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; }
@media (min-width: 768px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }

/* === RESULTS === */
.results { background: var(--color-dark); color: var(--color-white); padding: 96px 0; }
.results .section-heading { margin-bottom: 64px; }
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 48px; text-align: center; }
.stat-value { font-family: var(--font-mono); font-size: 3.5rem; font-weight: 700; color: var(--color-accent); margin-bottom: 8px; line-height: 1; }
.stat-value .stat-plus { font-family: var(--font-body); font-weight: 400; font-size: 3rem; }
.results .stat-label { font-size: 1.125rem; color: #9ca3af; font-weight: 400; font-family: var(--font-body); }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

/* === PROCESS === */
.process-timeline { display: flex; flex-direction: column; gap: 48px; position: relative; }
.process-step { position: relative; z-index: 1; }
.step-number { font-family: var(--font-heading); font-size: 3rem; font-weight: 700; color: var(--color-brand); opacity: 0.2; margin-bottom: 16px; line-height: 1; transition: opacity var(--transition-fast); }
.process-step:hover .step-number { opacity: 1; }
.step-title { font-size: 1.5rem; margin-bottom: 12px; }
.step-desc { color: #4b5563; }
@media (min-width: 768px) {
  .process-timeline { flex-direction: row; gap: 24px; }
  .process-timeline::before { content: ''; position: absolute; top: 24px; left: 0; right: 0; height: 2px; background-image: linear-gradient(to right, #d1d5db 50%, transparent 50%); background-size: 12px 2px; background-repeat: repeat-x; z-index: 0; }
  .process-step { flex: 1; background: var(--color-bg); padding-top: 12px; }
}

/* === TEAM === */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; text-align: center; }
.team-photo { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 24px; filter: grayscale(100%); transition: filter var(--transition-normal); }
.team-member:hover .team-photo { filter: grayscale(0%); }
.team-name { font-size: 1.25rem; margin-bottom: 4px; }
.team-role { color: #6b7280; font-size: 0.875rem; }
@media (min-width: 768px) {
  .team-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .team-photo { width: 160px; height: 160px; }
}

/* === TESTIMONIALS === */
.testimonials { background: var(--color-white); }
.testimonial-carousel { position: relative; }
.testimonial-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; gap: 24px; padding-bottom: 32px; }
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-card { flex: 0 0 100%; scroll-snap-align: center; background: var(--color-bg); padding: 48px 32px; border-radius: 12px; display: flex; flex-direction: column; }
.quote-mark { font-family: var(--font-heading); font-size: 5rem; color: var(--color-brand); line-height: 0.5; margin-bottom: 24px; }
.quote-text { font-size: 1.25rem; font-style: italic; margin-bottom: 32px; flex-grow: 1; }
.stars { color: #fbbf24; letter-spacing: 2px; margin-bottom: 16px; }
.client-name { display: block; font-weight: 600; font-size: 1.125rem; font-family: var(--font-heading); }
.client-company { display: block; color: #6b7280; font-size: 0.875rem; }
.carousel-dots { display: flex; justify-content: center; gap: 12px; margin-top: 16px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #d1d5db; transition: background var(--transition-fast), transform var(--transition-fast); }
.dot.active { background: var(--color-brand); transform: scale(1.2); }
@media (min-width: 768px) {
  .testimonial-card { flex: 0 0 calc(33.333% - 16px); }
  .carousel-dots { display: none; }
}

/* === CTA BANNER === */
.cta-banner { position: relative; padding: 120px 0; background: var(--color-brand); color: var(--color-white); text-align: center; overflow: hidden; }
.cta-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.15; z-index: 0; }
.cta-container { position: relative; z-index: 1; }
.cta-heading { font-size: 3rem; margin-bottom: 16px; }
.cta-sub { font-size: 1.25rem; margin-bottom: 40px; opacity: 0.9; }

/* === CONTACT === */
.contact-split { display: grid; grid-template-columns: 1fr; gap: 64px; }
.info-list { display: flex; flex-direction: column; gap: 24px; margin-bottom: 48px; }
.info-list li { display: flex; align-items: flex-start; gap: 16px; font-size: 1.125rem; }
.info-list svg { color: var(--color-brand); flex-shrink: 0; margin-top: 2px; }
.social-links { display: flex; gap: 16px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-white); color: var(--color-text); transition: all var(--transition-fast); border: 1px solid #e5e7eb; }
.social-links a:hover { background: var(--color-brand); color: var(--color-white); border-color: var(--color-brand); transform: translateY(-2px); }

.contact-form-wrapper { background: var(--color-white); padding: 40px; border-radius: 12px; box-shadow: var(--shadow-sm); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 8px; font-size: 0.875rem; }
.form-group input, .form-group textarea { width: 100%; padding: 12px 16px; border: 1px solid #d1d5db; border-radius: 6px; background: var(--color-bg); transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--color-brand); box-shadow: 0 0 0 3px rgba(91, 79, 233, 0.1); }
.error-msg { display: none; color: #ef4444; font-size: 0.875rem; margin-top: 4px; }
.has-error input, .has-error textarea { border-color: #ef4444; }
.has-error .error-msg { display: block; }
.form-success { text-align: center; padding: 40px 0; }
.success-icon { display: flex; justify-content: center; margin-bottom: 24px; }
.form-success h3 { font-size: 1.5rem; margin-bottom: 8px; }

@media (min-width: 768px) {
  .contact-split { grid-template-columns: 1fr 1fr; }
}

/* === FOOTER === */
.site-footer { background: var(--color-white); border-top: 1px solid #e5e7eb; padding: 64px 0 32px; }
.footer-container { display: flex; flex-direction: column; gap: 40px; }
.footer-brand .logo { margin-bottom: 12px; }
.footer-brand .tagline { color: #6b7280; }
.footer-links nav { display: flex; flex-wrap: wrap; gap: 24px; margin-bottom: 32px; font-weight: 500; }
.footer-links nav a { transition: color var(--transition-fast); }
.footer-links nav a:hover { color: var(--color-brand); }
.copyright { color: #9ca3af; font-size: 0.875rem; }
@media (min-width: 768px) {
  .footer-container { flex-direction: row; justify-content: space-between; align-items: flex-end; }
  .footer-links { text-align: right; }
  .footer-links nav { justify-content: flex-end; }
}
