:root {
  --surface: #f9f9ff;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f0f3ff;
  --surface-container: #e7eefe;
  --surface-container-high: #e2e8f8;
  --on-surface: #151c27;
  --on-surface-variant: #534434;
  --primary: #855300;
  --on-primary: #ffffff;
  --primary-container: #f59e0b;
  --secondary: #0058be;
  --on-secondary: #ffffff;
  --secondary-container: #2170e4;
  --on-secondary-container: #fefcff;
  --tertiary-container: #1abdff;
  --on-tertiary-container: #004966;
  --background: #f9f9ff;

  /* spacing */
  --space-xs: 4px;
  --space-base: 8px;
  --space-sm: 12px;
  --space-md: 24px;
  --space-lg: 40px;
  --space-xl: 64px;
  --gutter: 16px;
  --margin: 24px;

  /* radii */
  --r-sm: 0.25rem;
  --r-default: 0.5rem;
  --r-md: 0.75rem;
  --r-lg: 1rem;
  --r-xl: 1.5rem;
  --r-full: 9999px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--on-surface);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-md) var(--gutter);
  display: grid;
  gap: var(--space-lg);
}

/* ===== Hero ===== */
.hero {
  display: grid;
  gap: var(--space-sm);
}

.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.headline {
  margin: 0;
  font-size: 44px;
  font-weight: 800;
  line-height: 52px;
  letter-spacing: -0.02em;
  color: var(--on-surface);
}

.lede {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: var(--on-surface);
}

.cta-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.btn {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.01em;
  padding: var(--space-md);
  border-radius: var(--r-lg);
}
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: var(--secondary); color: var(--on-secondary); }

/* ===== Profile card ===== */
.profile-card {
  background: var(--surface-container-lowest);
  border-radius: var(--r-xl);
  padding: var(--space-md);
  box-shadow: 0 10px 30px rgba(133, 83, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.profile-main {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--r-full);
  background: var(--primary-container);
  flex: 0 0 64px;
}

.profile-info { display: flex; flex-direction: column; gap: 2px; }

.profile-name {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
  color: var(--on-surface);
}

.profile-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--on-surface-variant);
}

.badge {
  align-self: flex-start;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.01em;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--r-full);
}

/* ===== Stats ===== */
.stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.stat-card {
  background: var(--surface-container-high);
  color: var(--on-surface);
  border-radius: var(--r-md);
  padding: var(--space-sm);
}

.stat-num {
  margin: 0 0 var(--space-xs);
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.01em;
  color: var(--primary);
}

.stat-label {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0.01em;
  color: var(--on-surface);
}

/* ===== Desktop ===== */
@media (min-width: 640px) {
  .container { padding: var(--space-xl) var(--space-md); }

  .profile-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .stats {
    flex-direction: row;
  }
  .stats .stat-card { flex: 1 1 0; }
}
