/* Self-hosted variable font — one file covers weights 100-900, no CDN dependency */
@font-face {
  font-family: 'Lexend';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/lexend-variable-latin.woff2') format('woff2');
}

/* Theme tokens. Cards use the light surface theme; the body uses the
   "Sensory Flow" gradient theme: deep poker tones (forest green, midnight
   teal, soft navy) softly meshed for visual depth without tracking fatigue.
   Carried forward from the v1 site. */
:root {
  /* Surface (cards, content blocks) — a hair off pure white so cards read
     as a soft surface, not a stark cutout, against the dark theme */
  --card: #f9f8fd;
  --primary: #6c63ff;
  --primary-soft: rgba(108, 99, 255, 0.08);
  --accent-teal: #2dd4bf;
  --text: #1a1a2e;
  --text-secondary: #2c2c3d;
  --text-muted: #4a4a5e;
  --border: #ddd;

  /* Sensory Flow background theme */
  --bg-base: #1a2238;
  --bg-flow-forest: rgba(28, 70, 54, 0.85);
  --bg-flow-teal:   rgba(28, 58, 78, 0.75);
  --bg-flow-ocean:  rgba(20, 44, 64, 0.75);
  --bg-flow-navy:   rgba(36, 50, 78, 0.70);
  --text-on-bg:       #d8e0ec;
  --text-on-bg-muted: #a8b5c8;

  --shadow:       0 1px 3px rgba(0, 0, 0, 0.20), 0 8px 24px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.25), 0 12px 28px rgba(108, 99, 255, 0.25);

  --font-sans: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(at 18% 22%, var(--bg-flow-forest) 0%, transparent 55%),
    radial-gradient(at 85% 30%, var(--bg-flow-teal)   0%, transparent 55%),
    radial-gradient(at 30% 85%, var(--bg-flow-ocean)  0%, transparent 60%),
    radial-gradient(at 75% 80%, var(--bg-flow-navy)   0%, transparent 55%);
  background-attachment: fixed;
  color: var(--text-on-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
}

h1, h2, h3 {
  font-family: var(--font-sans);
}

/* ---------- Status strip ---------- */

.status-strip {
  text-align: center;
  background: linear-gradient(90deg, var(--primary), #8a7dff);
  padding: 8px 16px;
}

.status-strip a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.status-strip a:hover {
  text-decoration: underline;
}

/* ---------- Top nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 27, 46, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-nav.is-scrolled {
  background: rgba(16, 22, 38, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  background: linear-gradient(135deg, var(--primary) 0%, #8a7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 20px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  color: var(--text-on-bg-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  flex-shrink: 0;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(108, 99, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-on-bg);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.mobile-nav a {
  color: var(--text-on-bg-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: #fff;
}

.mobile-nav-cta {
  background: var(--primary);
  color: #fff !important;
  text-align: center;
  border-radius: 10px;
  font-weight: 600 !important;
  margin-top: 10px;
  margin-bottom: 4px;
  border-bottom: none !important;
}

.mobile-nav-cta:hover {
  background: #7a72ff;
}

@media (max-width: 560px) {
  .nav-links,
  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .site-nav.is-open .mobile-nav {
    max-height: 400px;
    padding: 4px 24px 16px;
  }

  .site-nav.is-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-nav.is-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-nav.is-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  text-align: center;
  padding-top: 48px;
  margin: -24px -24px 0;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.hero-bg {
  position: absolute;
  inset: -10%;
  background-size: cover;
  background-position: center;
  animation: hero-drift 24s ease-in-out infinite alternate;
  z-index: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 35, 0.35) 0%, var(--bg-base) 92%);
}

@keyframes hero-drift {
  0%   { transform: scale(1.08) translate(0, 0); }
  100% { transform: scale(1.16) translate(-2%, -2%); }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 0 24px 24px;
}

.title {
  font-family: var(--font-sans);
  font-size: 44px;
  font-weight: 700;
  margin-bottom: 4px;
  background: linear-gradient(135deg, var(--primary) 0%, #8a7dff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 19px;
  font-style: italic;
  font-weight: 500;
  color: #a48fff;
  margin-bottom: 8px;
  letter-spacing: 0.3px;
}

.subtitle {
  font-size: 15px;
  color: var(--text-on-bg-muted);
  margin-bottom: 32px;
}

.hero-shot {
  max-width: 300px;
  margin: 0 auto 32px;
  animation: hero-float 5s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.hero-shot img {
  width: 100%;
  display: block;
  border-radius: 24px;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25), 0 24px 48px rgba(108, 99, 255, 0.22);
}

.hero-shot-pair {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  max-width: 560px;
}

.hero-shot-item {
  flex: 1 1 240px;
  max-width: 260px;
}

.hero-shot-item p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-on-bg-muted);
  text-align: center;
}

@media (max-width: 560px) {
  .hero-shot-pair {
    flex-direction: column;
    align-items: center;
  }

  .hero-shot-item {
    max-width: 240px;
  }
}

.hero-text {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  max-width: 560px;
  margin: 0 auto 48px;
  box-shadow: var(--shadow);
}

.hero-text p {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-secondary);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg,
  .hero-shot {
    animation: none;
  }
}

/* ---------- Section divider ---------- */

.divider {
  height: 2px;
  max-width: 240px;
  margin: 0 auto 48px;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent-teal), transparent);
  background-size: 200% 100%;
  animation: divider-sweep 6s linear infinite;
  border-radius: 2px;
  opacity: 0.7;
}

@keyframes divider-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .divider {
    animation: none;
  }
}

/* ---------- Need-state grid ---------- */

