/* --- CSS Variables: Dark & Neon --- */
:root {
  --c-bg: #050505;
  --c-surface: #111111;
  --c-text: #e0e0e0;
  --c-accent: #ccff00; /* Acid Green */
  --c-secondary: #ff2a6d; /* Neon Pink */
  --c-border: #333333;

  --f-head: "Unbounded", display, sans-serif;
  --f-mono: "Space Mono", monospace;

  --grid-size: 40px;
}

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

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

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--f-mono); /* Default to mono for tech feel */
  line-height: 1.5;
  overflow-x: hidden;
}

/* Background Grid Pattern */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
  background-image: linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
  opacity: 0.15;
  pointer-events: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

ul {
  list-style: none;
}

.container {
  max-width: 1400px; /* Wider container for brutalism */
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons (Glitch Effect) --- */
.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--c-accent);
  color: #000;
  font-family: var(--f-head);
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  position: relative;
  clip-path: polygon(
    10% 0,
    100% 0,
    100% 80%,
    90% 100%,
    0 100%,
    0 20%
  ); /* Asymmetric cut */
  transition: all 0.2s ease;
}

.btn:hover {
  background: #fff;
  transform: translate(-4px, -4px);
  box-shadow: 4px 4px 0px var(--c-secondary);
}

.btn--glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--c-secondary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(5px, 0);
  transition: 0.1s;
  clip-path: polygon(10% 0, 100% 0, 100% 80%, 90% 100%, 0 100%, 0 20%);
  pointer-events: none;
}

.btn--glitch:hover::after {
  opacity: 0.5;
  transform: translate(0, 0);
  mix-blend-mode: exclusion;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.9);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid var(--c-border);
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.logo__icon {
  width: 40px;
  height: 40px;
  background: var(--c-text);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo__icon img {
  width: 24px;
  filter: invert(1);
}

.logo__text {
  color: #fff;
}

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

.nav__list {
  display: flex;
  gap: 40px;
}

.nav__link {
  font-size: 0.9rem;
  text-transform: uppercase;
  color: #888;
  font-weight: 700;
}

.nav__link:hover {
  color: var(--c-accent);
  text-shadow: 0 0 10px rgba(204, 255, 0, 0.5);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.burger__line {
  width: 30px;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

/* --- Main Spacer --- */
.main-content {
  margin-top: 90px;
  min-height: 50vh;
}

/* --- Footer --- */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding-top: 0;
  margin-top: 100px;
  position: relative;
}

.footer__top-border {
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--c-accent),
    var(--c-accent) 10px,
    var(--c-bg) 10px,
    var(--c-bg) 20px
  );
  border-bottom: 1px solid #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2px; /* For grid border effect */
  background: var(--c-border); /* Fake border lines */
  border-left: 1px solid var(--c-border);
  border-right: 1px solid var(--c-border);
  padding: 0; /* Removing container padding to let cells fill */
}

.footer__col {
  background: var(--c-bg);
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__logo {
  font-family: var(--f-head);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
}

.footer__slogan {
  color: #888;
  font-size: 0.85rem;
  max-width: 300px;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--c-accent);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--c-accent);
  animation: blink 2s infinite;
}

