@import url('index-CfJFHwT_.css');

:root {
  --page-max-width: 1280px;
  --page-padding-x: 1.5rem;
  --page-padding-y: 2rem;
  --nav-height: 64px;
  --card-radius: 0.75rem;
  --section-gap: 4rem;
}

/* ========== BASE RESET FOR SUBPAGES ========== */

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

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-hero);
  color: var(--text-primary);
  font-family: Satoshi Variable, Satoshi, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--link-normal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--link-hover);
}

/* ========== LAYOUT WRAPPERS ========== */

.sp-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sp-container {
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
}

/* ========== NAVIGATION ========== */

.sp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  height: var(--nav-height);
  background-color: var(--nav-surface);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
}

.sp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--page-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-padding-x);
  padding-right: var(--page-padding-x);
  height: 100%;
}

.sp-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.sp-nav__brand:hover {
  color: var(--text-primary);
  opacity: 0.9;
}

.sp-nav__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.sp-nav__brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.sp-nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sp-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: calc(var(--card-radius) - 2px);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--nav-text);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.sp-nav__link:hover {
  background-color: var(--nav-surface-hover);
  color: var(--nav-text-active);
}

.sp-nav__link--active {
  background-color: var(--nav-surface-active);
  color: var(--nav-text-active);
  font-weight: 600;
}

.sp-nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: calc(var(--card-radius) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  background-image: var(--cta-gradient);
  background-color: var(--cta-fallback-bg);
  color: var(--cta-text);
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}

.sp-nav__cta:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--cta-text);
}

.sp-nav__cta:active {
  transform: translateY(0);
  opacity: 1;
}

/* ========== MOBILE NAV TOGGLE ========== */

.sp-nav__mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--divider-line);
  border-radius: calc(var(--card-radius) - 4px);
  padding: 0.375rem 0.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.sp-nav__mobile-toggle:hover {
  border-color: var(--brand-secondary);
  background-color: var(--surface-elevated);
  color: var(--text-primary);
}

.sp-nav__mobile-toggle svg {
  width: 20px;
  height: 20px;
}

.sp-nav__mobile-menu {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background-color: var(--surface-card);
  border-bottom: 1px solid var(--divider-line);
  padding: 0.75rem;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 49;
}

.sp-nav__mobile-menu.is-open {
  display: flex;
}

.sp-nav__mobile-menu .sp-nav__link {
  width: 100%;
  padding: 0.625rem 1rem;
}

/* ========== BREADCRUMB ========== */

.sp-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.sp-breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-breadcrumb__link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sp-breadcrumb__link:hover {
  color: var(--brand-secondary);
}

.sp-breadcrumb__sep {
  color: var(--divider-line);
  font-size: 0.75rem;
}

.sp-breadcrumb__current {
  color: var(--text-secondary);
  font-weight: 500;
}

/* ========== HERO / PAGE HEADER ========== */

.sp-hero {
  width: 100%;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
  background: linear-gradient(
    160deg,
    color-mix(in srgb, var(--brand-secondary) 6%, transparent) 0%,
    transparent 60%
  );
  border-bottom: 1px solid var(--divider-line);
  position: relative;
  overflow: hidden;
}

.sp-hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--brand-secondary) 8%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.sp-hero__inner {
  position: relative;
  z-index: 1;
}

.sp-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background-color: color-mix(in srgb, var(--brand-secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 30%, transparent);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.sp-hero__title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0 0 1rem 0;
  max-width: 700px;
}

.sp-hero__title span {
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-hero__subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 0 2rem 0;
}

.sp-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ========== MAIN CONTENT AREA ========== */

.sp-main {
  flex: 1;
  width: 100%;
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
}

.sp-section {
  margin-bottom: var(--section-gap);
}

.sp-section:last-child {
  margin-bottom: 0;
}

/* ========== SECTION HEADERS ========== */

.sp-section-header {
  margin-bottom: 2rem;
}

