/* --- Variables & Reset --- */
:root {
  /* Palette: Aurora Dark / Holographic */
  --bg-dark: #050505;
  --text-main: #e0e0e0;
  --text-muted: #9ca3af;

  /* Gradients & Accents */
  --accent-primary: #7b2cbf;
  --accent-secondary: #4361ee;
  --accent-tertiary: #f72585;
  --accent-glow: rgba(123, 44, 191, 0.5);

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

  /* Spacing */
  --container-width: 1200px;
  --header-height: 80px;
}

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

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --- Aurora Background Animation --- */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background: var(--bg-dark);
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: float 20s infinite alternate;
}

.blob-1 {
  width: 50vw;
  height: 50vw;
  background: var(--accent-primary);
  top: -10%;
  left: -10%;
}

.blob-2 {
  width: 40vw;
  height: 40vw;
  background: var(--accent-secondary);
  bottom: -10%;
  right: -10%;
  animation-delay: -5s;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  background: var(--accent-tertiary);
  top: 40%;
  left: 40%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

/* --- Typography Helpers --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

/* --- Button Styles (Fluid/Organic) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border-radius: 999px; /* Pill shape */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.btn--glow {
  background: linear-gradient(
    135deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  color: white;
  box-shadow: 0 0 20px var(--accent-glow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--glow:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 10px 30px var(--accent-glow);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 999px; /* Fully rounded header */
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 2rem;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  color: #fff;
}

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

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

.header__menu {
  display: flex;
  gap: 2rem;
}

.header__link {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  opacity: 0.8;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-tertiary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.header__link:hover {
  opacity: 1;
}

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

.header__burger {
  display: none;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* --- Footer --- */
.footer {
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 5rem 0 2rem;
  margin-top: 5rem;
  position: relative;
  z-index: 10;
}

.footer__container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

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

.footer__title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer__title::before {
  content: "";
  position: absolute;
  left: -15px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

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

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

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

.footer__icon {
  width: 20px;
  height: 20px;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
}

/* --- Mobile Adaptive --- */
@media (max-width: 992px) {
  .header__container {
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    padding: 2rem;
    z-index: 999;
  }

  .header__nav.active {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .header__link {
    font-size: 1.5rem;
  }

  .footer__container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .header {
    top: 10px;
  }

  .header__container {
    height: 60px;
  }
}

/* --- Global Textures --- */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
}

/* --- Hero Section Redesign --- */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 100px; /* Відступ під хедер */
  display: flex;
  align-items: center;
  overflow: hidden;
  z-index: 2;
}

.hero__container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* --- Content Side --- */
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 10;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  width: fit-content;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #00ff9d;
  border-radius: 50%;
  box-shadow: 0 0 10px #00ff9d;
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(3rem, 5vw, 5.5rem); /* Адаптивний гігантський шрифт */
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.hero__title-highlight {
  background: linear-gradient(
    90deg,
    var(--accent-secondary),
    #b5179e,
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
}

/* Підкреслення для акценту */
.hero__title-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 0.15em;
  background: var(--accent-secondary);
  z-index: -1;
  opacity: 0.3;
  border-radius: 4px;
  transform: skewX(-10deg);
}

.hero__desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero__desc strong {
  color: #fff;
  font-weight: 500;
}

.hero__btns {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

/* New Buttons */
.btn--primary {
  background: #fff;
  color: #000;
  font-weight: 700;
  border: none;
}

.btn--primary:hover {
  background: #e0e0e0;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.hero__footer-text {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.hero__footer-text i {
  width: 18px;
  height: 18px;
  color: var(--accent-secondary);
}

/* --- Visual Side (Abstract UI) --- */
.hero__visual {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

/* Гігантська фонова пляма за картками */
.interface-blob {
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(
    circle,
    var(--accent-primary) 0%,
    transparent 60%
  );
  opacity: 0.3;
  filter: blur(80px);
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ui-card {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  position: absolute;
  transition: transform 0.3s ease;
}

.ui-card--main {
  width: 420px;
  height: auto;
  min-height: 280px;
  padding: 1.5rem;
  transform: rotateY(-10deg) rotateX(5deg);
  z-index: 2;
  animation: hoverMain 8s ease-in-out infinite;
}

.ui-card--float {
  z-index: 3;
  padding: 1rem 1.5rem;
  background: rgba(30, 30, 30, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  right: -20px;
  bottom: 100px;
  animation: hoverFloat 6s ease-in-out infinite reverse;
}

.ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.ui-dots {
  display: flex;
  gap: 6px;
}

.ui-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.ui-tag {
  font-size: 0.75rem;
  color: #00ff9d;
  background: rgba(0, 255, 157, 0.1);
  padding: 4px 8px;
  border-radius: 6px;
}

.ui-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ui-message {
  display: flex;
  gap: 1rem;
  max-width: 80%;
}

.ui-message--bot {
  align-self: flex-start;
}

.ui-message--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ui-avatar {
  width: 36px;
  height: 36px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.ui-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.line {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.line--100 {
  width: 100px;
}
.line--70 {
  width: 70px;
}
.line--80 {
  width: 80px;
  background: rgba(67, 97, 238, 0.3);
}

.ui-typing span {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  margin-left: 4px;
  animation: typing 1.4s infinite;
}

.ui-typing span:nth-child(2) {
  animation-delay: 0.2s;
}
.ui-typing span:nth-child(3) {
  animation-delay: 0.4s;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

@keyframes hoverMain {
  0%,
  100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }
  50% {
    transform: rotateY(-8deg) rotateX(2deg) translateY(-20px);
  }
}

@keyframes hoverFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

@keyframes typing {
  0%,
  100% {
    opacity: 0.2;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 255, 157, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 255, 157, 0);
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .hero__title {
    font-size: 3.5rem;
  }

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

  .hero__content {
    align-items: center;
  }

  .hero__btns {
    justify-content: center;
  }

  .hero__visual {
    height: 400px;
    margin-top: 2rem;
  }

  .ui-card--main {
    width: 100%;
    max-width: 350px;
  }
}

/* --- Common Section Styles --- */
.section {
  padding: 6rem 0;
  position: relative;
}

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

.text-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

/* --- Bento Grid (Solutions) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* 2 ряди */
  gap: 1.5rem;
}

.bento-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.bento-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

/* Grid Layout Logic */
.bento-item--large {
  grid-column: span 1;
  grid-row: span 2;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.01)
  );
}

.bento-item--wide {
  grid-column: span 2;
  display: flex;
  align-items: center;
}

.bento-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-secondary);
}

.bento-item h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.bento-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-tertiary);
  font-weight: 600;
}

.link-arrow i {
  width: 18px;
  height: 18px;
}

.bento-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 2rem;
}

.btn--sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- Technology Section --- */
.tech-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.tech-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 400px;
  position: relative;
}

.tech-circle {
  width: 250px;
  height: 250px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: rotate 20s linear infinite;
}

.tech-inner-circle {
  width: 100px;
  height: 100px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--accent-glow);
  animation: rotate 20s linear infinite reverse; /* Counter rotate icons to keep them upright if needed, or just visual effect */
  z-index: 2;
}

.tech-inner-circle i {
  width: 40px;
  height: 40px;
  color: #fff;
}

.orbit-item {
  position: absolute;
  width: 50px;
  height: 50px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

.item-1 {
  top: -25px;
  left: 50%;
  transform: translateX(-50%);
}
.item-2 {
  bottom: 20px;
  right: -10px;
}
.item-3 {
  bottom: 20px;
  left: -10px;
}

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

.tech-steps {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step-num {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.1);
}

.step-text h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

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

/* --- FAQ Section --- */
.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.faq-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.faq-icon {
  transition: transform 0.3s ease;
  color: var(--accent-secondary);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
  color: var(--text-muted);
}

.faq-content p {
  padding-bottom: 1.5rem;
  line-height: 1.6;
}

.faq-item.active .faq-trigger .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-content {
  max-height: 200px; /* Достатньо для тексту */
  transition: max-height 0.3s cubic-bezier(1, 0, 1, 0);
}

/* --- Mobile Adaptation for Sections --- */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-item--large,
  .bento-item--wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  .bento-flex {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tech-steps {
    text-align: left;
  }

  .tech-visual {
    height: 300px;
  }
}

/* --- Contact Section --- */
.contact-wrapper {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.contact-form {
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  margin-left: 0.5rem;
}

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1rem 1rem 1rem 3rem; /* place for icon */
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--accent-secondary);
}

/* Error States */
.error-msg {
  display: none;
  color: #ff4d4f;
  font-size: 0.8rem;
  margin-top: 0.4rem;
  margin-left: 0.5rem;
}

.form-group.error .form-input {
  border-color: #ff4d4f;
}

.form-group.error .error-msg {
  display: block;
}

/* --- Custom Captcha --- */
.custom-captcha {
  background: #f9f9f9; /* Light bg like real captcha */
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  max-width: 300px;
  margin-bottom: 0.5rem;
  cursor: pointer;
  user-select: none;
}

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

/* Checkmark logic for Captcha */
.custom-captcha.checked .captcha-checkbox {
  border-color: transparent;
}

.custom-captcha.checked .captcha-checkbox::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 2px;
  width: 6px;
  height: 14px;
  border: solid #0f9d58; /* Google green */
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

.captcha-text {
  color: #333;
  font-size: 0.9rem;
  font-weight: 500;
  flex-grow: 1;
}

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

/* --- Terms Checkbox --- */
.custom-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox-container input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s;
  margin-top: 2px;
}

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

