/* Переменные и сброс */
:root {
  --primary: #4f46e5;
  --secondary: #10b981;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --glass: rgba(255, 255, 255, 0.03);
  --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--dark);
  color: var(--light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Aurora Background Effect */
body::before {
  content: "";
  position: fixed;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(79, 70, 229, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(16, 185, 129, 0.1) 0%,
      transparent 40%
    );
  z-index: -1;
  pointer-events: none;
}

/* Header */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--light);
}

.logo__text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 30px;
  align-items: center;
}

.nav__link {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

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

.nav__link--cta {
  background: var(--primary);
  color: white;
  padding: 10px 24px;
  border-radius: 12px;
}

.nav__link--cta:hover {
  background: #4338ca;
  transform: translateY(-2px);
  color: white;
}

/* Burger */
.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--light);
  transition: var(--transition);
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__title {
  font-family: "Syne", sans-serif;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer__links,
.footer__contact {
  list-style: none;
}

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

.footer__links a,
.footer__contact a {
  color: var(--gray);
  text-decoration: none;
  transition: var(--transition);
}

.footer__links a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

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

/* Адаптивність */
@media (max-width: 992px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Hero & Bento Grid */
.hero {
  padding: 140px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento-item {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 30px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition: var(--transition);
}

.bento-item:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Специфические размеры блоков */
.bento-item--main {
  grid-column: span 3;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bento-item--geo,
.bento-item--speed {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bento-item--start {
  grid-column: span 2;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1) 0%,
    rgba(16, 185, 129, 0.1) 100%
  );
}

/* Типографика Hero */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(79, 70, 229, 0.2);
  color: #a5b4fc;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
}

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

/* Кнопки */
.hero__actions {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 16px 32px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-block;
}

.btn--primary {
  background: var(--primary);
  color: white;
}

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

.btn--primary:hover {
  transform: scale(1.05);
  background: #5a52ff;
}
.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.bento-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  margin-bottom: 15px;
}

/* Анимация появления */
.animate-up {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.animate-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность Bento */
@media (max-width: 992px) {
  .hero__bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-item--main {
    grid-column: span 2;
    padding: 40px;
  }
}

@media (max-width: 576px) {
  .hero__bento {
    grid-template-columns: 1fr;
  }
  .bento-item--main,
  .bento-item--start,
  .bento-item--geo,
  .bento-item--speed {
    grid-column: span 1;
  }
}

/* Ecosystem Section */
.ecosystem {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-title {
  font-family: "Syne", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 15px;
}

.section-desc {
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

.ecosystem__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 20px;
}

/* Модификаторы Bento для Экосистемы */
.bento-item--large {
  grid-column: span 2;
  grid-row: span 1;
  display: flex;
  justify-content: space-between;
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.15) 0%,
    rgba(15, 23, 42, 0.5) 100%
  );
}

.bento-item--wide {
  grid-column: span 3;
  grid-row: span 0.5; /* Компактная широкая плашка */
  height: auto;
  padding: 40px;
}

.bento-tag {
  font-size: 0.7rem;
  color: var(--secondary);
  font-weight: 700;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.bento-icon-box {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.big-icon {
  width: 120px;
  height: 120px;
  opacity: 0.1;
  position: absolute;
  right: -20px;
  bottom: -20px;
  transform: rotate(-15deg);
}

.link-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--light);
  text-decoration: none;
  margin-top: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.link-arrow:hover {
  gap: 15px;
  color: var(--secondary);
}

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

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--secondary);
  border-radius: 50%;
  margin-right: 8px;
  box-shadow: 0 0 10px var(--secondary);
  animation: pulse 2s infinite;
}

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

/* Адаптивность для Экосистемы */
@media (max-width: 992px) {
  .ecosystem__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .bento-item--large,
  .bento-item--wide {
    grid-column: span 2;
  }
}

@media (max-width: 576px) {
  .ecosystem__grid {
    grid-template-columns: 1fr;
  }
  .bento-item--large,
  .bento-item--wide {
    grid-column: span 1;
  }
  .bento-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}

/* Learning Section */
.learning {
  padding: 100px 0;
  background: radial-gradient(
    circle at bottom left,
    rgba(16, 185, 129, 0.05),
    transparent 40%
  );
}

.learning__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-item--step {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
}

.step-number {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  opacity: 0.1;
  line-height: 1;
  margin-bottom: 20px;
}

.bento-item--highlight {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.2) 0%,
    rgba(15, 23, 42, 0.1) 100%
  );
  border-color: rgba(79, 70, 229, 0.3);
}

.bento-item--result {
  grid-column: span 3;
  background: var(--glass);
  display: flex;
  align-items: center;
  padding: 60px;
}

.result-content {
  max-width: 700px;
}

.btn-text {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
  margin-top: auto;
  transition: var(--transition);
}

