/* VARIABLES & RESET */
:root {
  --bg: #f5f5f0; /* Warm Paper */
  --ink: #111111; /* Black Ink */
  --accent: #d4ff00; /* Acid Lime Highlighter */
  --white: #ffffff;
  --gray: #e0e0e0;
  --border: 1px solid var(--ink);

  --font-serif: "Libre Baskerville", serif;
  --font-sans: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

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

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

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}
img {
  max-width: 100%;
  display: block;
}
ul {
  list-style: none;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

h1 {
  font-size: 4rem;
  letter-spacing: -1px;
  margin-bottom: 25px;
}
h2 {
  font-size: 3rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
}
h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
p {
  margin-bottom: 15px;
  color: #333;
}

.highlight {
  background-color: var(--accent);
  padding: 0 5px;
}
.link-underline {
  text-decoration: underline;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.link-underline:hover {
  background: var(--accent);
}

/* BUTTONS */
.btn-solid {
  display: inline-block;
  background: var(--ink);
  color: var(--white);
  padding: 14px 28px;
  font-weight: 600;
  font-family: var(--font-mono);
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: 0.2s;
}

.btn-solid:hover {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 6px 6px 0 var(--ink);
  transform: translate(-3px, -3px);
}

.btn-full {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  padding: 18px;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  transition: 0.2s;
  font-family: var(--font-mono);
}

.btn-full:hover {
  background: var(--accent);
  color: var(--ink);
  outline: 2px solid var(--ink);
  outline-offset: -4px;
}

/* TOP TICKER */
.top-ticker {
  background: var(--ink);
  color: var(--white);
  padding: 10px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 1px;
  border-bottom: 1px solid #333;
}
.sep {
  color: var(--accent);
  margin: 0 10px;
}

/* NAVBAR */
.navbar {
  border-bottom: var(--border);
  padding: 25px 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.nav-logo a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  font-family: var(--font-sans);
}
.nav-links a:hover {
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
}

.nav-burger button {
  background: none;
  border: none;
  cursor: pointer;
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  padding: 30px;
  transform: translateY(-100%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-right: var(--border);
}
.mobile-menu.active {
  transform: translateY(0);
}
.mm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--border);
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-family: var(--font-mono);
}
.mm-links a {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  margin-bottom: 15px;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.mm-links a:hover {
  border-bottom: 4px solid var(--accent);
}
#closeMenu {
  background: none;
  border: none;
  cursor: pointer;
}

/* HERO */
.hero {
  padding: 100px 0;
  border-bottom: var(--border);
  background-color: var(--white);
}
.hero-wrapper {
  display: flex;
  gap: 60px;
  align-items: center;
}
.hero-text {
  flex: 1.2;
}
.hero-meta {
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
}
.tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  border: 1px solid var(--ink);
  padding: 4px 8px;
  text-transform: uppercase;
}
.tag.invert {
  background: var(--ink);
  color: var(--white);
}

.hero-sub {
  font-size: 1.2rem;
  max-width: 550px;
  margin-bottom: 40px;
  border-left: 4px solid var(--accent);
  padding-left: 20px;
}
.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.hero-img {
  flex: 1;
  position: relative;
}
.hero-img img {
  border: var(--border);
  box-shadow: 15px 15px 0 var(--ink);
  filter: grayscale(100%);
  transition: 0.3s;
}
.hero-img:hover img {
  filter: grayscale(0%);
  transform: translate(-5px, -5px);
  box-shadow: 20px 20px 0 var(--accent);
}
.img-caption {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ccc;
  padding-top: 5px;
}

/* MANIFESTO */
.manifesto-section {
  padding: 100px 0;
  border-bottom: var(--border);
}
.man-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}
.man-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 25px;
}
.man-content .lead {
  font-size: 1.4rem;
  font-family: var(--font-serif);
  font-weight: 700;
}