.custom-checkbox-container input:checked ~ .checkmark::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

.btn--full {
  width: 100%;
  margin-top: 1rem;
}

/* --- Success Message Overlay --- */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.success-message.visible {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #00ff9d;
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(0, 255, 157, 0.4);
}

.success-icon i {
  width: 40px;
  height: 40px;
}

.success-message h4 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

/* --- Cookie Popup --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  width: 90%;
  max-width: 600px;
  background: rgba(20, 20, 20, 0.8);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 9999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cookie-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

.cookie-popup p {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0;
}

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

.btn--cookie {
  background: #fff;
  color: #000;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .cookie-popup {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn--cookie {
    align-self: flex-end;
  }
}

/* --- Text Pages (Privacy, Terms, etc.) --- */
.pages {
  padding: 120px 0 6rem; /* Відступ зверху під хедер */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Вужчий контейнер для читабельності тексту */
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(10px);
}

.pages h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pages h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-secondary);
}

.pages p {
  color: var(--text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.7;
  font-size: 1.05rem;
}

.pages ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.pages li {
  margin-bottom: 0.5rem;
  padding-left: 0.5rem;
}

.pages li::marker {
  color: var(--accent-tertiary);
}

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

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

/* Mobile fix for pages */
@media (max-width: 768px) {
  .pages .container {
    padding: 1.5rem;
  }
  .pages h1 {
    font-size: 1.8rem;
  }
}
