/* --- VARIABLES --- */
:root {
  /* Colors: Minimal Dark + Neon */
  --bg-main: #050505;
  --bg-secondary: #0f0f0f;
  --text-main: #e0e0e0;
  --text-muted: #888888;
  --accent: #00ff94; /* Neon Green */
  --accent-hover: #00cc76;
  --border: #222222;

  /* Fonts */
  --font-heading: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Dimensions */
  --container-width: 1280px;
  --header-height: 80px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 16px;
}

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

ul {
  list-style: none;
}

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

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

/* --- TYPOGRAPHY UTILS --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  font-weight: 700;
}

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

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
}

.header__logo-icon svg {
  display: block;
  transition: transform 0.4s ease;
}

.header__logo:hover .header__logo-icon svg {
  transform: rotate(90deg);
}

.header__nav {
  display: none;
}

@media (min-width: 992px) {
  .header__nav {
    display: block;
  }
}

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

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 4px;
}

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

.header__link:hover {
  color: #fff;
}

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

.header__cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  /* Strict geometry: No border-radius */
  background: transparent;
  transition: all 0.3s ease;
}

@media (min-width: 768px) {
  .header__cta {
    display: flex;
  }
}

.header__cta:hover {
  background-color: var(--accent);
  color: #000;
  box-shadow: 0 0 20px rgba(0, 255, 148, 0.3);
}

.header__cta i {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.header__cta:hover i {
  transform: translate(2px, -2px);
}

.header__burger {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: block;
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
}

/* --- FOOTER --- */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 30px;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 576px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  }
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  max-width: 300px;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: all 0.3s ease;
}

.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-4px);
}

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.footer__link {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease, padding-left 0.3s ease;
}

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

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

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

.footer__icon {
  color: var(--accent);
  min-width: 20px;
  width: 20px;
  height: 20px;
}

.footer__bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* --- BUTTONS (Global) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: 1px;
}

.btn--primary {
  background-color: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}

.btn--primary:hover {
  background-color: transparent;
  color: var(--accent);
  box-shadow: 0 0 30px rgba(0, 255, 148, 0.2);
  transform: translateX(10px); /* Micro-interaction: Move right */
}

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

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
}

/* Overlay gradient to fade canvas into background */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at 70% 50%,
    transparent 0%,
    var(--bg-main) 80%
  );
  z-index: 2;
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  width: 100%;
}

@media (min-width: 992px) {
  .hero__container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.hero__content {
  max-width: 700px;
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.9rem;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.hero__label-line {
  width: 40px;
  height: 1px;
  background-color: var(--accent);
}

.hero__title {
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 32px;
  text-transform: uppercase;
}

/* Hollow text effect for visual interest */
.text-stroke {
  -webkit-text-stroke: 1px #fff;
  color: transparent;
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 5rem; /* Giant typography as requested */
  }
  .text-stroke {
    -webkit-text-stroke: 2px #fff;
  }
}

.hero__desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin-bottom: 48px;
  border-left: 1px solid var(--border);
  padding-left: 24px;
}

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

@media (min-width: 576px) {
  .hero__actions {
    flex-direction: row;
    align-items: center;
  }
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
}

.hero__note i {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* Decorative Stats on the right */
.hero__deco {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 2px; /* Strict grid look */
}

@media (min-width: 992px) {
  .hero__deco {
    margin-top: 0;
    min-width: 300px;
  }
}

.hero__stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s ease;
}

.hero__stat:hover {
  border-color: var(--accent);
}

.hero__stat-val {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
}

.hero__stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform: scaleY(1);
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.section__header {
  margin-bottom: 60px;
  max-width: 800px;
}

.section__title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* --- STRATEGIES GRID --- */
.strategies__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px; /* Gap creates the border effect */
  background-color: var(--border); /* Borders color */
  border: 1px solid var(--border);
}

/* On Desktop: Asymmetric Grid */
@media (min-width: 992px) {
  .strategies__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }

  /* First card spans 2 columns vertically */
  .strat-card--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  /* Medium cards take 1 cell each */
  .strat-card--medium {
    grid-column: span 1;
  }

  /* Wide card takes remaining space (2 cols) */
  .strat-card--wide {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
  }
}

