/*
 * Diaspora Flows — Landing Page (P0-02.10 redesign)
 * Structural patterns from Agoo AI reference. Visual language: Diaspora Flows brand.
 * All colours via CSS variables. No hardcoded hex values.
 */

/* ── NAV ── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 3.5rem; height: 54px;
  background: var(--theme-nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--theme-border);
}
.lp-nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  text-decoration: none; flex-shrink: 0;
}
.lp-nav-wordmark {
  display: flex; flex-direction: row; align-items: baseline;
  gap: 0.25rem; line-height: 1;
}
.lp-nav-w1 {
  font-family: var(--df-font-serif); font-size: 1.3rem;
  font-weight: 300; font-style: italic; color: var(--theme-text);
  white-space: nowrap;
}
.lp-nav-w2 {
  font-family: var(--df-font-serif); font-size: 1.3rem;
  font-weight: 700; color: var(--df-gold); white-space: nowrap;
}
.lp-nav-links {
  display: flex; align-items: center; gap: 2rem; list-style: none;
}
.lp-nav-links a {
  font-family: var(--df-font-sans); font-size: 0.78rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--theme-text-mid); text-decoration: none; transition: color 0.2s;
}
.lp-nav-links a:hover { color: var(--df-gold); }
.lp-hamburger {
  display: none; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer; padding: 0.5rem;
  color: var(--theme-text); font-size: 1.25rem;
}
.lp-nav-cta {
  font-family: var(--df-font-sans); font-size: 0.88rem;
  font-weight: 700; letter-spacing: 0.05em;
  color: var(--df-ink); background: var(--df-gold);
  border: 1px solid var(--df-gold-d);
  padding: 0.6rem 1.5rem; text-decoration: none;
  transition: background 0.2s; flex-shrink: 0;
}
.lp-nav-cta:hover { background: var(--df-gold-l); }

/* ── Section Label (numbered + gradient rule) ── */
.lp-section-label {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem;
}
.lp-section-label::after {
  content: ''; flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.4), transparent);
}
.lp-section-num {
  font-family: var(--df-font-mono); font-size: 0.82rem; font-weight: 500;
  color: var(--df-gold); letter-spacing: 0.15em; text-transform: uppercase;
}

/* ── Scroll Reveal (triggered by IntersectionObserver, not Alpine x-intersect) ── */
.lp-reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.lp-reveal.lp-visible { opacity: 1; transform: none; }
/* Fallback: make content visible immediately if JS hasn't run */
.no-js .lp-reveal { opacity: 1; transform: none; }

/* ── Card ── */
.lp-card {
  background: var(--theme-bg-2); border: 1px solid var(--theme-border);
  padding: 1.75rem; transition: border-color 0.2s;
  display: flex; flex-direction: column; position: relative; overflow: hidden;
}
.lp-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--df-gold); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s;
}
.lp-card:hover { border-color: rgba(201,168,76,0.45); }
.lp-card:hover::before { transform: scaleX(1); }
.lp-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.2); margin-bottom: 1.25rem;
  flex-shrink: 0; font-size: 1.1rem;
}
.lp-card-title {
  font-family: var(--df-font-sans); font-size: 0.92rem; font-weight: 700;
  color: var(--theme-text); margin-bottom: 0.5rem; letter-spacing: 0.02em;
}
.lp-card-desc {
  font-size: 0.95rem; color: var(--theme-text-mid); line-height: 1.75; flex: 1;
}
.lp-card-stat {
  font-family: var(--df-font-mono); font-size: 0.72rem; color: var(--df-gold);
  letter-spacing: 0.08em; margin-top: 0.85rem; padding-top: 0.85rem;
  border-top: 1px solid var(--theme-border-s);
}
.lp-card-pct {
  font-family: var(--df-font-mono); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--df-gold); line-height: 1; margin-bottom: 0.5rem;
}

