/* === DESIGN TOKENS (dark mode default) === */
:root {
  --bg:              #141413;
  --fg:              #faf9f5;
  --muted:           #7a786f;
  --muted-fg:        #b0aea5;
  --card:            #1e1e1c;
  --card-border:     #2e2e2b;
  --accent:          #d97757;
  --accent-deep:     #e08866;
  --accent-secondary:#6a9bcc;
  --pill-bg:         #252523;
  --pill-hover:      #2e2e2b;
  --cta-fg:          #141413;
  --cta-bg:          #faf9f5;
  --ok:              #7a9b6a;
  --bad:             #c15f3c;
  --bad-soft:        rgba(193, 95, 60, 0.12);

  --font-heading: "Poppins", sans-serif;
  --font-body:    "Lora", Georgia, serif;

  --r-card:   40px;
  --r-medium: 32px;
  --r-small:  24px;
  --r-pill:   9999px;
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.65;
  position: relative;
}

/* Grain texture overlay */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 50;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  opacity: 0.04;
}

/* Radial terracotta glow */
body::after {
  content: "";
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 100%; max-width: 800px; height: 600px;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 70%);
  opacity: 0.08;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Fade-up animation */
@keyframes fadeUp {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.5s ease forwards; }

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-inner {
  max-width: 720px;
  position: relative;
  z-index: 1;
  animation: fadeUp 0.5s ease forwards;
}

.badge {
  display: inline-block;
  background: var(--pill-bg);
  border: 1px solid var(--card-border);
  color: var(--muted-fg);
  padding: 0.35rem 1rem;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: var(--fg);
}

.accent { color: var(--accent); }

.hero-sub {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.dates span {
  background: var(--pill-bg);
  border: 1px solid var(--card-border);
  padding: 0.4rem 0.9rem;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted-fg);
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: var(--fg);
  padding: 0.95rem 2.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.cta-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(217, 119, 87, 0.45);
  text-decoration: none;
}

/* === SECTIONS === */
.section {
  padding: 5rem 1.5rem;
  position: relative;
  z-index: 10;
}

.section-light {
  background: rgba(250, 249, 245, 0.03);
  border-top: 1px solid var(--card-border);
}

.section-dark {
  background: var(--bg);
  border-top: 1px solid var(--card-border);
}

.section-form {
  background: rgba(30, 30, 28, 0.8);
  border-top: 1px solid var(--card-border);
}

.container { max-width: 900px; margin: 0 auto; }

.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 2rem;
  color: var(--fg);
}

/* === CARDS === */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.25rem; }

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 1.75rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(0,0,0,0.35);
  border-color: rgba(217, 119, 87, 0.3);
}

.card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }

.card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.card p {
  font-size: 0.9rem;
  color: var(--muted-fg);
  line-height: 1.65;
}

/* === SCORING === */
.scoring-grid { max-width: 560px; margin: 0 auto 1.5rem; }

.score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--card-border);
}

.score-row.highlight {
  background: rgba(217, 119, 87, 0.12);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: var(--r-small);
  margin-top: 0.5rem;
}

.score-action { font-family: var(--font-body); font-size: 0.95rem; color: var(--muted-fg); }
.score-pts { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--accent); }
.score-row.highlight .score-action { color: var(--fg); font-weight: 500; }
.score-row.highlight .score-pts { font-size: 1.25rem; color: var(--accent-deep); }
.scoring-note { text-align: center; font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); font-style: italic; }

/* === STACK === */
.stack-list { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.25rem; }

.stack-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-small);
  padding: 0.9rem 1.25rem;
  transition: border-color 0.2s;
}

.stack-item:hover { border-color: rgba(217, 119, 87, 0.35); }

.stack-tool {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent);
  min-width: 220px;
  font-size: 0.9rem;
}

.stack-desc { font-family: var(--font-body); font-size: 0.9rem; color: var(--muted-fg); }
.stack-note { font-family: var(--font-body); font-size: 0.85rem; color: var(--muted); text-align: center; font-style: italic; }

/* === FORM === */
.form-container { max-width: 720px; }
.form-intro { font-family: var(--font-body); color: var(--muted-fg); margin-bottom: 2rem; font-size: 1rem; }

.error-banner {
  background: var(--bad-soft);
  border: 1px solid rgba(193, 95, 60, 0.4);
  color: var(--accent-deep);
  padding: 1rem 1.25rem;
  border-radius: var(--r-small);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.form-bloc {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.bloc-important {
  border-color: rgba(217, 119, 87, 0.35);
  background: rgba(217, 119, 87, 0.05);
}

.bloc-header {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bloc-num {
  background: var(--accent);
  color: var(--bg);
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
}

.bloc-note {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--accent);
  font-style: italic;
  margin-bottom: 1.25rem;
}

.field { margin-bottom: 1.25rem; }
.field:last-child { margin-bottom: 0; }

label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted-fg);
  margin-bottom: 0.5rem;
}

input[type="text"], input[type="email"], input[type="url"], textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--card-border);
  color: var(--fg);
  border-radius: var(--r-small);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="url"]:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}

input::placeholder, textarea::placeholder { color: var(--muted); }
textarea { resize: vertical; }

.radio-group, .checkbox-group { display: flex; flex-direction: column; gap: 0.4rem; }

.radio-label, .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.55rem 0.75rem;
  border-radius: var(--r-small);
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s;
}

.radio-label:hover, .checkbox-label:hover {
  background: rgba(217, 119, 87, 0.08);
  border-color: rgba(217, 119, 87, 0.25);
}

.radio-label input, .checkbox-label input {
  width: auto;
  margin-top: 0.15rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.radio-label span, .checkbox-label span {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--fg);
  font-weight: 400;
}

.submit-btn {
  display: block;
  width: 100%;
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: var(--r-pill);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.submit-btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -6px rgba(217, 119, 87, 0.45);
}

.submit-note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* === SUCCESS PAGE === */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  position: relative;
  z-index: 10;
}

.success-inner { max-width: 600px; text-align: center; }
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }

.success-inner h1 {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1rem;
}

.success-msg {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--muted-fg);
  margin-bottom: 2rem;
  line-height: 1.75;
}

.club-cta {
  background: rgba(217, 119, 87, 0.08);
  border: 1px solid rgba(217, 119, 87, 0.3);
  border-radius: var(--r-card);
  padding: 2rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.club-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.club-cta p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted-fg);
  margin-bottom: 1.25rem;
}

.next-steps {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--r-card);
  padding: 1.5rem;
  text-align: left;
  margin-bottom: 2rem;
}

.next-steps h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
}

.next-steps ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.next-steps li {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--muted-fg);
  padding-left: 1.5rem;
  position: relative;
}

.next-steps li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

.back-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--muted);
}

/* === FOOTER === */
.footer {
  background: #0d0d0c;
  border-top: 1px solid var(--card-border);
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  position: relative;
  z-index: 10;
}

.footer p + p { margin-top: 0.25rem; }

/* === RESPONSIVE === */
@media (max-width: 600px) {
  .stack-item { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .stack-tool { min-width: auto; }
  .dates { flex-direction: column; align-items: center; }
  .form-bloc { border-radius: var(--r-medium); padding: 1.25rem; }
}
