/* ===== EMERGELERT — Shared Stylesheet ===== */

:root {
  --navy: #0F4C81;
  --navy-dark: #0A3560;
  --navy-light: #1A6AB1;
  --red: #D62828;
  --red-light: #E85555;
  --sky: #457B9D;
  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --text: #1D3557;
  --text-muted: #5A7A9A;
  --border: #D0DFF0;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(15, 76, 129, 0.10);
  --shadow-lg: 0 12px 48px rgba(15, 76, 129, 0.18);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--red); }

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

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
}
.nav-logo .logo-icon {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover { color: var(--navy); }
.nav-cta {
  background: var(--navy);
  color: white !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.nav-cta:hover { background: var(--navy-dark) !important; color: white !important; }

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 50%, var(--sky) 100%);
  color: white;
  padding: 96px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: #F4C430; }
.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 auto 36px;
}
.hero-buttons {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: white;
  color: var(--navy);
}
.btn-primary:hover { background: #EBF3FF; color: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }
.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); color: white; transform: translateY(-1px); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.15);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #F4C430;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: #E8F0FB;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
}
.section-header { margin-bottom: 52px; }

/* ===== FEATURES ===== */
#features { background: var(--surface); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--navy-light);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--sky));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== PRIVACY SECTION ===== */
#privacy-section {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
}
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.privacy-text .section-label { background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9); }
.privacy-text .section-title { color: white; }
.privacy-text .section-subtitle { color: rgba(255,255,255,0.75); max-width: 100%; }
.privacy-pledges {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.pledge {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.pledge-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.pledge-text strong { display: block; font-size: 0.9rem; color: white; margin-bottom: 2px; }
.pledge-text span { font-size: 0.82rem; color: rgba(255,255,255,0.65); }

.privacy-badge {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.privacy-badge-item {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.privacy-badge-item .icon { font-size: 2rem; margin-bottom: 10px; }
.privacy-badge-item strong { display: block; font-size: 0.9rem; color: white; font-weight: 700; }
.privacy-badge-item span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }

/* ===== LANGUAGES ===== */
#languages { background: var(--bg); }
.languages-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}
.lang-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: white;
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 1px 4px rgba(15,76,129,0.06);
}

/* ===== DOWNLOAD ===== */
#download {
  background: var(--surface);
  text-align: center;
}
#download .section-subtitle { margin: 0 auto; }
.store-badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 36px;
  flex-wrap: wrap;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--text);
  color: white;
  padding: 13px 22px;
  border-radius: var(--radius);
  transition: all var(--transition);
  min-width: 180px;
}
.store-badge:hover { background: var(--navy-dark); color: white; transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge .store-icon { font-size: 28px; flex-shrink: 0; }
.store-badge-text small { display: block; font-size: 0.7rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.05em; }
.store-badge-text strong { display: block; font-size: 1rem; font-weight: 700; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-wrap: wrap;
}
.footer-brand .nav-logo { color: white; }
.footer-brand p {
  font-size: 0.85rem;
  margin-top: 10px;
  max-width: 280px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: white; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: rgba(255,255,255,0.55); font-size: 0.8rem; }
.footer-bottom a:hover { color: white; }

/* ===== INNER PAGE (Privacy / Terms) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: white;
  padding: 64px 24px;
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.page-hero p { color: rgba(255,255,255,0.72); font-size: 1rem; }

.page-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}
.page-content .intro-box {
  background: #E8F0FB;
  border-left: 4px solid var(--navy);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin-bottom: 48px;
  font-size: 0.95rem;
  color: var(--text);
}
.policy-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.policy-section:last-child { border-bottom: none; }
.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
  margin-bottom: 12px;
}
.policy-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.policy-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .privacy-grid { grid-template-columns: 1fr; gap: 40px; }
  .privacy-badge { grid-template-columns: 1fr 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
  .hero-stats { gap: 32px; }
  .store-badges { flex-direction: column; align-items: center; }
  .store-badge { width: 100%; max-width: 240px; justify-content: center; }
}

@media (max-width: 480px) {
  .privacy-badge { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .stat-number { font-size: 1.6rem; }
}