/* REALITY CHECK (New) */
.reality-section {
  padding: 100px 0;
  background: var(--white);
  border-bottom: var(--border);
}
.sec-header {
  margin-bottom: 50px;
}
.sec-header h3 {
  font-family: var(--font-mono);
  font-size: 1rem;
  margin-bottom: 10px;
}
.sec-header .line {
  width: 100px;
  height: 4px;
  background: var(--ink);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--border);
}
.col {
  padding: 50px;
}
.col:first-child {
  border-right: var(--border);
  background: #f9f9f9;
}
.col h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  margin-bottom: 30px;
  font-size: 1.2rem;
}
.col.fact h4 {
  color: #2e7d32;
}
.col.myth h4 {
  color: #c62828;
}
.col ul li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
}
.col ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ANATOMY (New) */
.anatomy-section {
  padding: 100px 0;
  border-bottom: var(--border);
}
.anatomy-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  margin-top: 40px;
}
.anatomy-diagram {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.block {
  border: var(--border);
  padding: 20px;
  background: var(--white);
  position: relative;
  transition: 0.3s;
}
.block:hover {
  transform: translateX(10px);
  background: var(--accent);
  border-color: var(--ink);
}
.block .label {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 5px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}
.block p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* CASES GRID */
.cases-section {
  padding: 100px 0;
  background: var(--white);
  border-bottom: var(--border);
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 50px;
}
.filter-tags span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-left: 10px;
  cursor: pointer;
  background: var(--bg);
  border: 1px solid var(--ink);
  padding: 6px 12px;
  transition: 0.2s;
}
.filter-tags span:hover {
  background: var(--ink);
  color: var(--white);
}

.masonry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.case-card {
  background: var(--bg);
  border: var(--border);
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.case-card:hover {
  box-shadow: 10px 10px 0 var(--ink);
  transform: translate(-5px, -5px);
}

.cc-img img {
  width: 100%;
  border-bottom: var(--border);
  aspect-ratio: 16/10;
  object-fit: cover;
  filter: grayscale(100%);
}
.case-card:hover img {
  filter: grayscale(0%);
}
.cc-body {
  padding: 35px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.cc-body p {
  flex-grow: 1;
  font-size: 0.95rem;
}
.cc-meta {
  margin-top: 25px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #555;
  border-top: 1px dotted var(--ink);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
}

.highlight-card {
  background: var(--accent);
}
.icon-big {
  margin-bottom: 20px;
  border: 1px solid var(--ink);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}
.icon-big i {
  width: 32px;
  height: 32px;
}

/* LIBRARY (Table) */
.library-section {
  padding: 100px 0;
  border-bottom: var(--border);
  background: var(--white);
}
.lib-header {
  margin-bottom: 50px;
  max-width: 600px;
}

.data-table {
  border: var(--border);
}
.dt-row {
  display: grid;
  grid-template-columns: 1.5fr 3fr 2fr 1fr;
  border-bottom: 1px solid var(--ink);
}
.dt-row:last-child {
  border-bottom: none;
}
.dt-row.header {
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.col {
  padding: 20px 25px;
  border-right: 1px solid var(--ink);
  display: flex;
  align-items: center;
}
.col:last-child {
  border-right: none;
}
.dt-row:not(.header) .col {
  font-size: 0.95rem;
}
.dt-row:hover:not(.header) {
  background: #fafafa;
}

.tag {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  padding: 4px 8px;
  border: 1px solid var(--ink);
  text-transform: uppercase;
  background: #fff;
}
.tag.accent {
  background: var(--accent);
}

/* COMMUNITY */
.community-section {
  padding: 100px 0;
  border-bottom: var(--border);
}
.split-box {
  display: flex;
  border: var(--border);
  background: var(--white);
  box-shadow: 15px 15px 0 rgba(0, 0, 0, 0.1);
}
.sb-text {
  flex: 1.2;
  padding: 60px;
  border-right: var(--border);
}
.sb-img {
  flex: 1;
  position: relative;
}
.sb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
}
.img-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  padding: 10px 20px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
}
.comm-details {
  margin: 25px 0;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--ink);
  font-size: 0.9rem;
}
.big-p {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* FAQ */
.faq-section {
  padding: 100px 0;
  background: var(--bg);
  border-bottom: var(--border);
}
.small-container {
  max-width: 800px;
}
.faq-grid {
  margin-top: 50px;
  display: grid;
  gap: 0;
  border: var(--border);
}
.faq-item {
  background: var(--white);
  border-bottom: var(--border);
  padding: 40px;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-item h5 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.faq-item p {
  margin: 0;
  font-size: 1rem;
  color: #444;
}

/* FORM */
.join-section {
  padding: 100px 0;
  background: var(--white);
}
.form-container {
  max-width: 550px;
  margin: 0 auto;
  border: var(--border);
  padding: 50px;
  box-shadow: 15px 15px 0 var(--ink);
  background: var(--bg);
}
.form-header {
  text-align: center;
  margin-bottom: 40px;
}
.form-header p {
  font-size: 0.9rem;
  font-family: var(--font-mono);
  margin-top: 10px;
}

.brutal-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.input-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-weight: 600;
}
.input-group input,
.input-group select {
  width: 100%;
  padding: 15px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  border-radius: 0;
}
.input-group input:focus,
.input-group select:focus {
  outline: 2px solid var(--ink);
  background: #fff;
}

.checkbox-group {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  align-items: flex-start;
}
.checkbox-group input {
  margin-top: 4px;
}
.checkbox-group a {
  text-decoration: underline;
  font-weight: 700;
}

/* FOOTER */
.footer {
  padding: 80px 0 30px;
  background: var(--ink);
  color: var(--bg);
}
.footer-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 60px;
  margin-bottom: 60px;
}
.f-brand h4 {
  color: var(--white);
  margin-bottom: 15px;
  font-family: var(--font-mono);
  font-size: 1.5rem;
}
.f-brand p {
  color: #aaa;
  max-width: 300px;
}
.f-col h4 {
  color: var(--bg);
}
.f-nav a,
.f-legal a {
  display: block;
  color: #ccc;
  margin-bottom: 12px;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  width: fit-content;
}
.f-nav a:hover,
.f-legal a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 30px;
  text-align: center;
  font-size: 0.8rem;
  color: #777;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* COOKIE */
