/* --- Variables & Setup --- */
:root {
  /* Palette: Airy Pastel + Deep Trust Blue */
  --color-bg: #f8fafc; /* Дуже світлий сіро-блакитний */
  --color-surface: #ffffff; /* Чистий білий */
  --color-primary: #3b82f6; /* Яскравий, але м'який синій */
  --color-primary-dark: #1d4ed8;
  --color-secondary: #cbd5e1; /* Пастельний сірий для ліній */
  --color-accent: #10b981; /* М'який зелений (успіх/ріст) */
  --color-text-main: #1e293b; /* Темно-сірий, не чорний */
  --color-text-muted: #64748b;

  /* Typography */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Plus Jakarta Sans", sans-serif;

  /* Geometry: Hyper-rounded */
  --radius-sm: 12px;
  --radius-md: 24px;
  --radius-lg: 40px; /* Гіпер-округлення */
  --radius-full: 9999px;

  /* Shadows: Soft & Airy */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05),
    0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-floating: 0 20px 25px -5px rgba(59, 130, 246, 0.1),
    0 10px 10px -5px rgba(59, 130, 246, 0.04);

  /* Layout */
  --container-width: 1200px;
  --header-height: 90px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: --font-body, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-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 Helpers --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

/* --- Buttons (Global) --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-full); /* Capsule shape */
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn--header {
  background-color: var(--color-text-main);
  color: var(--color-surface);
}

.btn--header:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

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

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1002;
}

.logo__img {
  height: 40px;
  width: auto;
}

.logo__text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--color-text-main);
}

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

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

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

/* Hover effect: Scale & Color */
.nav__link::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: var(--color-primary);
  border-radius: 50%;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: translateX(-50%) scale(1);
}

/* --- Burger Menu --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
}

.burger__line {
  width: 100%;
  height: 2px;
  background-color: var(--color-text-main);
  border-radius: 4px;
  transition: all 0.3s ease;
}

/* Mobile styles */
.mobile-only {
  display: none;
}

@media (max-width: 992px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-surface);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    z-index: 1001;
  }

  .nav.active {
    transform: translateY(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 700;
  }

  .burger {
    display: flex;
  }

  .desktop-only {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
  }

  /* Burger Animation */
  body.menu-open .burger__line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  body.menu-open .burger__line:nth-child(2) {
    opacity: 0;
  }
  body.menu-open .burger__line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }
}

/* --- Main Spacer --- */
.main {
  padding-top: var(--header-height); /* Prevent content overlap */
  min-height: 80vh; /* Temporary visual aid */
}

/* --- Footer --- */
.footer {
  background-color: var(--color-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  padding: 80px 0 30px;
  margin-top: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

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

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

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

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

.footer__link {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

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

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

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

.footer__bottom {
  border-top: 1px solid var(--color-secondary);
  padding-top: 30px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

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

@media (max-width: 600px) {
  .footer__container {
    grid-template-columns: 1fr;
  }
  .footer {
    text-align: center;
    padding-top: 60px;
  }
  .footer__contact-item {
    justify-content: center;
  }
  .logo {
    justify-content: center;
  }
  .footer__desc {
    margin: 20px auto;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 60px 0 100px; /* Зверху менше, бо хедер фіксований */
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Decorative blurry background blob */
.hero__bg-shape {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(248, 250, 252, 0) 70%
  );
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Content Side */
.hero__content {
  max-width: 600px;
  /* Animation: Fade In Up */
  animation: fadeInUp 1s ease-out forwards;
  opacity: 0;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(59, 130, 246, 0.1);
  color: var(--color-primary-dark);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
  animation: pulse 2s infinite;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem); /* Responsive giant font */
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.text-highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

/* Підкреслення для акценту */
.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: rgba(59, 130, 246, 0.15);
  z-index: -1;
  border-radius: 4px;
  transform: skewX(-10deg);
}

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

.hero__desc strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* Custom Button Style for Hero */
.btn--primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-floating);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(29, 78, 216, 0.3);
}

.btn--lg {
  padding: 18px 42px;
  font-size: 1.125rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn--primary:hover .btn-icon {
  transform: translateX(5px);
}

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

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text-main);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Visual Side (Tilt Container) */
.hero__visual {
  perspective: 1000px; /* Важливо для 3D */
  display: flex;
  justify-content: center;
  position: relative;
}

.hero__card {
  position: relative;
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-lg);
  overflow: visible; /* Дозволяємо декоративним елементам виходити за межі */
  transition: transform 0.1s ease-out; /* Плавність для JS */
  transform-style: preserve-3d;
}

.hero__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-floating);
  transform: translateZ(20px); /* Висуваємо картинку трохи вперед */
  border: 8px solid rgba(255, 255, 255, 0.6);
}

