/* ═══════════════════════════════════════════════════════════
   AI Manifesto — staas.fund/ai-manifesto
   Inspired by Augen.pro: minimalist, editorial, premium
   ═══════════════════════════════════════════════════════════ */

/* ── Custom Properties ──────────────────────────────────── */
:root {
  /* Colors */
  --am-bg: #fdfdfd;
  --am-bg-alt: #f2f2f4;
  --am-dark: #0f1012;
  --am-dark-2: #18191c;
  --am-accent: #0071e3;
  --am-accent-dim: #005bb8;
  --am-text: #0f1012;
  --am-text-muted: #6b7280;
  --am-text-light: #f2f2f4;
  --am-text-dim: rgba(242, 242, 244, 0.55);

  /* Typography */
  --am-font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --am-fw-light: 300;
  --am-fw-regular: 400;
  --am-fw-medium: 500;
  --am-letter-tight: -0.02em;
  --am-letter-wider: 0.08em;

  /* Type Scale */
  --am-display: clamp(40px, 6vw, 80px);
  --am-h2: clamp(32px, 4vw, 56px);
  --am-h3: clamp(20px, 2.5vw, 28px);
  --am-body: clamp(15px, 1.1vw, 17px);
  --am-small: 13px;

  /* Layout */
  --am-gutter: 5%;
  --am-max-w: 1200px;
  --am-col-gap: clamp(16px, 2.5vw, 40px);

  /* Motion */
  --am-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --am-duration: 0.3s;

  /* Components */
  --am-pill: 5.4rem;
  --am-card-r: 1.2rem;
  --am-nav-blur: 20px;
}

/* ── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html, body {
  overflow-x: hidden;
}

body {
  font-family: var(--am-font);
  font-weight: var(--am-fw-light);
  font-size: var(--am-body);
  line-height: 1.65;
  color: var(--am-text);
  background: var(--am-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--am-duration) var(--am-ease);
}

img {
  display: block;
  max-width: 100%;
}

/* ── Scroll Reveal ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--am-ease), transform 0.7s var(--am-ease);
  transition-delay: var(--delay, 0s);
}

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

/* ── Nav ────────────────────────────────────────────────── */
.am-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--am-gutter);
  background: rgba(253, 253, 253, 0.65);
  backdrop-filter: blur(var(--am-nav-blur));
  -webkit-backdrop-filter: blur(var(--am-nav-blur));
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: background var(--am-duration) var(--am-ease),
              box-shadow var(--am-duration) var(--am-ease);
}

.am-nav.scrolled {
  background: rgba(253, 253, 253, 0.92);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.06);
}

.am-nav-logo {
  font-size: 15px;
  font-weight: var(--am-fw-medium);
  letter-spacing: var(--am-letter-tight);
  color: var(--am-dark);
}

.am-nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.am-nav-links a {
  font-size: 14px;
  font-weight: var(--am-fw-regular);
  color: var(--am-text-muted);
}

.am-nav-links a:hover {
  color: var(--am-dark);
}

.am-nav-cta {
  padding: 8px 22px !important;
  border: 1px solid var(--am-dark);
  border-radius: var(--am-pill);
  font-size: 13px !important;
  font-weight: var(--am-fw-medium) !important;
  color: var(--am-dark) !important;
  transition: background var(--am-duration), color var(--am-duration);
}

.am-nav-cta:hover {
  background: var(--am-dark);
  color: var(--am-text-light) !important;
}

/* Hamburger */
.am-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 210;
}

.am-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--am-dark);
  border-radius: 2px;
  transition: transform 0.25s var(--am-ease), opacity 0.25s var(--am-ease);
}

/* Mobile nav overlay */
.am-nav-links.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--am-dark);
  align-items: center;
  justify-content: center;
  gap: 36px;
  z-index: 200;
}

.am-nav-links.open a {
  font-size: 24px;
  font-weight: var(--am-fw-light);
  color: var(--am-text-light);
}

.am-nav-links.open a:hover {
  color: var(--am-accent);
}

