/* ============================================================
   Asquare.ai — Light Brand Design System
   Palette matched to asquare.ai:
   navy #0B1F33 · blue #2F80ED · gold #FAD94D · borders #D9E1E8
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f8fc;
  --bg-tint: #eaf2fe;
  --surface: #ffffff;
  --border: #e1e8f0;
  --border-strong: #cdd8e6;
  --navy: #0b1f33;
  --navy-2: #16324e;
  --text: #0b1f33;
  --text-muted: #55677d;
  --text-dim: #7c8ba0;
  --blue: #2f80ed;
  --blue-dark: #1e63c4;
  --blue-tint: #eaf2fe;
  --gold: #fad94d;
  --gold-hover: #f2ce2a;
  --gold-soft: #fff6d6;
  --gold-ink: #6b5600;
  --glow: rgba(47, 130, 237, 0.28);
  --grad: linear-gradient(120deg, #2f80ed 0%, #1e4fa8 55%, #0b1f33 100%);
  --grad-soft: linear-gradient(135deg, #eaf2fe, #f5f8fc);
  --shadow-sm: 0 1px 3px rgba(11, 31, 51, 0.06);
  --shadow: 0 12px 30px -12px rgba(11, 31, 51, 0.16);
  --shadow-lg: 0 24px 50px -18px rgba(11, 31, 51, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle ambient brand glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(680px circle at 10% -8%, rgba(47,130,237,0.07), transparent 45%),
    radial-gradient(720px circle at 96% 4%, rgba(47,130,237,0.06), transparent 45%);
}

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.3rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 20px; height: 3px; border-radius: 2px;
  background: var(--gold);
  display: inline-block;
}
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 640px; }
.section { padding: 92px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.navy { background: var(--navy); }
.section.navy h1, .section.navy h2, .section.navy h3, .section.navy h4 { color: #fff; }
.section.navy .section-head p, .section.navy > .container > p { color: #b7c4d6; }
.section.navy .eyebrow { color: var(--gold); }
.section.navy .card { background: #13273e; border-color: #22374f; box-shadow: none; }
.section.navy .card h3 { color: #fff; }
.section.navy .card p { color: #aebbcd; }
.section.navy .card-icon { background: rgba(250,217,77,0.14); border-color: rgba(250,217,77,0.35); color: var(--gold); }
.section.navy .card .link-more { color: var(--gold); }
.section.navy .tag { background: #13273e; border-color: #22374f; color: #fff; }
.section.navy .tag:hover { border-color: var(--gold); background: #17304c; }
.section.navy .step { background: #13273e; border-color: #22374f; box-shadow: none; }
.section.navy .step h3 { color: #fff; }
.section.navy .step p { color: #aebbcd; }
.section.navy .step .step-num { color: var(--gold); }
.section.navy .role { background: #13273e; border-color: #22374f; box-shadow: none; }
.section.navy .role h4 { color: #fff; }
.section.navy .role p { color: #aebbcd; }
.section.navy .role .role-badge { background: rgba(250,217,77,0.14); border-color: rgba(250,217,77,0.35); color: var(--gold); }
.section.navy .chip { background: #13273e; border-color: #22374f; color: #c7d3e2; }
.section.navy .chip:hover { border-color: var(--gold); color: #fff; background: #17304c; }
.section.navy .feature-list li { color: #aebbcd; }
.section.navy .feature-list li strong { color: #fff; }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .3s ease, background .25s ease, color .2s ease;
}
.btn-primary {
  background: var(--blue); color: #fff;
  box-shadow: 0 10px 24px -10px var(--glow);
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 16px 30px -10px var(--glow); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(250,217,77,0.55); }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(250,217,77,0.55); }
.btn-ghost {
  background: #fff; color: var(--navy);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: 9px; font-size: 0.93rem;
  color: var(--text-muted); font-weight: 500; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); background: var(--bg-alt); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; background: var(--blue-dark); }
.nav-cta { margin-left: 10px; }
.nav-toggle { display: none; background: none; border: none; color: var(--navy); cursor: pointer; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 76px; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 16px; border-radius: 999px;
  background: var(--blue-tint); border: 1px solid #cfe1fb;
  font-size: 0.83rem; color: var(--blue-dark); font-weight: 600; margin-bottom: 26px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 0 rgba(47,130,237,0.6); animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,130,237,0.5); }
  70% { box-shadow: 0 0 0 10px rgba(47,130,237,0); }
  100% { box-shadow: 0 0 0 0 rgba(47,130,237,0); }
}
.hero h1 { max-width: 900px; margin-bottom: 24px; }
.hero .lead { font-size: 1.18rem; max-width: 680px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Stat strip ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 68px; }
.stat { padding: 26px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.stat .num { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.stat .label { color: var(--text-muted); font-size: 0.92rem; margin-top: 6px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .28s ease;
}
.card:hover::before { transform: scaleX(1); }
.card:hover { transform: translateY(-4px); border-color: #bcd3f5; box-shadow: var(--shadow); }
.card-icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--blue-tint); border: 1px solid #d7e6fc;
  display: grid; place-items: center; margin-bottom: 20px; color: var(--blue);
}
.card-icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 0.98rem; }
.card .link-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 18px;
  color: var(--blue); font-weight: 600; font-size: 0.92rem;
}
.card .link-more .arrow { transition: transform .2s; }
.card:hover .link-more .arrow { transform: translateX(4px); }

/* Feature list */
.feature-list { list-style: none; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; color: var(--text-muted); }
.feature-list .check {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; margin-top: 3px;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 800;
}
.feature-list li strong { color: var(--navy); font-weight: 600; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-body { min-width: 0; }

.panel {
  background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow);
}
.panel.tint { background: linear-gradient(160deg, #eef5ff, #f5f8fc); border-color: #d7e6fc; }
.panel.navy { background: linear-gradient(160deg, #0b1f33, #16324e); border-color: #16324e; }
.panel.navy h2, .panel.navy h3 { color: #fff; }
.panel.navy p { color: #b7c4d6; }

/* Chips / tags */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  padding: 11px 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--border);
  font-size: 0.9rem; color: var(--text-muted); font-weight: 500;
  transition: border-color .2s, color .2s, background .2s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-tint); }

/* Process / steps */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step .step-num {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; color: var(--blue);
  text-transform: uppercase; margin-bottom: 14px;
}
.step h3 { font-size: 1.12rem; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Roles */
.role-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.role {
  display: flex; gap: 18px; padding: 22px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.role:hover { border-color: #bcd3f5; transform: translateY(-3px); box-shadow: var(--shadow); }
.role .role-badge {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-tint); border: 1px solid #d7e6fc;
  display: grid; place-items: center; color: var(--blue);
}
.role .role-badge svg { width: 24px; height: 24px; }
.role h4 { font-size: 1.05rem; margin-bottom: 4px; }
.role p { color: var(--text-muted); font-size: 0.92rem; }

/* CTA band */
.cta-band {
  border-radius: 26px; padding: 62px 48px; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #0b1f33 0%, #16324e 60%, #1e63c4 130%);
  border: 1px solid #16324e;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(600px circle at 80% 0%, rgba(47,130,237,0.35), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: #c3d0e2; max-width: 560px; margin: 0 auto 30px; font-size: 1.08rem; }
.cta-band .hero-cta { justify-content: center; }
.cta-band .btn-primary { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px -10px rgba(250,217,77,0.55); }
.cta-band .btn-primary:hover { background: var(--gold-hover); box-shadow: 0 16px 30px -10px rgba(250,217,77,0.55); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cta-band .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: #fff; }

/* Page hero (interior) */
.page-hero { padding: 76px 0 18px; }
.page-hero h1 { max-width: 840px; margin-bottom: 20px; }
.page-hero .lead { max-width: 700px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-dim); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--blue); }

/* Industries / tag grid */
.tag-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tag-grid .tag {
  padding: 20px; border-radius: var(--radius-sm); text-align: center;
  background: #fff; border: 1px solid var(--border);
  font-weight: 600; font-size: 0.92rem; letter-spacing: 0.02em; color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s, transform .2s;
}
.tag-grid .tag:hover { border-color: var(--blue); background: var(--blue-tint); transform: translateY(-2px); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info-item { display: flex; gap: 16px; margin-bottom: 26px; }
.contact-info-item .ci-icon {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 12px;
  background: var(--blue-tint); border: 1px solid #d7e6fc;
  display: grid; place-items: center; color: var(--blue);
}
.contact-info-item .ci-icon svg { width: 23px; height: 23px; }
.contact-info-item .ci-label { font-size: 0.8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-info-item .ci-value { font-size: 1.05rem; font-weight: 600; color: var(--navy); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 0.88rem; color: var(--text-muted); margin-bottom: 8px; font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: #fff; border: 1px solid var(--border-strong); color: var(--navy);
  font-family: inherit; font-size: 0.98rem; transition: border-color .2s, box-shadow .2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,130,237,0.15);
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.85rem; color: var(--text-dim); margin-top: 14px; }
.form-success {
  display: none; padding: 14px 18px; border-radius: var(--radius-sm);
  background: #e9f8ef; border: 1px solid #7fd3a2; color: #1e7a49;
  margin-top: 16px; font-weight: 500;
}

/* Metrics */
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.metric { text-align: center; padding: 32px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.metric .m-num { font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; }
.metric .m-label { color: var(--text-muted); font-size: 0.92rem; margin-top: 8px; }
.editable-note {
  padding: 16px 20px; border-radius: var(--radius-sm); margin: 14px 0;
  background: #fff9e6; border: 1px dashed #e6c84d;
  color: #8a6d00; font-size: 0.9rem;
}

/* Footer */
.footer { background: var(--navy); color: #b7c4d6; padding: 64px 0 34px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 46px; }
.footer .logo img { height: 42px; }
.footer p { color: #93a3ba; font-size: 0.95rem; margin-top: 16px; max-width: 300px; }
.footer h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: #6f8199; margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 11px; }
.footer-links a, .footer-links li { color: #a9b8cc; font-size: 0.95rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.1);
  color: #6f8199; font-size: 0.88rem; flex-wrap: wrap; gap: 12px;
}

/* Emoji-fallback sizing inside icon tiles (SVGs keep their explicit size) */
.card-icon, .role-badge, .ci-icon, .role .role-badge { font-size: 1.5rem; line-height: 1; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3, .grid-4, .steps, .tag-grid, .role-grid, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .section { padding: 66px 0; }
  .nav-links {
    position: fixed; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; box-shadow: var(--shadow);
    border-bottom: 1px solid var(--border); padding: 16px 24px;
    transform: translateY(-140%); transition: transform .3s ease; z-index: 90;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 13px 15px; }
  .nav-cta { margin: 8px 0 0; text-align: center; justify-content: center; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .steps, .tag-grid, .role-grid, .metric-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 24px; }
  .hero .lead { font-size: 1.08rem; }
  .logo img { height: 34px; }
}
