/* --- Variables & Reset --- */
:root {
  --bg-main: #050507;
  --bg-card: #0e0e12;
  --text-primary: #e0e6ed;
  --text-secondary: #94a3b8;

  /* HUD Colors */
  --accent-primary: #00f0ff; /* Cyan Neon */
  --accent-secondary: #7000ff; /* Deep Violet */
  --border-color: rgba(0, 240, 255, 0.15);
  --border-active: rgba(0, 240, 255, 0.6);

  /* Typography */
  --font-heading: "Rajdhani", sans-serif;
  --font-body: "Space Grotesk", sans-serif;

  --container-width: 1280px;
  --header-height: 80px;
  --radius-sm: 4px;
  --gap-grid: 24px;
}

*,
*::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-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}
img {
  max-width: 100%;
  display: block;
}

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

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-primary);
}

.header__logo-icon {
  width: 32px;
  height: 32px;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  color: #fff;
}

.header__nav {
  display: none;
}

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

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

.header__link {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 4px 0;
}

.header__link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-primary);
}

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

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

.header__cta {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  clip-path: polygon(
    10px 0,
    100% 0,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    0 100%,
    0 10px
  );
  transition: all 0.3s ease;
}

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

.header__cta:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
  text-shadow: 0 0 5px var(--accent-primary);
}

.header__burger {
  display: block;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 0;
  background: var(--bg-main);
  overflow: hidden;
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 999;
  border-bottom: 1px solid var(--border-color);
}

.mobile-menu.active {
  height: calc(100vh - var(--header-height));
}

.mobile-menu__content {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu__content a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

/* --- Footer --- */
.footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 60px 20px;
  position: relative;
}

/* Decor line top of footer */
.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

.footer__grid {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

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

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

.footer__title {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 24px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__title::before {
  content: "//";
  color: var(--accent-primary);
}

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

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

.footer__links li,
.footer__contact-list li {
  margin-bottom: 12px;
}

.footer__links a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  position: relative;
  padding-left: 0;
  transition: 0.3s;
}

.footer__links a:hover {
  color: var(--accent-primary);
  padding-left: 10px;
}

.footer__links a:hover::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-size: 0.8rem;
}

.footer__contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer__contact-list i {
  color: var(--accent-primary);
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.footer__copyright {
  margin-top: 32px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  font-family: var(--font-heading);
}

/* Helper Class for Main Content Spacing */
.main {
  padding-top: var(--header-height);
  min-height: 80vh; /* temporary until content added */
}

/* --- Hero Section --- */
.hero {
  padding: 40px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  gap: 20px;
  /* Mobile Layout: 1 column */
  grid-template-columns: 1fr;
  /* Grid Areas for Mobile */
  grid-template-areas:
    "main"
    "visual"
    "stat1"
    "stat2";
}

@media (min-width: 992px) {
  .hero__container {
    /* Desktop Layout: Bento Grid */
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "main visual"
      "stat1 stat2"; /* Or adjust to put stats under main */
  }

  /* Let's make stats sit side-by-side under visual or main depending on preference.
       Better Bento Layout:
       [ Main Content       ] [ Visual ]
       [ Stat 1 ] [ Stat 2  ] [ Visual ]
    */
  .hero__container {
    grid-template-columns: 1fr 1fr 1.2fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "main main visual"
      "stat1 stat2 visual";
    height: 600px; /* Fixed height for dashboard feel on desktop */
  }
}

/* Common Box Styles */
.hero__box {
  background: rgba(14, 14, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* HUD Decor elements */
.hud-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-primary);
  opacity: 0.8;
}

.hud-corner--tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.hud-corner--br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.hud-line {
  position: absolute;
  height: 1px;
  background: var(--accent-primary);
  box-shadow: 0 0 5px var(--accent-primary);
}

.hud-line--top {
  top: 0;
  left: 20%;
  right: 20%;
}

/* Area Mapping */
.hero__box--main {
  grid-area: main;
  align-items: flex-start;
}
.hero__box--visual {
  grid-area: visual;
  padding: 0;
  overflow: hidden;
  background: #000;
}
.hero__box--stat:nth-of-type(3) {
  grid-area: stat1;
}
.hero__box--stat:nth-of-type(4) {
  grid-area: stat2;
}

/* Main Content Styling */
.hero__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-family: var(--font-heading);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
}

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