.cookie-modal {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--white);
  border: var(--border);
  padding: 30px;
  max-width: 350px;
  z-index: 5000;
  box-shadow: 10px 10px 0 var(--ink);
  display: none;
}
.cm-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.cm-icon {
  font-size: 24px;
  color: var(--ink);
}
.cm-body button {
  width: 100%;
  background: var(--ink);
  color: var(--white);
  border: none;
  padding: 12px;
  cursor: pointer;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  transition: 0.2s;
}
.cm-body button:hover {
  background: var(--accent);
  color: var(--ink);
}

/* RESPONSIVE */
.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  h1 {
    font-size: 3rem;
  }
  .hero-wrapper {
    flex-direction: column;
  }
  .hero-img {
    width: 100%;
    margin-top: 40px;
  }
  .man-grid {
    grid-template-columns: 1fr;
  }
  .comparison-grid {
    grid-template-columns: 1fr;
  }
  .col:first-child {
    border-right: none;
    border-bottom: var(--border);
  }
  .anatomy-wrapper {
    grid-template-columns: 1fr;
  }
  .split-box {
    flex-direction: column;
  }
  .sb-text {
    border-right: none;
    border-bottom: var(--border);
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: block;
  }

  .masonry-grid {
    grid-template-columns: 1fr;
  }
  .dt-row {
    grid-template-columns: 1fr;
    padding: 15px;
    gap: 10px;
    height: auto;
  }
  .col {
    border-right: none;
    padding: 5px 0;
    border-bottom: 1px dashed #ccc;
  }
  .col:last-child {
    border-bottom: none;
  }
  .dt-row.header {
    display: none;
  }

  .footer-row {
    flex-direction: column;
  }
  .form-container {
    padding: 30px 20px;
  }
}

.pages {
  padding: 120px 0;
}

.pages-wrap {
  max-width: 1000px;
  padding: 0 20px;
  margin: 0 auto 20px;
}

.pages h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 40px;
  text-align: center;
}

.text-wrapper {
  background: #f8fafc;
  padding: 50px 40px;
  border-radius: 20px;
  line-height: 1.8;
}

.text-wrapper h2 {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  margin-top: 40px;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(99, 102, 241, 0.2);
  padding-bottom: 5px;
}

.text-wrapper h3 {
  color: #000000;
  margin-bottom: 20px;
}

.text-wrapper p {
  color: #64748b;
  margin-bottom: 20px;
}

.text-wrapper ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.text-wrapper ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: #1e293b;
}

.text-wrapper ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 20px;
  line-height: 1;
  color: var(--primary);
  top: 0;
}

.text-wrapper strong {
  color: var(--color-error);
}

.text-wrapper a {
  color: #001eff;
  text-decoration: underline;
  font-weight: 600;
}

.text-wrapper ol {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: #000000;
}

.margin {
  margin: 120px 0 50px;
  font-size: 40px;
  color: var(--ink);
}

@media (max-width: 768px) {
  .pages {
    padding: 100px 0 60px;
  }
  .pages h1 {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .text-wrapper {
    padding: 30px 20px;
  }
  .text-wrapper h2 {
    font-size: 24px;
    margin-top: 30px;
  }
  .margin {
    font-size: 28px;
  }
}
