/* ===== BASE ===== */
:root {
  --bg: #F7F4EF;
  --bg-alt: #EFE9E0;
  --fg: #1A1917;
  --fg-muted: #6B6560;
  --accent: #D4622A;
  --accent-warm: #E8874F;
  --sage: #7D9B76;
  --sage-light: #A8C4A2;
  --border: #DDD5C8;
  --card-bg: #FFFFFF;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: white;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 3rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 244, 239, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header-nav {
  display: flex;
  gap: 2.5rem;
}

.header-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--fg); }

.btn-cta {
  background: var(--accent);
  color: white;
  padding: 0.55rem 1.25rem;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  white-space: nowrap;
}
.btn-cta:hover {
  background: #bf5522;
  transform: translateY(-1px);
}
.btn-cta-lg {
  font-size: 1rem;
  padding: 0.8rem 1.75rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 16px rgba(212,98,42,0.3);
}

/* ===== HERO ===== */
.hero {
  padding: 5rem 0 0;
  overflow: hidden;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  min-height: 70vh;
}

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}

.active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--sage);
  background: rgba(125, 155, 118, 0.12);
  border: 1px solid rgba(125, 155, 118, 0.3);
  border-radius: 100px;
  padding: 0.2rem 0.65rem;
  margin-left: 0.5rem;
  vertical-align: middle;
}

.active-badge::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: pulse 2s ease-in-out infinite;
}

.map-label .active-badge {
  vertical-align: middle;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 42ch;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1;
}
.stat-label {
  font-size: 0.7rem;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}
.hero-orb-1 {
  width: 300px; height: 300px;
  background: rgba(212, 98, 42, 0.15);
  top: 20px; right: 0;
  animation: float1 6s ease-in-out infinite;
}
.hero-orb-2 {
  width: 200px; height: 200px;
  background: rgba(125, 155, 118, 0.2);
  bottom: 60px; left: 20px;
  animation: float2 8s ease-in-out infinite;
}
.hero-orb-3 {
  width: 180px; height: 180px;
  background: rgba(232, 135, 79, 0.12);
  top: 100px; left: 60px;
  animation: float3 7s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}
@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(15px) rotate(3deg); }
}
@keyframes float3 {
  0%, 100% { transform: translateX(0) translateY(0); }
  33% { transform: translateX(10px) translateY(-10px); }
  66% { transform: translateX(-5px) translateY(8px); }
}

.hero-card-stack {
  position: relative;
  width: 260px;
  height: 320px;
  z-index: 2;
}

.hero-card {
  position: absolute;
  background: white;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  width: 240px;
}

.hero-card-back {
  top: 40px; left: 0;
  transform: rotate(-6deg);
  border: 1px solid var(--border);
}
.hero-card-mid {
  top: 60px; left: 20px;
  transform: rotate(-2deg);
  border: 1px solid var(--border);
}
.hero-card-front {
  top: 20px; left: 10px;
  transform: rotate(2deg);
  border: 2px solid var(--accent);
  background: white;
}

.card-tribe {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  display: block;
  margin-bottom: 0.25rem;
}
.card-name {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.card-tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 0.25rem;
}
.card-desc {
  font-size: 0.85rem;
  color: var(--fg);
  display: block;
  margin-bottom: 0.5rem;
}
.card-match {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage);
  display: block;
  margin-top: 0.75rem;
}

