@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --success: #10b981;
  --danger: #ef4444;
  --bg: #f8fafc;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-section: #f1f5f9;
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 40px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --font-head: 'Nunito', sans-serif;
  --font-body: 'Poppins', sans-serif;
  --transition: all .25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== HEADER ===== */
.site-header {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.45rem;
  color: var(--text-dark);
}
.logo span { color: var(--primary); }
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.1rem;
}

.nav-menu { display: flex; gap: 4px; align-items: center; }
.nav-menu a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-menu a:hover, .nav-menu a.active {
  background: var(--primary-light);
  color: var(--primary);
}

.nav-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
}
.nav-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.4); background: var(--primary-dark) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2.5px; background: var(--text-dark); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #ede9fe 100%);
  padding: 80px 24px 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(37,99,235,.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(245,158,11,.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--primary-light); color: var(--primary);
  font-size: .8rem; font-weight: 700;
  padding: 6px 14px; border-radius: 50px;
  margin-bottom: 22px; letter-spacing: .5px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 18px;
}
.hero h1 span { color: var(--primary); }
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
  margin-left: auto; margin-right: auto;
}
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,99,235,.45); color: #fff; }
.btn-outline {
  background: var(--bg-white);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; transform: translateY(-2px); }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-white);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-item .stat-num {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 900;
  color: var(--primary);
}
.stat-item .stat-label { font-size: .82rem; color: var(--text-muted); font-weight: 500; }

/* ===== SECTION ===== */
.section { padding: 70px 24px; }
.section-alt { background: var(--bg-section); }

.container { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: .75rem; font-weight: 700;
  padding: 5px 14px; border-radius: 50px;
  margin-bottom: 14px; text-transform: uppercase; letter-spacing: .8px;
}
.section-header h2 {
  font-family: var(--font-head);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 900; color: var(--text-dark);
  margin-bottom: 12px;
}
.section-header p { color: var(--text-muted); max-width: 540px; margin: 0 auto; }

/* ===== APP CARD LINK WRAPPER ===== */
.app-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}
.app-card-link:hover { color: inherit; }

/* ===== APP CARDS ===== */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.app-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0; transition: var(--transition);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.app-card:hover::before { opacity: 1; }

.app-img {
  width: 68px; height: 68px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 14px;
  overflow: hidden;
}
.app-img img { width: 100%; height: 100%; object-fit: cover; }

.app-title {
  font-family: var(--font-head);
  font-weight: 800; font-size: 1rem;
  color: var(--text-dark); margin-bottom: 5px;
}
.app-meta {
  display: flex; gap: 10px; align-items: center;
  font-size: .78rem; color: var(--text-muted);
  margin-bottom: 10px;
}
.app-version {
  background: var(--primary-light); color: var(--primary);
  padding: 2px 8px; border-radius: 50px;
  font-weight: 700; font-size: .72rem;
}
.app-rating { display: flex; align-items: center; gap: 3px; color: var(--accent-dark); font-weight: 600; }
.app-desc { font-size: .83rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.app-download-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 10px;
  border-radius: 50px;
  font-weight: 700; font-size: .85rem;
  border: none; cursor: pointer;
  transition: var(--transition);
}
.app-download-btn:hover { box-shadow: 0 6px 18px rgba(37,99,235,.35); transform: scale(1.02); }

/* ===== FEATURES ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}
.feature-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: var(--transition);
}
.feature-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature-icon {
  width: 58px; height: 58px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin: 0 auto 16px;
}
.feature-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--text-dark); margin-bottom: 8px; }
.feature-card p { font-size: .83rem; color: var(--text-muted); }

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 60px 24px;
  text-align: center;
  color: #fff;
  position: relative; overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute; top: -50%; left: -10%;
  width: 300px; height: 300px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.cta-banner h2 { font-family: var(--font-head); font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 900; margin-bottom: 14px; }
.cta-banner p { opacity: .85; margin-bottom: 28px; font-size: 1rem; }
.btn-white { background: #fff; color: var(--primary); font-weight: 800; }
.btn-white:hover { background: var(--primary-light); color: var(--primary-dark); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--text-dark);
  color: #94a3b8;
  padding: 60px 24px 0;
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 48px;
  border-bottom: 1px solid #1e293b;
}
.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; line-height: 1.8; max-width: 260px; }
.footer-col h4 {
  font-family: var(--font-head);
  font-weight: 800; color: #fff;
  font-size: .95rem; margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { font-size: .85rem; color: #94a3b8; transition: var(--transition); }
.footer-col ul li a:hover { color: #fff; padding-left: 4px; }
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem;
  flex-wrap: wrap; gap: 10px;
}
.footer-bottom a { color: #64748b; }
.footer-bottom a:hover { color: #fff; }

/* ===== INNER PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  padding: 50px 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-family: var(--font-head); font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 900; color: var(--text-dark); margin-bottom: 10px; }
.page-hero p { color: var(--text-muted); font-size: 1rem; }

/* ===== CONTENT PAGE ===== */
.content-page { max-width: 840px; margin: 0 auto; padding: 60px 24px; }
.content-page h2 { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: var(--text-dark); margin: 36px 0 12px; }
.content-page h2:first-child { margin-top: 0; }
.content-page p { color: var(--text-body); margin-bottom: 16px; font-size: .95rem; }
.content-page ul { padding-left: 20px; margin-bottom: 16px; }
.content-page ul li { list-style: disc; color: var(--text-body); font-size: .95rem; margin-bottom: 8px; }
.last-updated { background: var(--primary-light); color: var(--primary); display: inline-block; padding: 5px 14px; border-radius: 50px; font-size: .8rem; font-weight: 700; margin-bottom: 28px; }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact-info-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.contact-info-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: var(--text-dark); margin-bottom: 20px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-icon { width: 42px; height: 42px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-item h4 { font-weight: 700; font-size: .88rem; color: var(--text-dark); }
.contact-item p { font-size: .83rem; color: var(--text-muted); }

.contact-form-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
}
.contact-form-card h3 { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; color: var(--text-dark); margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .83rem; font-weight: 600; color: var(--text-body); margin-bottom: 7px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 11px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .9rem;
  color: var(--text-dark); background: var(--bg);
  transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-msg { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .88rem; margin-top: 14px; display: none; }
.form-msg.success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; display: block; }
.form-msg.error { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; display: block; }

/* ===== ABOUT ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-text h2 { font-family: var(--font-head); font-size: clamp(1.5rem,2.5vw,2rem); font-weight: 900; color: var(--text-dark); margin-bottom: 16px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; }
.about-visual {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  border-radius: var(--radius-lg);
  height: 340px; display: flex; align-items: center; justify-content: center; font-size: 6rem;
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.team-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center; transition: var(--transition);
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.team-avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff; font-weight: 800; }
.team-card h4 { font-family: var(--font-head); font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.team-card span { font-size: .8rem; color: var(--text-muted); }

/* ===== BREADCRUMB ===== */
.breadcrumb { max-width: 1200px; margin: 0 auto; padding: 14px 24px; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed; top: 68px; left: 0; right: 0;
  background: var(--bg-white);
  padding: 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 600; font-size: .92rem; color: var(--text-body); }
.mobile-nav a:hover { background: var(--primary-light); color: var(--primary); }

/* ===== BACK TO TOP ===== */
.back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: #fff; border: none;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0; pointer-events: none;
  transition: var(--transition);
  z-index: 999;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .nav-menu { display: none; }
  .hamburger { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 55px 20px 65px; }
}