/* --- STRATEGY CARD STYLING --- */
.strat-card {
  background-color: var(--bg-main);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.strat-card:hover {
  background-color: #0a0a0a;
}

/* Hover effect: Neon line appearance */
.strat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.strat-card:hover::before {
  transform: scaleY(1);
}

.strat-card__icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  color: var(--accent);
}

.strat-card__icon i {
  width: 30px;
  height: 30px;
}

.strat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.strat-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.strat-card__title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}

.strat-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Wide card specifics */
.strat-card--wide .strat-card__row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

@media (min-width: 768px) {
  .strat-card--wide .strat-card__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-top: 24px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.link-arrow i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* Abstract Graph Visual */
.strat-card__visual {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  padding-right: 20px;
}

.graph-bar {
  width: 12px;
  background-color: #222;
  transition: height 0.5s ease, background-color 0.3s ease;
}

.strat-card:hover .graph-bar {
  background-color: var(--accent);
}

/* Animation for graph bars on hover */
.strat-card:hover .graph-bar:nth-child(1) {
  height: 60% !important;
  transition-delay: 0.05s;
}
.strat-card:hover .graph-bar:nth-child(2) {
  height: 90% !important;
  transition-delay: 0.1s;
}
.strat-card:hover .graph-bar:nth-child(3) {
  height: 40% !important;
  transition-delay: 0.15s;
}
.strat-card:hover .graph-bar:nth-child(4) {
  height: 100% !important;
  transition-delay: 0.2s;
}
.strat-card:hover .graph-bar:nth-child(5) {
  height: 80% !important;
  transition-delay: 0.25s;
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.section__header {
  margin-bottom: 60px;
  max-width: 800px;
}

.section__title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
}

/* --- STRATEGIES GRID --- */
.strategies__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px; /* Gap creates the border effect */
  background-color: var(--border); /* Borders color */
  border: 1px solid var(--border);
}

/* On Desktop: Asymmetric Grid */
@media (min-width: 992px) {
  .strategies__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
  }

  /* First card spans 2 columns vertically */
  .strat-card--large {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }

  /* Medium cards take 1 cell each */
  .strat-card--medium {
    grid-column: span 1;
  }

  /* Wide card takes remaining space (2 cols) */
  .strat-card--wide {
    grid-column: 2 / 4;
    grid-row: 2 / 3;
  }
}

/* --- STRATEGY CARD STYLING --- */
.strat-card {
  background-color: var(--bg-main);
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.strat-card:hover {
  background-color: #0a0a0a;
}

/* Hover effect: Neon line appearance */
.strat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.strat-card:hover::before {
  transform: scaleY(1);
}

.strat-card__icon {
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  color: var(--accent);
}

.strat-card__icon i {
  width: 30px;
  height: 30px;
}

.strat-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.strat-card__num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
}

.strat-card__title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: #fff;
}

.strat-card__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Wide card specifics */
.strat-card--wide .strat-card__row {
  display: flex;
  flex-direction: column;
  gap: 30px;
  height: 100%;
}

