/* VARIABLES: GameBoy Palette / Pixel Art */
:root {
  --bg: #e0e0e0; /* Classic Windows/GameBoy Grey */
  --surface: #f5f5f5;
  --text: #212529;
  --blue: #4361ee; /* Electric Blue */
  --red: #d90429;
  --border-color: #000;

  --font-head: "Press Start 2P", cursive; /* Pixel header font */
  --font-body: "VT323", monospace; /* Terminal body font */

  --shadow-depth: 4px;
}

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

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.2rem; /* Larger base size for VT323 */
  line-height: 1.4;
  overflow-x: hidden;
  /* Dot pattern background */
  background-image: radial-gradient(#ccc 15%, transparent 16%);
  background-size: 10px 10px;
}

a {
  text-decoration: none;
  color: inherit;
}
button {
  cursor: pointer;
  border: none;
  font-family: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  image-rendering: pixelated;
}

/* UTILS: THE PIXEL LOOK via Box Shadows */
.pixel-box {
  background: var(--surface);
  box-shadow: -4px 0 0 0 black, 4px 0 0 0 black, 0 -4px 0 0 black,
    0 4px 0 0 black;
  margin: 4px; /* Space for the shadow border */
  padding: 20px;
}

.pixel-border-btm {
  border-bottom: 4px solid black;
}

.pixel-border-top {
  border-top: 4px solid black;
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.4;
  text-transform: uppercase;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
}
h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
h4 {
  font-size: 1rem;
  margin-bottom: 10px;
}

p {
  margin-bottom: 20px;
}
.lead {
  font-size: 1.4rem;
}
.col-blue {
  color: var(--blue);
}
.hash {
  color: var(--blue);
}

/* LAYOUT */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}
.section {
  padding: 80px 0;
}
.center {
  text-align: center;
}

/* SYS MSG */
.sys-msg {
  background: #000;
  color: #0f0;
  font-family: var(--font-body);
  text-align: center;
  padding: 5px;
  font-size: 1rem;
}

/* HEADER */
.header {
  background: var(--bg);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: var(--font-head);
  font-size: 1rem;
}
.retro-nav {
  display: flex;
  gap: 30px;
}
.retro-nav a {
  font-size: 1.3rem;
  font-weight: 700;
  transition: 0.2s;
}
.retro-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 3px;
}

.header-btn {
  display: flex;
  gap: 10px;
}
#mobTrigger {
  display: none;
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-family: var(--font-head);
  font-size: 0.7rem;
}

/* BUTTONS */
.btn-pixel {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  padding: 15px 20px;
  font-family: var(--font-head);
  font-size: 0.8rem;
  box-shadow: -4px 0 0 0 black, 4px 0 0 0 black, 0 -4px 0 0 black,
    0 4px 0 0 black, 4px 4px 0 0 black; /* 3D effect */
  transition: 0.1s;
  transform: translate(-2px, -2px);
  margin: 4px;
}
.btn-pixel:active {
  transform: translate(0, 0);
  box-shadow: -4px 0 0 0 black, 4px 0 0 0 black, 0 -4px 0 0 black,
    0 4px 0 0 black;
}
.btn-pixel.sm {
  padding: 10px 15px;
  font-size: 0.6rem;
}
.btn-pixel.full {
  width: 100%;
  text-align: center;
}

.btn-link {
  font-family: var(--font-head);
  font-size: 0.8rem;
  color: #000;
  border-bottom: 3px solid #000;
  padding-bottom: 5px;
}

/* HERO */
.hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  background: #fff;
  padding: 40px;
}
.badge-pixel {
  background: #000;
  color: #fff;
  padding: 5px 10px;
  font-size: 1rem;
  display: inline-block;
  margin-bottom: 20px;
}
.pixel-art-screen {
  background: #000;
  padding: 10px;
  position: relative;
  border: 4px solid #555;
}
.screen-glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(rgba(255, 255, 255, 0.1), transparent);
  pointer-events: none;
}
.overlay-txt {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: #0f0;
  font-family: var(--font-head);
  font-size: 0.7rem;
  animation: blink 1s infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* TICKER */
.pixel-ticker {
  background: var(--blue);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  border-top: 4px solid #000;
  border-bottom: 4px solid #000;
}
.ticker-in {
  white-space: nowrap;
  font-family: var(--font-head);
  font-size: 1rem;
  animation: scroll 20s steps(100) infinite; /* steps creates jerky movement */
}
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* MANUAL (GRID) */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.stat-col {
  background: #fff;
}
.stat-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px dashed #000;
  padding: 15px 0;
  font-size: 1.2rem;
}
.stat-row:last-child {
  border-bottom: none;
}

/* TASKS */
.bg-dots {
  background-color: #dcdcdc;
} /* Slight variation */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.retro-card {
  background: #fff;
  border: 4px solid #000;
}
.rc-head {
  background: #000;
  color: #fff;
  padding: 10px;
  font-family: var(--font-head);
  font-size: 0.8rem;
}
.rc-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.rc-link {
  margin-top: 50px;
  font-weight: 700;
  color: var(--blue);
}