@keyframes pulse {
  0% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px var(--accent-primary);
  }
  100% {
    opacity: 0.5;
  }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-transform: uppercase;
  color: #fff;
  min-height: 2.2em; /* Prevent jump during scramble */
}

@media (min-width: 992px) {
  .hero__title {
    font-size: 4rem;
  }
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 40px;
}

.highlight {
  color: var(--text-primary);
  border-bottom: 1px dashed var(--accent-primary);
}

/* Button with Glitch Effect Base */
.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 40px;
  background: var(--accent-secondary); /* Violet base */
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  clip-path: polygon(
    15px 0,
    100% 0,
    100% calc(100% - 15px),
    calc(100% - 15px) 100%,
    0 100%,
    0 15px
  );
  transition: 0.3s;
  overflow: hidden;
}

.btn:hover {
  background: var(--accent-primary); /* Cyan on hover */
  color: #000;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.4);
}

.hero__note {
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Visualizer Box */
.hero__box--visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.visual-overlay {
  position: absolute;
  bottom: 20px;
  right: 20px;
  text-align: right;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-primary);
  pointer-events: none;
}

.visual-data span {
  display: block;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 6px;
  margin-bottom: 4px;
}

/* Stats Boxes */
.hero__box--stat {
  flex-direction: row;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--accent-secondary); /* Differentiate stats */
}

.stat__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(112, 0, 255, 0.1);
  color: var(--accent-secondary);
  border-radius: 4px;
}

.stat__info h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.1rem;
  color: #fff;
}

.stat__info p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

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

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

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 400px;
  margin-bottom: 32px;
}

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

.hud-tag {
  display: inline-block;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--accent-secondary);
  border: 1px solid var(--accent-secondary);
  padding: 2px 8px;
  margin-bottom: 16px;
  background: rgba(112, 0, 255, 0.1);
}

/* --- Strategy Section (Stacks) --- */
.strategy__container {
  display: grid;
  gap: 40px;
}

@media (min-width: 992px) {
  .strategy__container {
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
  }
}

.strategy__stat {
  margin-top: 40px;
  border-left: 2px solid var(--accent-primary);
  padding-left: 20px;
}

.big-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

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

/* Tech Card (The "Server Slot" look) */
.tech-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-secondary);
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-card:hover,
.tech-card:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateX(10px); /* Move right on hover */
}

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

.tech-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tech-card__num {
  font-family: monospace;
  color: var(--accent-secondary);
  font-size: 1.2rem;
  margin-right: 16px;
}

.tech-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  flex-grow: 1;
  text-transform: uppercase;
}

.tech-card__icon {
  color: var(--text-secondary);
  transition: transform 0.3s;
}

.tech-card:hover .tech-card__icon {
  color: var(--accent-primary);
  transform: translateX(5px);
}

.tech-card__body {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    margin-top 0.4s ease;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Open state via hover or focus for simplicity, 
   or we can stick to hover for strictly desktop. 
   Let's use hover for immediate effect as per prompt style */
.tech-card:hover .tech-card__body {
  max-height: 100px;
  margin-top: 16px;
}

.tech-progress {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 12px;
  position: relative;
}

.tech-progress-bar {
  height: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
}

/* --- Analysis Section (Circuit/Glass) --- */
.analysis {
  background: linear-gradient(180deg, var(--bg-main) 0%, #0a0a0e 100%);
  overflow: hidden;
}

.circuit-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(112, 0, 255, 0.05) 0%,
    transparent 50%
  );
  z-index: 0;
  pointer-events: none;
}

.analysis__container {
  position: relative;
  z-index: 1;
}

.analysis__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.analysis__grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .analysis__grid {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
  }

  .glass-panel--large {
    grid-row: 1 / 3; /* Tall item on left */
  }
}

/* Glass Panels */
.glass-panel {
  background: rgba(20, 20, 25, 0.4);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px;
  position: relative;
  transition: 0.3s;
}

.glass-panel:hover {
  border-color: rgba(112, 0, 255, 0.5);
  background: rgba(20, 20, 25, 0.6);
}

