@import "./reset.css";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap");

:root {
  /* Core palette */
  --bg-primary: #0B0B0B;
  --bg-secondary: #111111;
  --bg-elevated: #1A1A1A;
  
  --text-primary: #F5F5F5;
  --text-secondary: #A0A0A0;
  --text-muted: #666666;
  
  --accent: #4F46E5;
  --accent-hover: #6366F1;
  --accent-muted: rgba(79, 70, 229, 0.15);
  
  /* Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-visible: rgba(255, 255, 255, 0.15);
  
  /* Typography scale */
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Spacing scale */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 10rem;
  
  /* Layout */
  --max-width: 1200px;
  --max-width-narrow: 720px;
  --max-width-text: 580px;
}

/* ═══════════════════════════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════════════════════════ */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ═══════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.container--text {
  max-width: var(--max-width-text);
}

/* ═══════════════════════════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════════════════════════ */

.display-xl {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw + 1rem, 5.5rem);
  font-weight: 600;
  line-height: 1.0;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.display-lg {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.display-md {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw + 0.5rem, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.text-lg {
  font-size: clamp(1.125rem, 1vw + 0.5rem, 1.25rem);
  line-height: 1.6;
}

.text-md {
  font-size: 1rem;
  line-height: 1.7;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.6;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1.5;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-accent {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-primary);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-visible);
}

.btn--ghost:hover {
  background: var(--bg-elevated);
  border-color: var(--text-secondary);
}

.btn--large {
  padding: 1.25rem 2.5rem;
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) 0;
  background: transparent;
  transition: all 0.3s ease;
}

.header--scrolled {
  background: rgba(11, 11, 11, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.header__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.header__link:hover,
.header__link--active {
  color: var(--text-primary);
}

.header__cta {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════
   SECTION BASE
   ═══════════════════════════════════════════════════════════ */

.section {
  padding: var(--space-3xl) 0;
  padding-top: calc(var(--space-3xl) * 1.3);
  padding-bottom: calc(var(--space-3xl) * 1.3);
  position: relative;
}

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
  padding-bottom: var(--space-2xl);
}

.section__label {
  display: inline-block;
  margin-bottom: var(--space-md);
  padding: 0.5rem 1rem;
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section__header {
  max-width: var(--max-width-text);
  margin-bottom: var(--space-2xl);
}

.section__header--centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  margin-bottom: var(--space-md);
}

.section__subtitle {
  color: var(--text-secondary);
}

.section__dominance {
  margin-top: var(--space-lg);
  max-width: 520px;
}

.section__dominance p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.75vw, 1.375rem);
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.4;
  letter-spacing: -0.015em;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════
   ANCHOR (HERO) SECTION
   ═══════════════════════════════════════════════════════════ */

.anchor {
  background: var(--bg-primary);
}

.anchor__content {
  max-width: 720px;
}

.anchor__position {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.anchor__position::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--accent);
}

.anchor__headline {
  margin-bottom: var(--space-xl);
}

.anchor__contrast {
  display: flex;
  gap: var(--space-lg);
  margin-bottom: var(--space-md);
}

.anchor__negation {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-muted);
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.anchor__affirmation {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.01em;
}

.anchor__proof-line {
  font-size: 0.875rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
}

.anchor__tension {
  padding-top: var(--space-xl);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-2xl);
  border-top: 1px solid var(--border-subtle);
  max-width: 480px;
}

.anchor__tension p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.25vw, 1.625rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  letter-spacing: -0.015em;
  margin-bottom: 0.5rem;
}

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

.anchor__subline {
  max-width: 540px;
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.anchor__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-top: var(--space-xl);
}

.anchor__social {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
  padding-left: var(--space-md);
  border-left: 1px solid var(--border-subtle);
}

.anchor__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.anchor__social a:hover {
  color: var(--text-primary);
}

.anchor__social svg {
  width: 20px;
  height: 20px;
}

/* ═══════════════════════════════════════════════════════════
   PROOF (CASES) SECTION
   ═══════════════════════════════════════════════════════════ */

