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

:root {
  --bg: #f5f7fb;
  --fg: #0f1729;
  --primary: #3b5eff;
  --primary-fg: #ffffff;
  --primary-light: rgba(59, 94, 255, 0.15);
  --muted: #6b7a99;
  --border: #e2e6ef;
  --card: #ffffff;
  --surface: #eef1f8;
  --hero-from: #0f1729;
  --hero-to: #1a2a5e;
  --highlight: #5b8aff;
  --radius: 0.75rem;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 40px rgba(59,94,255,0.2);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Outfit', sans-serif; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.875rem;
  border: none; cursor: pointer; transition: all 0.2s;
  border-radius: var(--radius); text-align: center;
}
.btn-primary {
  background: var(--primary); color: var(--primary-fg);
  padding: 0.875rem 1.75rem; box-shadow: var(--shadow-lg);
}
.btn-primary:hover { opacity: 0.9; }
.btn-outline {
  background: transparent; color: var(--primary-fg);
  border: 1px solid rgba(255,255,255,0.2); padding: 0.875rem 1.75rem;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.8125rem; }
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 0.875rem; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,247,251,0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  height: 4rem; display: flex; align-items: center; justify-content: space-between;
}
.logo { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--primary); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--primary); }
.mobile-menu-btn {
  display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--fg);
}
.mobile-nav {
  display: none; flex-direction: column; gap: 1rem; padding: 1rem 1.5rem; border-top: 1px solid var(--border);
}
.mobile-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted); }

/* ===== Hero ===== */
.hero {
  position: relative; padding: 8rem 0 5rem; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.hero-glow {
  position: absolute; inset: 0; opacity: 0.1;
  background: radial-gradient(circle at 30% 50%, #5b8aff, transparent 60%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
}
.hero-content .badge {
  display: inline-block; padding: 0.375rem 1rem; border-radius: 999px;
  background: var(--primary-light); color: var(--primary-fg);
  font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.5rem;
}
.hero-content h1 {
  font-size: 3.5rem; font-weight: 800; color: var(--primary-fg); line-height: 1.1; letter-spacing: -0.02em;
}
.hero-content h1 .highlight { color: var(--highlight); }
.hero-content p { margin-top: 1.5rem; font-size: 1.125rem; color: rgba(255,255,255,0.65); max-width: 480px; }
.hero-buttons { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-image { display: flex; justify-content: center; }

/* Phone Mockup */
.phone-mockup {
  width: 280px; background: #1a2340; border-radius: 2rem; padding: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.phone-screen { background: #0f1729; border-radius: 1.25rem; padding: 1.25rem; }
.phone-header {
  font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1rem;
  color: #fff; margin-bottom: 1rem; text-align: center;
}
.number-item {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.8125rem; color: rgba(255,255,255,0.8);
}
.number-item:last-child { border-bottom: none; }
.flag { font-size: 1.25rem; }
.number-item span:nth-child(2) { flex: 1; }
.status {
  font-size: 0.6875rem; font-weight: 600; padding: 0.15rem 0.5rem; border-radius: 999px;
}
.status.active { background: rgba(34,197,94,0.2); color: #22c55e; }
.status.pending { background: rgba(234,179,8,0.2); color: #eab308; }

/* ===== Section Header ===== */
.section-header { text-align: center; max-width: 640px; margin: 0 auto 4rem; }
.section-header .label {
  font-size: 0.8125rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--primary);
}
.section-header h2 {
  margin-top: 0.75rem; font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em;
}
.section-header p { margin-top: 1.25rem; color: var(--muted); }

/* ===== About ===== */
.about { padding: 6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s;
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-value { font-family: 'Outfit', sans-serif; font-size: 2.5rem; font-weight: 800; color: var(--primary); }
.stat-label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); font-weight: 500; }

/* ===== Services ===== */
.services { padding: 6rem 0; background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 1rem;
  padding: 2rem; transition: all 0.3s;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.service-icon { font-size: 2.5rem; margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.25rem; font-weight: 700; transition: color 0.2s; }
.service-card:hover h3 { color: var(--primary); }
.service-card p { margin-top: 0.75rem; font-size: 0.875rem; color: var(--muted); line-height: 1.7; }

/* ===== Telegram ===== */
.telegram {
  position: relative; padding: 6rem 0; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
}
.telegram-glow {
  position: absolute; inset: 0; opacity: 0.1;
  background: radial-gradient(circle at 70% 40%, #5b8aff, transparent 50%);
}
.telegram-inner { position: relative; z-index: 1; text-align: center; max-width: 640px; margin: 0 auto; }
.telegram-icon { font-size: 3.5rem; margin-bottom: 1.5rem; }
.telegram-inner h2 {
  font-size: 2.5rem; font-weight: 700; color: var(--primary-fg); letter-spacing: -0.02em;
}
.telegram-inner p { margin-top: 1.25rem; font-size: 1.125rem; color: rgba(255,255,255,0.65); max-width: 540px; margin-left: auto; margin-right: auto; }
.telegram-inner .btn { margin-top: 2rem; }

/* ===== Footer ===== */
.footer { background: var(--fg); padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 3rem; }
.footer-logo { font-family: 'Outfit', sans-serif; font-size: 1.25rem; font-weight: 700; color: var(--bg); }
.footer-desc { margin-top: 1rem; font-size: 0.875rem; color: rgba(245,247,251,0.45); line-height: 1.7; }
.footer h4 { font-size: 0.8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--bg); }
.footer ul { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.75rem; }
.footer ul li, .footer ul a { font-size: 0.875rem; color: rgba(245,247,251,0.45); }
.footer ul a:hover { color: var(--bg); }
.footer-bottom {
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(245,247,251,0.08);
  text-align: center; font-size: 0.875rem; color: rgba(245,247,251,0.3);
}

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links, .navbar .btn-sm { display: none; }
  .mobile-menu-btn { display: block; }
  .mobile-nav.open { display: flex; }
  .hero { padding: 6rem 0 3rem; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2.25rem; }
  .hero-content p { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-image { margin-top: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .section-header h2 { font-size: 1.75rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
