/* --- Variables & Tech Theme Settings --- */
:root {
  /* Colors */
  --bg-main: #050505;
  --bg-surface: #0f0f11;
  --bg-surface-hover: #1a1a1e;

  --primary: #00ff9d; /* Tech Green */
  --primary-dim: rgba(0, 255, 157, 0.1);
  --secondary: #5e6ad2; /* Digital Blue */

  --text-main: #f0f0f0;
  --text-muted: #888899;

  --border-color: #2a2a30;
  --border-focus: #00ff9d;

  /* Typography */
  --font-base: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Spacing */
  --container-width: 1280px;
  --header-height: 80px;
  --gap-base: 24px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-base);
  line-height: 1.6;
  overflow-x: hidden;
  /* Tech grid background pattern */
  background-image:
    linear-gradient(var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

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

/* Buttons (Tech Style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--primary);
  color: var(--bg-main);
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px var(--primary-dim);
}

.btn--sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

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

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

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

.header__logo-icon {
  color: var(--primary);
}

.header__logo-text {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.05em;
}

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

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

.header__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.header__link::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.header__link:hover {
  color: var(--primary);
}

.header__link:hover::before {
  width: 100%;
}

.header__burger {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px;
  cursor: pointer;
}

/* Mobile Nav Logic */
@media (max-width: 991px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-main);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.4s ease;
    border-top: 1px solid var(--border-color);
  }

  .header__nav.active {
    transform: translateX(0);
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
  }

  .header__link {
    font-size: 1.5rem;
    font-family: var(--font-mono);
  }
}

/* --- Footer --- */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  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: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer__title {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-bottom: 24px;
  opacity: 0.8;
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 20px 0;
  max-width: 300px;
}

.footer__note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  border: 1px dashed var(--border-color);
  padding: 8px;
  display: inline-block;
}

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

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__link:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer__icon {
  width: 18px;
  height: 18px;
  color: var(--primary);
  flex-shrink: 0;
}

.footer__eu-badge {
  margin-top: 24px;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-left: 2px solid var(--secondary);
}

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

.footer__copyright {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
}

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

@media (max-width: 576px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
  .footer__col--brand {
    order: -1;
  }
}

/* --- Hero Section (Bento Grid) --- */
.hero {
  padding: calc(var(--header-height) + 40px) 0 80px;
  min-height: 100vh; /* Full screen feel */
  display: flex;
  align-items: center;
}

.hero__container {
  display: grid;
  /* Grid 12 columns for flexibility */
  grid-template-columns: repeat(12, 1fr);
  /* Grid rows definition */
  grid-template-rows: minmax(300px, auto) 180px;
  gap: 20px;
  width: 100%;
}

/* Base Box Style */
.hero__box {
  background: rgba(15, 15, 17, 0.6);
  border: 1px solid var(--border-color);
  padding: 32px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: border-color 0.3s ease;
}

.hero__box:hover {
  border-color: var(--text-muted);
}

/* --- Block 1: Main Text --- */
/* Spans 7 columns, full height */
.hero__box--main {
  grid-column: span 7;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__status {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: blink 2s infinite;
}

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

.hero__title {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text-main);
  font-family: var(--font-mono); /* Tech font for header */
}

.hero__subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-main);
  margin-bottom: 24px;
  opacity: 0.9;
  font-family: var(--font-base);
}

.hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

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

.hero__note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* --- Block 2: Visual (Canvas) --- */
/* Spans 5 columns, top row */
.hero__box--visual {
  grid-column: span 5;
  grid-row: 1;
  padding: 0; /* Remove padding to let canvas fill */
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas#heroCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__overlay-code {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  pointer-events: none;
  display: flex;
  flex-direction: column;
}

/* --- Block 3: Stat --- */
/* Spans 2 columns, bottom row */
.hero__box--stat {
  grid-column: span 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat__icon {
  color: var(--primary);
  width: 32px;
  height: 32px;
}

.stat__info {
  display: flex;
  flex-direction: column;
}

.stat__value {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-main);
  line-height: 1;
}

.stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* --- Block 4: Info --- */
/* Spans 3 columns, bottom row */
.hero__box--info {
  grid-column: span 3;
  grid-row: 2;
  background: var(--bg-surface-hover);
  border: 1px dashed var(--border-color);
}

