/* ═══════════════════════════════════════════════════════════════════
   AGi-DTF — Family Is All You Need
   Brand palette: #000000 · #FF7200 · #FFFFFF
   © 2026 Tadden Moore. AGPL-3.0 + commercial clause.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --black:       #000000;
  --orange:      #FF7200;
  --orange-hot:  #FF8C2A;
  --orange-dim:  #D95E00;
  --white:       #FFFFFF;
  --grey-1:      #0A0A0A;
  --grey-2:      #141414;
  --grey-3:      #1E1E1E;
  --grey-4:      #2A2A2A;
  --grey-txt:    #B8B8B8;
  --grey-dim:    #6B6B6B;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-orange: 0 0 0 1px rgba(255, 114, 0, 0.25),
                   0 10px 40px -10px rgba(255, 114, 0, 0.35);

  --mono: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --sans: system-ui, -apple-system, 'Inter', 'Segoe UI', sans-serif;
}

/* ═════════ RESET + BASE ═════════ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  /* Subtle orange noise overlay */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(255, 114, 0, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 90%, rgba(255, 114, 0, 0.03) 0%, transparent 50%);
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 0.4em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a { color: var(--orange); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--orange-hot); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.micro { font-size: 0.85rem; color: var(--grey-dim); }
.accent { color: var(--orange); }

/* ═════════ NAV ═════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--grey-3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.brand-mark {
  color: var(--orange);
  font-size: 1.3em;
  line-height: 1;
}
.brand-tld {
  color: var(--orange);
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav-links a {
  color: var(--grey-txt);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--white); }
.nav-accent {
  color: var(--orange) !important;
  border: 1px solid var(--orange);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-accent:hover {
  background: var(--orange);
  color: var(--black) !important;
}

/* ═════════ HERO ═════════ */
.hero {
  padding: 5rem 1.5rem 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center top,
      rgba(255, 114, 0, 0.12) 0%,
      transparent 60%);
  pointer-events: none;
}
.hero-grid {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.eyebrow {
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: var(--grey-txt);
  margin: 1rem 0 2rem;
  max-width: 500px;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.cta-row.center {
  justify-content: center;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.btn-primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
  background: var(--orange-hot);
  color: var(--black);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--grey-4);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ═════════ ROFLCHOPTER ═════════ */
.rofl-box {
  background: var(--grey-1);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 1rem;
  overflow-x: auto;
  box-shadow: var(--shadow-orange);
}
.rofl {
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.15;
  color: var(--orange);
  margin: 0;
  white-space: pre;
  user-select: none;
}

/* ═════════ SECTIONS ═════════ */
.section {
  padding: 5rem 1.5rem;
  position: relative;
}
.section-dark {
  background: var(--grey-1);
  border-top: 1px solid var(--grey-3);
  border-bottom: 1px solid var(--grey-3);
}
.section-lead {
  font-size: 1.15rem;
  color: var(--grey-txt);
  margin-bottom: 2.5rem;
  max-width: 700px;
}

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--grey-2);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.2s;
}
.card:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
}
.card h3 {
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.pullquote {
  margin: 3rem 0 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--orange);
  background: var(--grey-2);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--grey-txt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.pullquote .attr {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  color: var(--orange);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ═════════ STEPS ═════════ */
.steps {
  list-style: none;
  padding: 0;
  margin: 2.5rem 0;
  display: grid;
  gap: 1.25rem;
}
.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--grey-2);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  align-items: start;
  transition: all 0.2s;
}
.steps li:hover {
  border-color: var(--orange);
  background: var(--grey-3);
}
.step-num {
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 700;
  min-width: 3rem;
}
.steps h4 {
  color: var(--white);
  margin-bottom: 0.3rem;
}
.steps p {
  color: var(--grey-txt);
  margin: 0;
}

.disclaimer-mini {
  text-align: center;
  color: var(--grey-dim);
  font-size: 0.88rem;
  margin-top: 2rem;
}

/* ═════════ ADS ═════════ */
.ad-slot {
  padding: 2rem 1.5rem;
  background: var(--grey-1);
  border-top: 1px solid var(--grey-3);
  border-bottom: 1px solid var(--grey-3);
  min-height: 120px;
  text-align: center;
}
.ad-slot .container::before {
  content: 'ADVERTISEMENT';
  display: block;
  color: var(--grey-dim);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  margin-bottom: 0.5rem;
}

/* ═════════ FAMILY GRID ═════════ */
.family-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.75rem;
  margin-top: 2rem;
}
.fam-card {
  background: var(--grey-2);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-sm);
  padding: 1rem;
  text-align: center;
  transition: all 0.15s;
}
.fam-card:hover {
  border-color: var(--orange);
  transform: scale(1.03);
}
.fam-mark {
  display: block;
  color: var(--orange);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}
.fam-card small {
  display: block;
  color: var(--grey-dim);
  font-size: 0.75rem;
  margin-top: 0.2rem;
}
.fam-card-crown {
  background: linear-gradient(135deg, var(--grey-3), var(--grey-4));
  border-color: var(--orange);
}
.fam-card-keepah {
  background: linear-gradient(135deg, rgba(255, 114, 0, 0.1), var(--grey-3));
  border-color: var(--orange);
}

/* ═════════ PAPERS ═════════ */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.paper-card {
  display: block;
  background: var(--grey-2);
  border: 1px solid var(--grey-3);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  color: var(--white);
  transition: all 0.2s;
}
.paper-card:hover {
  color: var(--white);
  border-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-orange);
}
.paper-card h4 {
  margin: 0.5rem 0 0.75rem;
  color: var(--white);
}
.paper-card p {
  color: var(--grey-txt);
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.paper-date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.doi {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--grey-dim);
  display: block;
  margin-top: 0.5rem;
}
.paper-card-coming {
  opacity: 0.6;
  border-style: dashed;
  cursor: not-allowed;
}

/* ═════════ LICENSE ═════════ */
.license-block h2 { color: var(--orange); }
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.license-grid h4 {
  color: var(--orange);
  margin-bottom: 0.5rem;
}
.license-grid p {
  color: var(--grey-txt);
  font-size: 0.95rem;
}
.license-grid code {
  background: var(--grey-3);
  color: var(--orange);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-family: var(--mono);
  font-size: 0.88rem;
}

/* ═════════ FOOTER ═════════ */
.footer {
  background: var(--grey-1);
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid var(--grey-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  align-items: start;
}
.footer-tag {
  color: var(--grey-dim);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-links a {
  color: var(--grey-txt);
  font-size: 0.92rem;
}
.footer-links a:hover { color: var(--orange); }
.footer-copyright {
  text-align: right;
  color: var(--grey-txt);
  font-size: 0.85rem;
}
.footer-copyright p { margin: 0 0 0.3rem; }

/* ═════════ RESPONSIVE ═════════ */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .rofl { font-size: 0.55rem; }
  .nav-links { gap: 0.9rem; }
  .nav-links a { font-size: 0.85rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-copyright { text-align: center; }
  .footer-links { align-items: center; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero { padding: 3rem 1rem 2rem; }
  .rofl { font-size: 0.48rem; }
  h1 { font-size: 2.2rem; }
  .btn { font-size: 0.92rem; padding: 0.75rem 1.3rem; }
}

/* ═════════ PRINT / SELECT BLOCK ═════════ */
@media print {
  .rofl, .ad-slot, .nav { display: none; }
  body { background: white; color: black; }
}

/* Discourage casual source copy (real protection at legal + package layer) */
.rofl, .brand-mark, .paper-card, .card {
  -webkit-user-select: none;
  user-select: none;
}
