/* ==================== DESIGN TOKENS (OKLCH) ==================== */
@property --gradient-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 135deg;
}

@property --cta-hue {
  syntax: "<number>";
  inherits: false;
  initial-value: 50;
}

:root {
  /* Brand colors (OKLCH perceptually uniform) */
  --brand: oklch(0.58 0.14 240);
  --brand-light: color-mix(in oklab, var(--brand) 25%, white);
  --brand-dark: color-mix(in oklab, var(--brand) 75%, black);
  --accent: oklch(0.72 0.16 50);

  /* Tinted neutrals (subtle blue tint for cohesion) */
  --surface-1: oklch(0.99 0.006 240);
  --surface-2: oklch(0.95 0.010 240);
  --surface-3: oklch(0.22 0.012 240);
  --text-primary: oklch(0.18 0.008 240);
  --text-secondary: oklch(0.48 0.015 240);

  /* Spacing (4-point base system) */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Figtree', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px oklch(0 0 0 / 0.04);
  --shadow-md: 0 8px 24px oklch(0 0 0 / 0.08);
  --shadow-lg: 0 16px 48px oklch(0 0 0 / 0.12);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-1);
  line-height: 1.5;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: var(--brand-light);
  color: var(--text-primary);
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus states */
*:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==================== NAVIGATION ==================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) var(--space-xl);
  background: transparent;
  transition: background 300ms ease-out, padding 300ms ease-out;
}

.nav.scrolled {
  background: oklch(1 0 0 / 0.92);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: var(--space-md) var(--space-xl);
}

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

.nav-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 150ms ease-out;
}

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

.nav-cta {
  background: var(--brand) !important;
  color: white !important;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 999px;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 200ms ease-out;
}

/* ==================== HERO ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(var(--gradient-angle), var(--brand-light), var(--surface-1));
  animation: hero-gradient 20s linear infinite;
}

@keyframes hero-gradient {
  to { --gradient-angle: 495deg; }
}

.hero-inner {
  max-width: 800px;
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
  z-index: 2;
  animation: hero-fade-in 600ms ease-out;
}

@keyframes hero-fade-in {
  from {
    opacity: 0;
    translate: 0 40px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.hero-badge {
  display: inline-flex;
  background: white;
  padding: var(--space-sm) var(--space-lg);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-2xl);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 150ms ease-out;
  min-height: 44px;
}

.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--text-primary);
  padding: var(--space-lg) var(--space-2xl);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: all 150ms ease-out;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-height: 44px;
}

.btn-white:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 60px oklch(0 0 0 / 0.2);
}

/* ==================== SECTION SHARED ==================== */
.section {
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
}

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

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-4xl);
}

.section-label {
  display: inline-flex;
  background: var(--brand-light);
  color: var(--brand);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
}

/* ==================== SERVICES (VERTICAL SCROLLYTELLING) ==================== */
.services {
  background: var(--surface-1);
}

.services-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.service-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 300ms ease-out;
  animation: service-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

@keyframes service-reveal {
  from {
    opacity: 0;
    clip-path: inset(0 0 100% 0);
  }
  to {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.service-content {
  padding: var(--space-2xl);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.service-price {
  display: inline-flex;
  background: var(--brand-light);
  color: var(--brand);
  padding: var(--space-sm) var(--space-lg);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
}

/* ==================== STATS (DARK STRIP) ==================== */
.stats {
  background: var(--brand);
  color: white;
  padding: var(--space-4xl) var(--space-xl);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-3xl);
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.stat-label {
  font-size: 0.9375rem;
  opacity: 0.9;
  font-weight: 600;
}

/* ==================== ABOUT (IMAGE ON RIGHT) ==================== */
.about {
  background: var(--surface-2);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about-content {
  animation: about-fade-in linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 60%;
}

@keyframes about-fade-in {
  from {
    opacity: 0;
    translate: -40px 0;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.about-feature {
  background: white;
  padding: var(--space-lg);
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9375rem;
}

.about-visual {
  position: relative;
  animation: about-img-parallax linear;
  animation-timeline: scroll();
  animation-range: entry 0% exit 100%;
}

@keyframes about-img-parallax {
  to {
    translate: 0 -10%;
  }
}

.about-visual img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  display: block;
}

/* ==================== TESTIMONIALS ==================== */
.testimonials {
  background: white;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-2xl);
}

.testimonial-card {
  background: var(--surface-1);
  padding: var(--space-2xl);
  border-radius: 16px;
  transition: all 300ms ease-out;
  animation: testimonial-reveal linear both;
  animation-timeline: view();
  animation-range: entry 0% entry 70%;
}

@keyframes testimonial-reveal {
  from {
    opacity: 0;
    translate: 0 30px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: #f59e0b;
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
  font-size: 0.9375rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.9375rem;
}

.testimonial-location {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

/* ==================== CTA (SCROLL-DRIVEN GRADIENT) ==================== */
.cta {
  background: linear-gradient(135deg, oklch(0.72 0.16 var(--cta-hue)), var(--brand));
  color: white;
  padding: var(--space-4xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: cta-gradient-shift linear;
  animation-timeline: scroll();
  animation-range: entry 0% exit 100%;
}

@keyframes cta-gradient-shift {
  from {
    --cta-hue: 50;
  }
  to {
    --cta-hue: 240;
  }
}

.cta-inner {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.cta p {
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
}

.cta-note {
  margin-top: var(--space-lg);
  font-size: 0.875rem;
  opacity: 0.85;
  font-weight: 600;
}

/* ==================== CONTACT ==================== */
.contact {
  background: var(--surface-1);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: var(--space-3xl);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  padding: var(--space-lg);
  border: 2px solid color-mix(in oklab, var(--brand) 15%, var(--surface-2));
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--text-primary);
  transition: all 200ms ease-out;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 10%, transparent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: var(--space-md);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-card {
  background: white;
  padding: var(--space-2xl);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 200ms ease-out;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.contact-card h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: var(--space-sm);
}

.contact-card a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: color 150ms ease-out;
}

.contact-card a:hover {
  color: var(--brand-dark);
}

.contact-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.9375rem;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--surface-3);
  color: oklch(0.8 0.005 240);
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 500px;
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  border-bottom: 1px solid oklch(0.3 0.01 240);
  flex-wrap: wrap;
}

.footer-links a {
  color: oklch(0.75 0.008 240);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 150ms ease-out;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: var(--space-lg);
    right: var(--space-lg);
    background: white;
    border-radius: 16px;
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    gap: var(--space-md);
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .section {
    padding: var(--space-3xl) var(--space-lg);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .stats-inner {
    gap: var(--space-2xl);
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: var(--space-3xl) var(--space-lg);
  }

  .services-grid {
    gap: var(--space-lg);
  }

  .service-card img {
    height: 200px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}