.sp-section-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 0.625rem 0;
}

.sp-section-subtitle {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

/* ========== CARD COMPONENT ========== */

.sp-card {
  background-color: var(--surface-card);
  border: 1px solid var(--divider-line);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-card:hover {
  border-color: color-mix(in srgb, var(--brand-secondary) 40%, var(--divider-line) 60%);
  background-color: var(--surface-elevated);
}

.sp-card--elevated {
  background-color: var(--surface-elevated);
  border-color: var(--border-subtle);
}

.sp-card--accent {
  border-color: color-mix(in srgb, var(--brand-secondary) 30%, transparent);
  background-color: color-mix(in srgb, var(--brand-secondary) 4%, var(--surface-card) 96%);
}

.sp-card__icon {
  width: 44px;
  height: 44px;
  border-radius: calc(var(--card-radius) - 2px);
  background-color: color-mix(in srgb, var(--brand-secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 25%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand-secondary);
  flex-shrink: 0;
}

.sp-card__icon svg {
  width: 22px;
  height: 22px;
}

.sp-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.sp-card__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ========== GRID LAYOUTS ========== */

.sp-grid {
  display: grid;
  gap: 1.25rem;
}

.sp-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.sp-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.sp-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.sp-grid--auto {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* ========== FAQ SPECIFIC STYLES ========== */

.sp-faq-page .sp-hero__title {
  max-width: 650px;
}

.sp-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: start;
}

.sp-faq-item {
  background-color: var(--surface-card);
  border: 1px solid var(--divider-line);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sp-faq-item:hover {
  border-color: color-mix(in srgb, var(--brand-secondary) 35%, var(--divider-line) 65%);
  box-shadow: 0 4px 16px -4px color-mix(in srgb, var(--brand-secondary) 15%, transparent);
}

.sp-faq-item__question {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.25rem;
  cursor: pointer;
  user-select: none;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.45;
  transition: color 0.15s ease;
}

.sp-faq-item__question:hover {
  color: var(--brand-secondary);
}

.sp-faq-item__question::-webkit-details-marker {
  display: none;
}

.sp-faq-item__question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.15s ease;
  margin-top: 0.05rem;
}

.sp-faq-item[open] .sp-faq-item__question::after {
  transform: rotate(45deg);
  color: var(--brand-secondary);
}

.sp-faq-item[open] .sp-faq-item__question {
  color: var(--brand-secondary);
  border-bottom: 1px solid var(--divider-line);
}

.sp-faq-item__answer {
  padding: 1.125rem 1.25rem 1.25rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sp-faq-item__answer p {
  margin: 0 0 0.75rem 0;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sp-faq-item__answer p:last-child {
  margin-bottom: 0;
}

.sp-faq-item__answer a {
  color: var(--link-normal);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sp-faq-item__answer a:hover {
  color: var(--link-hover);
}

.sp-faq-item__answer ul,
.sp-faq-item__answer ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.sp-faq-item__answer li {
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.sp-faq-item__answer code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.8125rem;
  background-color: var(--surface-elevated);
  border: 1px solid var(--divider-line);
  border-radius: 4px;
  padding: 0.125rem 0.375rem;
  color: var(--brand-secondary);
}

/* FAQ single column layout for small screens handled in responsive section */

/* ========== PROJECT PAGE SPECIFIC STYLES ========== */

.sp-project-page .sp-hero {
  padding-bottom: 3.5rem;
}

.sp-project-page .sp-hero__title {
  font-size: 2.5rem;
}

.sp-prose {
  max-width: 720px;
}

.sp-prose p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin: 0 0 1.125rem 0;
}

.sp-prose p:last-child {
  margin-bottom: 0;
}

.sp-prose h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 2.5rem 0 0.875rem 0;
  line-height: 1.3;
}

.sp-prose h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 1.75rem 0 0.625rem 0;
  line-height: 1.4;
}

.sp-prose ul {
  padding-left: 1.375rem;
  margin: 0 0 1.125rem 0;
}

.sp-prose ul li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.sp-prose strong {
  color: var(--text-primary);
  font-weight: 600;
}

.sp-prose a {
  color: var(--link-normal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sp-prose a:hover {
  color: var(--link-hover);
}

.sp-prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--brand-secondary);
  background-color: color-mix(in srgb, var(--brand-secondary) 5%, var(--surface-card) 95%);
  border-radius: 0 calc(var(--card-radius) - 4px) calc(var(--card-radius) - 4px) 0;
}

.sp-prose blockquote p {
  margin: 0;
  color: var(--text-primary);
  font-style: italic;
}

/* ========== STAT / METRIC CARDS ========== */

.sp-stat-card {
  background-color: var(--surface-card);
  border: 1px solid var(--divider-line);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  transition: border-color 0.2s ease;
}

.sp-stat-card:hover {
  border-color: color-mix(in srgb, var(--brand-secondary) 35%, var(--divider-line) 65%);
}

.sp-stat-card__value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.sp-stat-card__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sp-stat-card__sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ========== FEATURE LIST ========== */

.sp-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sp-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--divider-line);
}

.sp-feature-item:first-child {
  padding-top: 0;
}

.sp-feature-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sp-feature-item__icon {
  width: 38px;
  height: 38px;
  border-radius: calc(var(--card-radius) - 4px);
  background-color: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 20%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-secondary);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.sp-feature-item__icon svg {
  width: 18px;
  height: 18px;
}

.sp-feature-item__content {
  flex: 1;
  min-width: 0;
}

.sp-feature-item__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.sp-feature-item__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ========== STEP / PROCESS LIST ========== */

.sp-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.sp-steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 38px;
  bottom: 38px;
  width: 1px;
  background: linear-gradient(
    to bottom,
    var(--divider-line),
    color-mix(in srgb, var(--brand-secondary) 30%, var(--divider-line) 70%),
    var(--divider-line)
  );
}

