/* ============================================================
   BASE  Reset, CSS variables, global typography, shared buttons
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f8f7f4;
  --sidebar-bg: #ffffff;
  --sidebar-border: #e5e7eb;
  --text-primary: #1a1a2e;
  --text-secondary: #4b5563;
  --accent: #0ea5e9;
  --accent-light: #e0f2fe;
  --accent-dark: #0284c7;
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --section-alt: #ffffff;
  --sidebar-width: 260px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  display: flex;
  min-height: 100vh;
  overflow-x: hidden;
}

section { padding: 80px 60px; }
.section-alt { background: var(--section-alt); }
.section-header { margin-bottom: 48px; }

.section-watermark {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: #e5e7eb;
  position: absolute;
  top: -20px;
  right: 0;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.section-header-inner { position: relative; z-index: 1; }

.section-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-family: 'DM Sans', sans-serif;
  margin-bottom: 8px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-title span {
  display: inline-block;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 2px;
}

/* Shared buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s;
  border: 2px solid var(--accent);
}
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s;
}
.btn-outline:hover { background: var(--accent-light); }

.btn-indigo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: #4f46e5;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  transition: all .2s;
  border: 2px solid #4f46e5;
}
.btn-indigo:hover { background: #4338ca; border-color: #4338ca; }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(14,165,233,.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .2s;
  z-index: 900;
  text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }