/* ==========================================================
   FIGMA DESIGN SYSTEM — PURE ALIGNMENT
   Ref: DESIGN.md (npx getdesign@latest add figma)
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Chrome — binary only */
  --black: #000000;
  --white: #ffffff;
  --glass: rgba(0, 0, 0, 0.08);
  --glass-hover: rgba(0, 0, 0, 0.12);

  /* Domain accents (content color, not chrome) */
  --executing: #522D80;
  --executing-light: #F0EBF5;
  --influencing: #E97100;
  --influencing-light: #FEF2E6;
  --relationship: #0099D8;
  --relationship-light: #E6F5FB;
  --thinking: #00843D;
  --thinking-light: #E6F4ED;

  /* Type — figmaSans substitute */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', monospace;

  /* Spacing base: 8px */
  --max-width: 1120px;
  --gutter: 2.5rem;

  /* Radii — Figma scale */
  --r-sm: 6px;
  --r-card: 8px;
  --r-pill: 50px;

  --ease: cubic-bezier(0.2, 0, 0, 1);
}

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

body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.5;
  letter-spacing: -0.011em;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
  overflow-x: hidden;
}

.grain { display: none; }

/* === LINKS === */
a { color: var(--black); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* === FOCUS — dashed, the Figma signature === */
:focus-visible {
  outline: 2px dashed var(--black);
  outline-offset: 3px;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
  transition-delay: calc(var(--i, 0) * 40ms);
}
.visible .stagger > * { opacity: 1; transform: translateY(0); }

/* ==========================================================
   NAV — clean horizontal, black wordmark, pill CTA
   ========================================================== */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem var(--gutter);
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.site-nav__logo { display: flex; align-items: center; }
.site-nav__logo:hover { text-decoration: none; opacity: 0.7; }
.site-nav__logo-img { height: 56px; width: auto; }

.site-nav__links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.site-nav__links a {
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.006em;
}
.site-nav__links a:hover { text-decoration: underline; }
.site-nav__links a.active { font-weight: 600; }

/* CTA — black pill */
.nav-cta {
  background: var(--black) !important;
  color: var(--white) !important;
  padding: 8px 18px 10px !important;
  border-radius: var(--r-pill);
  font-weight: 500 !important;
  font-size: 0.875rem !important;
}
.nav-cta:hover {
  opacity: 0.85 !important;
  text-decoration: none !important;
}

/* ==========================================================
   HERO — gallery headline
   ========================================================== */
.hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem var(--gutter) 4rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4rem;
}

.hero::before { display: none; }
.hero__inner { max-width: 700px; }

.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.54px;
  text-transform: uppercase;
  color: var(--black);
  opacity: 0.4;
  margin-bottom: 1.5rem;
}

.hero__title {
  font-size: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -1.72px;
  color: var(--black);
  margin-bottom: 1.5rem;
}
.hero__title em {
  font-style: normal;
  font-weight: 400;
  background: linear-gradient(135deg, #0ACF83, #F24E1E, #A259FF, #1ABCFE, #FF7262);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  color: var(--black);
  opacity: 0.5;
  font-size: 1.125rem;
  font-weight: 330;
  line-height: 1.5;
  letter-spacing: -0.14px;
  max-width: 440px;
}

.hero__count {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-bottom: 0.5rem;
}
.hero__count-num {
  font-size: 5.5rem;
  font-weight: 200;
  line-height: 1;
  letter-spacing: -3px;
  color: var(--black);
  opacity: 0.06;
}
.hero__count-label {
  font-size: 0.8rem;
  font-weight: 330;
  color: var(--black);
  opacity: 0.3;
  line-height: 1.4;
}

/* ==========================================================
   SEARCH — pill input
   ========================================================== */
.search-wrapper {
  max-width: 360px;
  margin-top: 2.5rem;
  position: relative;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--black);
  opacity: 0.3;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 10px 16px 10px 44px;
  border: 1.5px solid rgba(0,0,0,0.12);
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.14px;
  color: var(--black);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.search-input::placeholder { color: var(--black); opacity: 0.3; }
.search-input:focus { border-color: var(--black); }
.search-input:focus-visible { outline: 2px dashed var(--black); outline-offset: 2px; }

.search-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--black);
  opacity: 0.3;
  font-size: 0.9rem;
  display: none;
}

/* ==========================================================
   DOMAINS
   ========================================================== */