.am-nav-links.open .am-nav-cta {
  border-color: rgba(242, 242, 244, 0.3) !important;
  color: var(--am-text-light) !important;
  font-size: 16px !important;
  padding: 12px 32px !important;
}

.am-nav-links.open .am-nav-cta:hover {
  background: var(--am-accent);
  border-color: var(--am-accent) !important;
}

/* ── Hero Flow (wrapper for hero + values, image spans both) */
.am-hero-flow {
  position: relative;
  background: var(--am-bg);
  overflow: hidden;
}

/* Human photo — spans hero into values, jacket blends into dark section */
.am-hero-photo {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(500px, 55vw, 800px);
  height: auto;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  opacity: 0.5;
  pointer-events: none;
  filter: grayscale(0.15) contrast(1.08);
}

/* ── Hero ───────────────────────────────────────────────── */
.am-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.am-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 0 var(--am-gutter);
}

.am-eyebrow {
  font-size: 11px;
  font-weight: var(--am-fw-medium);
  letter-spacing: var(--am-letter-wider);
  text-transform: uppercase;
  color: var(--am-accent);
  margin-bottom: 20px;
}

.am-hero-title {
  font-size: var(--am-display);
  font-weight: var(--am-fw-light);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.05;
  color: var(--am-dark);
  margin-bottom: 24px;
}

.am-hero-sub {
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: var(--am-fw-light);
  color: var(--am-text-muted);
  max-width: 520px;
  margin-inline: auto;
  margin-bottom: 40px;
  line-height: 1.6;
}

.am-hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll hint */
.am-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.am-scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, transparent, rgba(15, 16, 18, 0.2));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0; transform: scaleY(0.5) translateY(-10px); }
  50% { opacity: 1; transform: scaleY(1) translateY(0); }
}

/* ── Buttons ────────────────────────────────────────────── */
.am-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--am-font);
  font-size: 14px;
  font-weight: var(--am-fw-medium);
  padding: 12px 28px;
  border-radius: var(--am-pill);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--am-duration) var(--am-ease),
              color var(--am-duration) var(--am-ease),
              border-color var(--am-duration) var(--am-ease),
              transform var(--am-duration) var(--am-ease);
}

.am-btn:hover {
  transform: translateY(-1px);
}

.am-btn-filled {
  background: var(--am-accent);
  color: #fff;
  border-color: var(--am-accent);
}

.am-btn-filled:hover {
  background: var(--am-accent-dim);
  border-color: var(--am-accent-dim);
}

.am-btn-outline {
  background: transparent;
  color: var(--am-dark);
  border-color: rgba(15, 16, 18, 0.25);
}

.am-btn-outline:hover {
  border-color: var(--am-dark);
}

/* Light-on-dark variant */
.am-btn-outline-light {
  color: var(--am-text-light);
  border-color: rgba(242, 242, 244, 0.25);
}

.am-btn-outline-light:hover {
  border-color: rgba(242, 242, 244, 0.7);
  color: #fff;
}

.am-btn-lg {
  padding: 16px 36px;
  font-size: 15px;
}

.am-btn-icon {
  font-style: normal;
  transition: transform var(--am-duration) var(--am-ease);
}

.am-btn:hover .am-btn-icon {
  transform: translateX(3px);
}

/* ── Values Section (transparent — image shows behind) ───── */
.am-values {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: clamp(56px, 6vw, 80px) var(--am-gutter);
}

.am-values-inner {
  max-width: var(--am-max-w);
  margin-inline: auto;
}

.am-values-header {
  margin-bottom: clamp(28px, 3vw, 40px);
}

.am-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: var(--am-fw-medium);
  letter-spacing: var(--am-letter-wider);
  text-transform: uppercase;
  color: var(--am-accent);
  margin-bottom: 16px;
}

.am-values-title {
  font-size: var(--am-h2);
  font-weight: var(--am-fw-light);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.1;
  color: var(--am-dark);
  max-width: 600px;
}

.am-tag-light {
  color: var(--am-accent);
}

.am-values-list {
  display: flex;
  flex-direction: column;
}

