@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============ DESIGN TOKENS (copied 1:1 from alona_tool-main) ============ */
:root {
  --primary-accent: #16A34A;
  --primary-accent-rgb: 22, 163, 74;
  --accent-orange: #F97316;

  --bg-main: #FFFFFF;
  --bg-secondary: #F6F8FB;
  --bg-card: #FFFFFF;
  --text-primary: #111111;
  --text-secondary: #555555;
  --text-muted: #888888;
  --border-color: rgba(17, 17, 17, 0.08);
  --border-color-hover: rgba(22, 163, 74, 0.4);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.01);
  --header-bg: rgba(255, 255, 255, 0.8);

  --font-sans: "Poppins", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; }

html, body { overflow-x: hidden; width: 100%; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
}

li { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: rgba(22, 163, 74, 0.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(22, 163, 74, 0.6); }

.custom-scrollbar { scrollbar-width: thin; scrollbar-color: rgba(22, 163, 74, 0.3) var(--bg-secondary); }
.custom-scrollbar::-webkit-scrollbar { width: 5px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: rgba(22, 163, 74, 0.3); border-radius: 10px; }

/* ============ ANIMATIONS (copied 1:1) ============ */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floatBlob { 0%, 100% { transform: translateY(0px) scale(1); } 50% { transform: translateY(-15px) scale(1.05); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-33.3333%); } }
@keyframes pingSlow { 75%, 100% { transform: scale(2); opacity: 0; } }
@keyframes loaderSpin { to { transform: rotate(360deg); } }
@keyframes loaderSpinReverse { to { transform: rotate(-360deg); } }
@keyframes loaderPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.08); opacity: 0.85; } }

