/* SolveLogix — premium SaaS theme */
:root {
  --navy-900: #0a1020;
  --navy-800: #0f172a;
  --navy-700: #131c34;
  --navy-600: #1b2542;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e7ecf3;
  --text-dim: #9aa6bd;
  --text-muted: #6b7793;
  --accent: #38bdf8;
  --accent-2: #22d3ee;
  --accent-green: #34d399;
  --accent-soft: rgba(56, 189, 248, 0.14);
  --card: rgba(255, 255, 255, 0.04);
  --card-strong: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.08);
  --light-bg: #f5f7fb;
  --light-card: #ffffff;
  --light-text: #0f172a;
  --light-text-dim: #475569;
  --light-border: #e6ebf2;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.25);
  --shadow-soft: 0 2px 10px rgba(15, 23, 42, 0.06);
  --maxw: 1180px;
  --gap: 24px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 72px 0; }
.section.light { background: var(--light-bg); color: var(--light-text); }
.section.light .eyebrow { color: #2563eb; }
.section.light .section-title { color: var(--light-text); }
.section.light .section-sub { color: var(--light-text-dim); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-title {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.15;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  font-weight: 700;
}
.section-sub {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0;
}

/* ---------- Top navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10, 16, 32, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 18px;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  position: relative;
  box-shadow: 0 6px 18px rgba(56, 189, 248, 0.35);
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 4px;
  background: var(--navy-900);
  clip-path: polygon(0 50%, 35% 50%, 50% 25%, 65% 75%, 100% 50%, 100% 50%);
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14.5px;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--card-strong); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  width: 40px;
  height: 38px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -5px; }
.nav-toggle span::after { position: absolute; top: 5px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, #f59e0b, #ea7a32);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(234, 122, 50, 0.45);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f17a3c);
  box-shadow: 0 12px 28px rgba(234, 122, 50, 0.55);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--card-strong); border-color: rgba(255,255,255,0.22); }
.btn-light {
  background: var(--light-text);
  color: #fff;
}
.btn-light:hover { background: #1e293b; }
.btn-outline-light {
  border-color: var(--light-border);
  color: var(--light-text);
}
.btn-outline-light:hover { background: #fff; }
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 110px;
  background:
    radial-gradient(1000px 500px at 80% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(800px 500px at 0% 10%, rgba(34, 211, 238, 0.10), transparent 60%),
    linear-gradient(180deg, #0a1020 0%, #0c1428 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 50%, transparent 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.hero h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  font-weight: 700;
}
.hero h1 .grad {
  background: linear-gradient(135deg, #7dd3fc, #22d3ee 60%, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 32px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--text-muted);
  font-size: 13px;
  flex-wrap: wrap;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* ---------- Cards grid ---------- */
.grid {
  display: grid;
  gap: var(--gap);
}
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  background: var(--card-strong);
}
.card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  border: 1px solid rgba(56, 189, 248, 0.22);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 15px;
}
.section.light .card {
  background: var(--light-card);
  border-color: var(--light-border);
  box-shadow: var(--shadow-soft);
  color: var(--light-text);
}
.section.light .card p { color: var(--light-text-dim); }
.section.light .card .icon {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.15);
}
.section.light .card:hover { border-color: #d3dbe7; }

/* ---------- Product cards ---------- */
.product {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px;
}
.product-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.product-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.tag.green {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border-color: rgba(52, 211, 153, 0.25);
}
.tag.muted {
  background: rgba(255,255,255,0.04);
  color: var(--text-muted);
  border-color: var(--line);
}
.product p { color: var(--text-dim); font-size: 15px; margin: 0; }
.product-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.product-link:hover { color: var(--accent-2); }
.product .icon { margin-bottom: 0; }

/* ---------- Consulting split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
}
.split h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.split p { color: var(--text-dim); font-size: 17px; margin: 0 0 24px; }
.section.light .split p { color: var(--light-text-dim); }

.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
}
@media (max-width: 600px) { .checklist { grid-template-columns: 1fr; } }
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.checklist li::before {
  content: "";
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(56,189,248,0.3);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
  background-size: 12px;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Visual panel for consulting */
.viz {
  position: relative;
  background:
    linear-gradient(160deg, rgba(56, 189, 248, 0.10), rgba(34, 211, 238, 0.04) 60%, transparent),
    var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow: hidden;
}
.viz::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px 200px at 80% 0%, rgba(56, 189, 248, 0.18), transparent 70%);
  pointer-events: none;
}
.viz-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  position: relative;
  z-index: 1;
}
.viz-tile {
  background: rgba(10, 16, 32, 0.45);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 16px;
}
.viz-tile .label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.viz-tile .value { font-size: 22px; font-weight: 700; margin-top: 6px; letter-spacing: -0.01em; }
.viz-tile .delta { font-size: 12px; color: var(--accent-green); margin-top: 4px; }
.viz-bar {
  margin-top: 8px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.viz-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Insights ---------- */
.insight {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s;
}
.insight:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.insight .cat {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.insight h3 { margin: 0 0 10px; font-size: 17px; letter-spacing: -0.01em; }
.insight p { color: var(--text-dim); font-size: 14.5px; margin: 0 0 16px; }
.insight .meta { font-size: 13px; color: var(--text-muted); margin-top: auto; }
.section.light .insight {
  background: var(--light-card);
  border-color: var(--light-border);
  box-shadow: var(--shadow-soft);
}
.section.light .insight .cat { color: #2563eb; }
.section.light .insight p { color: var(--light-text-dim); }
.section.light .insight .meta { color: #94a3b8; }

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: -20px auto 40px;
  max-width: 760px;
}
.chip {
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 999px;
  border: 1px solid var(--light-border);
  background: #fff;
  color: var(--light-text-dim);
}
.section .chips { margin-top: -28px; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  text-align: center;
  padding: 100px 0;
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(56, 189, 248, 0.20), transparent 60%),
    linear-gradient(180deg, #0a1020, #0c1428);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.final-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 760px;
}
.final-cta p { color: var(--text-dim); max-width: 600px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer {
  background: #07101f;
  color: var(--text-dim);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .foot-grid { grid-template-columns: 1fr; }
}
.foot-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 0 0 14px;
}
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 8px; font-size: 14px; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Page header (for sub-pages) ---------- */
.page-head {
  padding: 110px 0 60px;
  text-align: center;
  background:
    radial-gradient(900px 400px at 50% -10%, rgba(56, 189, 248, 0.16), transparent 60%),
    linear-gradient(180deg, #0a1020, #0c1428);
  border-bottom: 1px solid var(--line);
}
.page-head h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 700;
}
.page-head p {
  max-width: 660px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 17px;
}

/* ---------- Forms (contact) ---------- */
.form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 640px;
  margin: 0 auto;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; color: var(--text-dim); font-weight: 500; }
.field input,
.field select,
.field textarea {
  background: rgba(10, 16, 32, 0.45);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font: inherit;
  outline: none;
  transition: border-color .2s, background .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  background: rgba(10, 16, 32, 0.7);
}
.field textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; justify-content: center; }

/* ---------- Mobile nav ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 16, 32, 0.96);
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 4px;
  }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 15px; }
  .nav.open .nav-cta { margin: 6px 0 0; }
}

/* ---------- Misc ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