.domains {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.domain-section { margin-bottom: 3.5rem; }
.domain-section.hidden { display: none; }

/* Band — solid domain color, rounded */
.domain-band {
  border-radius: var(--r-card);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.domain-band::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  pointer-events: none;
}

.domain-band--executing { background: var(--executing); }
.domain-band--influencing { background: var(--influencing); }
.domain-band--relationship { background: var(--relationship); }
.domain-band--thinking { background: var(--thinking); }

.domain-band .domain-band__inner { display: flex; align-items: center; gap: 1.5rem; position: relative; z-index: 1; }
.domain-band .domain-band__number { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400; letter-spacing: 0.6px; color: var(--white); opacity: 0.5; }
.domain-band .domain-band__title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.26px; color: var(--white); margin: 0; }
.domain-band .domain-band__desc { font-size: 0.8rem; font-weight: 330; line-height: 1.45; color: var(--white); opacity: 0.75; flex: 1; max-width: 360px; }
.domain-band .domain-band__count { font-family: var(--font-mono); font-size: 0.6rem; font-weight: 400; letter-spacing: 0.6px; text-transform: uppercase; color: var(--white); opacity: 0.45; white-space: nowrap; }

/* ==========================================================
   THEME CARDS — Elevated / Subtle Shadow (Figma card style)
   ========================================================== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.theme-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 16px;
  background: var(--white);
  border: none;
  border-radius: var(--r-card);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
  text-decoration: none;
  color: var(--black);
  cursor: pointer;
}

.theme-card::before { display: none; }

.theme-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
  transform: translateY(-2px);
  text-decoration: none;
}

.theme-card:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.theme-card__name {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: -0.14px;
  text-align: center;
  line-height: 1.3;
}

.theme-card.hidden { display: none; }

/* ==========================================================
   CTA SECTION
   ========================================================== */
.cta-section {
  max-width: var(--max-width);
  margin: 0 auto 4rem;
  padding: 0 var(--gutter);
}

.cta-section__inner {
  text-align: center;
  padding: 5rem 3rem;
  background: var(--black);
  border-radius: var(--r-card);
  position: relative;
  overflow: hidden;
}

.cta-section__inner::before { display: none; }

.cta-section__eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.4;
  margin-bottom: 1rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 400;
  letter-spacing: -0.96px;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.1;
}
.cta-section h2 em {
  font-style: normal;
  font-weight: 400;
}

.cta-section p {
  color: var(--white);
  opacity: 0.6;
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 330;
}

/* CTA button — white pill on black */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-sans);
  font-weight: 500;
  padding: 8px 18px 10px;
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  letter-spacing: -0.14px;
  transition: opacity 0.2s;
  box-shadow: none;
}
.btn:hover {
  opacity: 0.85;
  text-decoration: none;
  color: var(--black);
}
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(2px); }

/* ==========================================================
   FOOTER
   ========================================================== */
.site-footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 2rem var(--gutter);
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer__brand { font-size: 0.875rem; font-weight: 500; color: var(--black); opacity: 0.4; }
.site-footer__copy { font-size: 0.75rem; font-weight: 330; color: var(--black); opacity: 0.3; }

/* ==========================================================
   THEME DETAIL PAGES — shared styles
   ========================================================== */
.theme-hero { text-align: center; padding: 3.5rem 0 2rem; position: relative; }
.theme-hero::before { display: none; }
.theme-hero__domain {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.6px; text-transform: uppercase;
  padding: 6px 16px 7px;
  border-radius: var(--r-pill);
  color: var(--white);
  margin-bottom: 1.25rem;
}

.domain-executing { background: var(--executing); }
.domain-influencing { background: var(--influencing); }
.domain-relationship { background: var(--relationship); }
.domain-thinking { background: var(--thinking); }

.theme-hero h1 {
  font-size: 3rem;
  font-weight: 400;
  letter-spacing: -0.96px;
  color: var(--black);
  margin-bottom: 0.35rem;
}
.theme-hero__keyword {
  font-size: 1.1rem;
  font-weight: 330;
  color: var(--black);
  opacity: 0.4;
}

.container { max-width: 880px; margin: 0 auto; padding: 0 1.5rem; }

.content-section { padding: 3.5rem 0 0; }
.content-section + .content-section { border-top: 1px solid rgba(0,0,0,0.06); margin-top: 0.5rem; }
.content-section h2 {
  font-size: 1.5rem;
  font-weight: 540;
  letter-spacing: -0.26px;
  color: var(--black);
  margin-bottom: 1rem;
}
.content-section p {
  margin-bottom: 1rem;
  color: var(--black);
  opacity: 0.65;
  line-height: 1.7;
  font-weight: 330;
  letter-spacing: -0.14px;
}