.info__header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.info__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --- Responsive (Mobile First Adaptation) --- */
@media (max-width: 991px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .hero__container {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .hero__box--main {
    grid-column: span 2;
    order: 1;
  }

  .hero__box--visual {
    grid-column: span 2;
    height: 250px;
    order: 2;
  }

  .hero__box--stat {
    grid-column: 1;
    order: 3;
  }

  .hero__box--info {
    grid-column: 2;
    order: 4;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-top: 100px;
  }

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

  .hero__box--main,
  .hero__box--visual,
  .hero__box--stat,
  .hero__box--info {
    grid-column: span 1;
  }

  .hero__title {
    font-size: 2rem;
  }
}

/* --- Common Section Styles --- */
section {
  position: relative;
  padding: 80px 0;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--text-main);
}

.hash {
  color: var(--primary);
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* --- Roadmap (Timeline) Styles --- */
.roadmap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Vertical Line */
.roadmap::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px; /* Aligned with marker center */
  width: 2px;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    var(--border-color),
    var(--border-color) 10px,
    transparent 10px,
    transparent 20px
  );
  z-index: 1;
}

.roadmap__item {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
  position: relative;
  opacity: 0; /* Animated via JS */
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.roadmap__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.roadmap__marker {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 42px;
}

.roadmap__dot {
  width: 20px;
  height: 20px;
  background: var(--bg-main);
  border: 2px solid var(--primary);
  margin-left: 10px; /* Center on line */
  margin-top: 24px;
  position: relative;
  transition: all 0.3s ease;
}

/* Connect dot to card */
.roadmap__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 100%;
  width: 30px;
  height: 1px;
  background: var(--primary);
  transform: translateY(-50%);
}

.roadmap__item:hover .roadmap__dot {
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary);
}

.roadmap__content {
  flex-grow: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 30px;
  position: relative;
  clip-path: polygon(
    20px 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%,
    0 20px
  );
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.roadmap__item:hover .roadmap__content {
  transform: translateX(10px);
  border-color: var(--primary);
}

/* Tech decorative corners */
.roadmap__content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-top: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
  opacity: 0.5;
}

.roadmap__meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.roadmap__title {
  font-size: 1.5rem;
  margin-bottom: 12px;
  color: var(--text-main);
}

.roadmap__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.roadmap__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.roadmap__stack li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 12px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.roadmap__actions {
  margin-top: 20px;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .roadmap__item {
    flex-direction: column;
    gap: 16px;
    padding-left: 30px;
  }

  .roadmap::before {
    left: 0;
  }

  .roadmap__marker {
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 100%;
  }

  .roadmap__dot {
    margin-left: 0;
    margin-top: 0;
  }

  .roadmap__dot::after {
    display: none;
  }

  .roadmap__content {
    width: 100%;
  }
}

/* --- Features Section --- */
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: rgba(15, 15, 17, 0.4);
  border: 1px solid var(--border-color);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
  /* Initial state for animation */
  opacity: 0;
  transform: translateY(20px);
}

.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hover Effect: Glow border & Background lift */
.feature-card:hover {
  border-color: var(--secondary);
  background: rgba(25, 25, 30, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

/* Decorative corner */
.feature-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 30px 30px 0;
  border-color: transparent var(--border-color) transparent transparent;
  transition: border-color 0.3s ease;
}

.feature-card:hover::after {
  border-color: transparent var(--secondary) transparent transparent;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: var(--primary);
  margin-bottom: 24px;
  border: 1px solid transparent;
}

.feature-card:hover .feature-card__icon {
  border-color: var(--primary);
  color: var(--text-main);
  background: var(--primary);
  box-shadow: 0 0 15px var(--primary-dim);
}

.feature-card__icon i {
  transition: color 0.3s ease;
}

.feature-card:hover .feature-card__icon i {
  color: var(--bg-main); /* Icon turns black on green bg */
}

.feature-card__title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 12px;
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Technical Status Badge at bottom */
.feature-card__status {
  position: absolute;
  bottom: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--secondary);
  opacity: 0.7;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* --- Career Section (Terminal Style) --- */
.terminal {
  background: #000;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  font-family: var(--font-mono);
  max-width: 1000px;
  margin: 0 auto;
  /* Animation init state */
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.5s ease;
}

.terminal.visible {
  opacity: 1;
  transform: scale(1);
}

.terminal__header {
  background: #1a1a1e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
}

.terminal__buttons {
  display: flex;
  gap: 8px;
  margin-right: 20px;
}

.t-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.t-dot--red {
  background: #ff5f56;
}
.t-dot--yellow {
  background: #ffbd2e;
}
.t-dot--green {
  background: #27c93f;
}

.terminal__title {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex-grow: 1;
  text-align: center;
  opacity: 0.7;
}

.terminal__body {
  padding: 0;
}

/* Grid Table inside Terminal */
.job-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1fr 1fr;
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  align-items: center;
  transition: background 0.2s ease;
}