/* Floating Decorative Cards */
.hero__float-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  transform: translateZ(60px); /* Сильніше висуваємо вперед для 3D ефекту */
  border: 1px solid rgba(255, 255, 255, 1);
}

.hero__float-card--1 {
  top: 10%;
  left: -30px;
  animation: float 6s ease-in-out infinite;
}

.hero__float-card--2 {
  bottom: 15%;
  right: -20px;
  animation: float 5s ease-in-out infinite reverse;
}

.float-icon {
  color: var(--color-accent);
  width: 20px;
  height: 20px;
}

/* Animations Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

/* Responsive */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    margin: 0 auto;
    padding-top: 40px;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    max-width: 400px;
    margin: 0 auto;
  }

  /* Вимикаємо складний tilt на планшетах для продуктивності */
  .hero__card {
    transform: none !important;
  }
}

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

.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;
}

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

/* --- Bento Grid Layout --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto); /* Auto rows */
  gap: 24px;
}

/* Base Card Style */
.bento-card {
  border-radius: 32px; /* Hyper-rounded */
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-floating);
}

/* Grid Spans */
.bento-card--large {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-card--tall {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-card--wide {
  grid-column: span 2;
  grid-row: span 1;
}

/* Background Variants */
.bg-soft-blue {
  background-color: #eff6ff;
}
.bg-soft-gray {
  background-color: #f1f5f9;
}
.bg-white {
  background-color: var(--color-surface);
  box-shadow: var(--shadow-sm);
}
.bg-dark {
  background-color: var(--color-text-main);
  color: var(--color-surface);
}
.bg-dark h3,
.bg-dark p {
  color: white;
}

.border-dashed {
  border: 2px dashed var(--color-secondary);
  background-color: transparent;
}

/* Card Content Styling */
.bento-content {
  position: relative;
  z-index: 2;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  margin-top: 16px;
}

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

.bg-dark p {
  opacity: 0.8;
  color: white;
}

/* Icons */
.icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.icon-wrapper i {
  width: 24px;
  height: 24px;
}

.icon-wrapper--blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary);
}
.icon-wrapper--green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
}
.icon-wrapper--orange {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}
.icon-wrapper--purple {
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
}