.am-value-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  align-items: start;
  padding: clamp(20px, 2.5vw, 32px) 0;
  border-top: 1px solid rgba(15, 16, 18, 0.1);
}

.am-value-item:last-child {
  padding-bottom: 0;
}

.am-value-num {
  font-size: var(--am-small);
  font-weight: var(--am-fw-medium);
  letter-spacing: 0.06em;
  color: var(--am-accent);
  padding-top: 4px;
}

.am-value-bold {
  font-size: clamp(17px, 1.8vw, 22px);
  font-weight: var(--am-fw-medium);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.3;
  color: var(--am-dark);
  margin-bottom: 4px;
}

.am-value-over {
  font-size: var(--am-body);
  font-weight: var(--am-fw-light);
  color: var(--am-text-muted);
  line-height: 1.6;
  font-style: italic;
}

/* ── About Section ─────────────────────────────────────── */
.am-about {
  background: var(--am-bg-alt);
  padding: clamp(80px, 10vw, 140px) var(--am-gutter);
}

.am-about.am-about-dark {
  background: var(--am-dark);
}

.am-about-dark .am-about-title {
  color: var(--am-text-light);
}

.am-about-dark .am-about-body,
.am-about-dark .am-text-generate .tg-word {
  color: var(--am-text-dim);
}

.am-about-dark .am-text-generate.tg-active .tg-word {
  color: rgba(242, 242, 244, 0.7);
}