.panel-decor-tl,
.panel-decor-br {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid var(--accent-primary);
  transition: 0.3s;
}

.panel-decor-tl {
  top: -1px;
  left: -1px;
  border-right: none;
  border-bottom: none;
}
.panel-decor-br {
  bottom: -1px;
  right: -1px;
  border-left: none;
  border-top: none;
}

.glass-panel:hover .panel-decor-tl,
.glass-panel:hover .panel-decor-br {
  width: 100%;
  height: 100%;
  opacity: 0.2;
}

.panel-icon {
  color: var(--accent-secondary);
  width: 32px;
  height: 32px;
  margin-bottom: 20px;
}

.glass-panel h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.glass-panel p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.link-arrow {
  color: var(--accent-primary);
  font-family: monospace;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.link-arrow:hover {
  text-decoration: underline;
}

/* Graph Mockup in CSS */
.graph-mockup {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 10px;
}

.bar {
  flex: 1;
  background: rgba(255, 255, 255, 0.1);
  transition: height 1s ease;
  position: relative;
}

.bar:hover {
  background: var(--accent-secondary);
}

.bar.highlight {
  background: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

/* Animations on Scroll (Simple opacity fade via CSS not planned in pure CSS without JS library, 
   but we will add simple hover states as requested) */

/* --- Innovation Section --- */
.innovation__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 50px;
}

.innovation__grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 50px;
  position: relative;
}

@media (min-width: 992px) {
  .innovation__grid {
    flex-direction: row;
    align-items: stretch;
    gap: 0; /* Remove gap, use connectors */
  }
}

/* Innovation Card */
.inn-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 30px;
  text-align: center;
  transition: 0.3s;
  position: relative;
  z-index: 2;
}

.inn-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.inn-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  border: 1px solid transparent;
  transition: 0.3s;
}

.inn-card:hover .inn-card__icon {
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.inn-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.inn-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Connectors (Desktop Only) */
.inn-connector {
  display: none;
}

@media (min-width: 992px) {
  .inn-connector {
    display: block;
    width: 40px;
    position: relative;
  }

  .inn-connector::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
  }

  .inn-connector::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--bg-main);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
  }
}

.innovation__cta {
  text-align: center;
}

.btn--outline {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
  background: transparent;
  transition: 0.3s;
}

.btn--outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

/* --- About Section --- */
.about__container {
  display: grid;
  gap: 50px;
}