.footer__title {
  font-family: var(--f-head);
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__link {
  color: #888;
  font-size: 0.9rem;
}

.footer__link:hover {
  color: var(--c-accent);
  padding-left: 10px; /* Shift effect */
  background: rgba(255, 255, 255, 0.05);
}

.link--mono {
  font-family: var(--f-mono);
  display: block;
  color: #fff;
  margin-bottom: 5px;
}

.footer__note {
  font-size: 0.7rem;
  color: var(--c-secondary);
  margin-top: auto;
  text-transform: uppercase;
}

.footer__bottom {
  border-top: 1px solid var(--c-border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.75rem;
  color: #555;
  background: #000;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* --- Mobile --- */
@media (max-width: 1024px) {
  .header__inner {
    padding: 0 20px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 90px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 90px);
    background: var(--c-bg);
    border-top: 1px solid var(--c-accent);
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px;
    transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.is-active {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 30px;
  }
  .nav__link {
    font-size: 1.5rem;
    color: #fff;
  }

  .burger {
    display: flex;
    z-index: 1001;
  }
  .header__actions .btn {
    display: none;
  } /* Hide CTA on mobile to save space */

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 90vh; /* Almost full screen */
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 60px; /* Space for ticker */
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--c-accent);
  padding: 8px 16px;
  font-size: 0.75rem;
  color: var(--c-accent);
  margin-bottom: 24px;
  background: rgba(204, 255, 0, 0.05);
}

/* Typography */
.hero__title {
  font-family: var(--f-head);
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 900;
  color: #fff;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: -2px;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: #aaa;
  max-width: 500px;
  margin-bottom: 40px;
  border-left: 2px solid var(--c-secondary);
  padding-left: 20px;
}

.text-accent {
  color: var(--c-accent);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.hero__note {
  font-size: 0.8rem;
  color: #666;
  font-family: var(--f-mono);
}

/* --- Cyber Card Visual (CSS Art) --- */
.cyber-card {
  border: 1px solid var(--c-border);
  background: rgba(17, 17, 17, 0.8);
  padding: 2px; /* Inner border gap */
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* Decorative corners */
.cyber-card::before,
.cyber-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--c-accent);
  transition: 0.3s;
}
.cyber-card::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}
.cyber-card::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

.cyber-card:hover::before,
.cyber-card:hover::after {
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.cyber-card__header {
  background: var(--c-border);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: #fff;
  font-family: var(--f-mono);
}

.cyber-card__body {
  height: 250px;
  background: linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Radar Scan Effect */
.radar-scan {
  width: 100%;
  height: 2px;
  background: var(--c-secondary);
  position: absolute;
  top: 0;
  left: 0;
  box-shadow: 0 0 10px var(--c-secondary);
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% {
    top: 0%;
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}

.code-lines {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.line {
  height: 8px;
  background: #333;
  border-radius: 2px;
}
.line--1 {
  width: 60%;
  animation: pulse 2s infinite;
}
.line--2 {
  width: 90%;
  animation: pulse 3s infinite reverse;
}
.line--3 {
  width: 40%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    background: var(--c-accent);
  }
}

.cyber-card__footer {
  padding: 15px;
  text-align: right;
  font-size: 0.7rem;
  color: var(--c-accent);
  border-top: 1px solid var(--c-border);
  font-family: var(--f-mono);
}

/* --- Ticker (Running Line) --- */
.ticker-wrap {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  background: var(--c-accent);
  color: #000;
  padding: 10px 0;
  overflow: hidden;
  transform: rotate(-1deg) scale(1.02); /* Slight tilt for brutalism */
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
}

.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

.ticker__item {
  padding-right: 50px;
  font-family: var(--f-head);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
}

@keyframes ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* --- Mobile Adaptive --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }
  .hero__container {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 40px;
  }

  .hero__title {
    font-size: 2.5rem;
  } /* Smaller on mobile */
  .hero__subtitle {
    border-left: none;
    padding-left: 0;
  }

  .hero__visual {
    order: -1; /* Show visual first or remove it? Let's keep it but smaller */
    transform: scale(0.9);
    margin-bottom: 20px;
  }

  .ticker-wrap {
    bottom: 0;
    transform: none;
  }

  .hero {
    padding-bottom: 80px;
  }
}

/* --- Section General --- */
.section-method {
  padding: 100px 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  border-left: 4px solid var(--c-accent);
  padding-left: 30px;
}

.section-title {
  font-family: var(--f-head);
  font-size: 3rem;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: var(--f-mono);
  color: #888;
  font-size: 0.9rem;
}

/* --- Method Grid --- */
.method-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 columns grid */
  gap: 20px;
}

/* --- Method Card (Neubrutalism) --- */
.method-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 40px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

/* Hover Effect: Invert colors & Shift */
.method-card:hover {
  background: var(--c-text);
  border-color: var(--c-text);
  transform: translate(-5px, -5px);
  box-shadow: 10px 10px 0 var(--c-accent);
}

.method-card:hover .method-card__title,
.method-card:hover .step-num {
  color: #000;
}

.method-card:hover .method-card__desc {
  color: #333;
}

.method-card:hover .step-status {
  background: #000;
  color: var(--c-accent);
}

/* Layout modifications */
.method-card--wide {
  grid-column: span 2; /* Takes full width */
  background: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 10px,
    transparent 10px,
    transparent 20px
  );
}

