:root {
  --ink: #0f172a;
  --sub: #475569;
  --brand: #2563eb;
  --brand2: #7c3aed;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --border: #e2e8f0;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--ink); line-height: 1.65; background: var(--bg); }
img { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--sub); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo-row { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo-img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.logo-text { font-weight: 800; font-size: 17px; letter-spacing: .04em; color: var(--ink); }
.logo-text span { color: var(--brand); }
.site-footer .logo-row { color: #fff; }
.site-footer .logo-text { color: #fff; }
@media (max-width: 640px) { .logo-text { display: none; } }
nav { display: flex; gap: 26px; align-items: center; }
nav > a { color: var(--sub); font-weight: 500; font-size: 15px; }
nav > a:hover { color: var(--ink); }
@media (max-width: 640px) { nav { gap: 14px; } nav > a:not(.btn) { display: none; } }

/* Buttons */
.btn { display: inline-block; background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff !important; font-weight: 600; font-size: 16px; padding: 13px 30px; border-radius: 10px; box-shadow: 0 6px 18px rgba(37,99,235,.25); transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-small { padding: 9px 18px; font-size: 14px; }
.btn-ghost { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--brand); }

/* Hero */
.hero { background: linear-gradient(160deg, #eff6ff 0%, #f5f3ff 60%, #fff 100%); padding: 84px 0 72px; text-align: center; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; text-align: left; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; } .hero-actions { justify-content: center; } }
.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: 18px; box-shadow: 0 24px 60px rgba(37,99,235,.18); }
.hero-chip { position: absolute; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px; box-shadow: 0 10px 26px rgba(15,23,42,.12); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.hero-chip small { display: block; font-weight: 400; color: var(--sub); font-size: 12px; }
.chip-1 { top: 18px; left: -14px; }
.chip-2 { bottom: 24px; right: -14px; }
@media (max-width: 860px) { .chip-1, .chip-2 { position: static; margin: 8px auto; width: fit-content; } }
.eyebrow { display: inline-block; background: #dbeafe; color: #1d4ed8; font-size: 13px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(32px, 5.4vw, 52px); line-height: 1.12; letter-spacing: -.02em; max-width: 780px; margin: 0 auto 16px; }
.hero h1 { margin: 0 0 16px; }
.lead { color: var(--sub); font-size: 19px; max-width: 640px; margin: 0 auto 30px; }
.hero .lead { margin: 0 0 30px; }
.hero-actions { display: flex; gap: 14px; justify-content: flex-start; flex-wrap: wrap; }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section h2, .cta-band h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.02em; margin-bottom: 12px; }
.section-sub { color: var(--sub); font-size: 17px; max-width: 640px; margin-bottom: 40px; }
.section h2 + .section-sub { margin-bottom: 36px; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; color: var(--ink); transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,23,42,.08); }
.card-ico { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 14.5px; }

/* Service lists on subpages */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.svc { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 22px; }
.svc h3 { font-size: 17px; margin-bottom: 8px; }
.svc p { color: var(--sub); font-size: 14.5px; }

/* Page hero (subpages) */
.page-hero { background: linear-gradient(160deg, #eff6ff, #f5f3ff 60%, #fff); padding: 56px 0 48px; }
.page-hero h1 { margin: 0 auto 12px; max-width: 900px; }
.page-hero .lead { margin: 0; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; border-radius: 18px; padding: 48px; text-align: center; max-width: 900px; margin: 0 auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 24px; }
.cta-band .btn { background: #fff; color: var(--brand) !important; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; gap: 28px; } }
.about-list { list-style: none; margin-top: 22px; }
.about-list li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--sub); }
.about-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 22px; text-align: center; }
.stat b { display: block; font-size: 30px; letter-spacing: -.02em; color: var(--brand); margin-bottom: 4px; }
.stat small { color: var(--sub); font-size: 13.5px; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.blog-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: transform .15s, box-shadow .15s; color: var(--ink); display: block; }
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(15,23,42,.09); }
.blog-card img { width: 100%; height: 190px; object-fit: cover; display: block; }
.blog-body { padding: 18px 20px 22px; }
.blog-body h3 { font-size: 16.5px; line-height: 1.35; margin-bottom: 10px; }
.blog-body span { color: var(--brand); font-weight: 600; font-size: 14px; }

/* Contact form */
.form-wrap { max-width: 620px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: 14px; margin: 16px 0 6px; }
input, textarea { width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 15px; font-family: inherit; background: #fff; }
input:focus, textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
textarea { min-height: 130px; resize: vertical; }
.check-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.check-row input { width: auto; }
.check-row label { margin: 0; font-weight: 400; }
.form-msg { margin-top: 16px; font-weight: 600; }
.form-msg.ok { color: #16a34a; }
.form-msg.err { color: #dc2626; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal p { color: var(--sub); margin-bottom: 14px; }
.legal p strong { color: var(--ink); }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } }
.site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 15px; }
.site-footer a { color: #cbd5e1; display: inline-block; margin-bottom: 6px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.site-footer .logo-row { color: #fff; display: inline-flex; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; padding: 18px 24px; font-size: 13px; color: #64748b; }
