/* --- VARIABLES --- */
:root {
  --color-bg: #0b0b0e;
  --color-surface: #16161c;
  --color-surface-hover: #1f1f26;
  --color-text-main: #e2e2e2;
  --color-text-muted: #9ca3af;

  --color-primary: #6366f1; /* Indigo Neon */
  --color-primary-hover: #4f46e5;
  --color-accent: #a855f7; /* Purple Neon */

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-xl: 40px; /* Hyper-rounded core */

  --shadow-neon: 0 0 20px rgba(99, 102, 241, 0.3);
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

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

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

ul {
  list-style: none;
}
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}
img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- TYPOGRAPHY --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: #fff;
  line-height: 1.2;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  border-radius: 100px; /* Pill shape */
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #fff;
  box-shadow: var(--shadow-neon);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.btn--sm {
  padding: 12px 24px;
  font-size: 0.9rem;
}

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

.header__container {
  background: rgba(22, 22, 28, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 100px; /* Hyper-rounded navigation bar */
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

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

.header__logo-icon {
  width: 32px;
  height: 32px;
  /* Placeholder style for logo until SVG is generated */
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  border-radius: 50%;
}

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.header__nav {
  display: none;
}

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

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

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

.header__link:hover {
  color: #fff;
}

.header__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.header__link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

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

/* Burger Menu */
.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
}

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

.header__burger-line {
  width: 100%;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Menu State */
.body--menu-open .header__nav {
  display: flex;
  position: fixed;
  top: 110px;
  left: 20px;
  right: 20px;
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 999;
}

.body--menu-open .header__menu {
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.body--menu-open .header__link {
  font-size: 1.25rem;
}

/* --- FOOTER --- */
.footer {
  background-color: var(--color-surface);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 80px 0 40px;
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

@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.2fr;
  }
}

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

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

.footer__logo-icon {
  width: 28px;
  height: 28px;
  background: var(--color-text-muted); /* Placeholder */
  border-radius: 50%;
}

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
}

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

.footer__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  width: fit-content;
}

.footer__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

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

.footer__link:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

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

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

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

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

/* Page styles placeholder for Policy pages */
.pages {
  padding: 160px 0 80px;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--color-primary);
}

.pages h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}

.pages p,
.pages li {
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  max-width: 800px;
}

.pages ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 1rem;
}

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

/* --- HERO SECTION --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for fixed header */
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none; /* Let clicks pass through */
}

.hero__container {
  position: relative;
  z-index: 2;
}

.hero__content {
  max-width: 800px;
  margin-top: 40px;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

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

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Typography */
.hero__title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    #fff 50%,
    var(--color-accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

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

/* Buttons */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.btn--lg {
  padding: 16px 32px;
  font-size: 1.1rem;
  border-radius: var(--radius-xl); /* Hyper-rounded */
}

.btn--glass {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 16px 32px;
  font-size: 1.1rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

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

/* Footer Info */
.hero__footer {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .hero__footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    max-width: 650px;
  }
}

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.hero__note i {
  width: 16px;
  height: 16px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.hero__stat-item {
  display: flex;
  flex-direction: column;
}

.hero__stat-item strong {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: #fff;
}

.hero__stat-item span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.hero__stat-divider {
  width: 1px;
  height: 30px;
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.5;
  animation: bounce 2s infinite;
}

.hero__mouse {
  width: 26px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 100px;
  position: relative;
}

.hero__mouse::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 6px;
  background: #fff;
  border-radius: 4px;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* --- SERVICES SECTION --- */
.section-padding {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

/* Grid Layout */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

@media (min-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
    align-items: start; /* Щоб картки не розтягувались, якщо різна висота */
  }
}

/* Service Card Styles */
.service-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px; /* Hyper-rounded forms */
  padding: 40px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-10px);
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Featured Card Accent */
.service-card--featured {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.05);
}

.service-card--featured:hover {
  border-color: var(--color-accent);
  box-shadow: 0 0 50px rgba(168, 85, 247, 0.15);
}

.service-card__badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
}

/* Card Content */
.service-card__icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.1),
    rgba(168, 85, 247, 0.1)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--color-text-main);
  transition: var(--transition);
}

.service-card:hover .service-card__icon-box {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  color: #fff;
  transform: scale(1.1) rotate(5deg);
}

.service-card__icon-box i {
  width: 28px;
  height: 28px;
}

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

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

.service-card__text strong {
  color: var(--color-primary);
}

/* List inside card */
.service-card__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 24px;
}

.service-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

/* --- AI TECH SECTION --- */
.ai-tech {
  position: relative;
  overflow: hidden;
}

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

@media (min-width: 992px) {
  .ai-tech__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
  }
}

/* Left Content */
.ai-tech__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.ai-tech__label i {
  width: 18px;
  height: 18px;
}

