/* --- STAGE 0: GLOBAL VARIABLES & RESET --- */
:root {
  /* Colors - Tech/Utilitarian Palette */
  --c-bg: #0a0a0a; /* Deep Black/Grey */
  --c-surface: #121212; /* Slightly lighter bg */
  --c-accent: #00ff41; /* Terminal Green */
  --c-accent-dim: rgba(0, 255, 65, 0.1);
  --c-text-main: #e0e0e0;
  --c-text-muted: #858585;
  --c-border: #333333;
  --c-border-active: #00ff41;

  /* Fonts */
  --font-main: "Inter", sans-serif;
  --font-tech: "Space Mono", monospace;

  /* Spacing & Layout */
  --container-width: 1240px;
  --header-height: 80px;
  --gap-md: 24px;
  --gap-lg: 48px;

  /* Transitions */
  --trans-fast: 0.2s ease;
  --trans-med: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  background-color: var(--c-bg);
  color: var(--c-text-main);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.5;
  /* Tech Background Grid */
  background-image:
    linear-gradient(var(--c-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center top;
}

/* Remove grid on mobile for performance/readability if needed, keeps it clean */
@media (max-width: 768px) {
  body {
    background-size: 100% 100%; /* Or simple background */
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--trans-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Buttons - Tech Style */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-tech);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  border: 1px solid var(--c-accent);
  cursor: pointer;
  transition: var(--trans-med);
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--c-accent-dim);
  color: var(--c-accent);
}

.btn--primary:hover {
  background: var(--c-accent);
  color: var(--c-bg);
  box-shadow: 0 0 20px var(--c-accent-dim);
}

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

.header__container {
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-img {
  height: 32px;
  width: auto;
}

.header__logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -1px;
  color: var(--c-text-main);
}

.header__nav {
  display: flex;
  align-items: center;
}

.header__menu {
  display: flex;
  gap: 32px;
}

.header__link {
  font-family: var(--font-tech);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  position: relative;
}

.header__link::before {
  content: "[";
  margin-right: 4px;
  opacity: 0;
  color: var(--c-accent);
  transition: var(--trans-fast);
}

.header__link::after {
  content: "]";
  margin-left: 4px;
  opacity: 0;
  color: var(--c-accent);
  transition: var(--trans-fast);
}

.header__link:hover {
  color: var(--c-text-main);
}

.header__link:hover::before,
.header__link:hover::after {
  opacity: 1;
}

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

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
}

.header__burger-line {
  width: 100%;
  height: 2px;
  background-color: var(--c-text-main);
  transition: var(--trans-med);
}

.header__item--mobile-only {
  display: none;
}

/* Mobile Menu Logic */
@media (max-width: 992px) {
  .header__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--c-bg);
    flex-direction: column;
    padding: 40px;
    transform: translateX(100%);
    transition: transform var(--trans-med);
    border-top: 1px solid var(--c-border);
  }

  .header__menu.is-active {
    transform: translateX(0);
  }

  .header__burger {
    display: flex;
  }

  .header__cta {
    display: none;
  }

  .header__item--mobile-only {
    display: block;
    margin-top: 20px;
  }

  .header__link {
    font-size: 18px;
  }
}

/* Burger Animation State */
.header__burger.is-active .header__burger-line:first-child {
  transform: translateY(9px) rotate(45deg);
}
.header__burger.is-active .header__burger-line:last-child {
  transform: translateY(-9px) rotate(-45deg);
}

/* --- STAGE 2: FOOTER (Bento Grid Style) --- */
.footer {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  padding: 80px 0 20px;
  margin-top: auto;
}

.footer__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Bento columns */
  gap: var(--gap-md);
  margin-bottom: 60px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-right: 20px;
  border-right: 1px solid var(--c-border); /* Tech dividers */
}

.footer__col:last-child {
  border-right: none;
  padding-right: 0;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.footer__logo-img {
  height: 24px;
  filter: grayscale(1);
}

.footer__logo-text {
  font-family: var(--font-tech);
  font-weight: 700;
  color: var(--c-text-main);
}

.footer__tagline {
  font-size: 14px;
  color: var(--c-text-muted);
  font-family: var(--font-tech);
}

.footer__eu-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-accent);
  margin-top: auto;
  border: 1px dashed var(--c-border);
  padding: 8px;
  background: rgba(0, 0, 0, 0.3);
}

