/* ---------- Base ---------- */
:root {
  --bg: #0b1020;
  --bg-soft: #11172e;
  --bg-alt: #f6f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --primary: #2f6bff;
  --primary-dark: #1f4fd1;
  --accent: #19c37d;
  --warn: #f5a623;
  --danger: #ef4444;
  --border: #e5e7eb;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 14px 40px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 30px 70px rgba(15, 23, 42, 0.12);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4, h5 {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

p { margin: 0 0 1em; color: var(--text-soft); }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 14px;
}

.lead { font-size: 1.1rem; color: var(--text-soft); }

.muted { color: var(--muted); font-size: 0.95rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 18px rgba(47, 107, 255, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); color: white; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.logo:hover { color: var(--text); }
.logo-mark {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, #2f6bff, #19c37d);
  color: white;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(47, 107, 255, 0.35);
}
.logo-text { font-size: 1.05rem; }
.logo-text strong { font-weight: 800; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-links a {
  color: var(--text-soft);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.btn { color: white; }

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 110px;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(47, 107, 255, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(25, 195, 125, 0.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f7f9ff 100%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-copy h1 { margin-bottom: 18px; }
.hero-cta {
  display: flex;
  gap: 12px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.5rem; font-weight: 800; color: var(--text); }
.hero-stats span { font-size: 0.85rem; color: var(--muted); }

.hero-visual {
  position: relative;
  height: 460px;
}
.card-floating {
  position: absolute;
  background: white;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  width: 260px;
}
.card-1 { top: 0; left: 30px; animation: float 6s ease-in-out infinite; }
.card-2 { top: 150px; right: 0; animation: float 7s ease-in-out infinite; animation-delay: -2s; }
.card-3 { bottom: 0; left: 0; animation: float 8s ease-in-out infinite; animation-delay: -4s; }
.card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 8px;
}
.card-floating h4 { margin: 0 0 4px; font-size: 1rem; }
.card-floating p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green { background: var(--accent); }
.dot-yellow { background: var(--warn); }
.dot-red { background: var(--danger); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Trusted ---------- */
.trusted {
  padding: 30px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trusted-label {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.trusted-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 32px;
  font-weight: 600;
  color: var(--text-soft);
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 50px;
}
.section-head p { font-size: 1.05rem; }

.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Feature cards ---------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(47, 107, 255, 0.35);
}
.feature-icon {
  width: 48px; height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 107, 255, 0.1);
  border-radius: 12px;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature h3 { margin-bottom: 8px; }
.feature p { margin: 0; }

/* ---------- Split (automation) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-copy h2 { margin-bottom: 14px; }
.check-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 18px;
  display: grid;
  gap: 12px;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 20px; height: 20px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
}
.check-list li strong { color: var(--text); }

.panel {
  background: var(--bg);
  color: #cbd5e1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid #1e2742;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid #1e2742;
}
.panel-title {
  margin-left: 10px;
  font-size: 0.85rem;
  color: #94a3b8;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
}
.code {
  margin: 0;
  padding: 22px 22px 26px;
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #e2e8f0;
}
.c-comment { color: #64748b; }
.c-key { color: #7dd3fc; font-weight: 600; }
.c-str { color: #fbbf24; }

/* ---------- Industries ---------- */
.industry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.industry:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.industry-icon { font-size: 1.6rem; display: inline-block; margin-bottom: 10px; }
.industry h4 { margin-bottom: 6px; }
.industry p { margin: 0; font-size: 0.92rem; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: rgba(47, 107, 255, 0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; font-size: 0.95rem; }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 50px;
  align-items: center;
}
.value-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.value-card h3 { margin-bottom: 14px; }

/* ---------- CTA / Contact ---------- */
.section-cta {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(47, 107, 255, 0.15), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(25, 195, 125, 0.12), transparent 60%),
    var(--bg-alt);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  color: var(--text-soft);
}
.contact-list li { margin-bottom: 8px; }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--text);
}
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-status {
  margin: 12px 0 0;
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status.success { color: var(--accent); }
.form-status.error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: #cbd5e1;
  padding: 60px 0 28px;
  margin-top: 0;
}
.site-footer .logo { color: white; }
.site-footer .logo:hover { color: white; }
.site-footer h5 { color: #cbd5e1; }
.site-footer p { color: #94a3b8; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #1e2742;
}
.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: #94a3b8; font-size: 0.95rem; }
.footer-grid a:hover { color: white; }
.footer-bottom {
  padding-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: #64748b;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 400px; max-width: 380px; margin: 0 auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-inner { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links a:last-child { border-bottom: none; margin-top: 8px; }

  .hero { padding: 60px 0 70px; }
  .hero-stats { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
