@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Space+Grotesk:wght@300..700&display=swap');

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

:root {
  --background: #ffffff;
  --foreground: #1e2a3a;
  --primary: #29abe2;
  --primary-dark: #0d7cc4;
  --primary-glow: #4ec3f0;
  --primary-foreground: #ffffff;
  --muted-foreground: #6b7a8d;
  --border: #e8ecf0;
  --card: #ffffff;
  --accent-bg: #edf8fd;
  --accent-foreground: #0a6199;
  --secondary-bg: #f5f7fa;
  --gradient-primary: linear-gradient(135deg, #29abe2, #0d7cc4);
  --gradient-hero: linear-gradient(160deg, #f8f9fb 0%, #f0f7fb 50%, #f8f9fb 100%);
  --gradient-subtle: linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
  --shadow-soft: 0 4px 24px -4px rgba(41,171,226,0.12);
  --shadow-card: 0 2px 16px -2px rgba(30,42,58,0.06);
  --shadow-elevated: 0 12px 40px -8px rgba(41,171,226,0.18);
  --radius: 0.75rem;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

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

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

/* Gradient Utilities */
.gradient-primary {
  background: var(--gradient-primary);
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.navbar-logo img {
  height: 32px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--primary);
}
.btn-primary {
  background: var(--gradient-primary);
  color: var(--primary-foreground);
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-primary:hover { opacity: 0.9; }

.btn-primary-lg {
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  padding: 0.875rem 2rem;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-outline:hover { background: var(--secondary-bg); }

/* Mobile menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--foreground);
}
.mobile-toggle svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  background: var(--background);
  border-bottom: 1px solid var(--border);
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
}
.mobile-menu a:hover { color: var(--primary); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }
}

/* ===== HERO ===== */
.hero {
  background: var(--gradient-hero);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.08;
  background: var(--primary);
}
.hero-blob-1 { top: 80px; right: 0; width: 384px; height: 384px; }
.hero-blob-2 { bottom: 0; left: 0; width: 288px; height: 288px; background: var(--primary-glow); }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  background: var(--accent-bg);
  color: var(--accent-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero { padding: 10rem 0 8rem; }
  .hero h1 { font-size: 3.75rem; }
  .hero p { font-size: 1.25rem; }
}

/* ===== SECTIONS ===== */
.section {
  padding: 5rem 0;
}
.section-subtle {
  background: var(--gradient-subtle);
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--muted-foreground);
  max-width: 560px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .section { padding: 7rem 0; }
  .section-header h2 { font-size: 2.25rem; }
}

/* ===== WHY EVOFIC CARDS ===== */
.cards-grid {
  display: grid;
  gap: 1.5rem;
}
.cards-grid-4 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 768px) { .cards-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
  transition: transform 0.3s;
}
.card:hover .card-icon { transform: scale(1.1); }
.card h3 {
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}
.card p, .card li {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ===== PLATFORMS ===== */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto 5rem;
}
@media (min-width: 768px) { .platforms-grid { grid-template-columns: repeat(4, 1fr); } }

.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s, transform 0.3s;
}
.platform-card:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}
.platform-card span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.125rem;
}

/* ===== MARKETPLACE CHIPS ===== */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 720px;
  margin: 0 auto;
}
.chip {
  background: var(--accent-bg);
  color: var(--accent-foreground);
  padding: 0.625rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
  cursor: default;
}
.chip:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

/* ===== ABOUT ===== */
.about-text {
  max-width: 720px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.about-text p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}
.about-text strong {
  color: var(--foreground);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto 4rem;
}
@media (min-width: 768px) { .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value-item {
  text-align: center;
  padding: 1.25rem;
}
.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  color: var(--primary);
}
.value-item p {
  font-size: 0.875rem;
  font-weight: 600;
}

.approach-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-elevated); }
.service-card h3 {
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}
.service-card p {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  line-height: 1.6;
}
.service-card ul {
  list-style: none;
  padding: 0;
  margin-top: 0.25rem;
}
.service-card li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  padding: 0.25rem 0;
}
.service-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* ===== CONTACT ===== */
.contact-section {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}
.contact-section h2 {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .contact-section h2 { font-size: 2.25rem; } }
.contact-section p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer .container {
    flex-direction: row;
    justify-content: space-between;
  }
}
.footer-logo img { height: 24px; }
.footer p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}
.footer a.email {
  font-size: 0.875rem;
  color: var(--primary);
  font-weight: 500;
}
.footer a.email:hover { text-decoration: underline; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-scale.visible {
  opacity: 1;
  transform: scale(1);
}
