/* ===== App Lead Services — Global Styles ===== */

:root {
  --brand: #0f766e;
  --brand-light: #14b8a6;
  --brand-dark: #0d5c56;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --surface: #ffffff;
  --surface-alt: #f0fdf9;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #16a34a;
  --warning: #f59e0b;
  --gradient-start: #0f766e;
  --gradient-end: #0ea5e9;
}
.dark {
  --brand: #5eead4;
  --brand-light: #2dd4bf;
  --brand-dark: #99f6e4;
  --accent: #fb923c;
  --accent-hover: #fdba74;
  --surface: #0c1222;
  --surface-alt: #111b2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --border: #1e293b;
  --gradient-start: #0c1222;
  --gradient-end: #0c2a3e;
}

/* ---------- Base ---------- */
body {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  background: var(--surface); color: var(--text);
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-light); text-decoration: underline; }
.dark a { color: var(--brand-light); }

/* ---------- Layout ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.section { padding: 3rem 0; }
.section-alt { background: var(--surface-alt); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--brand); border-bottom: 1px solid rgba(255,255,255,.1);
}
.dark .site-nav { background: #0c1222; border-bottom-color: var(--border); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav-logo { color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .4rem; }
.nav-logo .icon { font-size: 1.25rem; }
.nav-links { display: flex; gap: .1rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: rgba(255,255,255,.82); font-size: .84rem; font-weight: 500;
  padding: .42rem .7rem; border-radius: .375rem; transition: background .15s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--brand); padding: .5rem; }
  .dark .nav-links { background: #0c1222; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #fff; text-align: center; padding: 4.5rem 1rem 3.5rem;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  border-radius: 50%;
}
.hero h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.12; margin-bottom: .75rem; position: relative; }
.hero p { font-size: 1.1rem; opacity: .88; max-width: 600px; margin: 0 auto 1.5rem; position: relative; }
.hero .tagline { font-size: .85rem; opacity: .6; margin-bottom: 1.5rem; }
@media (max-width: 640px) { .hero h1 { font-size: 1.7rem; } .hero p { font-size: .95rem; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .6rem 1.5rem; border-radius: .5rem; font-weight: 600; font-size: .9rem;
  border: none; cursor: pointer; transition: all .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-white { background: #fff; color: var(--brand); }
.btn-white:hover { background: #f0fdfa; color: var(--brand-dark); text-decoration: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: .75rem;
  overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px); }
.dark .card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.card-body { padding: 1.25rem; }
.card-thumb {
  height: 140px; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; font-weight: 700; color: #fff;
}
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block; padding: .15rem .55rem; border-radius: 9999px;
  font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.badge-teal { background: #ccfbf1; color: #0f766e; }
.dark .badge-teal { background: #134e4a; color: #5eead4; }
.badge-orange { background: #ffedd5; color: #9a3412; }
.dark .badge-orange { background: #7c2d12; color: #fdba74; }
.badge-blue { background: #dbeafe; color: #1e40af; }
.dark .badge-blue { background: #1e3a5f; color: #93c5fd; }
.badge-green { background: #dcfce7; color: #166534; }
.dark .badge-green { background: #14532d; color: #86efac; }
.badge-purple { background: #f3e8ff; color: #6b21a8; }
.dark .badge-purple { background: #581c87; color: #d8b4fe; }

/* ---------- Stats ---------- */
.stats-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat-card { text-align: center; padding: 1.5rem 1rem; border-radius: .75rem; background: var(--surface); border: 1px solid var(--border); }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--brand); }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; }