.sp-step {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.25rem 0;
  position: relative;
}

.sp-step__number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: var(--surface-card);
  border: 2px solid var(--brand-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-secondary);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.sp-step__content {
  flex: 1;
  min-width: 0;
  padding-top: 0.375rem;
}

.sp-step__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.25rem 0;
  line-height: 1.4;
}

.sp-step__desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ========== TAG / BADGE ========== */

.sp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.sp-badge--brand {
  background-color: color-mix(in srgb, var(--brand-secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 28%, transparent);
  color: var(--brand-secondary);
}

.sp-badge--success {
  background-color: var(--state-success-bg);
  border: 1px solid color-mix(in srgb, var(--state-success-text) 25%, transparent);
  color: var(--state-success-text);
}

.sp-badge--neutral {
  background-color: var(--tag-neutral-bg);
  border: 1px solid color-mix(in srgb, var(--text-muted) 20%, transparent);
  color: var(--text-secondary);
}

/* ========== BUTTONS ========== */

.sp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5625rem 1.375rem;
  border-radius: calc(var(--card-radius) - 2px);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s ease;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.sp-btn--primary {
  background-image: var(--cta-gradient);
  background-color: var(--cta-fallback-bg);
  color: var(--cta-text);
  border-color: transparent;
}

.sp-btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: var(--cta-text);
  box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--brand-secondary) 35%, transparent);
}

.sp-btn--primary:active {
  transform: translateY(0);
  opacity: 1;
}

.sp-btn--secondary {
  background-color: var(--surface-card);
  color: var(--text-secondary);
  border-color: var(--divider-line);
}

.sp-btn--secondary:hover {
  border-color: var(--brand-secondary);
  color: var(--text-primary);
  background-color: var(--surface-elevated);
}

.sp-btn--ghost {
  background-color: transparent;
  color: var(--text-secondary);
  border-color: transparent;
}