.footer__title {
  font-family: var(--font-tech);
  font-size: 14px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 10px;
}

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

.footer__link {
  font-size: 14px;
  color: var(--c-text-main);
  transition: var(--trans-fast);
  position: relative;
  padding-left: 0;
}

.footer__link:hover {
  color: var(--c-accent);
  padding-left: 5px;
}

.footer__list--icons li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-text-muted);
}

.footer__list--icons svg {
  width: 16px;
  height: 16px;
  stroke: var(--c-accent);
}

.footer__text {
  font-size: 14px;
  color: var(--c-text-main);
  font-style: normal;
}

.footer__bottom {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 20px;
  border-top: 1px solid var(--c-border);
  text-align: center;
}

.footer__copy {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--c-text-muted);
  text-transform: uppercase;
}

@media (max-width: 992px) {
  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
  .footer__col {
    border-right: none;
    border-bottom: 1px solid var(--c-border);
    padding-bottom: 30px;
    padding-right: 0;
  }
  .footer__col:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
  .footer__col {
    border-bottom: 1px solid var(--c-border);
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: var(--c-bg);
}

/* Background Grid Overlay */
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* HUD Decorators */
.hero__hud-tl,
.hero__hud-tr,
.hero__hud-bl,
.hero__hud-br {
  position: absolute;
  font-family: var(--font-tech);
  font-size: 10px;
  color: var(--c-text-muted);
  opacity: 0.6;
  z-index: 1;
}
.hero__hud-tl {
  top: 100px;
  left: 20px;
  border-left: 2px solid var(--c-accent);
  padding-left: 5px;
}
.hero__hud-tr {
  top: 100px;
  right: 20px;
  text-align: right;
  border-right: 2px solid var(--c-accent);
  padding-right: 5px;
}
.hero__hud-bl {
  bottom: 20px;
  left: 20px;
}
.hero__hud-br {
  bottom: 20px;
  right: 20px;
}

.hero__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr; /* Asymmetric layout */
  gap: var(--gap-lg);
  align-items: center;
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  color: var(--c-accent);
  font-size: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--c-accent-dim);
  padding: 4px 12px;
  background: rgba(0, 255, 65, 0.05);
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.text-outline {
  -webkit-text-stroke: 1px var(--c-text-main);
  color: transparent;
}

.hero__desc {
  font-size: 18px;
  color: var(--c-text-muted);
  max-width: 500px;
  margin-bottom: 40px;
  border-left: 1px solid var(--c-border);
  padding-left: 20px;
}

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

.btn--lg {
  padding: 16px 32px;
  font-size: 16px;
}

.hero__offer-note {
  font-size: 12px;
  font-family: var(--font-tech);
  color: var(--c-text-muted);
}

/* Visual Side */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__circle-anim {
  position: absolute;
  width: 400px;
  height: 400px;
  border: 1px dashed var(--c-border);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

.hero__circle-anim::before {
  content: "";
  position: absolute;
  inset: -20px;
  border: 1px solid var(--c-accent-dim);
  border-radius: 50%;
  border-left-color: var(--c-accent);
  animation: rotate 10s linear infinite reverse;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

.hero__code-block {
  background: #000;
  border: 1px solid var(--c-border);
  padding: 24px;
  font-family: var(--font-tech);
  font-size: 14px;
  color: var(--c-text-main);
  box-shadow: 10px 10px 0 var(--c-accent-dim);
  width: 100%;
  max-width: 400px;
  position: relative;
}

.hero__code-block::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--c-accent);
  border-right: 2px solid var(--c-accent);
}

.code-line {
  margin-bottom: 4px;
}
.indent {
  padding-left: 20px;
}
.c-purple {
  color: #d19a66;
}
.c-blue {
  color: #61afef;
}
.c-yellow {
  color: #e5c07b;
}
.c-green {
  color: #98c379;
}
.c-str {
  color: #98c379;
}