/* ── HERO ── */
.lp-hero {
  min-height: calc(100vh - 54px); margin-top: 54px;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding: 0 3.5rem; position: relative; overflow: hidden; text-align: center;
}
.lp-hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 15% 50%, rgba(201,168,76,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.lp-hero-bg-word {
  position: absolute; left: 50%; bottom: -3rem; transform: translateX(-50%);
  font-family: var(--df-font-sans); font-size: min(30vw, 24rem); font-weight: 800;
  color: rgba(201,168,76,0.03); letter-spacing: -0.05em; line-height: 1;
  pointer-events: none; user-select: none;
}
.lp-hero-inner {
  position: relative; display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 820px;
}
.lp-hero-logo {
  display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem;
}
.lp-hero-logo-wordmark {
  display: flex; flex-direction: row; align-items: baseline; gap: 0.3rem;
}
.lp-hero-logo-w1 {
  font-family: var(--df-font-serif); font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 300; font-style: italic; color: var(--theme-text);
  letter-spacing: -0.02em; white-space: nowrap; line-height: 1;
}
.lp-hero-logo-w2 {
  font-family: var(--df-font-serif); font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 700; color: var(--df-gold); letter-spacing: -0.02em;
  white-space: nowrap; line-height: 1;
}
.lp-hero-eyebrow {
  font-family: var(--df-font-mono); font-size: 0.7rem; font-weight: 500;
  color: var(--df-gold); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.85rem;
}
.lp-hero-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--df-gold);
  opacity: 0.6; flex-shrink: 0;
}
.lp-hero-title {
  font-family: var(--df-font-serif); font-size: clamp(1.9rem, 3.2vw, 3.6rem);
  font-weight: 300; font-style: normal; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 1.5rem; color: var(--theme-text);
}
.lp-hero-title strong { font-weight: 700; color: var(--df-gold); }
.lp-hero-sub {
  font-size: 0.95rem; color: var(--theme-text-mid); line-height: 1.85;
  max-width: 500px; margin-bottom: 2rem; margin-left: auto; margin-right: auto;
}
.lp-hero-cta { margin-top: 0.5rem; }
.lp-hero-join-btn {
  padding: 1rem 4rem; font-size: 0.95rem; text-align: center;
}
.lp-hero-form { display: flex; gap: 0; max-width: 420px; }
.lp-hero-input {
  flex: 1; padding: 0.8rem 1.1rem; background: var(--theme-bg-2);
  border: 1px solid var(--theme-border); border-right: none;
  color: var(--theme-text); font-family: var(--df-font-body); font-size: 0.88rem;
  outline: none; transition: border-color 0.2s;
}
.lp-hero-input:focus { border-color: rgba(201,168,76,0.5); }
.lp-hero-input::placeholder { color: var(--theme-text-low); }
.lp-hero-submit {
  padding: 0.8rem 1.35rem; background: var(--df-gold); color: var(--df-ink);
  font-family: var(--df-font-sans); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.05em; border: none; cursor: pointer; white-space: nowrap;
  transition: background 0.2s;
}
.lp-hero-submit:hover { background: var(--df-gold-l); }
.lp-hero-success {
  font-family: var(--df-font-mono); font-size: 0.78rem; color: var(--df-green-l);
  letter-spacing: 0.1em; text-transform: uppercase;
}
.lp-hero-error {
  font-family: var(--df-font-mono); font-size: 0.75rem; color: #e05a40;
  letter-spacing: 0.06em; margin-top: 0.5rem;
}
.lp-hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; justify-content: center; }

/* ── Sections ── */
.lp-section { padding: 6rem 3.5rem; border-top: 1px solid var(--theme-border-s); }
.lp-section--alt { background: var(--theme-surface-2); }
.lp-section-inner { max-width: 1100px; margin: 0 auto; }
.lp-section-title {
  font-family: var(--df-font-serif); font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300; line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 0.75rem; color: var(--theme-text);
}
.lp-section-title em { font-style: italic; color: var(--df-gold-l); }
.lp-section-sub {
  font-size: 1.05rem; color: var(--theme-text-mid); line-height: 1.8;
  max-width: 600px; margin-bottom: 3rem;
}
.lp-section-cta { margin-top: 2.5rem; }

