/* DESIGN SYSTEM: London Glitch & Structuralism */
:root {
  --purple: #8a2be2;
  --black: #0f0f0f;
  --dark-grey: #1a1a1a;
  --light-grey: #b0b0b0;
  --white: #ffffff;

  --font-mono: "JetBrains Mono", monospace;
  --font-head: "Oswald", sans-serif;

  --grid-color: rgba(138, 43, 226, 0.1);
  --border: 1px solid #333;

  --pad: 20px;
  --max-w: 1300px;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
}

/* PIXEL GRID BACKGROUND */
.pixel-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* UTILS */
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}
ul {
  list-style: none;
}
img {
  width: 100%;
  display: block;
  filter: grayscale(100%);
  transition: 0.5s;
}
img:hover {
  filter: grayscale(0%);
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.1;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section {
  padding: 100px 0;
  border-bottom: var(--border);
}

.center-h2 {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 40px;
}

/* BUTTONS */
.btn-solid {
  display: inline-block;
  padding: 15px 30px;
  background: var(--purple);
  color: #fff;
  font-weight: 700;
  border: 2px solid var(--purple);
  cursor: pointer;
  transition: 0.3s;
}
.btn-solid:hover {
  background: transparent;
  color: var(--purple);
  box-shadow: 0 0 15px var(--purple);
}

.btn-outline {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}
.btn-outline:hover {
  background: #fff;
  color: #000;
}

.btn-glitch {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  font-weight: 700;
  font-family: var(--font-head);
  letter-spacing: 1px;
}
.btn-glitch:hover {
  background: var(--purple);
  color: #fff;
}

.read-link {
  color: var(--purple);
  text-decoration: underline;
  font-weight: 700;
  margin-top: 15px;
  display: inline-block;
}

/* HEADER */
.jam-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(15, 15, 15, 0.95);
  border-bottom: var(--border);
  backdrop-filter: blur(5px);
}
.header-inner {
  display: flex;
  height: 80px;
  align-items: stretch;
  justify-content: space-between;
}
.h-col {
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: var(--border);
}
.brand-col {
  width: 250px;
  justify-content: flex-start;
  padding-left: 30px;
}
.logo {
  display: flex;
  gap: 15px;
  align-items: center;
}
.logo-svg {
  width: 40px;
  height: 40px;
}
.logo-txt {
  font-family: var(--font-head);
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-col {
  flex-grow: 1;
}
.desktop-nav {
  display: flex;
  gap: 40px;
}
.desktop-nav a {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--light-grey);
}
.desktop-nav a:hover {
  color: var(--purple);
}

.act-col {
  width: 250px;
  gap: 20px;
  border-right: none;
}
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}
.burger span {
  width: 30px;
  height: 3px;
  background: #fff;
}

/* MOBILE MENU */
.mob-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: var(--purple);
  color: #fff;
  z-index: 200;
  transform: translateX(100%);
  transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 40px;
}
.mob-panel.active {
  transform: translateX(0);
}
.mp-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
  font-family: var(--font-head);
  font-size: 1.5rem;
  border-bottom: 2px solid #fff;
  padding-bottom: 20px;
}
#closeMenu {
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
}
.mp-links a {
  display: block;
  font-family: var(--font-head);
  font-size: 2.5rem;
  margin-bottom: 15px;
  transition: 0.3s;
}
.mp-links a:hover {
  padding-left: 20px;
  background: #fff;
  color: var(--purple);
}
.mp-foot {
  margin-top: auto;
  font-size: 0.8rem;
  opacity: 0.8;
}

/* HERO */
.hero-typo {
  padding-top: 150px;
  padding-bottom: 100px;
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: center;
}
.meta-tag {
  color: var(--purple);
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}
.hero-h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  margin-bottom: 40px;
  letter-spacing: -2px;
}
.strobe-text {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
  animation: strobe 2s infinite alternate;
}
@keyframes strobe {
  0% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
    text-shadow: 0 0 10px #fff;
  }
}

