/* ==========================================================================
   Clientigent — theme tokens, derived from the brand logo.
   Navy #0A4C80 (wordmark) · Cyan #00AFE5 (cloud mark). Reskin here.
   ========================================================================== */
:root {
  --navy: #0a4c80;
  --navy-deep: #063a63;
  --cyan: #00afe5;
  --cyan-deep: #0098c8;

  --bg: #ffffff;
  --bg-alt: #f2f8fc;
  --surface: #ffffff;
  --surface-2: #eef4fa;
  --border: #dde8f1;

  --text: #12344c;
  --text-muted: #5c7386;
  --on-brand: #ffffff;

  --ring: rgba(0, 175, 229, 0.28);
  --shadow-sm: 0 1px 2px rgba(10, 76, 128, 0.06);
  --shadow-md: 0 10px 30px rgba(10, 76, 128, 0.1);
  --shadow-lg: 0 30px 60px rgba(10, 76, 128, 0.16);
  --grad: linear-gradient(135deg, var(--cyan), var(--navy));

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1120px;
  --font: "Ubuntu", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

/* -------------------------------------------------------------------- Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo { height: 34px; width: auto; display: block; }
.brand-name {
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-muted); font-size: 0.96rem; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: var(--navy); }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-brand) !important;
  box-shadow: var(--shadow-sm);
}
.nav-cta:hover { color: var(--on-brand) !important; filter: brightness(1.05); }

/* --------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: 104px 0 88px;
  overflow: hidden;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 620px;
  background: radial-gradient(50% 60% at 25% 15%, rgba(0, 175, 229, 0.16), transparent 70%),
    radial-gradient(46% 55% at 82% 8%, rgba(10, 76, 128, 0.12), transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--cyan-deep);
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 20px;
  max-width: 17ch;
}
.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.15s ease, filter 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad);
  color: var(--on-brand);
  box-shadow: 0 8px 24px rgba(0, 175, 229, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); box-shadow: 0 12px 32px rgba(0, 175, 229, 0.36); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-block { width: 100%; }

/* ------------------------------------------------------------------- Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 40px;
}

/* --------------------------------------------------------------------- Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--cyan); }
.card-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 13px;
  background: var(--surface-2);
  color: var(--cyan-deep);
  font-size: 1.35rem;
  margin-bottom: 20px;
}
.card h3 { margin: 0 0 10px; font-size: 1.22rem; color: var(--navy); }
.card p { margin: 0; color: var(--text-muted); }

/* ----------------------------------------------------------------------- ERP */
.erp-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.erp-copy p { color: var(--text-muted); }
.checklist { list-style: none; padding: 0; margin: 22px 0 30px; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--text); }
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--cyan-deep);
  font-weight: 800;
}
.erp-visual { display: flex; justify-content: center; }
.mock-window {
  width: 100%;
  max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.mock-bar { display: flex; gap: 7px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.mock-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.mock-bar span:first-child { background: var(--cyan); }
.mock-body { padding: 26px; display: grid; gap: 14px; }
.mock-row { height: 16px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), var(--border)); }
.mock-row.accent { background: linear-gradient(90deg, rgba(0,175,229,0.25), rgba(10,76,128,0.12)); }
.mock-row.short { width: 70%; }
.mock-row.shorter { width: 45%; }

/* ------------------------------------------------------------------- Contact */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.contact-intro p { color: var(--text-muted); }
.contact-direct a { color: var(--cyan-deep); font-weight: 600; }
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 7px; color: var(--text); }
.optional { color: var(--text-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px var(--ring); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 14px 0 0; font-size: 0.92rem; min-height: 1.2em; font-weight: 500; }
.form-status.error { color: #d23b3b; }
.form-status.success { color: #0a8f52; }

/* -------------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg-alt); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 26px; width: auto; }
.footer-brand .brand-name { font-size: 1.1rem; }
.footer-meta { color: var(--text-muted); font-size: 0.9rem; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .erp-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .erp-visual { order: -1; }
  .nav { gap: 16px; }
}
@media (max-width: 520px) {
  .nav a:not(.nav-cta) { display: none; }
  .section { padding: 62px 0; }
  .hero { padding: 76px 0 62px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
