/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --bg-dark: #1a202c;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --accent: #2c5282;
  --accent-hover: #2a4a7f;
  --accent-light: #ebf4ff;
  --border: #e2e8f0;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --sidebar-width: 380px;
  --radius: 8px;
  /* Aliases for legacy var() refs */
  --orange: #2c5282;
  --orange-dark: #2a4a7f;
  --orange-light: #90cdf4;
  --warm: #f5f5f5;
  --text: #1a202c;
  --muted: #4a5568;
  --card-bg: #ffffff;
  --r: 8px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg-page); color: var(--text-primary); line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== PAGE LAYOUT ===== */
.page-wrapper { display: flex; min-height: 100vh; }
.page-wrapper > .content { flex: 1; min-width: 0; overflow: hidden; }

/* ===== HERO ===== */
.hero { background: linear-gradient(135deg, #0a1628 0%, #1a202c 50%, #0f1a2e 100%); color: #fff; padding: 0 24px 80px; overflow: hidden; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: radial-gradient(ellipse at 70% 30%, rgba(44,82,130,.2) 0%, transparent 60%); pointer-events: none; }
nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; max-width: 1100px; margin: 0 auto; }
.logo { font-size: 18px; font-weight: 700; color: #fff; text-decoration: none; }
.logo span { color: #90cdf4; }
.nav-cta { background: var(--accent); color: #fff; border: none; padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s; }
.nav-cta:hover { background: var(--accent-hover); }
.hero-inner { max-width: 1100px; margin: 60px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media(max-width:768px) { .hero-inner { grid-template-columns: 1fr; gap: 40px; } }
.badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(44,82,130,.2); border: 1px solid rgba(44,82,130,.45); color: #90cdf4; font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: 100px; margin-bottom: 24px; }
.badge svg { width: 16px; height: 16px; fill: currentColor; flex-shrink: 0; }
h1 { font-size: clamp(26px, 4vw, 46px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; }
h1 em { color: #90cdf4; font-style: normal; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 36px; }
.hero-cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
@media(max-width:768px) { .hero-cta-row { flex-direction: column; } }
.btn-primary { background: var(--accent); color: #fff; border: none; padding: 16px 32px; border-radius: 8px; font-size: 16px; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s; font-family: inherit; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.35); padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s; font-family: inherit; }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.sun-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sun-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 20px 16px; text-align: center; }
.sun-card .icon { font-size: 32px; display: block; margin-bottom: 10px; }
.sun-card strong { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.sun-card span { font-size: 12px; color: rgba(255,255,255,.55); line-height: 1.4; }

/* ===== STATS BAR ===== */
.stats { background: var(--accent); padding: 20px 24px; }
.stats-inner { max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-around; gap: 12px; flex-wrap: wrap; }
.stat { text-align: center; color: #fff; }
.stat strong { display: block; font-size: 26px; font-weight: 800; }
.stat span { font-size: 12px; opacity: .85; }

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; color: var(--text-primary); }
.section-sub { font-size: 17px; color: var(--text-secondary); line-height: 1.6; max-width: 600px; margin-bottom: 48px; }

/* ===== ZIP SPOTLIGHT ===== */
.zip-section { background: var(--bg-dark); color: #fff; }
.zip-section h2 { color: #fff; }
.zip-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media(max-width:768px) { .zip-inner { grid-template-columns: 1fr; gap: 40px; } }
.zip-label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #90cdf4; margin-bottom: 14px; }
.zip-title { font-size: clamp(22px, 3vw, 34px); font-weight: 800; margin-bottom: 20px; line-height: 1.2; color: #fff; }
.zip-title em { color: #90cdf4; font-style: normal; }
.zip-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.zip-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; color: rgba(255,255,255,.85); line-height: 1.5; }
.zip-list li::before { content: '✓'; color: #90cdf4; font-weight: 700; font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.zip-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media(max-width:768px) { .zip-metrics { grid-template-columns: 1fr 1fr; } }
.zip-m { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 18px 16px; text-align: center; }
.zip-m strong { display: block; font-size: 22px; font-weight: 800; color: #90cdf4; }
.zip-m span { font-size: 12px; color: rgba(255,255,255,.55); }

/* ===== PRODUCTS API GRID ===== */
.products-api-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 8px; }
@media(max-width:1000px) { .products-api-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:520px) { .products-api-grid { grid-template-columns: 1fr; } }
.products-loading { grid-column: 1/-1; text-align: center; color: var(--text-secondary); padding: 40px; font-size: 15px; }
.api-product-card { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s, border-color .2s; display: flex; flex-direction: column; }
.api-product-card:hover { box-shadow: 0 8px 28px rgba(44,82,130,.12); transform: translateY(-3px); border-color: var(--accent); }
.api-product-card--featured { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.api-product-card__img { height: 160px; position: relative; overflow: hidden; background: linear-gradient(135deg, #0a1628, #1a202c); display: flex; align-items: center; justify-content: center; }
.api-product-card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.api-product-card__badge { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--accent); color: #fff; font-size: 10px; font-weight: 700; border-radius: 100px; padding: 3px 10px; }
.api-product-card__body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.api-product-card__title { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--text-primary); }
.api-product-card__desc { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 10px; flex: 1; }
.api-product-card__price { font-size: 16px; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.api-product-card__btn { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: 8px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit; transition: background .2s; }
.api-product-card--featured .api-product-card__btn { background: var(--accent-hover); }
.api-product-card__btn:hover { background: var(--accent-hover); }

/* ===== STEPS ===== */
.steps { background: var(--bg-page); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.step-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.step-card:hover { transform: translateY(-2px); }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.step-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== WHY GRID ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.why-card { background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .2s; }
.why-card:hover { transform: translateY(-2px); }
.why-icon { font-size: 32px; margin-bottom: 14px; }
.why-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.why-text { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* ===== CASES ===== */
.cases { background: var(--bg-page); }
.cases-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.case-card { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow); transition: transform .2s; }
.case-card:hover { transform: translateY(-3px); }
.case-emoji { font-size: 28px; margin-bottom: 14px; }
.case-title { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); }
.case-quote { font-size: 14px; color: var(--text-secondary); line-height: 1.6; font-style: italic; border-left: 3px solid var(--accent-light); padding-left: 14px; margin-bottom: 14px; }
.case-result { font-size: 13px; font-weight: 600; color: var(--accent); }

/* ===== FAQ ===== */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.faq-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; background: transparent; border: none; cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text-primary); text-align: left; transition: background .15s; }
.faq-btn:hover { background: var(--accent-light); }
.faq-arrow { font-size: 18px; color: var(--accent); flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-body { max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s; padding: 0 20px; font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.faq-item.open .faq-body { max-height: 200px; padding: 0 20px 18px; }

/* ===== CTA SECTION ===== */
.cta-section { background: linear-gradient(135deg, #0a1628 0%, #1a202c 50%, #0f1a2e 100%); color: #fff; text-align: center; padding: 80px 24px; }
.cta-section h2 { color: #fff; margin-bottom: 16px; }
.cta-section p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.cta-section .btn-primary { background: #fff; color: var(--accent); font-size: 17px; padding: 18px 40px; font-weight: 800; }
.cta-section .btn-primary:hover { background: var(--accent-light); }
.cta-sub { font-size: 13px; color: rgba(255,255,255,.55); margin-top: 14px; }

/* ===== FOOTER ===== */
footer { background: #0d1525; color: rgba(255,255,255,.5); text-align: center; padding: 28px 24px; font-size: 13px; }
footer a { color: rgba(255,255,255,.55); text-decoration: none; }
footer a:hover { color: #fff; }

/* Chat badge */
.chat-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: badge-pulse 1s ease-in-out infinite;
  z-index: 10;
}

@keyframes badge-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}