.need-state {
  margin-bottom: 8px;
}

.need-state-heading {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
}

.need-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.need-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.need-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.need-icon {
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  display: block;
}

.need-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.3;
}

.need-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .need-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .need-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Action pair (toolkit-in-use shots) ---------- */

.action-pair {
  display: flex;
  justify-content: center;
  gap: 24px;
  max-width: 640px;
  margin: 0 auto 48px;
  flex-wrap: wrap;
}

.action-shot {
  flex: 1 1 220px;
  max-width: 260px;
  text-align: center;
}

.action-shot img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.action-shot:hover img {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.action-shot p {
  font-size: 13px;
  color: var(--text-on-bg-muted);
}

/* ---------- Stat strip ---------- */

.stat-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto 48px;
  padding: 28px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.stat-num {
  font-family: var(--font-sans);
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 13px;
  color: var(--text-on-bg-muted);
  margin-top: 4px;
}

/* ---------- Feature showcase ---------- */

.showcase {
  margin-bottom: 48px;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 56px;
}

.showcase-row:nth-child(2) { transition-delay: 0.1s; }
.showcase-row:nth-child(3) { transition-delay: 0.2s; }

.showcase-row.reverse {
  flex-direction: row-reverse;
}

.showcase-shot {
  flex: 0 0 260px;
}

.showcase-shot img {
  width: 100%;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.showcase-row:hover .showcase-shot img {
  transform: rotate(-1.5deg) scale(1.03);
  box-shadow: var(--shadow-hover);
}

.showcase-row.reverse:hover .showcase-shot img {
  transform: rotate(1.5deg) scale(1.03);
}

.showcase-text {
  flex: 1;
}

.showcase-text h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.showcase-text p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-bg-muted);
}

@media (max-width: 700px) {
  .showcase-row,
  .showcase-row.reverse {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .showcase-shot {
    flex: 0 0 auto;
    max-width: 240px;
  }
}

/* ---------- Community blurb ---------- */

.community-blurb {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 48px;
}

.community-blurb h2 {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.community-blurb p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-on-bg-muted);
}

/* ---------- Founding members ---------- */

.founding {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 560px;
  margin: 0 auto 32px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.founding h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.founding p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.founding-cta {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(108, 99, 255, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.founding-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

.text-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.community-blurb .text-link {
  color: #a48fff;
}

.founding .text-link {
  margin-top: 12px;
  color: var(--primary);
}

.text-link:hover {
  text-decoration: underline;
}

/* ---------- Generic content pages (About / Community / Founding Members) ---------- */

.page-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 8px;
  padding-top: 24px;
}

.page-hero .title {
  font-size: 36px;
}

.page-hero .intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-on-bg-muted);
  margin-top: 12px;
}

.content-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  max-width: 640px;
  margin: 0 auto 28px;
  padding: 28px 32px;
  box-shadow: var(--shadow);
}

.content-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.content-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.content-card p:last-child {
  margin-bottom: 0;
}

.content-card ul {
  padding-left: 20px;
}

.content-card li {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.content-card li strong {
  color: var(--text);
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 640px;
  margin: 0 auto 28px;
}

.principle-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.principle-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.principle-card .icon {
  margin-bottom: 8px;
  display: block;
}

.principle-card .icon-img {
  width: 28px;
  height: 28px;
  font-size: 0;
}

.principle-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.principle-card p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

.page-cta {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 32px;
}

/* ---------- Footer ---------- */

footer {
  text-align: center;
  padding: 24px 0 16px;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
  margin: 0 12px;
}

footer a:hover {
  text-decoration: underline;
}

/* ---------- Legal / FAQ pages ---------- */

.legal {
  text-align: left;
  max-width: 640px;
  margin: 32px auto;
  background: var(--card);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.legal h1.title {
  font-size: 28px;
  text-align: left;
  -webkit-text-fill-color: initial;
  background: none;
  color: var(--text);
}

.legal .updated {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 20px;
  margin: 24px 0 8px;
  color: var(--text);
}

.legal p,
.legal li {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal li strong {
  color: var(--text);
}

.legal ul {
  padding-left: 20px;
}

.legal a {
  color: var(--primary);
}

.back {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--primary);
  text-decoration: none;
  font-size: 14px;
}

.back:hover {
  text-decoration: underline;
}

.faq-page .title {
  text-align: center;
}

.faq-page .subtitle {
  text-align: center;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 700px;
  margin: 0 auto 28px;
}

.faq-tab {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-on-bg-muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.faq-tab:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: #fff;
}

.faq-tab.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.faq-list {
  text-align: left;
  max-width: 700px;
  margin: 0 auto 32px;
}

.faq-group {
  animation: faq-fade-in 0.3s ease;
}

.faq-list.tabs-ready .faq-group {
  display: none;
}

.faq-list.tabs-ready .faq-group.is-active {
  display: block;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-soft);
}

details[open].faq-item {
  border-color: rgba(108, 99, 255, 0.3);
}

.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 12px;
  line-height: 1;
}

details[open] .faq-question::after {
  content: '\2212';
}

.faq-answer {
  padding: 0 20px 16px;
}

.faq-answer p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.faq-answer ul {
  margin-top: 8px;
  padding-left: 20px;
}

.faq-answer li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.faq-answer li strong {
  color: var(--text);
}

/* ---------- 404 ---------- */

.notfound {
  text-align: center;
  padding-top: 80px;
}

.notfound .back-home {
  display: inline-block;
  margin-top: 24px;
  color: var(--primary);
  text-decoration: none;
  font-size: 16px;
}