@media (min-width: 768px) {
  .strat-card--wide .strat-card__row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  margin-top: 24px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.link-arrow i {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.link-arrow:hover i {
  transform: translateX(5px);
}

/* Abstract Graph Visual */
.strat-card__visual {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 100px;
  padding-right: 20px;
}

.graph-bar {
  width: 12px;
  background-color: #222;
  transition: height 0.5s ease, background-color 0.3s ease;
}

.strat-card:hover .graph-bar {
  background-color: var(--accent);
}

/* Animation for graph bars on hover */
.strat-card:hover .graph-bar:nth-child(1) {
  height: 60% !important;
  transition-delay: 0.05s;
}
.strat-card:hover .graph-bar:nth-child(2) {
  height: 90% !important;
  transition-delay: 0.1s;
}
.strat-card:hover .graph-bar:nth-child(3) {
  height: 40% !important;
  transition-delay: 0.15s;
}
.strat-card:hover .graph-bar:nth-child(4) {
  height: 100% !important;
  transition-delay: 0.2s;
}
.strat-card:hover .graph-bar:nth-child(5) {
  height: 80% !important;
  transition-delay: 0.25s;
}

/* --- ANALYTICS SECTION --- */
.analytics__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (min-width: 992px) {
  .analytics__container {
    flex-direction: row;
    align-items: center;
    gap: 80px;
  }
}

.analytics__content {
  flex: 1;
}

.analytics__text-block {
  margin-bottom: 40px;
  color: var(--text-muted);
  font-size: 1rem;
}

.analytics__text-block strong {
  color: #fff;
  font-weight: 600;
}

.analytics__list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.analytics__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}

.analytics__list i {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.analytics__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (min-width: 576px) {
  .analytics__actions {
    flex-direction: row;
    align-items: center;
  }
}

.link-simple {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-size: 0.9rem;
}

.link-simple:hover {
  color: var(--accent);
}

/* --- TERMINAL VISUAL --- */
.analytics__visual {
  flex: 1;
  width: 100%;
}

.terminal {
  background-color: #080808;
  border: 1px solid var(--border);
  font-family: "Courier New", Courier, monospace; /* Monospace for tech vibe */
  width: 100%;
  position: relative;
  /* Neon glow behind the terminal */
  box-shadow: 0 0 0 1px rgba(0, 255, 148, 0.1);
}

.terminal::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: -10px;
  bottom: -10px;
  border: 1px solid var(--accent);
  z-index: -1;
  opacity: 0.3;
}

.terminal__header {
  background-color: var(--border);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid #333;
}

.terminal__status {
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 6px;
}

.terminal__status::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  display: block;
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s infinite;
}

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

.terminal__body {
  padding: 20px;
}

/* Data Table */
.data-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.data-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s ease;
}

.data-row:hover {
  background-color: rgba(0, 255, 148, 0.05);
  cursor: default;
}

.data-row--head {
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid var(--border);
  padding-bottom: 16px;
}

.txt-white {
  color: #fff;
  font-weight: 600;
}
.txt-up {
  color: var(--accent);
}
.txt-down {
  color: #ff4d4d;
}
.txt-stable {
  color: #aaa;
}

.badge {
  text-align: center;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.badge--buy {
  background-color: var(--accent);
  color: #000;
}
.badge--sell {
  background-color: #ff4d4d;
  color: #fff;
}
.badge--hold {
  background-color: #444;
  color: #fff;
}

.terminal__footer {
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px dashed #333;
  color: var(--accent);
  font-size: 0.8rem;
}

.typing-cursor {
  border-right: 2px solid var(--accent);
  animation: typeBlink 0.8s step-end infinite;
}

@keyframes typeBlink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: var(--accent);
  }
}

/* --- TECH & PROCESS SECTION --- */
.tech {
  background-color: #050505; /* Slightly darker/same as main */
  position: relative;
}

.tech__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 992px) {
  .tech__grid {
    grid-template-columns: 1fr 1.2fr; /* Right side slightly wider */
    gap: 100px;
  }
}

/* About Block styling */
.tech__trust-box {
  border: 1px solid var(--border);
  padding: 40px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 100%
  );
  position: relative;
}

/* Strict decorative corner */
.tech__trust-box::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 20px;
  height: 20px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

.tech__trust-title {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.tech__trust-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

/* --- PROCESS STEPS --- */
.tech__process {
  display: flex;
  flex-direction: column;
  gap: 0; /* Connected look */
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
  position: relative;
}

/* First item border top */
.process-step:first-child {
  border-top: 1px solid var(--border);
}

/* Hover effect: Background highlight + Shift */
.process-step:hover {
  background-color: rgba(255, 255, 255, 0.02);
  padding-left: 20px; /* Shift right */
}

/* Neon accent on hover */
.process-step:hover .process-step__num {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 255, 148, 0.4);
}

.process-step__num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  min-width: 40px;
  transition: color 0.3s ease;
}

.process-step__content {
  flex: 1;
}

.process-step__title {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.process-step__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 90%;
}

