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

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --white: #ffffff;
  --green: #10b981;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-700);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4 {
  color: var(--gray-900);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color .2s;
}

img {
  max-width: 100%;
  display: block;
}

.hidden { display: none !important; }

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

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

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--gray-700);
  border-color: var(--gray-300);
}

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

.btn-full {
  width: 100%;
}

.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
}

/* === Navigation === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all .3s;
}

.nav.scrolled {
  background: rgba(255,255,255,.95);
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
}

.logo-icon {
  font-size: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
}

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

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all .3s;
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: transform .3s;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    font-size: 17px;
    padding: 8px 0;
  }
}

/* === Hero === */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: -10%;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, rgba(37,99,235,.05) 100%);
  border-radius: 0 0 0 40%;
  z-index: -1;
}

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

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--gray-900);
}

.stat-label {
  font-size: 13px;
  color: var(--gray-400);
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--gray-200);
}

@media (max-width: 768px) {
  .hero { padding: 110px 0 60px; }
  .hero-bg { display: none; }
  .hero-subtitle { font-size: 16px; }
  .hero-stats { gap: 16px; }
  .stat-value { font-size: 20px; }
}

/* === Section Header === */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--gray-500);
}

/* === Services === */
.services {
  padding: 80px 0;
  background: var(--gray-50);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .3s;
}

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

.service-icon {
  font-size: 36px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.6;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 16px;
}

@media (max-width: 768px) {
  .services-grid { grid-template-columns: 1fr; }
  .services { padding: 60px 0; }
  .service-card { padding: 24px; }
}

/* === About === */
.about {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.about-content h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-highlights {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.highlight {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.highlight-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #d1fae5;
  color: var(--green);
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}

.highlight strong {
  display: block;
  font-size: 15px;
  color: var(--gray-900);
  margin-bottom: 2px;
}

.highlight span {
  font-size: 14px;
  color: var(--gray-500);
}

/* About Card */
.about-card {
  background: var(--dark);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
}

.about-card-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 24px;
}

.about-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.about-metric:last-of-type {
  border-bottom: none;
}

.metric-label {
  font-size: 15px;
  color: var(--gray-400);
}

.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--green);
}

.about-card-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .about { padding: 60px 0; }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* === Contact === */
.contact {
  padding: 80px 0;
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.contact-info > p {
  font-size: 17px;
  color: var(--gray-500);
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  transition: all .2s;
}

.contact-channel:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.channel-icon {
  font-size: 28px;
}

.contact-channel strong {
  display: block;
  font-size: 15px;
  color: var(--gray-900);
}

.contact-channel span {
  font-size: 13px;
  color: var(--gray-400);
}

/* Form */
.contact-form-wrapper {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
  transition: border-color .2s;
  outline: none;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-400);
}

.form-success {
  display: none;
  text-align: center;
  padding: 24px;
}

.form-success.show {
  display: block;
}

.success-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
}

.form-success strong {
  display: block;
  font-size: 20px;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--gray-500);
}

@media (max-width: 768px) {
  .contact { padding: 60px 0; }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .contact-form-wrapper { padding: 24px; }
}

/* === Footer === */
.footer {
  padding: 24px 0;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-left .logo {
  font-size: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

.footer-right a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-500);
}

.footer-right a:hover {
  color: var(--primary);
}

/* === Animations === */
.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}

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

.service-card:nth-child(2).animate { transition-delay: .1s; }
.service-card:nth-child(3).animate { transition-delay: .2s; }
.service-card:nth-child(4).animate { transition-delay: .3s; }