.hero-p {
  font-size: 1.1rem;
  color: var(--light-grey);
  margin-bottom: 40px;
  border-left: 2px solid var(--purple);
  padding-left: 20px;
}
.hero-act {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.glitch-box {
  position: relative;
  border: 4px solid var(--purple);
  padding: 10px;
}
.glitch-box img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}
.box-overlay {
  position: absolute;
  bottom: 20px;
  left: -20px;
  background: #fff;
  color: #000;
  padding: 10px 20px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
}

/* PANEL */
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.p-txt h2 {
  font-size: 3rem;
  margin-bottom: 30px;
}
.p-txt .lead {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 20px;
}
.p-txt p {
  color: var(--light-grey);
  margin-bottom: 20px;
}
.p-vis {
  display: flex;
  gap: 40px;
}
.stat-block {
  border: 1px solid var(--purple);
  padding: 20px;
  width: 150px;
  text-align: center;
}
.big-num {
  display: block;
  font-size: 2.5rem;
  font-family: var(--font-head);
  color: var(--purple);
}
.lbl {
  font-size: 0.8rem;
  color: var(--light-grey);
}

/* FRAGMENTS */
.section-blog {
  background: var(--dark-grey);
}
.sec-head {
  margin-bottom: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sec-head h3 {
  font-size: 2rem;
}
.purple-line {
  height: 4px;
  background: var(--purple);
  width: 100px;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.b-card {
  background: var(--black);
  border: 1px solid #333;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
}
.b-card:hover {
  border-color: var(--purple);
  transform: translateY(-5px);
}
.b-meta {
  font-size: 0.7rem;
  color: var(--purple);
  margin-bottom: 15px;
  font-weight: 700;
}
.b-card h4 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  min-height: 3.3em;
}
.b-card p {
  font-size: 0.9rem;
  color: var(--light-grey);
  flex-grow: 1;
}
.highlight {
  border-top: 4px solid var(--purple);
}

/* SCHEME */
.scheme-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto 60px;
  position: relative;
}
.node {
  width: 100px;
  height: 100px;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--purple);
  z-index: 2;
}
.connector {
  flex: 1;
  height: 2px;
  background: #333;
  position: relative;
}
.connector::after {
  content: "";
  position: absolute;
  top: -4px;
  left: 0;
  width: 10px;
  height: 10px;
  background: var(--purple);
  animation: flow 2s infinite linear;
}
@keyframes flow {
  0% {
    left: 0;
  }
  100% {
    left: 100%;
  }
}

.scheme-text {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.st-item h4 {
  color: var(--purple);
  margin-bottom: 10px;
}

/* BIG TYPO */
.section-big {
  padding: 100px 0;
  border-bottom: var(--border);
  overflow: hidden;
}
.full-w {
  width: 100%;
  padding: 0 40px;
}
.big-row {
  font-family: var(--font-head);
  font-size: 12vw;
  line-height: 0.85;
  font-weight: 700;
  text-align: center;
}
.outline {
  color: transparent;
  -webkit-text-stroke: 2px #fff;
}

/* CASES (DIVIDERS) */
.cases-flex {
  display: flex;
  border-left: var(--border);
  flex-wrap: wrap;
}
.case-col {
  flex: 1;
  padding: 40px;
  border-right: var(--border);
  min-width: 250px;
  display: flex;
  flex-direction: column;
}
.case-col i {
  color: var(--purple);
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
}
.case-col h4 {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* BALANCE */
.bal-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.bal-text h3 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
.tech-list {
  margin-top: 30px;
  font-family: var(--font-head);
  font-size: 1.2rem;
  color: var(--purple);
}
.tech-list li {
  margin-bottom: 10px;
}

/* FAQ */
.narrow {
  max-width: 800px;
  margin: 0 auto;
}
.acc-item {
  border-bottom: 1px solid #333;
}
.acc-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}
.acc-btn::after {
  content: "+";
  color: var(--purple);
}
.acc-btn.active::after {
  content: "-";
}
.acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: 0.3s;
}
.acc-panel p {
  padding-bottom: 20px;
  color: var(--light-grey);
}