@media (min-width: 992px) {
  .about__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.about__text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.about__features {
  margin-top: 30px;
}

.about__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

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

/* Terminal Window */
.terminal-window {
  background: #1e1e1e;
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: monospace;
  border: 1px solid #333;
}

.terminal-header {
  background: #2d2d2d;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.terminal-title {
  margin-left: 10px;
  font-size: 0.8rem;
  color: #999;
}

.terminal-body {
  padding: 20px;
  background: #0e0e12;
  color: #e0e6ed;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 8px;
}

.prompt {
  color: var(--accent-secondary);
  margin-right: 8px;
}

.text-success {
  color: #27c93f;
}
.text-warning {
  color: #ffbd2e;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--accent-primary);
}

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

/* --- Contact Section --- */
.contact {
  background-color: #050507;
}

.circuit-bg--inverted {
  background-image: radial-gradient(
    circle at 80% 20%,
    rgba(0, 240, 255, 0.05) 0%,
    transparent 40%
  );
}

.contact__container {
  display: grid;
  gap: 40px;
}

@media (min-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.contact__benefits {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.benefit-item i {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.benefit-item strong {
  display: block;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.benefit-item span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Form Styling */
.form-box {
  background: rgba(14, 14, 18, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  position: relative;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    100% 0,
    100% calc(100% - 20px),
    calc(100% - 20px) 100%,
    0 100%
  );
}

/* Add a glowing top border */
.form-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-secondary),
    transparent
  );
}

.form-header {
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.form-header h3 {
  font-family: var(--font-heading);
  color: #fff;
  text-transform: uppercase;
}

.blink {
  font-family: monospace;
  color: var(--accent-primary);
  font-size: 0.8rem;
  animation: blink 1s infinite;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 16px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.form-input:focus {
  background: rgba(0, 240, 255, 0.05);
  border-color: var(--accent-primary);
}

.form-checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.form-checkbox-group a {
  color: var(--accent-primary);
  text-decoration: underline;
}

/* Custom Captcha Style */
.captcha-container {
  background: #f9f9f9; /* Light bg similar to google */
  border: 1px solid #d3d3d3;
  padding: 10px 12px;
  width: fit-content;
  border-radius: 4px;
  margin-bottom: 10px;
}

/* In Dark Mode/Tech theme, let's adapt captcha to look integrated but recognizable */
.captcha-container {
  background: rgba(20, 20, 25, 1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.captcha-checkbox {
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: #fff;
  position: relative;
  transition: 0.2s;
}

.captcha-box.checked .captcha-checkbox {
  border-color: var(--accent-primary);
}

.captcha-box.checked .captcha-checkbox::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 6px;
  height: 12px;
  border: solid var(--accent-primary);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

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

.captcha-logo {
  margin-left: auto;
  color: var(--text-secondary);
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.6rem;
}

.captcha-logo i {
  width: 20px;
  height: 20px;
}

/* Submit Button Loading State */
.btn--submit {
  width: 100%;
  margin-top: 10px;
  height: 50px;
}

.btn.loading .btn__text {
  display: none;
}

.btn__loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}

.btn.loading .btn__loader {
  display: block;
}

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

.form-note {
  text-align: center;
  margin-top: 12px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* Success Message Overlay */
.form-success {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(14, 14, 18, 0.95);
  backdrop-filter: blur(5px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  z-index: 10;

  /* Hidden state */
  opacity: 0;
  pointer-events: none;
  transition: 0.5s ease;
}

.form-success.active {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.form-success h3 {
  font-family: var(--font-heading);
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.form-success p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%); /* Hidden by default */
  width: 90%;
  max-width: 600px;
  background: rgba(14, 14, 18, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-primary);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
  z-index: 9999;
  padding: 20px;
  border-radius: 4px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cookie-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-direction: column;
  text-align: center;
}

@media (min-width: 768px) {
  .cookie-grid {
    flex-direction: row;
    text-align: left;
  }
}

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

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  flex: 1;
}

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

.cookie-btn {
  background: var(--accent-secondary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.cookie-btn:hover {
  background: var(--accent-primary);
  color: #000;
}

/* --- Pages Styling (Privacy, Terms, etc.) --- */
.pages {
  padding: 40px 0 80px;
  background: var(--bg-main);
  min-height: 80vh;
}

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

.pages h2 {
  font-family: var(--font-heading);
  color: var(--accent-primary);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.pages p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

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

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

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

.pages strong {
  color: #fff;
}

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

.pages a:hover {
  color: #fff;
}

/* --- Contact Page Specific Styles --- */
.contact-page {
  padding: 60px 0 100px;
  position: relative;
  min-height: 80vh; /* Робить сторінку на весь екран по висоті */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-page__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
  position: relative;
  z-index: 2;
}

.contact-page__header h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: #fff;
  margin: 16px 0;
  text-transform: uppercase;
}

.contact-page__header p {
  color: var(--text-secondary);
}

/* Grid Layout */
.contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  position: relative;
  z-index: 2;
}

@media (min-width: 992px) {
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Contact Module Cards */
.contact-card {
  background: rgba(20, 20, 25, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px 24px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-5px);
  background: rgba(20, 20, 25, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-secondary),
    transparent
  );
  opacity: 0.5;
  transition: 0.3s;
}

.contact-card:hover::before {
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent-primary),
    transparent
  );
  opacity: 1;
}

.contact-card__icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.3s;
}

.contact-card:hover .contact-card__icon {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
  transform: scale(1.1);
}

.contact-card__title {
  font-family: var(--font-heading);
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.contact-card__data {
  font-family: var(--font-body);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.5;
  flex-grow: 1;
}

.contact-card__link {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.9rem;
  text-transform: uppercase;
  transition: 0.3s;
}

.contact-card__link:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #000;
}

.contact-card__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #27c93f;
  background: rgba(39, 201, 63, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
}