.code-cursor {
  display: inline-block;
  width: 10px;
  background: var(--c-accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .hero__visual {
    display: none; /* Simplify for mobile, focus on copy */
  }

  .hero__hud-tl,
  .hero__hud-tr,
  .hero__hud-bl,
  .hero__hud-br {
    display: none;
  }
}

/* --- SHARED SECTION STYLES --- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--c-border);
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-tag {
  display: block;
  font-family: var(--font-tech);
  color: var(--c-accent);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-title {
  font-size: 48px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--c-text-muted);
}

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

/* --- COURSES (BENTO GRID) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 350px;
  gap: var(--gap-md);
}

/* Bento Card Styling */
.bento-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--trans-med);
  overflow: hidden;
}

/* Make the first card span 2 columns */
.bento-card--large {
  grid-column: span 2;
}

/* Hover Effect: Tech Glow & Lift */
.bento-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px rgba(0, 255, 65, 0.15);
}

/* Corner markers decor */
.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 20px 20px 0;
  border-color: transparent var(--c-accent) transparent transparent;
  opacity: 0;
  transition: var(--trans-fast);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.bento-icon {
  width: 32px;
  height: 32px;
  stroke: var(--c-text-main);
  transition: var(--trans-fast);
}

.bento-card:hover .bento-icon {
  stroke: var(--c-accent);
}

.bento-id {
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--c-text-muted);
  border: 1px solid var(--c-border);
  padding: 2px 6px;
  border-radius: 4px;
}

.bento-title {
  font-size: 24px;
  margin-bottom: 12px;
}

.bento-desc {
  font-size: 15px;
  color: var(--c-text-muted);
  margin-bottom: auto; /* Push content down */
  line-height: 1.6;
}

.tech-stack {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.tech-stack li {
  font-family: var(--font-tech);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  color: var(--c-text-main);
}

.bento-link {
  font-family: var(--font-tech);
  font-size: 14px;
  color: var(--c-accent);
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bento-link:hover {
  text-decoration: underline;
  gap: 10px;
}

/* --- METHODOLOGY --- */
.methodology__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.feature-list {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-marker {
  font-family: var(--font-tech);
  color: var(--c-accent);
  font-weight: 700;
  font-size: 18px;
  padding-top: 2px;
}

.feature-info h4 {
  font-size: 18px;
  margin-bottom: 5px;
}

.feature-info p {
  font-size: 14px;
  color: var(--c-text-muted);
}

/* Visual Interface Mockup */
.tech-interface {
  background: #000;
  border: 1px solid var(--c-border);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 20px 20px 0 var(--c-surface);
}

.interface-header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 15px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.interface-body {
  font-family: var(--font-tech);
  font-size: 12px;
}

.progress-bar {
  margin-bottom: 15px;
}

.progress-bar .label {
  display: block;
  margin-bottom: 5px;
  color: var(--c-text-muted);
}

.bar-bg {
  width: 100%;
  height: 8px;
  background: #222;
  border-radius: 4px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--c-accent);
  position: relative;
}

/* Scanline effect on bar */
.bar-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: translateX(-100%);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.status-box {
  margin-top: 20px;
  padding: 10px;
  background: rgba(0, 255, 65, 0.05);
  border-left: 2px solid var(--c-accent);
  color: var(--c-text-muted);
}

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

/* Mobile Response */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .bento-card--large {
    grid-column: span 1;
  }

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

  .methodology__visual {
    order: -1; /* Show image first on mobile or keep last, let's keep logic first */
    margin-bottom: 30px;
  }
}

/* --- FAQ STYLES --- */
.faq-grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border: 1px solid var(--c-border);
  background: var(--c-surface);
}

.faq-trigger {
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-main);
  color: var(--c-text-main);
  font-size: 18px;
  transition: var(--trans-fast);
}

.faq-trigger:hover {
  background: rgba(255, 255, 255, 0.03);
}

.faq-icon {
  font-family: var(--font-tech);
  color: var(--c-accent);
  transition: transform var(--trans-fast);
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  transform: rotate(90deg);
}

.faq-trigger[aria-expanded="true"] {
  border-bottom: 1px solid var(--c-border);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-inner {
  padding: 20px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* --- CONTACT FORM STYLES --- */
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap-lg);
  align-items: center;
}

