/* CommandGrid CRM — marketing site styles */
:root {
  --blue-500: #3b82f6;
  --blue-700: #1e40af;
  --blue-900: #172554;
  --orange-300: #fbbf24;
  --orange-500: #f97316;
  --ink: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .08), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
  --maxw: 1140px;
  --grad-blue: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  --grad-orange: linear-gradient(135deg, #fbbf24 0%, #f97316 100%);
  --font: 'Inter', -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(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--slate-700); }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.bg-slate { background: var(--slate-50); }
.bg-ink { background: var(--ink); color: #e2e8f0; }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--slate-700); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--blue-700); margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 1rem; padding: 13px 26px; border-radius: var(--radius-sm);
  cursor: pointer; border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--grad-orange); color: #4a2400; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: var(--shadow-md); color: #4a2400; }
.btn-blue { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn-blue:hover { box-shadow: var(--shadow-md); color:#fff; }
.btn-ghost { background: transparent; color: var(--blue-700); border-color: var(--slate-300); }
.btn-ghost:hover { border-color: var(--blue-500); background: #fff; }
.btn-white { background: #fff; color: var(--blue-700); }
.btn-lg { padding: 16px 34px; font-size: 1.05rem; }

/* Header / Nav */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--slate-100);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--blue-700); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate-700); font-weight: 600; font-size: .98rem; }
.nav-links a:hover { color: var(--blue-700); text-decoration: none; }
.nav-links a.active { color: var(--blue-700); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--grad-blue); color: #fff; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 480px at 80% -10%, rgba(251,191,36,.35), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; padding-top: 92px; padding-bottom: 92px; }
.hero h1 { color: #fff; max-width: 18ch; }
.hero p { color: #dbeafe; font-size: 1.22rem; max-width: 60ch; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); color: #fff; padding: 7px 14px; border-radius: 999px;
  font-size: .85rem; font-weight: 600; margin-bottom: 20px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #bfdbfe; }

/* Mockup card */
.mockup {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
}
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--slate-100); border-bottom: 1px solid var(--slate-300); }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mockup-bar i:nth-child(1){ background:#ff5f57;} .mockup-bar i:nth-child(2){ background:#febc2e;} .mockup-bar i:nth-child(3){ background:#28c840;}
.mockup-body { padding: 18px; display: grid; grid-template-columns: 92px 1fr; gap: 14px; background:#fff; }
.mockup-side { background: var(--ink); border-radius: 10px; padding: 14px 10px; display: flex; flex-direction: column; gap: 10px; }
.mockup-side span { height: 9px; border-radius: 5px; background: rgba(255,255,255,.18); }
.mockup-side span.on { background: var(--orange-500); }
.mockup-main { display: flex; flex-direction: column; gap: 12px; }
.mk-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.mk-stat { background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 10px; padding: 12px; }
.mk-stat b { display: block; font-size: 1.3rem; color: var(--ink); }
.mk-stat small { color: var(--slate-500); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.mk-list { display: flex; flex-direction: column; gap: 8px; }
.mk-item { display: flex; align-items: center; gap: 10px; background: var(--slate-50); border: 1px solid var(--slate-100); border-radius: 8px; padding: 9px 12px; }
.mk-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange-500); flex: none; }
.mk-item .bar { height: 8px; border-radius: 4px; background: var(--slate-300); flex: 1; }
.mk-item .bar.short { max-width: 50%; }

/* Logos / trust row */
.trust { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: center; justify-content: center; color: var(--slate-500); font-weight: 700; }
.trust span { font-size: 1rem; letter-spacing: .02em; }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 800; background: var(--grad-blue); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--slate-500); font-weight: 600; font-size: .95rem; }