/* Images & Decor */
.bento-img {
  width: 200px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.bento-img--corner {
  position: absolute;
  bottom: -20px;
  right: -20px;
  transform: rotate(-5deg);
  transition: transform 0.3s ease;
}

.bento-card:hover .bento-img--corner {
  transform: rotate(0deg) translate(-10px, -10px);
}

.decor-circle {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  opacity: 0.2;
  border-radius: 50%;
}

/* Button inside card */
.btn--white {
  background-color: white;
  color: var(--color-text-main);
  padding: 12px 24px;
  margin-top: 20px;
  display: inline-flex;
}
.btn--white:hover {
  background-color: var(--color-primary);
  color: white;
}

.centered {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* Responsive */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card--tall {
    grid-column: span 1;
    grid-row: span 1;
  }
  .bento-card--large,
  .bento-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--large,
  .bento-card--wide,
  .bento-card--tall {
    grid-column: span 1;
    grid-row: auto;
  }
  .section-title {
    font-size: 2rem;
  }
}

/* --- Innovations Section --- */
.innovations {
  background: linear-gradient(180deg, var(--color-bg) 0%, #eff6ff 100%);
  overflow: hidden;
}

.innovations__header {
  text-align: left;
  margin-bottom: 50px;
  max-width: 600px;
}

/* Scroll Container Styles */
.steps-wrapper {
  width: 100%;
  position: relative;
  /* Negative margin to allow full-width scroll on mobile while keeping container padding */
  margin-right: -20px;
  padding-bottom: 40px; /* Space for shadow */
}

.steps-track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 10px 5px 30px 5px; /* Padding for hover effects */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox hide scrollbar */
}

.steps-track::-webkit-scrollbar {
  display: none; /* Chrome/Safari hide scrollbar */
}

/* Card Styles */
.step-card {
  flex: 0 0 350px; /* Fixed width */
  min-height: 450px;
  background-color: var(--color-surface);
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  scroll-snap-align: start;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.15);
}

/* Distinct Colors for Cards */
.step-card--1 {
  background: linear-gradient(145deg, #ffffff, #f0f9ff);
}
.step-card--2 {
  background: linear-gradient(145deg, #ffffff, #f0fdfa);
}
.step-card--3 {
  background: var(--color-primary);
  color: white;
}

/* Typography & Elements */
.step-number {
  position: absolute;
  top: 20px;
  left: 30px;
  font-size: 8rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.03);
  font-family: var(--font-heading);
  line-height: 1;
  z-index: 1;
}

.step-card--3 .step-number {
  color: rgba(255, 255, 255, 0.1);
}

.step-content {
  position: relative;
  z-index: 2;
}

.step-icon-box {
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.step-card--3 .step-icon-box {
  color: var(--color-primary);
}

.step-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
}

.step-card p {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.step-card--3 p,
.step-card--3 h3 {
  color: white;
}

.step-card--3 p {
  opacity: 0.9;
}

/* Button inside card */
.btn--sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* Spacer to ensure last item can be scrolled to view */
.step-spacer {
  flex: 0 0 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .step-card {
    flex: 0 0 85vw; /* Almost full width on mobile */
    min-height: 400px;
  }
  .innovations__header {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* --- Analytics Section --- */
.analytics {
  background-color: var(--color-bg);
}

.analytics__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* Left Column: Dashboard Card */
.dashboard-card {
  background-color: var(--color-text-main); /* Dark BG */
  color: white;
  border-radius: 40px; /* Hyper-rounded */
  padding: 40px;
  box-shadow: var(--shadow-floating);
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
}

/* Abstract Background decoration inside card */
.dashboard-card::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.4) 0%,
    transparent 70%
  );
  filter: blur(40px);
}

.dashboard-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  position: relative;
  z-index: 2;
}

.dashboard-icon {
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.dashboard-header h3 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 4px;
}

.dashboard-header p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Chart Animation */
.chart-area {
  flex-grow: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(
    180deg,
    var(--color-primary) 0%,
    rgba(59, 130, 246, 0.2) 100%
  );
  border-radius: 50px;
  height: 0; /* Start from 0 for animation */
  animation: growBar 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay);
  position: relative;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.chart-bar:hover,
.chart-bar.active {
  opacity: 1;
  background: linear-gradient(
    180deg,
    var(--color-accent) 0%,
    rgba(16, 185, 129, 0.2) 100%
  );
}

.chart-tooltip {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  color: var(--color-text-main);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease 1.5s forwards;
  opacity: 0;
}

.chart-tooltip::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background-color: white;
}

.dashboard-footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.1rem;
  line-height: 1.6;
}

.dashboard-footer strong {
  color: var(--color-accent);
}

