/* =============================================================================
   BotPortrait — AI | Color tokens (replace globally by editing these only)
   --color-accent-bright: primary lime / CTAs / highlights
   --color-accent-deep: darker green / borders / hover depth
   --color-bg-main: primary page background
   --color-bg-elevated: cards, stripes, footer
   --color-text: body copy on dark
   ============================================================================= */
:root {
  --color-accent-bright: #9ce800;
  --color-accent-deep: #4a9600;
  --color-bg-main: #242424;
  --color-bg-elevated: #1d1d1d;
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-text-dim: rgba(255, 255, 255, 0.48);
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 0 60px rgba(156, 232, 0, 0.12);
  --header-h: 4.25rem;
  --max-read: 42rem;
  --max-content: 72rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  background-color: var(--color-bg-main);
  min-height: 100vh;
}

/* Pitch stripe atmosphere (unique background, very subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 56px,
    rgba(74, 150, 0, 0.04) 56px,
    rgba(74, 150, 0, 0.04) 58px
  );
  opacity: 0.85;
}

body > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-text);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* ----- Site header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: linear-gradient(
    180deg,
    rgba(36, 36, 36, 0.97) 0%,
    rgba(36, 36, 36, 0.88) 70%,
    transparent 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(156, 232, 0, 0.12);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-text);
  letter-spacing: -0.03em;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-accent-bright);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--color-accent-bright);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(156, 232, 0, 0.35);
  border-radius: var(--radius-sm);
  background: var(--color-bg-elevated);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.nav-toggle-line {
  stroke: var(--color-accent-bright);
  stroke-width: 2;
  stroke-linecap: round;
}

#nav-toggle-check {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Mobile drawer */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-desktop {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1rem 1.25rem;
    background: var(--color-bg-elevated);
    border-bottom: 1px solid rgba(156, 232, 0, 0.15);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
  }

  .nav-desktop a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  #nav-toggle-check:checked ~ .nav-desktop {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
}

/* ----- Layout shells ----- */
.wrap {
  width: min(100% - 2rem, var(--max-content));
  margin-inline: auto;
}

.section {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
}

.section-tight {
  padding: clamp(2rem, 5vw, 3rem) 0;
}

/* ----- Footer ----- */
.site-footer {
  padding: 2.5rem clamp(1rem, 4vw, 2rem) 3rem;
  background: var(--color-bg-elevated);
  border-top: 1px solid rgba(156, 232, 0, 0.1);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr auto;
  align-items: start;
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-accent-bright);
}

.footer-meta {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  max-width: 20rem;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--color-accent-bright) 0%,
    var(--color-accent-deep) 100%
  );
  color: #0f1408;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #0f1408;
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent-bright);
  border: 1px solid rgba(156, 232, 0, 0.45);
}

.btn-ghost:hover {
  background: rgba(156, 232, 0, 0.08);
  color: var(--color-text);
}

/* ----- Legal / inner pages ----- */
.page-hero {
  padding: clamp(2.5rem, 6vw, 4rem) 0 1rem;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
}

.page-lead {
  font-size: 1.05rem;
  color: var(--color-text-dim);
  max-width: var(--max-read);
}

.legal-body {
  max-width: var(--max-read);
  margin: 0 auto;
}

.legal-body h2 {
  margin-top: 2.25rem;
  font-size: 1.2rem;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-body li {
  margin-bottom: 0.35rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  margin-bottom: 2rem;
}

/* ----- Contacts ----- */
.contact-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  background: var(--color-bg-elevated);
  border: 1px solid rgba(156, 232, 0, 0.12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-glow);
}

.contact-card dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-dim);
  margin-bottom: 0.25rem;
}

.contact-card dd {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--color-text);
}

.contact-card dd:last-of-type {
  margin-bottom: 0;
}

.contact-card a {
  word-break: break-word;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-main);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
}