.sp-btn--ghost:hover {
  background-color: var(--surface-elevated);
  color: var(--text-primary);
}

.sp-btn--sm {
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
}

.sp-btn--lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.sp-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ========== DIVIDER ========== */

.sp-divider {
  width: 100%;
  height: 1px;
  background-color: var(--divider-line);
  margin: 2.5rem 0;
  border: none;
}

/* ========== INLINE LINK HIGHLIGHT ========== */

.sp-link-accent {
  color: var(--brand-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.sp-link-accent:hover {
  color: color-mix(in srgb, var(--brand-secondary) 80%, white 20%);
}

/* ========== NOTICE / ALERT BOX ========== */

.sp-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--card-radius);
  border: 1px solid;
  font-size: 0.875rem;
  line-height: 1.6;
}

.sp-notice--info {
  background-color: var(--state-info-bg);
  border-color: color-mix(in srgb, var(--state-info-text) 30%, transparent);
  color: var(--state-info-text);
}

.sp-notice--warning {
  background-color: var(--state-warning-bg);
  border-color: color-mix(in srgb, var(--state-warning-text) 30%, transparent);
  color: var(--state-warning-text);
}

.sp-notice--success {
  background-color: var(--state-success-bg);
  border-color: color-mix(in srgb, var(--state-success-text) 25%, transparent);
  color: var(--state-success-text);
}

.sp-notice__icon {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.sp-notice__icon svg {
  width: 18px;
  height: 18px;
}

/* ========== FOOTER ========== */

.sp-footer {
  width: 100%;
  background-color: var(--surface-card);
  border-top: 1px solid var(--divider-line);
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}

.sp-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sp-footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.sp-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
}

.sp-footer__brand:hover {
  color: var(--text-primary);
}

.sp-footer__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sp-footer__brand-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  max-width: 260px;
  line-height: 1.5;
}

.sp-footer__nav {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.sp-footer__nav-group {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  min-width: 120px;
}

.sp-footer__nav-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.125rem;
}

.sp-footer__nav-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.sp-footer__nav-link:hover {
  color: var(--brand-secondary);
}

.sp-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--divider-line);
  flex-wrap: wrap;
}

.sp-footer__copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}

.sp-footer__socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sp-footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: calc(var(--card-radius) - 4px);
  border: 1px solid var(--divider-line);
  color: var(--text-muted);
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.sp-footer__social-link:hover {
  border-color: var(--brand-secondary);
  color: var(--brand-secondary);
  background-color: color-mix(in srgb, var(--brand-secondary) 8%, transparent);
}

.sp-footer__social-link svg {
  width: 15px;
  height: 15px;
}

/* ========== HOME BUTTON (back to top) ========== */

.sp-home-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 0 0;
}

/* ========== SEARCH / FILTER BAR ========== */

.sp-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.sp-search-input-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 360px;
}

.sp-search-input-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.sp-search-input {
  width: 100%;
  height: 38px;
  padding: 0 0.875rem 0 2.375rem;
  background-color: var(--surface-card);
  border: 1px solid var(--divider-line);
  border-radius: calc(var(--card-radius) - 2px);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease;
}

.sp-search-input::placeholder {
  color: var(--text-muted);
}

.sp-search-input:focus {
  border-color: var(--brand-secondary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-secondary) 15%, transparent);
}

/* ========== TABLE OF CONTENTS (sidebar) ========== */

.sp-toc {
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
  background-color: var(--surface-card);
  border: 1px solid var(--divider-line);
  border-radius: var(--card-radius);
  padding: 1.25rem;
  min-width: 200px;
}

.sp-toc__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.875rem;
}