/* ── Stats ── */
.lp-stats-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--theme-border); margin-top: 2.5rem;
}
.lp-stat-card {
  background: var(--theme-bg); padding: 2.5rem 2rem;
  display: flex; flex-direction: column;
}
.lp-stat-num {
  font-family: var(--df-font-mono); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 400; color: var(--df-gold); line-height: 1; margin-bottom: 0.5rem;
}
.lp-stat-label {
  font-family: var(--df-font-mono); font-size: 0.75rem; color: var(--theme-text-low);
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 0.85rem;
}
.lp-stat-desc { font-size: 0.95rem; color: var(--theme-text-mid); line-height: 1.75; }

/* ── Card Grids ── */
.lp-card-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.lp-card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.lp-card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.lp-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

/* ── Formula ── */
.lp-formula {
  margin-top: 2rem; padding: 1.75rem 2rem; background: var(--theme-bg-2);
  border: 1px solid var(--theme-border); border-left: 3px solid var(--df-gold);
  font-family: var(--df-font-mono); font-size: 0.88rem;
  color: var(--theme-text-mid); line-height: 2.2;
}
.lp-formula-step { color: var(--df-gold); margin-right: 1rem; font-weight: 500; }
.lp-formula-note {
  font-size: 0.78rem; color: var(--theme-text-low); margin-top: 0.5rem;
  padding-top: 0.75rem; border-top: 1px solid var(--theme-border-s);
}

/* ── Plain language royalty flow ── */
.lp-how-flow {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 2.5rem; border: 1px solid var(--theme-border);
}
.lp-how-step {
  flex: 1; padding: 2rem 1.75rem; background: var(--theme-bg-2);
  display: flex; flex-direction: column; gap: 0.75rem;
}
.lp-how-step-icon { font-size: 1.75rem; line-height: 1; margin-bottom: 0.25rem; }
.lp-how-step-title {
  font-family: var(--df-font-sans); font-size: 0.95rem; font-weight: 700;
  color: var(--theme-text); letter-spacing: 0.02em;
}
.lp-how-step-desc { font-size: 0.92rem; color: var(--theme-text-mid); line-height: 1.75; }
.lp-how-connector {
  display: flex; align-items: center; justify-content: center;
  padding: 0 0.75rem; background: var(--theme-bg); color: var(--df-gold);
  font-family: var(--df-font-mono); font-size: 1.1rem; flex-shrink: 0;
  border-top: 1px solid var(--theme-border); border-bottom: 1px solid var(--theme-border);
}

