@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&family=DM+Sans:wght@400;500;600&display=swap');

:root {
  --ig-pink: #E1306C;
  --ig-purple: #833AB4;
  --ig-blue: #405DE6;
  --gradient: linear-gradient(45deg, #E1306C, #833AB4, #405DE6);
  --surface: #f8f5ff;
  --surface-card: #ffffff;
  --surface-low: #f0edff;
  --text: #2d2d42;
  --text-muted: #5a5971;
  --border: #e2dfff;
  
  --r-pill: 9999px;
  --r-card: 1.25rem;
  --sh-card: 0 12px 32px rgba(26,26,46,0.06);
  --sh-btn: 0 8px 24px rgba(225,48,108,0.3);
  
  --font-h: 'Plus Jakarta Sans', sans-serif;
  --font-b: 'DM Sans', sans-serif;
}

body {
  font-family: var(--font-b);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-h);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

a { text-decoration: none; transition: all 0.2s; }
a:hover { text-decoration: none; }

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

/* NAVBAR */
.site-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 245, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
}
.nav-logo {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-weight: 800;
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--ig-pink); }
.nav-actions .btn-prem {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 7px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-h);
  cursor: pointer;
}

/* HERO */
.hero {
  padding: 110px 1.5rem 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  margin-bottom: 1.1rem;
}
.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  font-weight: 500;
}

/* PILL FORM */
.pill-wrap {
  max-width: 740px;
  margin: 0 auto 1.25rem;
}
.pill-form {
  display: flex;
  align-items: center;
  background: var(--surface-card);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-card);
  border: 2px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
  padding: 5px 5px 5px 18px;
}
.pill-form:focus-within {
  border-color: var(--ig-pink);
  box-shadow: 0 0 0 4px rgba(225,48,108,0.1);
}
.pill-icon {
  color: var(--ig-pink);
  display: flex;
  align-items: center;
  margin-right: 10px;
  font-size: 1.25rem;
}
.pill-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 1rem;
  font-family: var(--font-b);
  font-weight: 500;
  min-width: 0;
  padding: 11px 0;
}
.pill-input::placeholder { color: #9CA3AF; }
.btn-dl {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 28px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--sh-btn);
  transition: opacity 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 7px;
}
.btn-dl:hover { opacity: 0.9; transform: scale(0.98); }

/* TRUST ROW */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.5rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trust-item i { color: var(--ig-pink); font-size: 1.1rem; }

/* TABS */
.tabs-wrap {
  max-width: 740px;
  margin: 2.5rem auto 0;
  padding: 0;
}
.tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  background: var(--surface-low);
  border-radius: var(--r-pill);
  padding: 5px;
  overflow-x: auto;
}
.tab-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 24px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
}
.tab-btn.active {
  background: var(--surface-card);
  color: var(--ig-pink);
  box-shadow: var(--sh-card);
}

/* RESULTS & LOADING */
.result-area {
  max-width: 740px;
  margin: 1.5rem auto 0;
}
.loading-state {
  text-align: center;
  padding: 3rem;
  background: var(--surface-card);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  border: 1px solid var(--border);
}
.spin {
  width: 48px;
  height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--ig-pink);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.result-box {
  background: var(--surface-card);
  border-radius: var(--r-card);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--sh-card);
  text-align: center;
}
.r-preview {
  margin-bottom: 1.5rem;
}
.r-media {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: 14px;
  background: var(--surface-low);
  margin-bottom: 1.5rem;
}
.dl-opts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn-dlopt {
  background: var(--gradient);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 13px 24px;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: var(--sh-btn);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.btn-dlopt:hover { opacity: 0.9; transform: scale(0.98); color: white; }
.btn-sd {
  background: var(--surface-low);
  color: var(--text);
  box-shadow: none;
  border: 1px solid var(--border);
}

.err-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff0f3;
  border: 1px solid #ffb3c6;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  color: #c62b4a;
  font-weight: 600;
  margin-top: 1rem;
}