.sp-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.sp-toc__item a {
  display: block;
  padding: 0.375rem 0.625rem;
  border-radius: calc(var(--card-radius) - 4px);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.sp-toc__item a:hover {
  background-color: var(--surface-elevated);
  color: var(--brand-secondary);
}

.sp-toc__item--active a {
  background-color: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
  color: var(--brand-secondary);
  font-weight: 600;
}

/* ========== LAYOUT: SIDEBAR + CONTENT ========== */

.sp-layout-sidebar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ========== PAGE-SPECIFIC: project/index.html ========== */

.sp-project-sections {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.sp-project-section {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sp-project-section__header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.sp-project-section__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--brand-secondary) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-secondary) 28%, transparent);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--brand-secondary);
  flex-shrink: 0;
}

.sp-project-section__title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0;
  line-height: 1.3;
}

/* ========== HIGHLIGHT / CALLOUT BOX ========== */

.sp-callout {
  padding: 1.5rem;
  border-radius: var(--card-radius);
  border-left: 3px solid var(--brand-secondary);
  background-color: color-mix(in srgb, var(--brand-secondary) 5%, var(--surface-card) 95%);
  border-top: 1px solid color-mix(in srgb, var(--brand-secondary) 20%, transparent);
  border-right: 1px solid color-mix(in srgb, var(--brand-secondary) 20%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-secondary) 20%, transparent);
}

.sp-callout__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.sp-callout__body {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin: 0;
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

@media (max-width: 1023px) {
  .sp-layout-sidebar {
    grid-template-columns: 1fr;
  }

  .sp-toc {
    position: static;
    order: -1;
  }

  .sp-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  :root {
    --page-padding-x: 1rem;
    --section-gap: 2.5rem;
  }

  .sp-nav__links,
  .sp-nav__cta {
    display: none;
  }

  .sp-nav__mobile-toggle {
    display: flex;
  }

  .sp-nav {
    position: relative;
  }

  .sp-hero {
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .sp-hero__title {
    font-size: 1.75rem;
  }

  .sp-project-page .sp-hero__title {
    font-size: 1.875rem;
  }

  .sp-hero__subtitle {
    font-size: 0.9375rem;
  }

  .sp-faq-grid {
    grid-template-columns: 1fr;
  }

  .sp-grid--2 {
    grid-template-columns: 1fr;
  }

  .sp-grid--3 {
    grid-template-columns: 1fr;
  }

  .sp-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .sp-footer__top {
    flex-direction: column;
  }

  .sp-footer__nav {
    gap: 2rem;
  }

  .sp-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .sp-filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-search-input-wrap {
    max-width: 100%;
  }

  .sp-stat-card__value {
    font-size: 1.625rem;
  }

  .sp-steps::before {
    display: none;
  }

  .sp-section-title {
    font-size: 1.3125rem;
  }
}

@media (max-width: 479px) {
  :root {
    --page-padding-x: 0.875rem;
  }

  .sp-hero__title {
    font-size: 1.5625rem;
  }

  .sp-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-btn {
    width: 100%;
    justify-content: center;
  }

  .sp-grid--4 {
    grid-template-columns: 1fr;
  }

  .sp-card {
    padding: 1.125rem;
  }

  .sp-faq-item__question {
    font-size: 0.875rem;
  }
}

/* ========== PRINT ========== */

@media print {
  .sp-nav,
  .sp-footer,
  .sp-home-btn-wrap {
    display: none;
  }

  .sp-main {
    padding-top: 1rem;
  }

  body {
    background: #fff;
    color: #000;
  }

  .sp-card,
  .sp-faq-item {
    border: 1px solid #ddd;
    break-inside: avoid;
  }
}

/* ========== UTILITY OVERRIDES (subpage context) ========== */

.sp-text-gradient {
  background: var(--gradient-violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sp-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-mt-auto {
  margin-top: auto;
}

.sp-text-center {
  text-align: center;
}

.sp-text-right {
  text-align: right;
}

.sp-flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-gap-sm { gap: 0.5rem; }
.sp-gap-md { gap: 1rem; }
.sp-gap-lg { gap: 1.5rem; }
.sp-gap-xl { gap: 2rem; }