:root {
  --primary-900: #1a0f0a;
  --primary-800: #3d251c;
  --primary-700: #5c3a2d;
  --primary-600: #7a4f3e;
  --primary-500: #96644f;
  --primary-400: #b08672;
  --primary-300: #c9a896;
  --primary-200: #e2cbba;
  --primary-100: #f0e4db;

  --accent-blue: #0066cc;
  --accent-teal: #00a896;
  --accent-gold: #d4a574;

  --neutral-950: #09090b;
  --neutral-900: #18181b;
  --neutral-800: #27272a;
  --neutral-700: #3f3f46;
  --neutral-600: #52525b;
  --neutral-500: #71717a;
  --neutral-400: #a1a1aa;
  --neutral-300: #d4d4d8;
  --neutral-200: #e4e4e7;
  --neutral-100: #f4f4f5;
  --neutral-50: #fafafa;

  --white: #ffffff;
  --black: #000000;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

  --radius-sm: 0.125rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--neutral-900);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand .brand-text {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary-700), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform var(--transition-base);
}

.nav-brand:hover .brand-text {
  transform: scale(1.05);
}

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

.nav-link {
  color: var(--neutral-700);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--neutral-900);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.cta-button {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--white);
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: 0 4px 14px 0 rgba(122, 79, 62, 0.3);
}

.nav-link.cta-button::after {
  display: none;
}

.nav-link.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(122, 79, 62, 0.4);
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--neutral-700);
  transition: all var(--transition-base);
}

.hero {
  padding-top: 5rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--neutral-50) 0%, rgba(150, 100, 79, 0.05) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(150, 100, 79, 0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-30px, -30px) rotate(120deg); }
  66% { transform: translate(30px, -30px) rotate(240deg); }
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 800px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--neutral-900);
  animation: fadeInUp 0.8s ease-out;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--primary-600), var(--accent-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-600);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.8s ease-out 0.1s both;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: var(--radius-xl);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--white);
  box-shadow: 0 4px 14px 0 rgba(122, 79, 62, 0.3);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(122, 79, 62, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--primary-700);
  border: 2px solid var(--primary-300);
}

.btn-secondary:hover {
  background: var(--primary-100);
  border-color: var(--primary-400);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-700);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--neutral-600);
  font-weight: 500;
}

.services {
  padding: 6rem 0;
  background: var(--white);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--neutral-600);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent-blue));
  transform: translateY(-100%);
  transition: transform var(--transition-base);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  transform: translateY(0);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(150, 100, 79, 0.1), rgba(0, 102, 204, 0.1));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  transform: rotate(5deg) scale(1.1);
  background: linear-gradient(135deg, rgba(150, 100, 79, 0.2), rgba(0, 102, 204, 0.2));
}

.service-icon svg {
  color: var(--primary-700);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-900);
  letter-spacing: -0.01em;
}

.service-card p {
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-features {
  list-style: none;
}

.service-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--neutral-700);
  font-size: 0.95rem;
}

.service-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-600);
  font-weight: bold;
}

.expertise {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--neutral-50) 0%, var(--white) 100%);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.tech-category h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--neutral-900);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tech-tag {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--neutral-700);
  transition: all var(--transition-fast);
  cursor: default;
}

.tech-tag:hover {
  background: linear-gradient(135deg, var(--primary-100), var(--neutral-100));
  border-color: var(--primary-300);
  color: var(--primary-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.process {
  padding: 6rem 0;
  background: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  position: relative;
  transition: all var(--transition-base);
}

.process-step:hover .step-number {
  transform: rotate(360deg) scale(1.1);
}

.process-step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--neutral-900);
}

.process-step p {
  color: var(--neutral-600);
  line-height: 1.7;
}

.about {
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--white) 0%, var(--neutral-50) 100%);
}

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 2rem;
  letter-spacing: -0.02em;
  color: var(--neutral-900);
}

.about-text p {
  font-size: 1.125rem;
  color: var(--neutral-600);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-highlights {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--neutral-200);
  transition: all var(--transition-base);
}

.highlight-item:hover {
  background: linear-gradient(135deg, rgba(150, 100, 79, 0.05), rgba(0, 102, 204, 0.05));
  border-color: var(--primary-300);
  transform: translateX(8px);
}

.highlight-item svg {
  color: var(--primary-600);
  flex-shrink: 0;
}

.highlight-item span {
  color: var(--neutral-700);
  font-weight: 500;
}

.cta-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--primary-700), var(--primary-800));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  opacity: 0.5;
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-content p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-section .btn-primary {
  background: var(--white);
  color: var(--primary-700);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary:hover {
  background: var(--neutral-100);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.3);
}

.footer {
  background: var(--neutral-900);
  color: var(--neutral-400);
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

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

.footer-links a {
  color: var(--neutral-400);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-base);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--neutral-800);
}

.footer-bottom p {
  font-size: 0.875rem;
}

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

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInBottom {
  from {
    opacity: 0;
    transform: translateY(60px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-animate {
  opacity: 0;
}

.scroll-animate.in-view {
  animation-duration: 0.8s;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up {
  animation-name: fadeInUp;
}

.fade-left {
  animation-name: fadeInLeft;
}

.fade-right {
  animation-name: fadeInRight;
}

.scale-in {
  animation-name: scaleIn;
}

.slide-bottom {
  animation-name: slideInBottom;
}

.delay-1 {
  animation-delay: 0.1s;
}

.delay-2 {
  animation-delay: 0.2s;
}

.delay-3 {
  animation-delay: 0.3s;
}

.delay-4 {
  animation-delay: 0.4s;
}

.delay-5 {
  animation-delay: 0.5s;
}

.delay-6 {
  animation-delay: 0.6s;
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    height: 100vh;
    padding-top: 5rem;
    transition: left var(--transition-base);
    box-shadow: var(--shadow-2xl);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

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

  .hero-stats {
    gap: 2rem;
  }

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

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

  .process-timeline {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}