.contact__status {
  margin-top: 40px;
  font-family: var(--font-tech);
  font-size: 14px;
  border: 1px dashed var(--c-border);
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.status-row:last-child {
  margin-bottom: 0;
}
.status-label {
  color: var(--c-text-muted);
}

/* Form Design */
.tech-form {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 40px;
  position: relative;
  box-shadow:
    20px 20px 0 var(--c-bg),
    20px 20px 0 1px var(--c-border); /* Offset border effect */
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-tech);
  font-size: 12px;
  color: var(--c-accent);
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-text-muted);
}

.form-input {
  width: 100%;
  background: #000;
  border: 1px solid var(--c-border);
  padding: 12px 12px 12px 40px;
  color: var(--c-text-main);
  font-family: var(--font-tech);
  font-size: 14px;
  transition: var(--trans-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 10px rgba(0, 255, 65, 0.1);
}

.form-hint {
  font-size: 11px;
  color: var(--c-text-muted);
  margin-top: 4px;
  display: block;
}

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

.custom-checkbox {
  display: flex;
  align-items: center; /* Changed from flex-start to align center */
  gap: 12px;
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-left: 30px; /* Space for box */
}

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

.checkmark {
  position: absolute;
  top: 0; /* Align top */
  left: 0;
  height: 20px;
  width: 20px;
  background-color: #000;
  border: 1px solid var(--c-border);
  transition: var(--trans-fast);
}

/* Checkmark/Indicator */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--c-bg);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

.checkbox-text {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.4;
}

/* Captcha Box Style */
.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  padding: 15px;
  border-radius: 4px;
  width: 100%;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.captcha-box .checkmark {
  border-radius: 2px;
  border: 2px solid #c1c1c1;
  background: #fff;
  position: static; /* Reset absolute */
  flex-shrink: 0;
  margin-right: 12px;
}

.captcha-box input:checked ~ .checkmark {
  background-color: #4a90e2; /* Standard captcha blue */
  border-color: #4a90e2;
}

.captcha-box input:checked ~ .checkmark:after {
  border-color: #fff;
}

.captcha-box .checkbox-text {
  color: #000;
  font-family: sans-serif;
  font-size: 14px;
  flex-grow: 1;
}

.captcha-icon {
  width: 32px;
  opacity: 0.7;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* Success Message Overlay */
.form-success {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-med);
  z-index: 10;
}

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

.success-icon {
  width: 48px;
  height: 48px;
  color: var(--c-accent);
  margin-bottom: 16px;
}

.success-content h3 {
  font-family: var(--font-tech);
  color: var(--c-accent);
  margin-bottom: 8px;
}

/* Mobile Response */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }

  .tech-form {
    box-shadow: none;
    padding: 20px;
  }
}

/* --- STAGE 5: COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(100px); /* Hidden below screen */
  width: calc(100% - 40px);
  max-width: 600px;
  background: rgba(18, 18, 18, 0.95);
  backdrop-filter: blur(10px);
  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 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: var(--trans-med);
}

.cookie-popup.is-active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

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

.cookie-icon {
  color: var(--c-accent);
  min-width: 24px;
}

.cookie-text {
  font-size: 14px;
  color: var(--c-text-main);
}

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

.btn--sm {
  padding: 8px 16px;
  font-size: 12px;
  white-space: nowrap;
}

/* --- STAGE 5: LEGAL PAGES STYLES --- */
/* Specific styles for pages like privacy.html designed for readability */
.section.pages {
  padding: 120px 0 80px; /* More top padding for fixed header */
  min-height: 60vh;
}

.pages .container {
  max-width: 800px; /* Narrower container for reading text */
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 40px;
}

.pages h1 {
  font-family: var(--font-tech);
  font-size: 32px;
  color: var(--c-accent);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--c-border);
}

.pages h2 {
  font-family: var(--font-main);
  font-size: 24px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--c-text-main);
}

.pages p {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
  color: var(--c-text-muted);
}

.pages li {
  margin-bottom: 10px;
  line-height: 1.6;
}

.pages strong {
  color: var(--c-text-main);
}

.pages a {
  color: var(--c-accent);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn--sm {
    width: 100%;
    justify-content: center;
  }
  .pages .container {
    padding: 20px;
  }
}
