/* ============================================================
   THEORIEBRILJANT — Solo-inspired SaaS theme
   ============================================================ */

:root {
  /* Brand */
  --orange: #FB6D3A;
  --orange-deep: #DC4F1B;
  --orange-light: #FFE4D6;
  --ink: #272E35;
  --ink-2: #6F767E;
  --ink-3: #A3A9B0;
  --line: #ECECEC;
  --line-2: #F2F2F2;
  --canvas: #FFFFFF;
  --canvas-warm: #FAF8F6;
  --canvas-cream: #FDF6F2;
  --section-bg: #F7F7F7;

  /* Accent dots for stage badge */
  --stage-bg: #FFEFE6;
  --stage-ink: #FB6D3A;

  /* Shadow system */
  --shadow-card: 0 8px 24px rgba(39, 46, 53, 0.06);
  --shadow-card-lg: 0 20px 60px -16px rgba(39, 46, 53, 0.14);
  --shadow-btn: 0 6px 16px -2px rgba(251, 109, 58, 0.40);
  --shadow-soft: 0 2px 8px rgba(39, 46, 53, 0.04);

  /* Motion */
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 150ms;
  --t-base: 250ms;
  --t-slow: 450ms;

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Container ---------- */
.center {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .center { padding: 0 32px; }
}

/* ---------- Type ---------- */
.d1 {
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw + 0.5rem, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #272E35;
}
.d1 span { display: block; color: inherit; }
.h2 {
  font-weight: 800;
  font-size: clamp(2rem, 3vw + 0.5rem, 3rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.h3 {
  font-weight: 700;
  font-size: clamp(1.375rem, 0.6vw + 1.2rem, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.lead {
  color: var(--ink-2);
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.125rem);
  line-height: 1.6;
}

/* "stage" small uppercase label */
.stage {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--stage-bg);
  color: var(--stage-ink);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
}
.stage::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--stage-ink);
  border-radius: 50%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: transform var(--t-fast) var(--ease-spring),
              box-shadow var(--t-fast) var(--ease-out),
              background var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}
.btn_orange {
  background: var(--orange);
  color: #fff;
  box-shadow: var(--shadow-btn);
}
.btn_orange:hover {
  background: var(--orange-deep);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -4px rgba(251, 109, 58, 0.50);
}
.btn_border {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
}
.btn_border:hover {
  border-color: var(--ink);
}
.btn_transparent {
  background: transparent;
  color: var(--ink);
  height: 48px;
  padding: 0 18px;
}
.btn_transparent:hover { color: var(--orange); }
.btn_sm { height: 44px; padding: 0 18px; font-size: 0.875rem; }

/* Focus */
:where(a, button, summary):focus-visible {
  outline: 3px solid rgba(251, 109, 58, 0.40);
  outline-offset: 3px;
  border-radius: var(--r-pill);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base);
}
.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-soft);
}
.header__center {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 24px;
}
.header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.125rem;
  color: var(--ink);
}
.header__logo-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--orange);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 12px -2px rgba(251, 109, 58, 0.40);
}
.header__logo-mark svg { width: 20px; height: 20px; }

.header__wrapper {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}
.header__nav {
  display: none;
  gap: 4px;
}
.header__link {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.header__link:hover {
  color: var(--ink);
  background: var(--canvas-warm);
}
.header__btns {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header__burger {
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: #fff;
  display: grid; place-items: center;
}
.header__burger svg { width: 20px; height: 20px; }

@media (min-width: 1024px) {
  .header__nav { display: flex; }
  .header__burger { display: none; }
}

/* Mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 84px 0 0 0;
  background: var(--canvas);
  padding: 16px 24px 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base), transform var(--t-base);
  z-index: 49;
  border-top: 1px solid var(--line);
  overflow-y: auto;
}
.mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu a:not(.btn) {
  display: block;
  padding: 16px 8px;
  font-weight: 600;
  font-size: 1.0625rem;
  border-bottom: 1px solid var(--line);
}
.mobile-menu__actions { display: grid; gap: 10px; margin-top: 24px; }
@media (min-width: 1024px) { .mobile-menu { display: none; } }