.am-about-inner {
  max-width: var(--am-max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.am-about-inner.am-about-centered {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.am-about-text {
  max-width: 680px;
}

.am-about-title {
  font-size: var(--am-h2);
  font-weight: var(--am-fw-light);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.1;
  color: var(--am-dark);
  margin-bottom: 20px;
}

.am-about-body {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--am-text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}

/* Text Generate Effect — word-by-word blur reveal */
.am-text-generate .tg-word {
  display: inline;
  opacity: 0;
  filter: blur(8px);
  transition: opacity 0.4s var(--am-ease), filter 0.4s var(--am-ease);
}

.am-text-generate.tg-active .tg-word {
  opacity: 1;
  filter: blur(0);
}


/* ── FAQ Section ────────────────────────────────────────── */
.am-faq {
  background: var(--am-bg);
  padding: clamp(48px, 6vw, 72px) var(--am-gutter);
}

.am-faq-inner {
  max-width: 900px;
  margin-inline: auto;
}

.am-faq-header {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.am-faq-title {
  font-size: var(--am-h2);
  font-weight: var(--am-fw-light);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.1;
  color: var(--am-dark);
}

.am-faq-subtitle {
  font-size: var(--am-body);
  color: var(--am-text-muted);
  margin-top: 12px;
}

/* FAQ Cards Grid */
.am-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
}

.am-faq-card {
  padding: clamp(18px, 2vw, 24px);
  border: 1px solid rgba(15, 16, 18, 0.07);
  border-radius: var(--am-card-r);
  background: var(--am-bg);
  transition: border-color var(--am-duration) var(--am-ease),
              box-shadow var(--am-duration) var(--am-ease);
}

.am-faq-card:hover {
  border-color: rgba(15, 16, 18, 0.14);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

/* Let the last card span full width if odd count */
.am-faq-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 50%;
  justify-self: center;
}

.am-faq-num {
  display: inline-block;
  font-size: 10px;
  font-weight: var(--am-fw-medium);
  letter-spacing: 0.08em;
  color: var(--am-accent);
  margin-bottom: 8px;
}

.am-faq-q {
  font-size: 15px;
  font-weight: var(--am-fw-medium);
  letter-spacing: var(--am-letter-tight);
  color: var(--am-dark);
  line-height: 1.3;
  margin-bottom: 6px;
}

.am-faq-a {
  font-size: 13px;
  font-weight: var(--am-fw-light);
  color: var(--am-text-muted);
  line-height: 1.65;
}

/* ── Principles in Depth Section ──────────────────────── */
.am-depth {
  background: var(--am-bg-alt);
  padding: clamp(64px, 8vw, 120px) var(--am-gutter);
}

.am-depth-inner {
  max-width: var(--am-max-w);
  margin-inline: auto;
}

.am-depth-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.am-depth-title {
  font-size: var(--am-h2);
  font-weight: var(--am-fw-light);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.1;
  color: var(--am-dark);
  margin-bottom: 20px;
}

.am-depth-intro {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--am-text-muted);
  line-height: 1.75;
  max-width: 700px;
  margin-inline: auto;
}

.am-depth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-bottom: clamp(40px, 5vw, 64px);
}

.am-depth-card {
  padding: clamp(24px, 3vw, 36px);
  background: var(--am-bg);
  border: 1px solid rgba(15, 16, 18, 0.06);
  border-radius: var(--am-card-r);
}

.am-depth-card h3 {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: var(--am-fw-medium);
  letter-spacing: var(--am-letter-tight);
  line-height: 1.3;
  color: var(--am-dark);
  margin-bottom: 16px;
}

.am-depth-num {
  display: inline-block;
  font-size: var(--am-small);
  font-weight: var(--am-fw-medium);
  letter-spacing: 0.06em;
  color: var(--am-accent);
  margin-bottom: 10px;
}

.am-depth-card p {
  font-size: clamp(14px, 1vw, 15px);
  color: var(--am-text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

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

.am-depth-closing {
  text-align: center;
  max-width: 700px;
  margin-inline: auto;
}

.am-depth-closing h3 {
  font-size: clamp(20px, 2vw, 28px);
  font-weight: var(--am-fw-light);
  letter-spacing: var(--am-letter-tight);
  color: var(--am-dark);
  margin-bottom: 16px;
}

.am-depth-closing p {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--am-text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.am-depth-closing p:last-child {
  margin-bottom: 0;
}

/* ── Footer (slim, matches kingdom pattern) ──────────────── */
.am-footer-slim {
  background: var(--am-bg-alt);
  border-top: 1px solid rgba(15, 16, 18, 0.06);
}

.am-footer-slim-inner {
  max-width: var(--am-max-w);
  margin-inline: auto;
  padding: 24px var(--am-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.am-footer-copy {
  font-size: 12px;
  color: var(--am-text-muted);
}

.am-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.am-footer-links a {
  font-size: 12px;
  color: var(--am-text-muted);
}

.am-footer-links a:hover {
  color: var(--am-dark);
}

/* FAQ inline link */
.am-faq-link {
  color: var(--am-accent);
  font-weight: var(--am-fw-regular);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.am-faq-link:hover {
  color: var(--am-accent-dim);
}

/* Network bar */
.am-network-bar {
  padding: 12px var(--am-gutter);
  background: var(--am-dark);
  font-size: 11px;
  color: rgba(242, 242, 244, 0.35);
  text-align: center;
  line-height: 1.8;
  overflow-wrap: break-word;
}

.am-network-bar a {
  color: rgba(242, 242, 244, 0.5);
}

.am-network-bar a:hover {
  color: var(--am-text-light);
}

/* ── Responsive ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  .am-about-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .am-depth-grid {
    gap: clamp(20px, 2.5vw, 32px);
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --am-gutter: 6.5%;
  }

  .am-nav-links {
    display: none;
  }

  .am-nav-links.open {
    display: flex;
  }

  .am-hamburger {
    display: flex;
  }

  .am-hero-photo {
    bottom: 0;
    width: clamp(280px, 75vw, 600px);
    opacity: 0.35;
  }

  .am-hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .am-value-item {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }

  .am-faq-grid {
    grid-template-columns: 1fr;
  }

  .am-faq-card:last-child:nth-child(odd) {
    max-width: 100%;
  }

  .am-depth-grid {
    grid-template-columns: 1fr;
  }

  .am-footer-slim-inner {
    flex-direction: column;
    text-align: center;
  }

  .am-footer-links {
    justify-content: center;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  :root {
    --am-gutter: 5.5%;
  }

  .am-value-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .am-value-num {
    padding-top: 0;
  }
}