.btn-text:hover {
  gap: 10px;
}

.stats-grid {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.stat-value {
  display: block;
  font-family: "Syne", sans-serif;
  font-size: 2rem;
  color: var(--light);
}

.stat-label {
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.decor-icon {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 80px;
  height: 80px;
  opacity: 0.05;
  transform: rotate(15deg);
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  align-self: flex-start;
}

/* Адаптивность */
@media (max-width: 992px) {
  .learning__grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-item--result {
    grid-column: span 2;
    padding: 40px;
  }
}

@media (max-width: 768px) {
  .learning__grid {
    grid-template-columns: 1fr;
  }
  .bento-item--result {
    grid-column: span 1;
  }
  .stats-grid {
    flex-direction: column;
    gap: 20px;
  }
}

/* Tech Section */
.tech {
  padding: 100px 0;
  position: relative;
}

.tech__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-item--tech-main {
  grid-column: span 2;
  grid-row: span 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: linear-gradient(
    135deg,
    rgba(16, 185, 129, 0.05) 0%,
    rgba(79, 70, 229, 0.1) 100%
  );
  overflow: hidden;
}

.tech-list {
  list-style: none;
  margin-top: 25px;
}

.tech-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--light);
}

.tech-list i {
  color: var(--secondary);
  width: 18px;
}

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

/* Анимированная сфера (Инновация) */
.tech-orb {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(30px);
  animation: pulseOrb 4s infinite alternate;
}

@keyframes pulseOrb {
  from {
    transform: scale(0.8);
    opacity: 0.4;
  }
  to {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.bento-item--info-bar {
  grid-column: span 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 50px;
  background: rgba(255, 255, 255, 0.02);
}

.info-bar-content {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--gray);
  font-size: 0.95rem;
}

.info-bar-content i {
  color: var(--primary);
}

/* Адаптивность */
@media (max-width: 992px) {
  .bento-item--tech-main {
    grid-template-columns: 1fr;
    grid-column: span 2;
  }
  .tech-visual {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .tech__grid {
    grid-template-columns: 1fr;
  }
  .bento-item--tech-main,
  .bento-item--info-bar {
    grid-column: span 1;
  }
  .bento-item--info-bar {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* FAQ Section */
.faq {
  padding: 100px 0;
}

.faq__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-item--faq-main {
  grid-column: span 2;
  grid-row: span 2;
  padding: 40px;
}

.accordion {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.accordion__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.accordion__header {
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--light);
  font-family: "Syne", sans-serif;
  font-size: 1.1rem;
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.accordion__header:hover {
  color: var(--secondary);
}

.accordion__header i {
  transition: transform 0.3s ease;
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
  color: var(--gray);
  font-size: 0.95rem;
}

.accordion__item.active .accordion__content {
  max-height: 200px;
  padding-bottom: 20px;
}

.accordion__item.active .accordion__header i {
  transform: rotate(45deg);
  color: var(--primary);
}

.bento-item--cta-side {
  background: linear-gradient(
    135deg,
    rgba(79, 70, 229, 0.1) 0%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Адаптивність */
@media (max-width: 992px) {
  .faq__grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-item--faq-main {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .faq__grid {
    grid-template-columns: 1fr;
  }
  .bento-item--faq-main {
    grid-column: span 1;
  }
}

/* Contact & Form */
.contact {
  padding: 100px 0;
}
.contact__bento {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}

.bento-item--form {
  background: #1e293b;
  padding: 50px;
}
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__input {
  width: 100%;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  outline: none;
  transition: var(--transition);
}
.form__input:focus {
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

/* Custom Checkbox / Captcha */
.checkbox-container {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--gray);
}
.checkbox-container input {
  display: none;
}
.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary);
  border-radius: 4px;
  position: relative;
}
.checkbox-container input:checked + .checkmark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.captcha-box {
  background: rgba(0, 0, 0, 0.2);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn--full {
  width: 100%;
  justify-content: center;
}

.form-message {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary);
  padding: 15px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 10px;
  margin-top: 10px;
}
.hidden {
  display: none !important;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 400px;
  background: #1e293b;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--primary);
  z-index: 2000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Стилі для сторінок політик (Етап 5.2) */
.pages {
  padding: 160px 0 100px;
}
.pages h1 {
  font-family: "Syne", sans-serif;
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--primary);
}
.pages h2 {
  margin: 30px 0 15px;
  color: var(--light);
}
.pages p {
  margin-bottom: 15px;
  color: var(--gray);
  font-size: 1.1rem;
}
.pages ul {
  margin-bottom: 20px;
  padding-left: 20px;
  color: var(--gray);
}
.pages li {
  margin-bottom: 10px;
}
.pages strong {
  color: var(--light);
}
.pages a {
  color: var(--secondary);
  text-decoration: none;
}

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