/* FEATURES SECTION */
.features-sec { padding: 4.5rem 1.5rem; }
.sec-label {
  display: inline-block;
  background: var(--surface-low);
  color: var(--ig-pink);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 6px;
  padding: 4px 12px;
  margin-bottom: 1rem;
}
.sec-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 3rem;
}
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feat-card {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-card);
}
.feat-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}
.feat-t { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.5rem; }
.feat-d { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* FOOTER */
.site-footer {
  background: var(--surface-card);
  border-top: 1px solid var(--border);
  padding: 4rem 1.5rem 2rem;
  text-align: center;
}
.footer-logo {
  font-family: var(--font-h);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: inline-block;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.footer-links a { color: var(--text-muted); font-weight: 600; }
.footer-links a:hover { color: var(--ig-pink); }
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

/* MOBILE RESPONSIVE */
@media(max-width: 768px) {
  .nav-links { display: none; }
  .pill-form {
    flex-direction: column;
    padding: 14px;
    border-radius: 20px;
  }
  .pill-icon { display: none; }
  .pill-input {
    width: 100%;
    background: var(--surface-low);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 1px solid var(--border);
    margin-bottom: 12px;
  }
  .btn-dl { width: 100%; justify-content: center; border-radius: 12px; padding: 14px; }
  .tabs { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════════════════ */
.lang-switcher {
  position: relative;
}
.lang-btn {
  background: var(--surface-low);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-h);
  transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--ig-pink); }
.lang-btn .fa-chevron-down {
  font-size: 0.7rem;
  transition: transform 0.2s;
}
.lang-btn[aria-expanded="true"] .fa-chevron-down { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--sh-card);
  list-style: none;
  padding: 6px;
  margin: 0;
  min-width: 140px;
  z-index: 200;
}
.lang-dropdown.open { display: block; }
.lang-dropdown li a {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.lang-dropdown li a:hover { background: var(--surface-low); color: var(--ig-pink); }
.lang-dropdown li a.active { color: var(--ig-pink); background: var(--surface-low); }

/* ═══════════════════════════════════════════════════════════
   HERO EXTRAS
   ═══════════════════════════════════════════════════════════ */
.hero-privacy {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-weight: 500;
}
.hero-privacy .fa { color: var(--ig-pink); }

/* Accessibility: visually-hidden */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ═══════════════════════════════════════════════════════════
   HOW IT WORKS
   ═══════════════════════════════════════════════════════════ */
.hiw-sec {
  padding: 4.5rem 1.5rem;
  background: var(--surface-low);
}
.hiw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}
.hiw-step {
  text-align: center;
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
}
.hiw-num {
  position: absolute;
  top: -1px;
  right: 16px;
  font-size: 4rem;
  font-weight: 900;
  font-family: var(--font-h);
  color: var(--surface-low);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}
.hiw-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
  box-shadow: var(--sh-btn);
}
.hiw-step h3 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.hiw-step p  { font-size: 0.9rem; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ═══════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════ */
.about-sec { padding: 4.5rem 1.5rem; }
.about-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 2.5rem;
  box-shadow: var(--sh-card);
}
.about-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.about-card p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 1rem; }
.about-notice  {
  background: var(--surface-low);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0 !important;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.about-notice .fa { color: var(--ig-pink); margin-top: 2px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════════════════════ */
.faq-sec {
  padding: 4.5rem 1.5rem;
  background: var(--surface-low);
}
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  margin-bottom: 0.6rem;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--ig-pink); }
.faq-q[aria-expanded="true"] { color: var(--ig-pink); }
.faq-chevron { font-size: 0.75rem; flex-shrink: 0; transition: transform 0.25s; }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.faq-a {
  padding: 0 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
}
.faq-a p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.75; margin: 1rem 0 0; }

/* ═══════════════════════════════════════════════════════════
   FOOTER (expanded)
   ═══════════════════════════════════════════════════════════ */
.site-footer { padding: 4rem 1.5rem 2rem; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-tagline { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 260px; line-height: 1.6; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col strong { font-size: 0.85rem; font-family: var(--font-h); color: var(--text); margin-bottom: 0.25rem; }
.footer-col a { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.footer-col a:hover { color: var(--ig-pink); }
.footer-copy { border-top: 1px solid var(--border); padding-top: 1.5rem; text-align: center; }
.footer-copy p { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 0.25rem; }
.footer-disclaimer { font-size: 0.75rem !important; }

/* Nav actions gap */
.nav-actions { display: flex; align-items: center; gap: 0.6rem; }

@media(max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .hiw-grid { grid-template-columns: 1fr; }
}
@media(max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
}