.hero-bottom-bar {
  margin-top: 4rem;
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ===== PASSIONS ===== */
.passions {
  padding: 7rem 0;
  background: var(--bg-alt);
}

.tribes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.tribe {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tribe:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.tribe-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.tribe-builders .tribe-icon { background: rgba(212,98,42,0.1); color: var(--accent); }
.tribe-move .tribe-icon { background: rgba(125,155,118,0.15); color: var(--sage); }
.tribe-create .tribe-icon { background: rgba(100,80,180,0.1); color: #6450B4; }
.tribe-taste .tribe-icon { background: rgba(180,100,60,0.1); color: #B4643C; }
.tribe-flow .tribe-icon { background: rgba(60,140,160,0.1); color: #3C8CA0; }

.tribe h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
}

.tribe p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.tribe-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
}

.tribes-note {
  font-size: 0.9rem;
  color: var(--fg-muted);
  font-style: italic;
  text-align: center;
  max-width: 40ch;
  margin: 0 auto;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 7rem 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 4rem;
}

.step {
  flex: 1;
  padding: 2.5rem;
  background: var(--card-bg);
  border-radius: 20px;
  border: 1px solid var(--border);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.25;
  margin-bottom: 1rem;
  line-height: 1;
}

.step h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

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

.step-connector {
  width: 60px;
  height: 2px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
  margin: 0 -1rem;
  background-image: linear-gradient(90deg, var(--border), var(--accent), var(--border));
  opacity: 0.5;
}

.matching-widget {
  background: var(--fg);
  color: var(--bg);
  border-radius: 20px;
  padding: 2rem 2.5rem;
}

.match-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(247,244,239,0.5);
  margin-bottom: 1.25rem;
}

.match-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.avatar-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.match-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.match-name {
  font-weight: 600;
  font-size: 1rem;
}

.match-tags {
  font-size: 0.8rem;
  color: rgba(247,244,239,0.5);
}

.match-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.score-num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-warm);
  line-height: 1;
}

.score-label {
  font-size: 0.7rem;
  color: rgba(247,244,239,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.25rem;
}

.match-why {
  font-size: 0.85rem;
  color: rgba(247,244,239,0.6);
  line-height: 1.6;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247,244,239,0.1);
}

/* ===== MISSION FOCUS ===== */
.mission-focus {
  padding: 7rem 0;
  background: var(--bg-alt);
}

.mission-focus .section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.mission-visual {
  display: flex;
  justify-content: center;
}

.mission-map {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.map-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--fg);
}

.map-blocks {
  display: grid;
  grid-template-columns: repeat(4, 40px);
  gap: 8px;
}

.map-block {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.map-block-active {
  background: var(--accent);
  border-color: var(--accent);
}

.mission-text p {
  font-size: 1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.manifesto-quote {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  max-width: 50ch;
  font-style: italic;
}

.ambassador-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.ambassador-block h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.ambassador-block p {
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 0;
}

/* ===== MANIFESTO ===== */
.manifesto {
  padding: 7rem 0;
  background: var(--fg);
  color: var(--bg);
}

.manifesto-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.manifesto-quote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(247,244,239,0.85);
  margin-bottom: 3rem;
}

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

.m-stat {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.m-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.m-desc {
  font-size: 0.8rem;
  color: rgba(247,244,239,0.5);
  line-height: 1.5;
}

.manifesto-thesis {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--bg);
  max-width: 45ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ===== CLOSING ===== */
.closing {
  padding: 7rem 0;
  background: var(--bg);
}

.closing-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.closing-headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.closing-content > p {
  font-size: 1.1rem;
  color: var(--fg-muted);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.closing-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.value-tag {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .tribes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .mission-focus .section-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .mission-visual { order: -1; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-visual { display: none; }
  .tribes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    flex-direction: column;
    gap: 1rem;
  }
  .step-connector {
    width: 40px;
    height: 40px;
    margin: 0 auto;
    background: var(--border);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 10v20M14 30l6-6 6 6' stroke='none' fill='none'/%3E%3Cpath d='M20 8v24M16 28l4-4 4 4' stroke='%23DDD5C8' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 10v20M14 30l6-6 6 6' stroke='none' fill='none'/%3E%3Cpath d='M20 8v24M16 28l4-4 4 4' stroke='%23DDD5C8' stroke-width='2' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  }
  .manifesto-stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .header-nav { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}

@media (max-width: 480px) {
  .tribes-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 2rem; }
  .hero-headline { font-size: 2.5rem; }
}