/* Card Content */
.method-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  border-bottom: 1px dashed #333;
  padding-bottom: 20px;
}

.step-num {
  font-family: var(--f-head);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  line-height: 1;
  transition: 0.3s;
}

.step-status {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  background: #222;
  color: #888;
  padding: 4px 8px;
  border-radius: 2px;
}

.method-card__title {
  font-family: var(--f-head);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
  transition: 0.3s;
}

.method-card__desc {
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: #aaa;
  line-height: 1.6;
  transition: 0.3s;
}

.method-card__desc strong {
  color: var(--c-accent); /* Green highlight within text */
  font-weight: 400; /* Keep mono weight */
}
.method-card:hover .method-card__desc strong {
  color: var(--c-secondary); /* Pink highlight on hover */
  font-weight: 700;
}

/* Decorative corner */
.method-card__deco {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, transparent 50%, var(--c-accent) 50%);
  opacity: 0.5;
}

/* --- Mobile Adaptive --- */
@media (max-width: 768px) {
  .method-grid {
    grid-template-columns: 1fr; /* Stack everything */
  }

  .method-card--wide {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2rem;
  }

  .method-card {
    padding: 30px 20px;
  }
}

/* --- Blog Section --- */
.section-blog {
  padding: 100px 0;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(51, 51, 51, 0.3) 1px,
    transparent 1px
  );
  background-size: 20px 20px; /* Dotted logs pattern */
}

.section-header--right {
  text-align: right;
  border-left: none;
  border-right: 4px solid var(--c-secondary); /* Pink border for variety */
  padding-left: 0;
  padding-right: 30px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* --- Terminal Card Style --- */
.terminal-card {
  background: #000;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terminal-card:hover {
  transform: translateY(-10px);
  border-color: var(--c-secondary);
  box-shadow: 0 10px 40px rgba(255, 42, 109, 0.15);
}

/* Window Header (Mac/Linux style) */
.terminal-header {
  background: #1a1a1a;
  padding: 10px 15px;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 15px;
}

.terminal-controls {
  display: flex;
  gap: 6px;
}

.control {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.control.close {
  background: #ff5f56;
}
.control.minimize {
  background: #ffbd2e;
}
.control.maximize {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: #666;
}

/* Body */
.terminal-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
  border-bottom: 1px solid #333;
}

.terminal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.2); /* Brutalist grayscale */
  transition: filter 0.3s ease;
}

.terminal-card:hover .terminal-img {
  filter: grayscale(0%) contrast(1); /* Color return on hover */
}

/* Green scanline overlay */
.img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.06),
      rgba(0, 255, 0, 0.02),
      rgba(0, 0, 255, 0.06)
    );
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.terminal-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.date-tag {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-accent);
  margin-bottom: 10px;
}