/* Feature grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--slate-100); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--slate-300); }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .98rem; }
.icon {
  width: 50px; height: 50px; border-radius: 12px; display: grid; place-items: center;
  margin-bottom: 16px; background: var(--grad-blue); color: #fff;
}
.icon.alt { background: var(--grad-orange); color: #4a2400; }
.icon svg { width: 26px; height: 26px; }

/* Alternating feature rows */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-row + .feature-row { margin-top: 72px; }
.feature-row.rev .feature-text { order: 2; }
.feature-text h2 { font-size: 1.7rem; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; }
.checklist li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--slate-700); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.visual-panel {
  border-radius: var(--radius); padding: 30px; background: var(--slate-50);
  border: 1px solid var(--slate-100); box-shadow: var(--shadow-sm); min-height: 240px;
}

/* CTA band */
.cta-band { background: var(--grad-blue); color: #fff; border-radius: 20px; padding: 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 100% 0, rgba(251,191,36,.35), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dbeafe; max-width: 600px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; background:#fff; border:1px solid var(--slate-100); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.price-card.featured { border: 2px solid var(--blue-500); box-shadow: var(--shadow-md); position: relative; }
.price-card.featured .tag { position:absolute; top:-13px; left:50%; transform:translateX(-50%); background: var(--grad-orange); color:#4a2400; font-weight:700; font-size:.78rem; padding:5px 14px; border-radius:999px; }
.price-card h3 { font-size: 1.3rem; }
.price-card .price { font-size: 2rem; font-weight: 800; margin: 6px 0 4px; }
.price-card .price small { font-size: .95rem; font-weight: 600; color: var(--slate-500); }
.price-card .desc { color: var(--slate-500); font-size: .95rem; min-height: 44px; }
.price-card .checklist { flex: 1; }
.price-card .btn { margin-top: 20px; width: 100%; }

/* Forms */
.form-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.form { background:#fff; border:1px solid var(--slate-100); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display:block; font-weight:600; font-size:.9rem; margin-bottom:6px; color: var(--slate-700); }
.field input, .field select, .field textarea {
  width:100%; padding: 12px 14px; border:1px solid var(--slate-300); border-radius: 10px; font-family: inherit; font-size: 1rem; color: var(--ink); background:#fff;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(59,130,246,.18); }
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--slate-500); margin-top: 14px; }
.form-success { display:none; background:#ecfdf5; border:1px solid #6ee7b7; color:#065f46; padding:14px 16px; border-radius:10px; margin-bottom:18px; font-weight:600; }
.form-error { display:none; background:#fef2f2; border:1px solid #fca5a5; color:#991b1b; padding:14px 16px; border-radius:10px; margin-bottom:18px; font-weight:600; }
.form-error a { color:#991b1b; text-decoration: underline; }

.info-list { list-style:none; padding:0; margin:0; }
.info-list li { display:flex; gap:14px; margin-bottom:22px; }
.info-list .icon { margin: 0; width: 44px; height: 44px; flex:none; }
.info-list b { display:block; color: var(--ink); }
.info-list span { color: var(--slate-500); }

/* Legal / prose pages */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--slate-700); }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.callout { background: var(--slate-50); border: 1px solid var(--slate-300); border-left: 4px solid var(--blue-500); border-radius: 10px; padding: 18px 22px; margin: 22px 0; }
.callout strong { color: var(--ink); }
.updated { color: var(--slate-500); font-size: .92rem; }

.page-head { background: var(--slate-50); border-bottom: 1px solid var(--slate-100); padding: 64px 0; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head p { font-size: 1.12rem; max-width: 640px; }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: #94a3b8; display: block; margin-bottom: 10px; font-size: .95rem; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .brand { color:#fff; margin-bottom: 14px; }
.site-footer .brand b { color: var(--orange-300); }
.footer-about { font-size: .95rem; color: #94a3b8; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display:flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .88rem; color:#64748b; }
.footer-bottom a { display:inline; color:#94a3b8; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .feature-row, .form-grid { grid-template-columns: 1fr; gap: 36px; }
  .feature-row.rev .feature-text { order: 0; }
  .grid-3, .price-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--slate-100); padding: 16px 24px; gap: 16px; box-shadow: var(--shadow-md);
  }
  .grid-3, .grid-2, .price-grid, .stats, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .hero .container { padding-top: 64px; padding-bottom: 64px; }
}