/* ---------- Tables ---------- */
.table-wrapper { overflow-x: auto; border-radius: .75rem; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .85rem; }
thead { background: var(--surface-alt); }
th { text-align: left; padding: .75rem 1rem; font-weight: 600; color: var(--text-muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
td { padding: .75rem 1rem; border-top: 1px solid var(--border); }
tr:hover { background: var(--surface-alt); }
.highlight-row { background: rgba(15,118,110,.05); }
.dark .highlight-row { background: rgba(94,234,212,.04); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .35rem; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: .6rem .75rem; border-radius: .5rem;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text); font-size: .9rem; transition: border-color .15s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15,118,110,.12);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* ---------- Calculator ---------- */
.calc-output { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.calc-result { background: var(--surface-alt); border-radius: .5rem; padding: 1rem; text-align: center; border: 1px solid var(--border); }
.calc-result .value { font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.calc-result .label { font-size: .72rem; color: var(--text-muted); margin-top: .2rem; }

/* ---------- Page Header ---------- */
.page-header {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #fff; padding: 3rem 1rem 2rem; text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 800; margin-bottom: .5rem; }
.page-header p { opacity: .8; max-width: 560px; margin: 0 auto; font-size: .95rem; }

/* ---------- Article ---------- */
.article-content { max-width: 760px; margin: 0 auto; }
.article-content h2 { font-size: 1.45rem; font-weight: 700; margin: 2rem 0 .75rem; border-bottom: 2px solid var(--border); padding-bottom: .4rem; }
.article-content h3 { font-size: 1.15rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.article-content p { line-height: 1.75; margin-bottom: 1rem; font-size: .92rem; }
.article-content ul, .article-content ol { margin: .75rem 0 1rem 1.5rem; line-height: 1.75; font-size: .92rem; }
.article-content li { margin-bottom: .35rem; }
.article-content blockquote {
  border-left: 4px solid var(--brand); padding: .75rem 1rem; margin: 1rem 0;
  background: var(--surface-alt); border-radius: 0 .5rem .5rem 0; font-style: italic;
}

/* ---------- Sidebar ---------- */
.article-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .article-layout { grid-template-columns: 1fr 280px; } }
.sidebar { position: sticky; top: 72px; }
.sidebar-box { background: var(--surface-alt); border: 1px solid var(--border); border-radius: .75rem; padding: 1.25rem; margin-bottom: 1.25rem; }
.sidebar-box h4 { font-size: .85rem; font-weight: 700; margin-bottom: .75rem; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.sidebar-box ul { list-style: none; padding: 0; margin: 0; }
.sidebar-box li { margin-bottom: .45rem; }
.sidebar-box li a { font-size: .83rem; color: var(--text); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-alt); border-top: 1px solid var(--border);
  padding: 2rem 1rem; text-align: center; font-size: .78rem; color: var(--text-muted);
}
.footer-links { display: flex; justify-content: center; gap: 1.25rem; margin-top: .75rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--brand); }

/* ---------- CTA / Newsletter ---------- */
.cta-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  color: #fff; border-radius: .75rem; padding: 2.5rem; text-align: center;
}
.cta-section h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.cta-section p { opacity: .8; margin-bottom: 1.25rem; font-size: .9rem; }
.cta-form { display: flex; gap: .5rem; max-width: 420px; margin: 0 auto; }
.cta-form input { flex: 1; padding: .6rem .75rem; border-radius: .5rem; border: none; font-size: .9rem; color: #0f172a; }
.cta-form button { white-space: nowrap; }
@media (max-width: 480px) { .cta-form { flex-direction: column; } }

/* ---------- Feature Grid ---------- */
.feature-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature-card { text-align: center; padding: 2rem 1.25rem; }
.feature-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p { font-size: .85rem; color: var(--text-muted); line-height: 1.6; }

/* ---------- Prose ---------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .75rem; border-bottom: 2px solid var(--border); padding-bottom: .35rem; }
.prose h3 { font-size: 1.05rem; font-weight: 600; margin: 1.5rem 0 .5rem; }
.prose p { line-height: 1.75; margin-bottom: 1rem; font-size: .92rem; }
.prose ul, .prose ol { margin: .75rem 0 1rem 1.5rem; line-height: 1.75; font-size: .92rem; }
.prose li { margin-bottom: .35rem; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.disclaimer-small { font-size: .78rem; color: var(--text-muted); font-style: italic; margin-top: 1.5rem; }
.notice-box { background: #fffbeb; border: 1px solid #fcd34d; border-radius: .75rem; padding: 1.25rem; margin: 1.5rem 0; }
.dark .notice-box { background: #422006; border-color: #92400e; }