.post-title {
  font-family: var(--f-head);
  color: #fff;
  font-size: 1.25rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.post-excerpt {
  font-family: var(--f-mono);
  color: #999;
  font-size: 0.85rem;
  margin-bottom: 25px;
  flex-grow: 1;
}

/* Link Style */
.btn-link {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.2s ease;
}

.btn-link i {
  width: 16px;
  height: 16px;
  color: var(--c-secondary);
}

.terminal-card:hover .btn-link {
  gap: 10px;
  color: var(--c-secondary);
}

/* --- Mobile --- */
@media (max-width: 900px) {
  .blog-grid {
    grid-template-columns: 1fr; /* Stack log entries */
  }

  .section-header--right {
    text-align: left;
    border-right: none;
    border-left: 4px solid var(--c-secondary);
    padding-right: 0;
    padding-left: 30px;
  }
}

/* --- Mentors Section --- */
.section-mentors {
  padding: 100px 0;
  border-bottom: 1px solid var(--c-border);
  position: relative;
}

.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 40px;
}

/* --- Agent Card --- */
.agent-card {
  background: #0a0a0a;
  border: 1px solid #333;
  position: relative;
  /* Asymmetric clip-path for card shape */
  clip-path: polygon(0 0, 100% 0, 100% 90%, 85% 100%, 0 100%);
  transition: all 0.3s ease;
}

.agent-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(204, 255, 0, 0.1);
}

/* Visual / Photo Area */
.agent-visual {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: #151515;
  border-bottom: 1px solid #333;
}

.agent-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.3s;
  opacity: 0.8;
}

.agent-card:hover .agent-img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Status Badge */
.agent-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 4px 10px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: #000;
  border: 1px solid currentColor;
}

.status--online {
  color: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
}
.status--busy {
  color: var(--c-secondary);
}
.status--offline {
  color: #555;
}

/* Info Area */
.agent-info {
  padding: 25px;
  padding-bottom: 40px; /* Space for cut corner */
}

.agent-name {
  font-family: var(--f-head);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 5px;
}

