:root {
  --primary: #0066ff;
  --primary-dark: #0052cc;
  --primary-light: #3385ff;
  --secondary: #00d4aa;
  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-tertiary: #737373;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f2f5;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.nav-brand {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

.nav-menu a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: var(--text-primary);
}

.btn-contact {
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--bg-tertiary);
  color: var(--text-primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.hero {
  padding: 160px 0 120px;
  background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-title {
  font-size: 72px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

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

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

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-large {
  padding: 18px 48px;
  font-size: 18px;
}

.hero-visual {
  position: relative;
  height: 500px;
}

.floating-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  width: 280px;
  height: 180px;
  top: 20px;
  left: 40px;
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.card-2 {
  width: 240px;
  height: 160px;
  top: 140px;
  right: 60px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  animation-delay: -2s;
}

.card-3 {
  width: 200px;
  height: 140px;
  bottom: 60px;
  left: 80px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(2deg);
  }
}

.services {
  padding: 120px 0;
  background: var(--bg-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
}

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

.service-card {
  padding: 40px 32px;
  background: var(--bg-secondary);
  border-radius: 16px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  color: white;
}

.service-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

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

.about {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.about-text p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 40px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 40px;
}

.tech-item {
  aspect-ratio: 1;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  animation: pulse 3s ease-in-out infinite;
}

.tech-item:nth-child(1) { animation-delay: 0s; }
.tech-item:nth-child(2) { animation-delay: 0.3s; }
.tech-item:nth-child(3) { animation-delay: 0.6s; }
.tech-item:nth-child(4) { animation-delay: 0.9s; }
.tech-item:nth-child(5) { animation-delay: 1.2s; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.tech-item:nth-child(6) { animation-delay: 1.5s; }
.tech-item:nth-child(7) { animation-delay: 1.8s; }
.tech-item:nth-child(8) { animation-delay: 2.1s; }
.tech-item:nth-child(9) { animation-delay: 2.4s; }

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

.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 56px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.cta-content p {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta .btn {
  background: white;
  color: var(--primary);
}

.cta .btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 520px;
  margin: 40px auto 0;
  text-align: left;
}

#contact-form input,
#contact-form textarea {
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.15);
  color: white;
  outline: none;
  transition: background 0.2s;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

#contact-form input:focus,
#contact-form textarea:focus {
  background: rgba(255, 255, 255, 0.25);
}

#contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

#contact-form button {
  align-self: center;
}

#contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-success {
  font-size: 22px;
  font-weight: 600;
  margin-top: 32px;
  opacity: 0.95;
}

.btn-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 102, 255, 0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.footer {
  background: var(--text-primary);
  color: white;
  padding: 80px 0 32px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 80px;
  margin-bottom: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 12px;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.footer-links h4 {
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 600;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
}

@media (max-width: 968px) {
  .hero .container,
  .about-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    height: 400px;
  }

  .hero-title {
    font-size: 56px;
  }

  .section-title {
    font-size: 40px;
  }

  .about-text h2 {
    font-size: 40px;
  }

  .cta-content h2 {
    font-size: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 80px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

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

  .hero-visual {
    display: none;
  }

  .services {
    padding: 80px 0;
  }

  .about {
    padding: 80px 0;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta {
    padding: 80px 0;
  }

  .tech-grid {
    padding: 20px;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .section-title,
  .about-text h2,
  .cta-content h2 {
    font-size: 32px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
