/* ===================================
   DFPP COLLECTIVE — style.css
   Design tokens consistent with dfpp.io
   Gold accent, dark bg, DM Serif Display
   =================================== */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #0A0A0F;
  --bg-card:     #13131A;
  --bg-elevated: #1A1A24;
  --border:      rgba(255, 255, 255, 0.07);
  --border-gold: rgba(245, 158, 11, 0.3);
  --gold:        #F59E0B;
  --gold-dim:    rgba(245, 158, 11, 0.12);
  --text:        #F1F0EE;
  --text-muted:  rgba(241, 240, 238, 0.55);
  --text-dim:    rgba(241, 240, 238, 0.35);
  --serif:       'DM Serif Display', Georgia, serif;
  --sans:        'Inter', system-ui, sans-serif;
  --radius:      12px;
  --radius-sm:   8px;
  --max-width:   1100px;
  --transition:  0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
em { font-style: italic; }

/* --- SCROLL ANIMATION --- */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- LAYOUT --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 6rem 0; }

/* --- SECTION LABEL --- */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; }

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  color: var(--text);
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 68ch;
}

p:last-child { margin-bottom: 0; }

/* --- BUTTONS --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: #0A0A0F;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: #FBBF24;
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.875rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition), color var(--transition), transform var(--transition);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}

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

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(10, 10, 15, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.nav-logo-division {
  color: var(--gold);
  margin-left: 0.2em;
  font-weight: 400;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta {
  background: var(--gold);
  color: #0A0A0F;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  transition: background var(--transition);
}
.nav-links .nav-cta:hover { background: #FBBF24; color: #0A0A0F; }

/* --- HERO --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(245, 158, 11, 0.06) 0%, transparent 70%),
    var(--bg);
}

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 2rem;
}

.hero-headline {
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.08;
  max-width: 14ch;
  margin: 0 auto 1.75rem;
  color: var(--text);
}
.hero-headline em {
  color: var(--gold);
  font-style: italic;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero-scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50%  { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* --- ORIGIN --- */
.origin {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.origin-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
}

.origin-text p { max-width: none; }

.pillar-initials {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}
.pillar-initials span {
  font-family: var(--serif);
  font-size: 2.5rem;
  color: var(--gold);
  line-height: 1;
}

.origin-quote {
  padding-top: 0.5rem;
}
.origin-quote blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.origin-quote cite {
  display: block;
  font-family: var(--sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--text-dim);
  margin-top: 0.75rem;
}
.origin-note {
  font-size: 0.925rem;
  color: var(--text-muted);
  font-style: italic;
}

/* --- PROBLEM --- */
.problem { text-align: center; }

.problem-sub {
  font-size: 1.05rem;
  max-width: 64ch;
  margin: 0 auto 3.5rem;
  line-height: 1.8;
}

.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-number {
  font-family: var(--serif);
  font-size: 2.75rem;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.problem-close {
  font-size: 1.1rem;
  max-width: 56ch;
  margin: 0 auto;
  color: var(--text-muted);
}
.problem-close em { color: var(--text); font-style: normal; font-weight: 500; }

/* --- PILLARS --- */
.pillars {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.pillar {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color var(--transition);
}
.pillar:hover { border-color: var(--border-gold); }

.pillar-letter {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}

.pillar h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: none;
}

/* --- ASSEMBLY --- */
.assembly { }

.assembly-sub {
  font-size: 1.05rem;
  max-width: 72ch;
  margin-bottom: 2.5rem;
}

.assembly-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}
.assembly-roles span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.assembly-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.tier-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.tier-ready {
  background: rgba(16, 185, 129, 0.12);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}
.tier-mentorship {
  background: var(--gold-dim);
  color: var(--gold);
  border: 1px solid var(--border-gold);
}

.tier p { font-size: 0.9rem; max-width: none; }

.assembly-model {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.assembly-model h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.model-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.model-step {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.step-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--gold);
  font-weight: 600;
  min-width: 2rem;
}

.step-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* --- GLOBAL --- */
.global {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.global h2 { margin-bottom: 1.5rem; }
.global p { max-width: 64ch; }

/* --- FORMS --- */
.join-section,
.client-section {
  background: var(--bg);
}

.client-section {
  border-top: 1px solid var(--border);
}

.form-intro {
  font-size: 1.05rem;
  max-width: 60ch;
  margin-bottom: 2.5rem;
}

.collective-form {
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.honeypot-field { display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
label span { color: var(--gold); }

input[type="text"],
input[type="email"],
input[type="url"],
select,
textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  transition: border-color var(--transition);
  width: 100%;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder { color: var(--text-dim); }

input:focus,
select:focus,
textarea:focus { border-color: var(--gold); }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23F59E0B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select option {
  background: var(--bg-card);
  color: var(--text);
}

textarea { resize: vertical; min-height: 120px; }

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: 0.25rem;
}

.form-success {
  max-width: 700px;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
}
.form-success[hidden] { display: none; }

.success-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--serif);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.form-success p {
  color: var(--text-muted);
  max-width: none;
  font-size: 1rem;
}

/* --- FOOTER --- */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  display: block;
  margin-bottom: 0.75rem;
}
.footer-logo span { color: var(--gold); margin-left: 0.2em; font-weight: 400; }

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 32ch;
}

.footer-inspired {
  font-size: 0.78rem !important;
  color: var(--text-dim) !important;
  margin-top: 0.5rem;
}

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-dim);
  max-width: none;
  margin: 0;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  .origin-grid { grid-template-columns: 1fr; gap: 3rem; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .problem-stats { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .assembly-tiers { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .pillars-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  section { padding: 4rem 0; }
  .footer-links { flex-direction: column; gap: 2rem; }
}
