/*
  MBSRN Draft Stylesheet
  - Color theme inspired by mbsrn-logo (green on dark grunge background)
  - Supports light / dark themes via [data-theme] on <html>
  - Draft-only; operators can refine before production.
*/

:root {
  --color-bg: #050607;
  --color-bg-alt: #0b0f11;
  --color-surface: #11161a;
  --color-surface-alt: #151b21;
  --color-border-subtle: #222b33;
  --color-text: #e7edf2;
  --color-text-soft: #a7b3bf;
  --color-accent: #4ad46a;
  --color-accent-soft: rgba(74, 212, 106, 0.12);
  --color-accent-strong: #2db14d;
  --color-danger: #ff4b6b;
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.45);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

html[data-theme='light'] {
  --color-bg: #f5f7f9;
  --color-bg-alt: #ffffff;
  --color-surface: #ffffff;
  --color-surface-alt: #f0f3f6;
  --color-border-subtle: #d0d7e2;
  --color-text: #141a21;
  --color-text-soft: #5b6572;
  --color-accent: #14944a;
  --color-accent-soft: rgba(20, 148, 74, 0.08);
  --color-accent-strong: #0f6c37;
  --shadow-soft: 0 14px 30px rgba(12, 20, 32, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(circle at top left, #183321 0, var(--color-bg) 38%),
    radial-gradient(circle at bottom right, #102118 0, #050607 45%);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
}

html[data-theme='light'] body {
  background: radial-gradient(circle at top left, #e4f3e9 0, #f5f7f9 40%),
    radial-gradient(circle at bottom right, #dde7f2 0, #f5f7f9 45%);
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-strong);
}

h1,
 h2,
 h3,
 h4 {
  margin-top: 0;
  letter-spacing: 0.01em;
}

p {
  margin-top: 0;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.section-intro {
  max-width: 640px;
  color: var(--color-text-soft);
}

.small-text {
  font-size: 0.85rem;
}

.small-text.strong {
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: linear-gradient(135deg, rgba(15, 26, 18, 0.95), rgba(5, 8, 12, 0.98));
}

html[data-theme='light'] .section-alt {
  background: linear-gradient(135deg, #e9f4ed, #f5f7f9);
}

.mt-lg {
  margin-top: 3rem;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: linear-gradient(to right, rgba(4, 8, 10, 0.94), rgba(9, 11, 13, 0.92));
  border-bottom: 1px solid rgba(50, 70, 55, 0.6);
}

html[data-theme='light'] header.site-header {
  background: rgba(248, 251, 253, 0.96);
  border-bottom-color: rgba(186, 203, 190, 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: inherit;
}

.brand-logo {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(74, 212, 106, 0.45);
}

.brand-text {
  font-weight: 600;
  font-size: 0.98rem;
}

.main-nav {
  display: flex;
  gap: 1.2rem;
  font-size: 0.92rem;
}

.nav-link {
  color: var(--color-text-soft);
  padding: 0.2rem 0;
  position: relative;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: linear-gradient(90deg, #4ad46a, #2db14d);
  border-radius: 999px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid var(--color-border-subtle);
  background: var(--color-surface-alt);
  color: var(--color-text-soft);
  padding: 0.3rem 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.hero {
  padding: 4.5rem 0 3.5rem;
}

.hero-compact {
  padding: 3.5rem 0 2.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 2.4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 2.5vw, 2.6rem);
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 34rem;
}

.hero-ctas {
  margin: 1.4rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
  color: var(--color-text-soft);
}

.hero-points li::before {
  content: '• ';
  color: var(--color-accent);
}

.hero-note {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.hero-card {
  background: radial-gradient(circle at top, rgba(74, 212, 106, 0.12), transparent 50%),
    var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(74, 212, 106, 0.35);
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-logo {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(74, 212, 106, 0.6);
}

.badge {
  font-size: 0.75rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(33, 189, 80, 0.14);
  border: 1px solid rgba(74, 212, 106, 0.6);
}

.hero-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.93rem;
}

.checklist li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.25rem;
}

.checklist li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.15s ease, transform 0.05s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-strong));
  color: #020304;
  box-shadow: 0 10px 25px rgba(74, 212, 106, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(74, 212, 106, 0.45);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(142, 203, 159, 0.9);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  background: rgba(74, 212, 106, 0.06);
}

.btn-secondary {
  background: rgba(10, 17, 12, 0.9);
  border-color: rgba(92, 144, 106, 0.9);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.7rem;
}

.card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(47, 63, 53, 0.85);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.35);
}

.card-minimal {
  background: rgba(6, 11, 9, 0.85);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.1rem;
  border: 1px solid rgba(37, 57, 42, 0.85);
}

html[data-theme='light'] .card,
html[data-theme='light'] .card-minimal {
  background: #ffffff;
  border-color: #d0dccf;
  box-shadow: 0 14px 28px rgba(10, 20, 12, 0.14);
}

.list-bullets {
  padding-left: 1.2rem;
  margin: 0.6rem 0 0;
}

.list-bullets li {
  margin-bottom: 0.35rem;
}

.numbered {
  padding-left: 1.1rem;
}

.workflow-steps {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  counter-reset: step;
}

.workflow-steps > li {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 1.4rem;
}

.workflow-steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #cdf8d7 0, #4ad46a 52%, #0f2014 100%);
  color: #020403;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 0 0 2px rgba(21, 93, 44, 0.7);
}

.workflow-cta-row,
.summary-cta-row {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.inline-link {
  font-size: 0.9rem;
  text-decoration: underline;
  text-decoration-color: rgba(74, 212, 106, 0.65);
  text-underline-offset: 0.18em;
}

.inline-link:hover {
  text-decoration-color: var(--color-accent-strong);
}

.trust-grid,
.summary-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

.trust-aside {
  background: radial-gradient(circle at top, rgba(74, 212, 106, 0.13), transparent 55%),
    rgba(5, 9, 6, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.3rem;
  border: 1px solid rgba(93, 180, 115, 0.8);
  box-shadow: var(--shadow-soft);
}

html[data-theme='light'] .trust-aside {
  background: #f5faf6;
}

.form .field {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.9rem;
}

.form label {
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.form input,
.form select,
.form textarea {
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  padding: 0.45rem 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: var(--color-bg-alt);
  color: var(--color-text);
}

html[data-theme='light'] .form input,
html[data-theme='light'] .form select,
html[data-theme='light'] .form textarea {
  background: #fdfefe;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: 1px solid var(--color-accent);
  border-color: var(--color-accent);
}

.form-note {
  margin-top: 0.5rem;
  color: var(--color-text-soft);
}

.site-footer {
  border-top: 1px solid rgba(47, 63, 53, 0.9);
  background: radial-gradient(circle at top, #101713 0, #050607 45%);
  padding: 1.8rem 0 2.2rem;
  margin-top: 2rem;
}

html[data-theme='light'] .site-footer {
  background: #f5f7f9;
  border-top-color: #cedacd;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
  gap: 1.4rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo {
  height: 28px;
  width: 28px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(74, 212, 106, 0.55);
}

.footer-text {
  font-size: 0.88rem;
  font-weight: 600;
}

.footer-nav {
  display: flex;
  gap: 0.85rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 0.8rem;
  color: var(--color-text-soft);
}

.footer-link:hover {
  color: var(--color-accent);
}

.footer-meta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-soft);
  margin-top: 0.4rem;
}

.footer-dot {
  opacity: 0.8;
}

@media (max-width: 840px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 0.5rem;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .hero-grid,
  .grid-2,
  .grid-3,
  .trust-grid,
  .summary-grid,
  .contact-grid,
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer {
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .footer-meta {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 3.2rem;
  }

  .section {
    padding: 3rem 0;
  }

  .hero-ctas {
    flex-direction: column;
    align-items: flex-start;
  }
}