/* FORM */
.form-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.form-intro h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.info-grid {
  margin-top: 40px;
  border: 1px solid var(--purple);
  padding: 20px;
}
.tech-form {
  background: var(--dark-grey);
  padding: 40px;
  border: 1px solid #444;
}
.f-group {
  margin-bottom: 20px;
}
.f-group label {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 8px;
  color: var(--purple);
}
.f-group input {
  width: 100%;
  padding: 15px;
  background: #000;
  border: 1px solid #333;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
}
.f-group input:focus {
  outline: none;
  border-color: var(--purple);
}
.f-check {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  font-size: 0.8rem;
  line-height: 1.4;
}
.f-check a {
  text-decoration: underline;
  color: var(--purple);
}
.btn-submit {
  width: 100%;
  padding: 15px;
  background: var(--purple);
  color: #fff;
  border: none;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-head);
  font-size: 1.2rem;
}
.btn-submit:hover {
  opacity: 0.9;
}

/* FOOTER */
.jam-footer {
  border-top: var(--border);
  padding: 80px 0 20px;
}
.f-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
}
.f-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  color: var(--purple);
  display: block;
  margin-bottom: 15px;
}
.f-col h5 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.f-col a,
.f-col p {
  display: block;
  margin-bottom: 10px;
  color: var(--light-grey);
  font-size: 0.9rem;
}
.f-col a:hover {
  color: var(--purple);
}
.f-copy {
  text-align: center;
  margin-top: 60px;
  font-size: 0.8rem;
  color: #555;
}

/* COOKIE */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--purple);
  color: #fff;
  padding: 15px;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 20px;
  z-index: 500;
}
.c-txt {
  font-weight: 700;
}
#acceptCookie {
  background: #000;
  color: #fff;
  border: none;
  padding: 5px 20px;
  cursor: pointer;
  font-weight: 700;
}

/* --- ADAPTIVE FIXES --- */
@media (max-width: 992px) {
  /* Header */
  .nav-col,
  .act-col .btn-glitch {
    display: none;
  }
  .burger {
    display: flex;
  }
  .header-inner {
    padding: 0 20px;
    justify-content: space-between;
  }
  .brand-col {
    width: auto;
    border: none;
    padding: 0;
  }
  .act-col {
    width: auto;
    border: none;
  }

  /* Hero */
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-left {
    order: 1;
  }
  .hero-right {
    order: 2;
  }
  .hero-h1 {
    font-size: 3rem;
  }
  .meta-tag {
    justify-content: center;
  }
  .hero-p {
    border-left: none;
    border-top: 2px solid var(--purple);
    padding-top: 20px;
    padding-left: 0;
  }
  .hero-act {
    justify-content: center;
  }
  .glitch-box img {
    height: 300px;
  }

  /* Panel */
  .panel-grid {
    grid-template-columns: 1fr;
  }
  .p-vis {
    justify-content: center;
  }

  /* Blog */
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* Scheme */
  .scheme-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  .connector {
    width: 2px;
    height: 50px;
    flex: none;
  }
  .connector::after {
    animation: flowVert 2s infinite linear;
    top: 0;
    left: -4px;
    width: 10px;
    height: 10px;
  }
  @keyframes flowVert {
    0% {
      top: 0;
    }
    100% {
      top: 100%;
    }
  }
  .scheme-text {
    grid-template-columns: 1fr;
  }

  /* Cases */
  .cases-flex {
    flex-direction: column;
    border-left: none;
  }
  .case-col {
    border-right: none;
    border-bottom: 1px solid #333;
  }

  /* Balance */
  .bal-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .bal-img {
    order: -1;
  }

  /* Form */
  .form-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Footer */
  .f-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .hero-h1 {
    font-size: 2.5rem;
  }
  .p-txt h2 {
    font-size: 2.5rem;
  }
  .big-row {
    font-size: 15vw;
  }
}

.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(--accent);
  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;
}

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