:root {
  --bg-canvas: #f3f0fa;
  --bg-surface: #ffffff;
  --text-primary: #2e1065;
  --text-muted: #6b5c85;
  --accent-primary: #e11d48;
  --accent-hover: #be123c;
  --line-color: rgba(46, 16, 101, 0.15);
  
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-wrap: anywhere;
  hyphens: auto;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 800;
  line-height: 1.2;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  display: block;
  margin-bottom: 0.5rem;
}

.mono-text {
  font-family: var(--font-mono);
}

/* Links & Buttons */
a {
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
  font-weight: 600;
}

.text-link {
  display: inline-block;
}

.text-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-primary);
  transition: width 0.3s var(--ease-kinetic);
}

.text-link:hover::after {
  width: 100%;
}

.btn-main {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-primary);
  color: var(--bg-surface);
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s var(--ease-kinetic);
}

.btn-main:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  color: var(--bg-surface);
}

/* Header & Nav */
header {
  position: relative;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--line-color);
  z-index: 100;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-right: 3rem;
}

.desktop-nav {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  margin-left: auto;
}

.mobile-nav-overlay {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--line-color);
  padding: 1rem 2rem;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-overlay.active {
  display: flex;
}

@media (max-width: 768px) {
  .desktop-nav { display: none; }
  .mobile-menu-btn { display: block; }
}

/* Structural Components */
.container {
  max-width: 1024px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.container-narrow {
  max-width: 72ch;
  margin: 0 auto;
  padding: 4rem 2rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-color: var(--text-primary);
  color: var(--bg-surface);
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(46, 16, 101, 0.7), rgba(46, 16, 101, 0.9)), url('images/hero-setup-dark.jpg') center/cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--bg-surface);
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  color: var(--bg-canvas);
  margin-bottom: 2.5rem;
}

/* Numbered Timeline Flow */
.timeline-flow {
  position: relative;
  padding-left: 3rem;
}

.timeline-flow::before {
  content: '';
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-number {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
  border-radius: 50%; /* Rule: round badges */
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
  transform: translateX(-50%);
  z-index: 2;
}

.timeline-content h3 {
  margin-bottom: 1rem;
}

/* List Rows */
.list-container {
  display: flex;
  flex-direction: column;
}

.list-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line-color);
}

.list-row:last-child {
  border-bottom: none;
}

.list-icon {
  width: 48px;
  height: 48px;
  background-color: var(--bg-surface);
  border: 1px solid var(--line-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent-primary);
}

.list-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.list-content h3 {
  margin-bottom: 0.5rem;
}

.list-content p {
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .list-row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Patterns */
.dot-pattern {
  background-image: radial-gradient(var(--line-color) 1px, transparent 1px);
  background-size: 24px 24px;
  background-color: var(--bg-surface);
}

.grid-pattern {
  background-image: 
    linear-gradient(var(--line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-color) 1px, transparent 1px);
  background-size: 40px 40px;
  background-color: var(--bg-canvas);
}

/* Images */
.square-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  margin: 2rem 0;
  /* Rule: square sections and images (no border radius) */
}

/* Form / Tool */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--line-color);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 0; /* Square corners */
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.tool-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Footer */
footer {
  background-color: var(--text-primary);
  color: var(--bg-surface);
  padding: 4rem 2rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--accent-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}

.footer-col p {
  color: var(--bg-canvas);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--bg-canvas);
  display: block;
  margin-bottom: 0.5rem;
}

.footer-col a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s var(--ease-kinetic);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Content Formatting for Legal/Info Pages */
.prose h2 { margin: 2.5rem 0 1rem; }
.prose h3 { margin: 2rem 0 1rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 2rem; padding: 0; }
.prose li { margin-bottom: 0.5rem; }

@media (prefers-reduced-motion: reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