/* Concrete example */
.lp-how-example {
  margin-top: 1.5rem; padding: 1.5rem 2rem;
  background: rgba(201,168,76,0.04); border: 1px solid rgba(201,168,76,0.18);
  border-left: 3px solid var(--df-gold);
}
.lp-how-example-label {
  font-family: var(--df-font-mono); font-size: 0.75rem; font-weight: 600;
  color: var(--df-gold); letter-spacing: 0.18em; text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.lp-how-example-text {
  font-size: 1.0rem; color: var(--theme-text); line-height: 1.85; margin-bottom: 0.75rem;
}
.lp-how-example-text strong { color: var(--df-gold); font-weight: 600; }
.lp-how-example-note {
  font-family: var(--df-font-mono); font-size: 0.72rem;
  color: var(--theme-text-low); letter-spacing: 0.04em; line-height: 1.6;
}

/* ── Vision ── */
.lp-vision-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: start; margin-top: 2.5rem;
}
.lp-blockquote {
  border-left: 3px solid var(--df-gold); padding: 1.5rem 1.75rem;
  background: rgba(201,168,76,0.04); font-family: var(--df-font-serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 300; font-style: italic;
  line-height: 1.6; color: var(--theme-text); margin-bottom: 1rem;
}
.lp-blockquote-attr {
  font-family: var(--df-font-mono); font-size: 0.75rem; font-weight: 600;
  color: var(--df-gold); letter-spacing: 0.1em; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.75rem;
}
.lp-blockquote-attr::before {
  content: ''; width: 20px; height: 1px; background: var(--df-gold); opacity: 0.5;
}
.lp-vision-right {
  font-size: 1.0rem; color: var(--theme-text-mid); line-height: 1.85;
  display: flex; flex-direction: column; gap: 1.25rem;
}
.lp-vision-right strong { color: var(--theme-text); font-weight: 500; }

/* ── Waitlist ── */
.lp-waitlist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
  align-items: start; margin-top: 2rem;
}
.lp-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.lp-pill {
  font-family: var(--df-font-mono); font-size: 0.75rem; font-weight: 500;
  color: var(--df-gold); letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid rgba(201,168,76,0.3); padding: 0.3rem 0.75rem;
  background: rgba(201,168,76,0.05);
}
.lp-waitlist-form-wrap {
  background: var(--theme-bg-2); border: 1px solid var(--theme-border); padding: 2.5rem;
}
.lp-waitlist-form { display: flex; flex-direction: column; gap: 1rem; }
.lp-field { display: flex; flex-direction: column; }
.lp-input {
  padding: 0.85rem 1.1rem; background: var(--theme-bg); border: 1px solid var(--theme-border);
  color: var(--theme-text); font-family: var(--df-font-body); font-size: 0.88rem;
  outline: none; width: 100%; transition: border-color 0.2s;
}
.lp-input:focus { border-color: rgba(201,168,76,0.5); }
.lp-input::placeholder { color: var(--theme-text-low); }
.lp-select { appearance: none; cursor: pointer; }
.lp-select option { background: var(--theme-bg-2); }
.lp-field-error {
  font-family: var(--df-font-mono); font-size: 0.75rem; color: #e05a40; letter-spacing: 0.06em;
}
.lp-waitlist-submit { width: 100%; justify-content: center; }
.lp-waitlist-success { text-align: center; padding: 2rem; }
.lp-waitlist-success-icon { font-size: 2rem; color: var(--df-green-l); margin-bottom: 1rem; }
.lp-waitlist-success h3 {
  font-family: var(--df-font-serif); font-size: 1.4rem; font-weight: 300;
  color: var(--theme-text); margin-bottom: 0.5rem;
}
.lp-waitlist-success p { font-size: 0.85rem; color: var(--theme-text-mid); line-height: 1.7; }

/* ── Footer ── */
.lp-footer {
  padding: 2rem 3.5rem; border-top: 1px solid var(--theme-border-s);
}
.lp-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.lp-footer-brand {
  display: flex; align-items: center; gap: 0.75rem;
}
.lp-footer-wordmark {
  display: flex; flex-direction: row; align-items: baseline; gap: 0.25rem;
}
.lp-footer-copy {
  font-family: var(--df-font-mono); font-size: 0.72rem;
  color: var(--theme-text-low); letter-spacing: 0.06em; text-transform: uppercase;
  margin-left: 1rem;
}
.lp-footer-links { display: flex; gap: 2rem; list-style: none; }
.lp-footer-links a {
  font-family: var(--df-font-mono); font-size: 0.72rem;
  color: var(--theme-text-low); text-decoration: none;
  letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s;
}
.lp-footer-links a:hover { color: var(--df-gold); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .lp-nav { padding: 0 1.5rem; }
  .lp-nav-links { display: none; }
  .lp-nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 54px; left: 0; right: 0;
    background: var(--theme-nav-bg); padding: 1.5rem;
    border-bottom: 1px solid var(--theme-border);
    gap: 1rem; z-index: 100;
  }
  .lp-hamburger { display: flex; }
  .lp-hero { padding: 0 1.5rem; }
  .lp-section { padding: 4rem 1.5rem; }
  .lp-stats-grid { grid-template-columns: 1fr; gap: 0; }
  .lp-card-grid--3 { grid-template-columns: 1fr; }
  .lp-card-grid--2 { grid-template-columns: 1fr; }
  .lp-two-col { grid-template-columns: 1fr; gap: 2rem; }
  .lp-vision-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-waitlist-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .lp-how-flow { flex-direction: column; }
  .lp-how-connector { padding: 0.5rem; transform: rotate(90deg); width: 2.5rem; align-self: center; margin: -0.5rem 0; border: none; }
  .lp-hero-logo-w1, .lp-hero-logo-w2 { font-size: 2rem; }
  .lp-footer { padding: 1.5rem; }
  .lp-footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-section, .lp-hero, .lp-stat-card, .lp-card,
  .lp-how-step, .lp-vision-quote {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