.animate-fade-in { animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-float-blob { animation: floatBlob 6s infinite ease-in-out; }
.animate-slide-down { animation: slideDown 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.animate-ping-slow { animation: pingSlow 1.8s cubic-bezier(0, 0, 0.2, 1) infinite; }

/* ============ REVEAL ON SCROLL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

/* ============ MARQUEE (copied 1:1) ============ */
.hero-sliding-marquee { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track { display: inline-block; animation: slideMarquee 25s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--font-sans); font-size: .75rem; font-weight: 600; letter-spacing: .08em; margin: 0 18px; color: var(--text-secondary); }
.marquee-track .free-highlight { color: #16A34A !important; }
.header-ticker .marquee-track span { color: #ffffff; font-weight: 500; letter-spacing: .05em; margin: 0 24px; font-size: .7rem; }

/* ============ GRADIENT TEXT ============ */
.text-gradient-brand {
  background: linear-gradient(90deg, #16A34A 0%, #F97316 55%, #16A34A 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ============ BLOB GLOWS ============ */
.blob { position: absolute; border-radius: 9999px; filter: blur(110px); pointer-events: none; background: rgba(22,163,74,0.12); }

/* ============ HEADER ============ */
#site-header { position: sticky; top: 0; z-index: 1000; }
.header-topbar { background: #0B1220; }
.accent-line { height: 3px; background: linear-gradient(90deg, #16A34A, #F97316, #16A34A); }
#main-nav-header {
  background: linear-gradient(90deg, rgba(240,253,244,0.7) 0%, rgba(255,255,255,0.9) 50%, rgba(255,247,237,0.7) 100%);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}
.nav-link-tool {
  font-size: .875rem; font-weight: 600; color: #374151; padding-bottom: 4px;
  border-bottom: 2px solid transparent; transition: all .2s ease;
}
.nav-link-tool:hover, .nav-link-tool.active { color: #16A34A; border-color: #16A34A; }

.btn-outline-brand {
  font-size: .75rem; font-weight: 700; padding: .6rem 1.25rem; border-radius: .5rem;
  color: #16A34A; border: 2px solid #16A34A; transition: all .2s ease; background: transparent;
}
.btn-outline-brand:hover { background: rgba(22,163,74,0.06); }

.btn-fill-brand {
  font-size: .75rem; font-weight: 700; padding: .6rem 1.25rem; border-radius: .5rem;
  color: #fff; background: #16A34A; box-shadow: 0 2px 10px rgba(22,163,74,0.3); transition: all .2s ease;
}
.btn-fill-brand:hover { background: #15803D; }

/* ============ MOBILE NAV ============ */
#mobile-menu { display: none; }
#mobile-menu.active { display: block; }
.mobile-link { display: flex; align-items: center; gap: .75rem; width: 100%; padding: .75rem 1rem; border-radius: .75rem; text-align: left; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #374151; transition: all .15s ease; }
.mobile-link:hover { background: #F9FAFB; color: #16A34A; }

/* ============ BUTTONS (generic) ============ */
.btn-primary-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; border-radius: 9999px;
  background: #16A34A; color: #fff; font-weight: 700; font-size: .875rem;
  box-shadow: 0 8px 25px rgba(22,163,74,0.3); transition: all .25s cubic-bezier(.16,1,.3,1);
}
.btn-primary-pill:hover { background: #15803D; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(22,163,74,0.4); }

.btn-secondary-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 2rem; border-radius: 9999px;
  background: #fff; color: #111827; font-weight: 700; font-size: .875rem; border: 1px solid var(--border-color);
  transition: all .25s cubic-bezier(.16,1,.3,1);
}
.btn-secondary-pill:hover { border-color: #16A34A; color: #16A34A; transform: translateY(-2px); }

/* ============ CARDS ============ */
.card-surface { background: #fff; border: 1px solid rgba(17,17,17,0.08); border-radius: 1rem; box-shadow: var(--card-shadow); transition: all .25s cubic-bezier(.16,1,.3,1); }
.card-surface:hover { border-color: rgba(22,163,74,0.35); transform: translateY(-4px); box-shadow: 0 20px 40px -15px rgba(22,163,74,0.18); }

.icon-tile { width: 2.75rem; height: 2.75rem; border-radius: .85rem; display: flex; align-items: center; justify-content: center; background: rgba(22,163,74,0.1); color: #16A34A; }

/* ============ FORM ELEMENTS ============ */
.field-input {
  width: 100%; padding: .75rem 1rem 0.75rem 2.5rem; font-size: .875rem; background: #F9FAFB;
  border: 1px solid #E5E7EB; border-radius: .85rem; transition: all .2s ease; color: #111827;
}
.field-input:focus { outline: none; border-color: #16A34A; background: #fff; box-shadow: 0 0 0 4px rgba(22,163,74,0.12); }
.field-icon { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: #9CA3AF; pointer-events: none; }
.field-label { display: block; font-size: .7rem; font-weight: 700; color: #6B7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .4rem; }

/* ============ FOOTER ============ */
#site-footer { background: #fff; border-top: 1px solid var(--border-color); }
.footer-heading { font-size: .65rem; font-weight: 800; color: #9CA3AF; text-transform: uppercase; letter-spacing: .1em; }
.footer-link { font-size: .8rem; color: #6B7280; transition: color .15s ease; }
.footer-link:hover { color: #16A34A; }
.social-circle-outline { width: 2.25rem; height: 2.25rem; border-radius: 9999px; border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; color: #6B7280; transition: all .2s ease; }
.social-circle-outline:hover { color: #16A34A; border-color: #16A34A; box-shadow: 0 0 10px rgba(22,163,74,0.2); }

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed; bottom: 1.75rem; right: 1.75rem; width: 46px; height: 46px; border-radius: 9999px;
  background: #111111; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25); z-index: 90; opacity: 0; pointer-events: none;
  transition: all .25s ease;
}
#back-to-top.active { opacity: 1; pointer-events: auto; }
#back-to-top:hover { background: #16A34A; transform: translateY(-3px); }

/* ============ PAGE LOADER ============ */
#pageLoader { position: fixed; inset: 0; z-index: 9999; background: #ffffff; display: flex; align-items: center; justify-content: center; transition: opacity .3s ease, visibility .3s ease; }

/* ============ CATEGORY DROPDOWN ============ */
.dropdown-panel { position: absolute; left: 0; margin-top: .75rem; width: 15rem; background: #fff; border: 1px solid #E5E7EB; border-radius: 1rem; box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); z-index: 50; padding: .5rem; display: none; }
.dropdown-panel.open { display: block; }
.dropdown-item { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: .75rem; text-align: left; font-size: .75rem; font-weight: 600; color: #374151; transition: all .15s ease; }
.dropdown-item:hover { background: rgba(22,163,74,0.06); color: #16A34A; }

/* ============ FAQ ============ */
.faq-item { background: #fff; border: 1px solid var(--border-color); border-radius: 1rem; overflow: hidden; box-shadow: var(--card-shadow); transition: border-color .2s ease; }
.faq-item:hover { border-color: rgba(22,163,74,0.3); }
.faq-question { width: 100%; padding: 1.1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; text-align: left; font-weight: 700; font-size: .875rem; color: #111827; }
.faq-answer { display: none; padding: 0 1.5rem 1.25rem; font-size: .8rem; color: var(--text-secondary); line-height: 1.7; border-top: 1px solid #F3F4F6; padding-top: .85rem; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: #16A34A; }
.faq-chevron { transition: transform .3s ease; color: #9CA3AF; }

/* ============ MISC ============ */
.pill-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 9999px; background: #fff; border: 1px solid #E5E7EB; font-size: .65rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: #111827; box-shadow: var(--card-shadow); }
.dot-ping { width: .5rem; height: .5rem; border-radius: 9999px; background: #16A34A; position: relative; }

.section-title-lg { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.02em; color: #0B0F19; }

/* Print (kept from original tokens for parity, harmless here) */
@media print {
  header, footer, #back-to-top { display: none !important; }
}