/* CONSOLE (QUIZ) */
.console-box {
  background: #000;
  color: #0f0;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}
.console-head {
  background: #333;
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: #fff;
}
.dot {
  width: 10px;
  height: 10px;
}
.red {
  background: #f00;
}
.yel {
  background: #ff0;
}
.grn {
  background: #0f0;
}

.console-screen {
  padding: 20px;
  flex-grow: 1;
  font-family: var(--font-head);
  font-size: 0.8rem;
  line-height: 2;
}
.c-step {
  display: none;
}
.c-step.active {
  display: block;
}
.c-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.c-opts button {
  background: transparent;
  border: 2px solid #0f0;
  color: #0f0;
  padding: 10px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 0.7rem;
}
.c-opts button:hover {
  background: #0f0;
  color: #000;
}
.btn-console {
  display: inline-block;
  background: #0f0;
  color: #000;
  padding: 10px;
  margin-top: 20px;
  font-family: var(--font-head);
  font-size: 0.8rem;
}

/* ADVANTAGES */
.list-frame h3 {
  margin-bottom: 30px;
  text-align: center;
}
.pixel-list li {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 1.3rem;
}
.pixel-list i {
  color: var(--blue);
}

/* STEPS */
.steps-8bit {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 40px;
}
.s-block {
  text-align: center;
  width: 25%;
}
.s-icon {
  width: 60px;
  height: 60px;
  background: #000;
  color: #fff;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  box-shadow: 4px 4px 0 #aaa;
}
.s-arrow {
  font-family: var(--font-head);
  margin-top: 20px;
  color: var(--blue);
}

/* TESTIMONIALS */
.review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.review-pixel {
  background: #fff;
  border: 4px solid #000;
  padding: 20px;
  position: relative;
  margin-top: 30px;
}
.rp-avt {
  width: 50px;
  height: 50px;
  border: 2px solid #000;
  position: absolute;
  top: -25px;
  left: 20px;
}
.bg-red {
  background: var(--red);
}
.bg-blue {
  background: var(--blue);
}
.review-pixel p {
  margin-top: 20px;
  font-style: italic;
}
.review-pixel span {
  font-family: var(--font-head);
  font-size: 0.7rem;
  color: var(--blue);
}

/* PRICING */
.pricing-pixel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.p-col {
  background: #fff;
  border: 4px solid #000;
  padding: 30px;
  text-align: center;
}
.p-col.highlight {
  background: #fff;
  box-shadow: 8px 8px 0 var(--blue);
  border-color: var(--blue);
}
.price {
  font-family: var(--font-head);
  font-size: 2rem;
  margin: 20px 0;
}

/* FAQ */
.faq-box details {
  background: #fff;
  border: 2px solid #000;
  margin-bottom: 15px;
  padding: 10px;
}
.faq-box summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-box summary:hover {
  color: var(--blue);
}
.faq-box p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* FORM */
.login-frame {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
}
.lf-title {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px dashed #000;
  padding-bottom: 20px;
}
.pixel-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row label {
  display: block;
  font-family: var(--font-head);
  font-size: 0.7rem;
  margin-bottom: 10px;
}
.form-row input {
  width: 100%;
  padding: 15px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  border: 2px solid #000;
  background: #eee;
}
.form-row input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
}
.form-check {
  font-size: 1rem;
}
.form-check a {
  text-decoration: underline;
}

/* FOOTER */
.footer {
  background: #000;
  color: #fff;
  padding: 60px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.footer h5 {
  font-family: var(--font-head);
  color: var(--blue);
  margin-bottom: 20px;
  font-size: 1rem;
}
.footer a {
  display: block;
  margin-bottom: 10px;
}
.footer a:hover {
  color: var(--blue);
}
.footer-btm {
  text-align: center;
  margin-top: 40px;
  font-size: 1rem;
  color: #888;
  border-top: 2px dashed #333;
  padding-top: 20px;
}

/* MOB MENU */
.retro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
}
.retro-overlay.active {
  visibility: visible;
  opacity: 1;
}
.overlay-box {
  width: 90%;
  max-width: 400px;
  background: #fff;
  padding: 0;
}
.box-head {
  background: var(--blue);
  color: #fff;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-head);
  font-size: 0.8rem;
}
#closeMob {
  background: red;
  color: #fff;
  padding: 5px;
  font-family: var(--font-head);
}
.mob-links {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: center;
}
.mob-links a {
  font-family: var(--font-head);
  font-size: 1rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

/* COOKIE */
.pixel-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #fff;
  border: 4px solid #000;
  padding: 20px;
  z-index: 5000;
  max-width: 300px;
  display: none;
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.5);
}
.pixel-popup p {
  font-family: var(--font-head);
  font-size: 0.7rem;
  margin-bottom: 15px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .retro-nav,
  .header-btn .btn-pixel {
    display: none;
  }
  #mobTrigger {
    display: block;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.4rem;
  }

  .hero-card {
    grid-template-columns: 1fr;
  }
  .hc-img {
    order: -1;
  }

  .grid-2,
  .card-grid,
  .steps-8bit,
  .review-grid,
  .pricing-pixel,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .s-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
  .s-block {
    width: 100%;
  }
  .steps-8bit {
    flex-direction: column;
    align-items: center;
  }
}
.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;
  }
}