/* Right Column: Blog List */
.badge {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-primary);
  background-color: rgba(59, 130, 246, 0.1);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  display: inline-block;
}

.content-header {
  margin-bottom: 40px;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-item {
  padding: 30px 0;
  border-bottom: 1px solid var(--color-secondary);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.blog-item:first-child {
  padding-top: 0;
}

.blog-item:hover {
  transform: translateX(10px);
}

.blog-item:hover .blog-title {
  color: var(--color-primary);
}

.blog-item:hover .blog-link i {
  transform: translate(3px, -3px);
}

.blog-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.blog-title {
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: color 0.3s ease;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--color-text-main);
  font-size: 0.95rem;
}

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

.cta-box {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-box p {
  color: var(--color-text-muted);
  max-width: 200px;
  font-size: 0.9rem;
}

/* Animations */
@keyframes growBar {
  from {
    height: 0;
  }
  to {
    height: var(--height);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
  }
}

/* Responsive */
@media (max-width: 992px) {
  .analytics__container {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .dashboard-card {
    min-height: 400px;
  }
}
.contact {
  background-color: #eff6ff; /* Soft Blue bg */
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

.contact__bg-circle {
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.contact__container {
  display: flex;
  justify-content: center;
}

.contact__card {
  background-color: var(--color-surface);
  border-radius: 40px; /* Hyper-rounded */
  padding: 50px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 2;
}

.contact__header {
  text-align: center;
  margin-bottom: 40px;
}

/* Form Styles */
.form-group {
  margin-bottom: 24px;
  position: relative;
}

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

.input-wrapper {
  position: relative;
}

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

.form-input {
  width: 100%;
  padding: 16px 20px 16px 50px; /* Space for icon */
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  background-color: #f1f5f9;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus {
  background-color: white;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-input:focus + .input-icon, /* If icon was after input (not here) */
.input-wrapper:focus-within .input-icon {
  color: var(--color-primary);
}

.form-group.error .form-input {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-group.error .input-icon {
  color: #ef4444;
}

.error-text {
  display: none;
  color: #ef4444;
  font-size: 0.8rem;
  margin-top: 6px;
  margin-left: 10px;
  animation: slideDown 0.3s ease forwards;
}

.form-group.error .error-text,
.form-checkbox-group.error .error-text,
.captcha-box.error .error-text {
  display: block;
}

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

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

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

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid var(--color-secondary);
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.checkmark-icon {
  width: 16px;
  height: 16px;
  color: white;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}

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

.custom-checkbox input:checked + .checkmark .checkmark-icon {
  opacity: 1;
  transform: scale(1);
}

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

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

.captcha-box {
  background-color: #f8fafc;
  border: 1px solid var(--color-secondary);
  border-radius: 12px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.captcha-logo {
  width: 40px;
  height: auto;
  opacity: 0.7;
}

.btn--full {
  width: 100%;
}

.success-message {
  display: none;
  text-align: center;
  padding: 20px;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

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

.success-message h3 {
  font-size: 1.75rem;
  margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 600px) {
  .contact__card {
    padding: 30px 20px;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  width: 90%;
  max-width: 600px;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 30px;
  border-radius: var(--radius-full); /* Capsule shape */
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 9999;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.cookie-content p {
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin: 0;
}

.cookie-content a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: 600;
}

@media (max-width: 600px) {
  .cookie-banner {
    flex-direction: column;
    border-radius: 24px;
    text-align: center;
    bottom: 20px;
  }
}

/* --- Policy Pages Styling (Privacy, Terms, etc.) --- */
/* Цей блок стилів автоматично застосується до privacy.html, terms.html і т.д. */

.pages {
  padding: 60px 0 100px;
  min-height: 80vh;
}

.pages h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 40px;
  margin-top: 40px;
  text-align: center;
  color: var(--color-text-main);
}

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

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

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

.pages li {
  margin-bottom: 10px;
  line-height: 1.6;
}

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

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

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