.form-input:focus,
.form-textarea:focus {
  outline: 2px solid var(--color-accent-deep);
  outline-offset: 2px;
  border-color: var(--color-accent-bright);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-hint {
  font-size: 0.8rem;
  color: var(--color-text-dim);
  margin-top: 0.75rem;
}

/* =============================================================================
   HOME — unique layout (hero mesh + bento + horizontal screenshot rail)
   ============================================================================= */

.home-hero {
  position: relative;
  padding: clamp(2rem, 6vw, 4rem) 0 clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

/* Decorative jersey number watermark */
.home-hero::after {
  content: "10";
  position: absolute;
  right: -2%;
  top: 10%;
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 14rem);
  font-weight: 800;
  color: rgba(156, 232, 0, 0.06);
  line-height: 0.85;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-accent-bright);
  margin-bottom: 1rem;
}

.hero-kicker svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.hero-title {
  margin: 0 0 0.75rem;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.85rem;
  color: var(--color-text-dim);
  max-width: 28rem;
}

/* Hero visual: chamfered “card” with mesh */
.hero-visual {
  position: relative;
  z-index: 1;
  min-height: 280px;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(156, 232, 0, 0.2);
  border-radius: var(--radius-lg);
  clip-path: polygon(0 0, 100% 4%, 100% 100%, 0 96%);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: var(--shadow-glow);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  border-radius: inherit;
}

.hero-visual-inner {
  position: relative;
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-stat {
  flex: 1;
  min-width: 100px;
  padding: 0.65rem 0.85rem;
  background: rgba(36, 36, 36, 0.85);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(156, 232, 0, 0.15);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--color-accent-bright);
}

.hero-stat span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-dim);
}

/* Intro story */
.story-block {
  max-width: 38rem;
  margin: 0 auto;
  text-align: center;
  font-size: 1.08rem;
}

.story-block .lead {
  color: var(--color-text);
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

/* Bento features */
.bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(120px, auto);
}

.bento-item {
  grid-column: span 4;
  background: var(--color-bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.bento-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--color-accent-bright),
    var(--color-accent-deep)
  );
  opacity: 0.85;
}

.bento-wide {
  grid-column: span 8;
}

.bento-tall {
  grid-row: span 2;
}

.bento-item h3 {
  padding-left: 0.65rem;
}

.bento-item p {
  padding-left: 0.65rem;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .bento-item,
  .bento-wide {
    grid-column: span 12;
  }

  .bento-tall {
    grid-row: span 1;
  }
}

/* Screenshot rail — horizontal scroll with snap (signature mobile UX) */
.shots-section {
  position: relative;
}

.shots-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.shots-rail {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.25rem;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--color-accent-deep) var(--color-bg-elevated);
}

.shots-rail::-webkit-scrollbar {
  height: 6px;
}

.shots-rail::-webkit-scrollbar-thumb {
  background: var(--color-accent-deep);
  border-radius: 3px;
}

.shot-frame {
  flex: 0 0 min(72vw, 280px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(156, 232, 0, 0.2);
  background: var(--color-bg-elevated);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.shot-frame img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  background: #111;
}

.shot-caption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  color: var(--color-text-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* “Before / after” strip — pure CSS hover reveal */
.compare-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  max-width: 520px;
  margin: 2rem auto 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(156, 232, 0, 0.2);
}

.compare-half {
  padding: 1rem 1.15rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.compare-half--before {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-dim);
}

.compare-half--after {
  background: linear-gradient(
    90deg,
    rgba(74, 150, 0, 0.35),
    rgba(156, 232, 0, 0.2)
  );
  color: var(--color-accent-bright);
}

/* CTA band */
.cta-band {
  background: linear-gradient(
    120deg,
    var(--color-bg-elevated) 0%,
    #1a2210 45%,
    var(--color-bg-elevated) 100%
  );
  border: 1px solid rgba(156, 232, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.cta-band h2 {
  margin-bottom: 0.75rem;
}

.cta-band p {
  max-width: 36rem;
  margin: 0 auto 1.25rem;
}

/* Repeating motif row (subtle rhythm) */
.motif-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 0 0;
  opacity: 0.55;
}

.motif-row svg {
  width: 48px;
  height: 48px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.5rem 1rem;
  background: var(--color-accent-bright);
  color: #0f1408;
  font-weight: 600;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}