/* Trait pills — glass */
.trait-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.trait-list li {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 480;
  background: var(--glass);
  color: var(--black);
  transition: background 0.15s;
}
.trait-list li:hover { background: var(--glass-hover); }

/* Override domain-specific trait colors — keep monochrome */
.traits-executing li,
.traits-influencing li,
.traits-relationship li,
.traits-thinking li {
  background: var(--glass);
  color: var(--black);
  border: none;
}

/* Pitfall list — elevated cards */
.pitfall-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.pitfall-list li {
  background: var(--white);
  border: none;
  border-left: none;
  padding: 12px 16px;
  border-radius: var(--r-card);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--black);
  opacity: 0.7;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s, transform 0.15s;
}
.pitfall-list li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
}

/* Energy grid — elevated cards */
.energy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.energy-card {
  padding: 20px;
  border-radius: var(--r-card);
  border: none;
  background: var(--white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
}
.energy-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); }
.energy-card--drains { border-top: none; }
.energy-card--boosts { border-top: none; }
.energy-card__header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.energy-card__icon { font-size: 1.1rem; line-height: 1; opacity: 0.4; }
.energy-card h3 { font-size: 0.95rem; font-weight: 540; letter-spacing: -0.14px; color: var(--black); margin: 0; }
.energy-card ul { list-style: none; padding: 0; }
.energy-card li { padding: 4px 0; font-size: 0.85rem; font-weight: 330; color: var(--black); opacity: 0.6; padding-left: 16px; position: relative; }
.energy-card li::before { content: ''; position: absolute; left: 0; top: 10px; width: 4px; height: 4px; border-radius: 50%; background: var(--black); opacity: 0.2; }

/* Brand tags — black pills */
.brand-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.brand-tag { padding: 6px 14px; border-radius: var(--r-pill); font-size: 0.8rem; font-weight: 500; color: var(--white); background: var(--black); transition: opacity 0.15s; }
.brand-tag:hover { opacity: 0.8; }
.tags-executing .brand-tag,
.tags-influencing .brand-tag,
.tags-relationship .brand-tag,
.tags-thinking .brand-tag { background: var(--black); }

/* Tips — elevated cards */
.tips-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.tip-card {
  background: var(--white);
  border: none;
  border-radius: var(--r-card);
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}
.tip-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06); }
.tip-card::before { display: none; }
.tip-card h3 { font-size: 0.85rem; font-weight: 540; letter-spacing: -0.14px; color: var(--black); opacity: 0.5; margin-bottom: 12px; }
.tip-card ul { list-style: none; padding: 0; }
.tip-card li { margin-bottom: 8px; font-size: 0.85rem; line-height: 1.5; font-weight: 330; color: var(--black); opacity: 0.65; padding-left: 14px; position: relative; }
.tip-card li::before { content: '\2192'; position: absolute; left: 0; opacity: 0.3; font-size: 0.75rem; }

/* Theme nav */
.theme-nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem 0; border-top: 1px solid rgba(0,0,0,0.06); margin-top: 3.5rem;
}
.theme-nav a {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; font-weight: 400; color: var(--black); opacity: 0.5;
  padding: 8px 12px; border-radius: var(--r-card);
  transition: opacity 0.15s, background 0.15s;
}
.theme-nav a:hover { opacity: 1; background: var(--glass); text-decoration: none; }
.theme-nav__label { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.6px; text-transform: uppercase; }
.theme-nav__name { font-weight: 540; }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .domain-band__inner { flex-wrap: wrap; }
  .domain-band__desc { display: none; }
  .hero { flex-direction: column; align-items: flex-start; padding-top: 3.5rem; }
  .hero__count { display: none; }
}

@media (max-width: 640px) {
  .hero__title { font-size: 2.75rem; letter-spacing: -1px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .domain-band { padding: 1.25rem 1.5rem; }
  .domain-band__number { display: none; }
  .energy-grid { grid-template-columns: 1fr; }
  .tips-grid { grid-template-columns: 1fr; }
  .cta-section h2 { font-size: 2rem; }
  .cta-section__inner { padding: 3.5rem 1.5rem; }
  .site-footer__inner { flex-direction: column; gap: 0.5rem; text-align: center; }
}

@media (max-width: 480px) {
  .site-nav { flex-direction: column; gap: 12px; padding: 16px; }
  .site-nav__links { gap: 16px; }
  .hero__title { font-size: 2.25rem; }
  .hero { padding: 2.5rem 1.25rem 2rem; }
  .search-wrapper { margin-top: 2rem; }
  .theme-hero h1 { font-size: 1.75rem; }
  .theme-nav { flex-direction: column; gap: 1rem; }
}
