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

:root {
  --bg: #050810;
  --bg-2: #0a0e1a;
  --bg-3: #0f172a;
  --surface: #111827;
  --surface-2: #1e293b;
  --border: rgba(16, 185, 129, 0.12);
  --border-strong: rgba(16, 185, 129, 0.28);

  --text: #e2e8f0;
  --text-strong: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --accent-1: #10b981;
  --accent-2: #14b8a6;
  --accent-3: #22d3ee;

  --grad: linear-gradient(135deg, #10b981 0%, #14b8a6 50%, #22d3ee 100%);
  --grad-soft: linear-gradient(135deg, rgba(16,185,129,0.18), rgba(34,211,238,0.10));

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-glow: 0 0 0 1px rgba(16, 185, 129, 0.25), 0 20px 60px -20px rgba(16, 185, 129, 0.45);
  --shadow-card: 0 6px 24px -8px rgba(0, 0, 0, 0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text-strong);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p { color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--grad);
  color: #04221a;
  font-weight: 700;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent-1);
  background: rgba(16, 185, 129, 0.06);
  transform: translateY(-2px);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 0;
  background: rgba(5, 8, 16, 0);
  backdrop-filter: blur(0);
  transition: background .25s ease, padding .25s ease, backdrop-filter .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(5, 8, 16, 0.78);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom-color: var(--border);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { height: 32px; width: auto; }

.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav a:hover { color: var(--text-strong); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-strong) !important;
}
.nav-cta:hover {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--accent-1);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 80% 20%, rgba(16, 185, 129, 0.18), transparent 60%),
    radial-gradient(ellipse 600px 500px at 10% 90%, rgba(34, 211, 238, 0.14), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(16, 185, 129, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 185, 129, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, black, transparent 80%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.10);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-strong);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25); }
  50%      { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0.08); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  margin-bottom: 24px;
}

.hero p {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  max-width: 640px;
  margin-bottom: 40px;
  color: var(--text-muted);
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 580px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}
.hero-stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

/* ---------- Section header ---------- */
.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ---------- Services ---------- */
.services { padding: 120px 0; background: var(--bg); position: relative; }

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

.service-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.6), rgba(15, 23, 42, 0.4));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.service-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}
.service-card-img {
  height: 180px;
  overflow: hidden;
  position: relative;
}
.service-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.service-card:hover .service-card-img img { transform: scale(1.04); }

.service-card-body { padding: 28px; }
.service-icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 22px;
  margin-bottom: 18px;
}
.service-card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }

/* ---------- About ---------- */
.about {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.about-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(5,8,16,0.6));
  pointer-events: none;
}
.about-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.about-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}
.about-content > p { margin-bottom: 32px; font-size: 1.05rem; }

.features-list { display: flex; flex-direction: column; gap: 24px; }
.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 20px;
}
.feature-item h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--text-strong);
}
.feature-item p { font-size: 0.93rem; color: var(--text-muted); }

/* ---------- Stats section ---------- */
.stats-section {
  padding: 80px 0;
  background: var(--bg-2);
  position: relative;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(16, 185, 129, 0.08), transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-item-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.03em;
}
.stat-item-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.05em;
}

/* ---------- Team ---------- */
.team {
  padding: 120px 0;
  background: var(--bg);
}
.team-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.team-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 20px;
}
.team-content > p { margin-bottom: 32px; font-size: 1.05rem; }

.team-values { display: flex; flex-direction: column; gap: 12px; }
.value-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(17, 24, 39, 0.5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--text-strong);
  transition: border-color .2s ease, background .2s ease;
}
.value-tag:hover {
  border-color: var(--border-strong);
  background: rgba(16, 185, 129, 0.05);
}
.value-tag span { font-size: 1.2rem; }

.team-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.team-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ---------- Contact ---------- */
.contact {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  max-width: 980px;
  margin: 0 auto;
  align-items: start;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-item-icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-size: 18px;
}
.contact-item-text { display: flex; flex-direction: column; }
.contact-item-text strong {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-item-text span { color: var(--text-strong); font-size: 1rem; }

.contact-form {
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color .15s ease, background .15s ease;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-1);
  background: rgba(16, 185, 129, 0.04);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.contact-form .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  padding: 64px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p {
  margin-top: 16px;
  font-size: 0.93rem;
  max-width: 320px;
}
.footer-logo { height: 32px; margin-bottom: 8px; }
.footer h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-strong);
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color .15s ease;
}
.footer ul a:hover { color: var(--text-strong); }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 12, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 100;
}
.popup-overlay.active { opacity: 1; visibility: visible; }
.popup {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  max-width: 420px;
  width: calc(100% - 32px);
  text-align: center;
  transform: scale(0.94);
  transition: transform .25s ease;
  box-shadow: var(--shadow-card);
}
.popup-overlay.active .popup { transform: scale(1); }
.popup-icon {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
}
.popup-icon svg { width: 100%; height: 100%; }
.popup-circle {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 0.6s ease forwards;
}
.popup-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: draw 0.4s ease 0.4s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.popup-title { font-size: 1.4rem; margin-bottom: 8px; }
.popup-text { font-size: 0.95rem; margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .team-showcase, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  }
  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav a { padding: 10px 12px; }
  .mobile-toggle { display: flex; }

  .hero { padding: 140px 0 80px; }
  .hero-stats { grid-template-columns: 1fr; gap: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .services, .about, .team, .contact { padding: 80px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }
}