.job-row:last-child {
  border-bottom: none;
}

.job-row--head {
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.job-row:not(.job-row--head):hover {
  background: rgba(0, 255, 157, 0.05);
}

.job-col {
  font-size: 0.9rem;
  color: var(--text-main);
}

.job-role {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

.job-tag {
  font-size: 0.75rem;
  color: var(--secondary);
  background: rgba(94, 106, 210, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.text-green {
  color: var(--primary);
}

.job-col--action {
  text-align: right;
}

.cmd-btn {
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.cmd-btn:hover {
  color: var(--primary);
  text-decoration: underline;
}

.terminal__footer {
  padding: 15px 20px;
  background: #0a0a0c;
  border-top: 1px solid var(--border-color);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blink {
  animation: blink 1s infinite;
  color: var(--primary);
  font-weight: bold;
}

.career__cta {
  text-align: center;
  margin-top: 60px;
}

.career__cta p {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .job-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px;
  }

  .job-row--head {
    display: none;
  }

  .job-col--action {
    text-align: left;
    margin-top: 10px;
  }
}

/* --- FAQ Section --- */
.faq__wrapper {
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-surface);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--border-color);
}

.faq__item:last-child {
  border-bottom: none;
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 20px;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.faq__trigger:hover {
  background: rgba(255, 255, 255, 0.02);
}

.faq__trigger[aria-expanded="true"] {
  background: rgba(0, 255, 157, 0.05);
}

.faq__icon {
  color: var(--secondary);
  margin-right: 16px;
  display: flex;
  align-items: center;
}

.faq__icon i {
  width: 20px;
  height: 20px;
}

.faq__question {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  flex-grow: 1;
  color: var(--text-main);
}

/* Open indicator */
.faq__indicator {
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.faq__trigger[aria-expanded="true"] .faq__indicator {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Accordion Content Animation */
.faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
  background: rgba(0, 0, 0, 0.2);
}

.faq__trigger[aria-expanded="true"] + .faq__content {
  max-height: 300px; /* Arbitrary large number */
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0);
}

.faq__inner {
  padding: 20px 20px 30px 56px; /* Indented to align with text */
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  border-left: 2px solid var(--primary);
}

.faq__inner strong {
  color: var(--text-main);
  font-weight: 500;
}

/* Mobile Tweak */
@media (max-width: 576px) {
  .faq__trigger {
    padding: 15px;
  }
  .faq__inner {
    padding: 15px 15px 20px;
    border-left: none;
  }
  .faq__question {
    font-size: 0.85rem;
    word-break: break-word;
  }
}

/* --- Contact Section --- */
.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Info Side */
.contact__desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
  max-width: 400px;
}

.contact__status {
  background: var(--bg-surface);
  border: 1px dashed var(--border-color);
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.status-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.text-yellow {
  color: #ffbd2e;
}

/* Form Box */
.contact__form-box {
  background: #000;
  border: 1px solid var(--border-color);
  padding: 40px;
  position: relative;
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.05);
}

/* Corner decorations */
.contact__form-box::before,
.contact__form-box::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--primary);
  border-style: solid;
  transition: all 0.3s ease;
}

.contact__form-box::before {
  top: -1px;
  left: -1px;
  border-width: 2px 0 0 2px;
}
.contact__form-box::after {
  bottom: -1px;
  right: -1px;
  border-width: 0 2px 2px 0;
}

.form__header {
  font-family: var(--font-mono);
  color: var(--primary);
  margin-bottom: 30px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Inputs */
.form__group {
  margin-bottom: 24px;
  position: relative;
}

.form__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-family: var(--font-mono);
}

.form__input-wrapper {
  position: relative;
}

.form__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.form__input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 14px 16px 14px 48px; /* Space for icon */
  color: var(--text-main);
  font-family: var(--font-base);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form__input:focus {
  outline: none;
  border-color: var(--primary);
  background: #000;
  box-shadow: 0 0 15px var(--primary-dim);
}

.form__input:focus + .form__icon,
.form__input:focus ~ .form__icon {
  /* sibling selector */
  color: var(--primary);
}

/* Validation Errors */
.form__error {
  display: none;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #ff5f56;
  margin-top: 6px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form__group.error .form__input {
  border-color: #ff5f56;
}
.form__group.error .form__icon {
  color: #ff5f56;
}
.form__group.error .form__error {
  display: block;
}
.form__captcha.error .form__error,
.form__terms.error .form__error {
  display: block;
}

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

/* Dark mode override for captcha */
.captcha-box {
  background: #222;
  border-color: #444;
}

.captcha-label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.captcha-label input {
  display: none; /* Hide real checkbox */
}

.captcha-custom {
  width: 24px;
  height: 24px;
  border: 2px solid #666;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: all 0.2s ease;
}

/* Checkmark logic */
.captcha-label input:checked + .captcha-custom {
  border-color: var(--primary);
  background: var(--primary);
}

.captcha-label input:checked + .captcha-custom::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-text {
  font-size: 0.9rem;
  color: var(--text-main);
}

.captcha-logo {
  color: #666;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
}

.captcha-logo svg {
  width: 24px;
  height: 24px;
}

/* Terms Checkbox */
.form__terms {
  margin-bottom: 30px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}

.terms-label input {
  display: none;
}

.terms-custom {
  width: 18px;
  height: 18px;
  border: 1px solid var(--text-muted);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
}

.terms-label input:checked + .terms-custom {
  background: var(--primary);
  border-color: var(--primary);
}

.terms-label input:checked + .terms-custom::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 5px;
  height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.terms-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.terms-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* Submit Button Loading State */
.form__submit {
  width: 100%;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  border-top-color: #000;
  animation: spin 1s ease-in-out infinite;
  margin-left: 10px;
}

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

.form__submit.loading .btn-text {
  display: none;
}
.form__submit.loading .btn-loader {
  display: block;
}

/* Success Message */
.success-message {
  display: none; /* Hidden by default */
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.success-message.active {
  display: block;
}

.success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--primary);
}
.success__icon svg {
  width: 100%;
  height: 100%;
}

.success__title {
  color: var(--primary);
  margin-bottom: 12px;
}

.success__text {
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  max-width: 400px;
  width: calc(100% - 40px);
  background: rgba(15, 15, 17, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--primary); /* Tech Accent */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  padding: 20px;
  transform: translateY(150%);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-popup.active {
  transform: translateY(0);
}

.cookie-popup__content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.cookie-popup__icon {
  color: var(--primary);
  flex-shrink: 0;
}

.cookie-popup__title {
  font-size: 0.8rem;
  color: var(--secondary);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.cookie-popup__text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 12px;
}

.cookie-popup__text a {
  color: var(--text-main);
  text-decoration: underline;
}

/* --- Policy Pages Styling (pages section) --- */
/* Use this structure: <section class="pages"><div class="container">...</div></section> */

.pages {
  padding: calc(var(--header-height) + 60px) 0 80px;
  background: var(--bg-main);
  min-height: 80vh;
}

.pages h1 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.pages h2 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin: 40px 0 20px;
  font-family: var(--font-mono);
}

.pages p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
  max-width: 800px;
}

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

.pages li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-muted);
}

.pages li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-family: var(--font-mono);
  font-weight: bold;
}

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

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

.pages a:hover {
  color: var(--secondary);
}

/* Mobile adjust */
@media (max-width: 576px) {
  .pages h1 {
    font-size: 1.8rem;
  }
}
