/* Reguliva — B2B landing · slate / teal / coral accent */

:root {
  --slate: #0B1220;
  --slate-deep: #060A12;
  --surface: #131C2E;
  --surface-light: #1A2438;
  --teal: #0F766E;
  --teal-hover: #0D9488;
  --teal-soft: rgba(15, 118, 110, 0.14);
  --coral: #FB7185;
  --coral-soft: rgba(251, 113, 133, 0.12);
  --text: #E2E8F0;
  --muted: #94A3B8;
  --border: rgba(148, 163, 184, 0.15);
  --font-head: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max: 1120px;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--slate);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--coral); text-decoration: none; }
a:hover { color: #FDA4AF; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
}
.brand:hover { color: var(--text); text-decoration: none; }
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--teal) !important;
  color: #fff !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--teal-hover) !important; color: #fff !important; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  padding: 4.5rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, var(--teal-soft), transparent),
    radial-gradient(ellipse 50% 40% at 10% 80%, var(--coral-soft), transparent),
    linear-gradient(180deg, var(--slate-deep) 0%, var(--slate) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-hover);
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--coral);
}
.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-head);
  transition: background 0.15s, border-color 0.15s;
}
.btn-primary {
  background: var(--teal);
  color: #fff;
}
.btn-primary:hover { background: var(--teal-hover); color: #fff; text-decoration: none; }
.btn-outline {
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--muted); color: var(--text); text-decoration: none; }
.btn-lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.hero-metrics dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.hero-metrics dd {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

/* Workflow panel */
.workflow-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}
.panel-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.1rem;
  background: var(--slate-deep);
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.panel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.workflow-steps {
  list-style: none;
  padding: 1.25rem;
}
.workflow-steps .step {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  opacity: 0.55;
}
.workflow-steps .step:last-child { border-bottom: none; }
.workflow-steps .step.done { opacity: 0.75; }
.workflow-steps .step.active {
  opacity: 1;
  background: var(--teal-soft);
  margin: 0 -1.25rem;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  border-radius: 8px;
  border-bottom-color: transparent;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.step.active .step-num {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.workflow-steps strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}
.workflow-steps p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Sections */
.section { padding: 4rem 0; }
.section-surface { background: var(--surface); }
.section-deep { background: var(--slate-deep); }
.section-muted { background: var(--surface-light); }
.section-head { margin-bottom: 2.5rem; max-width: 640px; }
.section-head.light .section-desc { color: var(--muted); }
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--coral);
  margin-bottom: 0.5rem;
}
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.section-desc { color: var(--muted); font-size: 1rem; }

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.service-card {
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s;
}
.service-card:hover { border-color: rgba(15, 118, 110, 0.4); }
.service-card.highlight {
  border-color: var(--teal);
  background: linear-gradient(135deg, var(--slate) 0%, rgba(15, 118, 110, 0.08) 100%);
}
.card-index {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--teal-hover);
  margin-bottom: 0.75rem;
}
.service-card h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.service-card p { color: var(--muted); font-size: 0.92rem; }

/* Frameworks */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}
.framework-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.framework-item h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: var(--text);
}
.framework-item p { font-size: 0.85rem; color: var(--muted); }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: start;
}
.about-grid p { color: var(--muted); margin-bottom: 1rem; }
address {
  font-style: normal;
  margin-top: 1.25rem;
  line-height: 1.8;
  color: var(--muted);
}
.about-aside {
  background: var(--slate);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.about-aside h3 {
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
}
.about-aside h3:first-child { margin-top: 0; }
.about-aside ul {
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.about-aside li {
  padding: 0.35rem 0;
  padding-left: 1rem;
  position: relative;
}
.about-aside li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--teal);
}

/* FAQ */
.faq-list details {
  border-bottom: 1px solid var(--border);
  padding: 0.25rem 0;
}
.faq-list summary {
  padding: 1rem 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p {
  color: var(--muted);
  padding-bottom: 1rem;
  font-size: 0.95rem;
}

/* CTA */
.section-cta { padding: 3.5rem 0 4.5rem; }
.cta-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, var(--surface) 0%, rgba(15, 118, 110, 0.15) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.cta-box h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.cta-box p { color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.5rem;
  background: var(--slate-deep);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 0.5rem; }
.footer-x-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-size: 0.85rem;
  font-weight: 500;
}
.footer-x-pill:hover { border-color: var(--teal); color: var(--text) !important; text-decoration: none; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
.footer-nav a { color: var(--muted); font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); text-decoration: none; }
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.footer-bottom p { color: var(--muted); font-size: 0.82rem; }

/* Legal pages */
.legal-wrap { background: var(--slate); min-height: 100vh; }
.legal-back {
  display: inline-block;
  padding: 1.25rem 1.5rem;
  color: var(--muted);
  font-weight: 600;
}
.legal-back:hover { color: var(--text); text-decoration: none; }
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
}
.legal-page h1 {
  font-family: var(--font-head);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.legal-page h2 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  margin: 1.75rem 0 0.75rem;
}
.legal-page p, .legal-page li {
  color: var(--muted);
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}
.legal-page .updated { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .workflow-panel { order: -1; }
}
@media (max-width: 700px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--slate);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .hero-metrics { gap: 1.25rem; }
}