.proof {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.proof__grid {
  display: grid;
  gap: var(--space-2xl);
}

.case {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  padding: var(--space-xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.case:last-child {
  border-bottom: none;
}

.case__result-hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.case__result-hero .case__result-value {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
}

.case__result-hero .case__result-label {
  font-size: 1rem;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.case__result-hero .case__result-statement {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.3vw, 1.625rem);
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 100%;
}

.case__body {
  max-width: 520px;
  min-width: 0;
  padding-left: var(--space-sm);
}

.case__category {
  margin-bottom: var(--space-xs);
  color: var(--text-muted);
}

.case__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.case__description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.case__visual {
  aspect-ratio: 16/9;
  background: var(--bg-elevated);
  border-radius: 8px;
  overflow: hidden;
  max-width: 400px;
}

.case__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

/* ═══════════════════════════════════════════════════════════
   VALIDATION SECTION
   ═══════════════════════════════════════════════════════════ */

.validation {
  background: var(--bg-primary);
}

.validation__editorial {
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

.testimonial--editorial {
  text-align: center;
}

.testimonial__quote--large {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.4;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  font-style: normal;
}

.testimonial__quote--large::before,
.testimonial__quote--large::after {
  display: none;
}

.testimonial__cite {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.testimonial__cite .testimonial__name {
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary);
}

.testimonial__cite .testimonial__role {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Outcomes section */
.validation__outcomes {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  max-width: 680px;
  margin: 0 auto;
  margin-top: var(--space-2xl);
}

.outcome-statement {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
  padding: 0 var(--space-md);
}

/* Legacy grid styles */
.validation__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}

.testimonial__quote {
  margin-bottom: var(--space-lg);
  font-size: clamp(1.125rem, 1.5vw + 0.5rem, 1.375rem);
  line-height: 1.6;
  color: var(--text-primary);
}

.testimonial__quote::before {
  content: '"';
  color: var(--accent);
}

.testimonial__quote::after {
  content: '"';
  color: var(--accent);
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--accent);
}

.testimonial__info {
  display: flex;
  flex-direction: column;
}

.testimonial__name {
  font-weight: 600;
}

.testimonial__role {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* ═══════════════════════════════════════════════════════════
   LENS (PHILOSOPHY) SECTION
   ═══════════════════════════════════════════════════════════ */

.lens {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.lens__editorial {
  text-align: left;
}

.lens__principles {
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-3xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.principle {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
}

.principle__number {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 2ch;
}

.principle__divider {
  color: var(--text-muted);
}

.principle__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.not-for--minimal {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.not-for--minimal .not-for__title {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
}

.not-for--minimal .not-for__items {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Legacy lens content */
.lens__content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--space-3xl);
  align-items: start;
}

.lens__header {
  position: sticky;
  top: 150px;
}

.lens__beliefs {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.belief {
  padding: var(--space-lg);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.belief:hover {
  border-color: var(--accent);
}

.belief__number {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin-bottom: var(--space-sm);
  background: var(--accent-muted);
  color: var(--accent);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 28px;
}

.belief__title {
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.belief__text {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* ═══════════════════════════════════════════════════════════
   NOT FOR SECTION
   ═══════════════════════════════════════════════════════════ */

.not-for {
  margin-top: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 8px;
}

.not-for__title {
  margin-bottom: var(--space-sm);
  color: #EF4444;
  font-weight: 600;
}

.not-for__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.not-for__list li {
  position: relative;
  padding-left: var(--space-md);
  margin-bottom: var(--space-xs);
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.not-for__list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #EF4444;
  font-weight: bold;
}

/* ═══════════════════════════════════════════════════════════
   GATE (CONTACT) SECTION
   ═══════════════════════════════════════════════════════════ */

.gate {
  background: var(--bg-primary);
}

.gate__inner {
  max-width: 580px;
  margin: 0 auto;
  text-align: center;
}

.gate__tension {
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.gate__friction {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.gate__friction p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0.25rem 0;
}

.gate__scarcity {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
  text-align: center;
}

.gate__headline {
  margin-bottom: var(--space-md);
}

.gate__subline {
  margin-bottom: var(--space-xl);
  color: var(--text-secondary);
}

.gate__form {
  text-align: left;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-elevated);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.gate__submit {
  width: 100%;
  margin-top: var(--space-sm);
}

.gate__alt {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.gate__alt-text {
  margin-bottom: var(--space-sm);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.gate__email {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.gate__email:hover {
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
  padding: var(--space-xl) 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
}

.footer__link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer__link:hover {
  color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════ */

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

/* Fade in animation - simplified */
[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* Subtle progressive reveal delays */
[data-animate-delay="1"] {
  transition-delay: 0.05s;
}

[data-animate-delay="2"] {
  transition-delay: 0.1s;
}

[data-animate-delay="3"] {
  transition-delay: 0.15s;
}

/* Message response */
.response {
  position: fixed;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-visible);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.875rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.response.open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.response--success {
  border-color: #22C55E;
}

.response--error {
  border-color: #EF4444;
}