.ai-tech__features {
  margin: 40px 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ai-tech__feature-item {
  display: flex;
  gap: 16px;
}

.ai-tech__check {
  width: 32px;
  height: 32px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-tech__check i {
  width: 18px;
  height: 18px;
}

.ai-tech__feature-item h4 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.ai-tech__feature-item p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.ai-tech__feature-item p strong {
  color: #fff;
}

/* Right Visual */
.ai-tech__visual {
  position: relative;
  display: flex;
  justify-content: center;
}

/* Glow Effect behind card */
.ai-tech__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  background: var(--color-primary);
  filter: blur(120px);
  opacity: 0.2;
  z-index: 0;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-glow 4s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% {
    opacity: 0.15;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    opacity: 0.25;
    transform: translate(-50%, -50%) scale(1.1);
  }
}

/* Tech Interface Card */
.tech-card {
  position: relative;
  z-index: 1;
  background: rgba(22, 22, 28, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.5s ease;
}

.tech-card:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.tech-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-card__dots {
  display: flex;
  gap: 6px;
}

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

.tech-card__status {
  font-size: 0.75rem;
  color: #4ade80; /* Green */
  font-family: monospace;
  background: rgba(74, 222, 128, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

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

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

.tech-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  width: 60px;
}

.tech-bar {
  flex-grow: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.tech-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 10px;
}

.tech-code {
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: 12px;
  font-family: "Courier New", monospace;
  font-size: 0.85rem;
  color: #ccc;
  line-height: 1.4;
  margin-top: 10px;
}

.code-c1 {
  color: #c084fc;
} /* purple */
.code-c2 {
  color: #60a5fa;
} /* blue */
.code-c3 {
  color: #f472b6;
} /* pink */
.code-c4 {
  color: #6b7280;
  font-style: italic;
} /* gray comment */
.code-s {
  color: #a3e635;
} /* green string */

.tech-stat-box {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), transparent);
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.tech-big-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

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

/* --- BLOG SECTION --- */
.blog__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

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

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

/* Blog Card */
.blog-card {
  background-color: var(--color-surface);
  border-radius: 32px; /* Hyper-rounded */
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(99, 102, 241, 0.3);
}

/* Image Area */
.blog-card__image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 32px; /* Same rounded logic inside */
  margin: 10px 10px 0 10px; /* Gap for "floating" image look */
}

.blog-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-card:hover .blog-card__img {
  transform: scale(1.1);
}

.blog-card__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(22, 22, 28, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Content Area */
.blog-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.blog-card__meta i {
  width: 14px;
  height: 14px;
  color: var(--color-primary);
}

.blog-card__title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.blog-card__title a {
  color: #fff;
  transition: color 0.3s ease;
}

.blog-card__title a:hover {
  color: var(--color-primary);
}

.blog-card__excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  flex-grow: 1;
}

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

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  transition: gap 0.3s ease;
}

.blog-card__link i {
  width: 16px;
  height: 16px;
}

.blog-card__link:hover {
  gap: 12px;
  color: var(--color-accent);
}

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

@media (min-width: 992px) {
  .faq__wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
  }
}

.faq__header {
  position: sticky;
  top: 120px;
}

.faq__support-box {
  margin-top: 40px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.faq__icon-circle {
  width: 48px;
  height: 48px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.faq__support-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.faq__support-text a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}

/* Accordion Items */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--color-surface);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item.is-active {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(99, 102, 241, 0.3);
}

.faq-item__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: #fff;
  font-family: var(--font-body);
}

.faq-item__question {
  font-size: 1.1rem;
  font-weight: 600;
  padding-right: 20px;
}

.faq-item__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.is-active .faq-item__icon {
  background: var(--color-primary);
  transform: rotate(45deg); /* Plus becomes 'x' style or rotate */
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
}

.faq-item__body {
  padding: 0 24px 24px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

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

/* --- CONTACT SECTION --- */
.contact {
  position: relative;
  /* Optional background gradient spot */
  background: radial-gradient(
    circle at 80% 50%,
    rgba(99, 102, 241, 0.08),
    transparent 50%
  );
}

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

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

/* Info Side */
.contact__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(74, 222, 128, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0);
  }
}

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

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

.contact__detail-item .icon-box {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
}

.contact__detail-item .label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 2px;
}

.contact__detail-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  transition: color 0.3s;
}

.contact__detail-item .value:hover {
  color: var(--color-primary);
}

/* Form Side */
.contact__form-wrapper {
  position: relative;
  perspective: 1000px;
}

.contact__form {
  background: rgba(22, 22, 28, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s;
}

.contact__form-title {
  font-size: 1.5rem;
  margin-bottom: 30px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 14px 16px 14px 48px; /* Padding left for icon */
  color: #fff;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.form-input:focus + .input-icon {
  color: var(--color-primary);
}

.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: 6px;
  margin-left: 10px;
}

/* Checkboxes */
.form-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0 32px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

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

.checkmark {
  position: relative;
  height: 22px;
  width: 22px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  flex-shrink: 0;
  transition: var(--transition);
}

.custom-checkbox:hover input ~ .checkmark {
  border-color: var(--color-primary);
}

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

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

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

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

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

/* Submit Button Full Width */
.btn--full {
  width: 100%;
}

/* Success Message */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(22, 22, 28, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.9);
  transition: var(--transition);
  z-index: 10;
}

.success-message.is-visible {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

.success-message h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
  color: #fff;
}

.success-message p {
  color: var(--color-text-muted);
  margin-bottom: 30px;
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 100%;
  max-width: 400px;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

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

.cookie-popup__content {
  background: rgba(22, 22, 28, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 480px) {
  .cookie-popup__content {
    flex-direction: row;
    align-items: center;
  }
}

.cookie-popup__icon {
  width: 40px;
  height: 40px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cookie-popup__text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

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

/* --- POLICY PAGES STYLING (Refined) --- */
/* Ці стилі застосовуються до privacy.html тощо */
.page-header {
  padding-top: 160px;
  padding-bottom: 60px;
  text-align: center;
  background: radial-gradient(
    circle at 50% 0%,
    rgba(99, 102, 241, 0.1),
    transparent 70%
  );
}

.page-content {
  padding-bottom: 100px;
  max-width: 800px;
  margin: 0 auto;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.pages .last-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 2rem;
}

.pages h2 {
  font-size: 1.8rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  color: #fff;
}

.pages h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #fff;
}

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

.pages ul {
  list-style: none;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
}

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

.pages li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

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

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