.agent-role {
  font-family: var(--f-mono);
  color: var(--c-accent);
  font-size: 0.8rem;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

/* Stats Bars */
.agent-stats {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.stat-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: #888;
  width: 100px;
}

.stat-bar {
  flex-grow: 1;
  height: 6px;
  background: #222;
  position: relative;
  overflow: hidden;
}

.stat-fill {
  height: 100%;
  background: var(--c-secondary); /* Pink bars */
  box-shadow: 0 0 5px var(--c-secondary);
}

.agent-desc {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  color: #bbb;
  margin-bottom: 25px;
  line-height: 1.4;
  height: 60px; /* Fixed height for alignment */
  overflow: hidden;
}

/* Action Area */
.agent-action {
  border-top: 1px dashed #333;
  padding-top: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bonus-text {
  font-size: 0.7rem;
  color: #666;
  text-align: center;
}

.btn--agent {
  width: 100%;
  background: transparent;
  border: 1px solid var(--c-accent);
  color: var(--c-accent);
  font-family: var(--f-head);
  font-weight: 700;
  padding: 12px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.2s;
}

.btn--agent:hover {
  background: var(--c-accent);
  color: #000;
  box-shadow: 0 0 15px var(--c-accent);
}

/* --- Mobile --- */
@media (max-width: 1024px) {
  .agents-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 650px) {
  .agents-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Contact Section --- */
.section-contact {
  padding: 100px 0;
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Background Grid specific for contact */
.section-contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 50px,
    rgba(51, 51, 51, 0.2) 50px,
    rgba(51, 51, 51, 0.2) 51px
  );
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}

/* Info Side */
.contact-title {
  font-family: var(--f-head);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.blink {
  animation: blink 1s infinite;
  color: var(--c-accent);
}

.contact-desc {
  font-family: var(--f-mono);
  color: #aaa;
  margin-bottom: 40px;
  font-size: 1rem;
}

.decor-code {
  font-family: var(--f-mono);
  color: var(--c-secondary);
  font-size: 0.8rem;
  line-height: 1.5;
  opacity: 0.7;
}

/* Form Styling */
.tech-form {
  background: #111;
  border: 1px solid #333;
  padding: 40px;
  position: relative;
  box-shadow: 10px 10px 0 #222;
}

.form-group {
  margin-bottom: 25px;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: var(--c-accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  background: #050505;
  border: 1px solid #333;
  color: #fff;
  padding: 15px;
  font-family: var(--f-mono);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-input:focus {
  border-color: var(--c-accent);
  background: #000;
}

/* Custom Checkbox */
.checkbox-group {
  margin-bottom: 20px;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 20px;
  width: 20px;
  background-color: #050505;
  border: 1px solid var(--c-accent);
  margin-right: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.custom-checkbox:hover .checkmark {
  box-shadow: 0 0 5px var(--c-accent);
}

/* Checkmark Indicator */
.checkmark:after {
  content: "X";
  font-family: var(--f-head);
  font-weight: 900;
  color: #000;
  font-size: 14px;
  display: none;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--c-accent);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

.checkbox-text {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: #aaa;
  line-height: 1.2;
}

/* Submit Button */
.btn--submit {
  width: 100%;
  background: var(--c-secondary); /* Pink button for contrast */
  color: #fff;
  border: none;
  font-family: var(--f-head);
  font-weight: 900;
  text-transform: uppercase;
  padding: 18px;
  cursor: pointer;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  transition: 0.3s;
}

.btn--submit:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 0 20px rgba(255, 42, 109, 0.5);
}

/* Success Message Overlay */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

.form-success.is-visible {
  opacity: 1;
  visibility: visible;
}

.success-icon {
  color: var(--c-accent);
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}
.success-icon svg {
  width: 100%;
  height: 100%;
}

.form-success h3 {
  font-family: var(--f-head);
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 10px;
}

.form-success p {
  font-family: var(--f-mono);
  color: #aaa;
  font-size: 0.9rem;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: -100%; /* Hidden initially */
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 600px;
  background: #111;
  border: 1px solid var(--c-accent);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-popup.is-active {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cookie-icon {
  color: var(--c-accent);
  flex-shrink: 0;
}

.cookie-text h4 {
  font-family: var(--f-head);
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 5px;
}

.cookie-text p {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  color: #888;
}

.cookie-text a {
  color: var(--c-secondary);
  text-decoration: underline;
}

.btn--cookie {
  background: var(--c-accent);
  color: #000;
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn--cookie:hover {
  background: #fff;
}

/* Mobile */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  .cookie-popup {
    flex-direction: column;
    text-align: center;
  }
  .cookie-content {
    flex-direction: column;
  }
}

/* --- Legal Pages (Document Style) --- */
.pages {
  padding: 120px 0 80px; /* Indent from fixed header */
  background-color: var(--c-bg);
  min-height: 100vh;
}

.pages .container {
  max-width: 800px; /* Narrower for reading */
  background: #0a0a0a;
  border: 1px solid #333;
  padding: 60px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
}

/* "Confidential" mark decoration */
.pages .container::before {
  content: "CONFIDENTIAL // READ ONLY";
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--c-secondary);
  border: 1px solid var(--c-secondary);
  padding: 5px 10px;
  opacity: 0.7;
  transform: rotate(5deg);
}

.pages h1 {
  font-family: var(--f-head);
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--c-accent);
  text-transform: uppercase;
}

.pages h2 {
  font-family: var(--f-head);
  font-size: 1.5rem;
  color: var(--c-accent);
  margin-top: 40px;
  margin-bottom: 20px;
}

.pages p {
  font-family: var(--f-mono);
  color: #ccc;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

.pages li {
  font-family: var(--f-mono);
  color: #ccc;
  margin-bottom: 10px;
  list-style: none;
  position: relative;
}

.pages li::before {
  content: ">";
  color: var(--c-accent);
  position: absolute;
  left: -20px;
}

.pages strong {
  color: #fff;
  font-weight: 700;
}

.pages a {
  color: var(--c-secondary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pages a:hover {
  color: #fff;
  background: var(--c-secondary);
  text-decoration: none;
}

/* Mobile adjustments for pages */
@media (max-width: 768px) {
  .pages .container {
    padding: 30px;
  }
  .pages h1 {
    font-size: 1.8rem;
  }
}