.process-step__icon {
  color: var(--text-muted);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.process-step:hover .process-step__icon {
  color: var(--accent);
  opacity: 1;
  transform: scale(1.1);
}

.contact__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

@media (min-width: 992px) {
  .contact__container {
    flex-direction: row;
    justify-content: space-between;
  }
}

.contact__info {
  flex: 1;
  max-width: 500px;
}

.contact__details {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__note {
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.contact__note i {
  color: var(--accent);
  min-width: 18px;
}

.contact__stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: #fff;
  font-weight: 700;
}

.contact__stat-text {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.contact__form-wrapper {
  flex: 1;
  max-width: 600px;
  background-color: #080808;
  border: 1px solid var(--border);
  padding: 40px;
  position: relative;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.5s ease;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form__input {
  background-color: transparent;
  border: 1px solid var(--border);
  padding: 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  border-radius: 0;
}

.form__input:focus {
  border-color: var(--accent);
  background-color: rgba(0, 255, 148, 0.02);
}

.captcha-input,
.terms-input {
  display: none;
}

.form__captcha {
  background-color: #111;
  border: 1px solid var(--border);
  padding: 15px;
  display: inline-block;
  margin-bottom: 10px;
  width: 100%;
}

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

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

.captcha-input:checked + .captcha-label .captcha-box {
  border-color: var(--accent);
  background-color: var(--accent);
}

.captcha-input:checked + .captcha-label .captcha-box::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background-color: #000;
}

.captcha-text {
  color: #ccc;
  font-size: 0.9rem;
}

/* Terms Styling */
.terms-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
  display: block;
  position: relative;
  padding-left: 30px;
}

.terms-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 18px;
  border: 1px solid var(--text-muted);
  background: transparent;
}

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

.terms-label a {
  color: #fff;
  text-decoration: underline;
}

.form__submit {
  width: 100%;
  margin-top: 10px;
  position: relative;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  animation: fadeIn 0.5s ease;
}

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

.form-success__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: -100px; /* Hidden initially */
  left: 0;
  width: 100%;
  background-color: rgba(5, 5, 5, 0.95);
  border-top: 1px solid var(--accent);
  padding: 20px;
  z-index: 9999;
  transition: bottom 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  backdrop-filter: blur(10px);
}

.cookie-popup.active {
  bottom: 0;
}

.cookie-popup__content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-popup__content {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}

.cookie-popup__icon {
  color: var(--accent);
  display: none;
}

@media (min-width: 768px) {
  .cookie-popup__icon {
    display: block;
  }
}

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

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

.cookie-popup__btn {
  padding: 10px 24px;
  font-size: 0.9rem;
  min-width: 120px;
}

/* --- LEGAL PAGES STYLING --- */
/* Ці стилі автоматично застосуються до privacy.html, terms.html і т.д. */

.pages {
  padding: 120px 0 80px; /* More top padding because of fixed header */
  min-height: 100vh;
}

.pages .container {
  max-width: 900px; /* Better readability width */
}

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

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

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

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

.pages li {
  margin-bottom: 10px;
  padding-left: 10px;
}

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

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

.pages a:hover {
  color: #fff;
  background-color: rgba(0, 255, 148, 0.1);
}

/* --- LOGO UPDATE --- */
.header__logo-img {
  width: 30px;
  height: 30px;
  display: block;
}

/* --- MOBILE MENU STYLES --- */
.header__burger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1001; /* Поверх меню */
}

.burger-line {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease;
}

/* Анімація перетворення на Хрестик */
.header__burger.active .burger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
  background-color: var(--accent);
}
.header__burger.active .burger-line:nth-child(2) {
  opacity: 0;
}
.header__burger.active .burger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
  background-color: var(--accent);
}

/* Стилі меню для мобільних */
@media (max-width: 991px) {
  .header__nav {
    position: fixed;
    top: 0;
    right: -100%; /* Ховаємо за межі екрану */
    width: 100%;
    height: 100vh;
    background-color: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
    border-left: 1px solid var(--border);
  }

  .header__nav.active {
    right: 0;
  }

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

  .header__link {
    font-size: 1.5rem;
    /font-family: var(--font-heading);
    text-transform: uppercase;
  }

  .desktop-only {
    display: none !important;
  }
}

@media (min-width: 992px) {
  .header__burger {
    display: none;
  }
  .mobile-only {
    display: none;
  }
}
