/* ================================================================
   BASE — Reset, Typography, Layout, Components
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font-family: inherit; }

/* ── Custom cursor target ────────────────────────────────────── */
* { cursor: none; }
a, button, [role="button"], input, select, textarea, label { cursor: none; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
h1 { font-size: clamp(var(--text-3xl), 5.5vw, var(--text-6xl)); font-weight: 800; }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-lg), 2vw, var(--text-2xl)); }
h4 { font-size: var(--text-lg); }
p  { line-height: 1.75; }

.display { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.03em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--color-primary);
  background: var(--color-primary-s); padding: 4px 12px;
  border-radius: var(--r-full); margin-bottom: var(--space-4);
}
.eyebrow i { font-size: 12px; }
.lead { font-size: var(--text-lg); color: var(--color-text-2); line-height: 1.75; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.section { padding-block: clamp(var(--space-16), 8vw, var(--space-32)); }
.section--cream   { background: var(--color-bg-cream); }
.section--dark    { background: var(--color-bg-dark); }
.section--subtle  { background: var(--color-bg-2); }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-4); }

.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2); padding: 0.75rem 1.5rem;
  border-radius: var(--r-full); font-family: var(--font-body);
  font-weight: 600; font-size: var(--text-sm); line-height: 1;
  border: 2px solid transparent; white-space: nowrap;
  transition:
    background var(--dur-base) var(--ease-snappy),
    color var(--dur-base) var(--ease-snappy),
    border-color var(--dur-base) var(--ease-snappy),
    transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-base) var(--ease-snappy);
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--dur-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:active { transform: scale(0.97); }
.btn i { font-size: 16px; transition: transform var(--dur-base) var(--ease-spring); }
.btn:hover i { transform: translateX(2px); }

.btn--primary {
  background: var(--color-primary); color: #fff;
  border-color: var(--color-primary);
}
.btn--primary:hover {
  background: var(--color-primary-h);
  border-color: var(--color-primary-h);
  box-shadow: var(--shadow-green);
}

.btn--accent {
  background: var(--color-accent); color: #fff;
  border-color: var(--color-accent);
}
.btn--accent:hover {
  background: var(--color-accent-h);
  border-color: var(--color-accent-h);
  box-shadow: var(--shadow-orange);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: rgba(45,106,79,0.35);
}
.btn--outline:hover {
  background: var(--color-primary-s);
  border-color: var(--color-primary);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text-2);
  border-color: var(--color-border);
}
.btn--ghost:hover {
  background: var(--color-bg-2);
  color: var(--color-text);
  border-color: var(--color-border-2);
}

.btn--dark {
  background: var(--color-bg-dark); color: #fff;
  border-color: var(--color-bg-dark);
}
.btn--dark:hover {
  background: var(--sn-navy-700);
  box-shadow: var(--shadow-lg);
}

.btn--lg { padding: 0.9rem 2rem; font-size: var(--text-base); }
.btn--sm { padding: 0.5rem 1rem; font-size: var(--text-xs); }
.btn--block { width: 100%; }
.btn--icon { padding: 0.65rem; border-radius: var(--r-lg); gap: 0; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--color-bg); border-radius: var(--r-xl);
  border: 1px solid var(--color-border);
  padding: var(--space-6) var(--space-8);
  transition: transform var(--dur-mid) var(--ease-smooth), box-shadow var(--dur-mid) var(--ease-smooth), border-color var(--dur-base);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--color-border-2); }

.card--cream   { background: var(--color-bg-cream); border-color: transparent; }
.card--dark    { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.1); color: #fff; }
.card--dark:hover { background: rgba(255,255,255,0.08); }
.card--feature { padding: var(--space-8); }

/* ── Badge / Pill ─────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--r-full);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.03em;
}
.badge--green  { background: var(--sn-green-100); color: var(--sn-green-800); }
.badge--orange { background: var(--sn-orange-100); color: var(--sn-orange-800); }
.badge--cream  { background: var(--sn-cream-200); color: var(--sn-cream-800); }
.badge--dark   { background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.8); }
.badge--blue   { background: #dbeafe; color: #1e3a8a; }
.badge--purple { background: #ede9fe; color: #5b21b6; }

/* ── Form elements ────────────────────────────────────────────── */
.field { margin-bottom: var(--space-4); }
.label {
  display: block; font-size: var(--text-sm); font-weight: 600;
  color: var(--color-text); margin-bottom: var(--space-2);
}
.label--req::after { content: ' *'; color: var(--color-accent); }
.input, .select, .textarea {
  width: 100%; padding: 0.75rem 1rem;
  border-radius: var(--r-md); border: 1.5px solid var(--color-border);
  font-family: var(--font-body); font-size: var(--text-base);
  color: var(--color-text); background: var(--color-bg);
  outline: none;
  transition: border-color var(--dur-base), box-shadow var(--dur-base);
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45,106,79,0.12);
}
.input::placeholder { color: var(--color-text-2); opacity: 0.6; }
.textarea { resize: vertical; min-height: 120px; }

/* ── Divider ─────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--color-border); }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-muted   { color: var(--color-text-2); }
.text-white   { color: #fff; }
.font-display { font-family: var(--font-display); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  * { cursor: auto !important; }
  .sn-cursor, .sn-cursor-dot { display: none !important; }
}
