:root {
  --bg-dark: #0a0a0c;
  --text-light: #f4f4f9;
  --accent-primary: #7c4dff;
  --accent-secondary: #00e5ff;
  --glass: rgba(255, 255, 255, 0.05);
  --font-main: "Plus Jakarta Sans", sans-serif;
  --font-heading: "Outfit", sans-serif;
  --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 {
  background-color: var(--bg-dark);
  color: var(--text-light);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Эффект шума и градиента на фоне */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(124, 77, 255, 0.15),
      transparent 40%
    ),
    radial-gradient(circle at 80% 70%, rgba(0, 229, 255, 0.1), transparent 40%);
  z-index: -2;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("https://www.transparenttextures.com/patterns/stardust.png");
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

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

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}

.header--scrolled {
  background: rgba(10, 10, 12, 0.8);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--glass);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-light);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
}

.header__logo-img {
  width: 35px;
  height: 35px;
}

.header__menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 2.5rem;
}

.header__menu-link {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 400;
  font-size: 0.95rem;
  opacity: 0.8;
  transition: var(--transition);
}

.header__menu-link:hover {
  opacity: 1;
  color: var(--accent-secondary);
}

.header__cta {
  background: var(--accent-primary);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  clip-path: polygon(10% 0%, 100% 0%, 90% 100%, 0% 100%);
  transition: var(--transition);
}

.header__cta:hover {
  clip-path: polygon(0% 0%, 90% 0%, 100% 100%, 10% 100%);
  background: var(--accent-secondary);
}

/* FOOTER */
.footer {
  background: #050507;
  padding: 8rem 0 2rem;
  border-top: 1px solid var(--glass);
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: "";
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: var(--accent-primary);
  filter: blur(150px);
  opacity: 0.15;
}

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

.footer__tagline {
  margin-top: 1.5rem;
  opacity: 0.6;
}

.footer__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--accent-secondary);
}

.footer__list {
  list-style: none;
}

.footer__list li {
  margin-bottom: 0.8rem;
}

.footer__list a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.6;
  transition: var(--transition);
}

.footer__list a:hover {
  opacity: 1;
  padding-left: 5px;
}

.footer__contact-info {
  list-style: none;
}

.footer__contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.footer__contact-info svg {
  width: 18px;
  color: var(--accent-primary);
}

.footer__bottom {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--glass);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.5;
}

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

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

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

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

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

.hero__canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

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

.hero__badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  backdrop-filter: blur(5px);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 6rem); /* Гігантська типографіка */
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(
    90deg,
    var(--accent-secondary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__description {
  max-width: 600px;
  font-size: 1.2rem;
  opacity: 0.8;
  margin-bottom: 3rem;
}

.hero__actions {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--accent-primary);
  color: white;
  clip-path: polygon(5% 0%, 100% 0%, 95% 100%, 0% 100%);
}

.btn--primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.4);
  clip-path: polygon(0% 0%, 95% 0%, 100% 100%, 5% 100%);
}

.btn--secondary {
  background: var(--glass);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-secondary);
}

.hero__shape-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  transform: rotate(180deg);
}

.hero__shape-divider svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 150px;
}

/* ARCHITECTURE SECTION */
.arch {
  padding: 100px 0;
  position: relative;
}

.arch__header {
  text-align: center;
  margin-bottom: 4rem;
}

.arch__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.arch__subtitle {
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.7;
}

.arch__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.arch__card {
  position: relative;
  background: var(--glass);
  padding: 3rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: var(--transition);
}

.arch__card--large {
  grid-row: span 2;
  display: flex;
  align-items: center;
}

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

.arch__icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  clip-path: polygon(20% 0%, 100% 0%, 80% 100%, 0% 100%);
}

.arch__card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.arch__card p {
  opacity: 0.8;
  line-height: 1.8;
}

/* Декоративные капли внутри карточек */
.arch__blob {
  position: absolute;
  width: 250px;
  height: 250px;
  filter: blur(60px);
  opacity: 0.1;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}

.arch__blob--1 {
  top: -50px;
  right: -50px;
  background: var(--accent-primary);
}
.arch__blob--2 {
  bottom: -50px;
  left: -50px;
  background: var(--accent-secondary);
}
.arch__blob--3 {
  top: 20%;
  right: 10%;
  background: var(--accent-primary);
}

.arch__card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
}

.arch__card:hover .arch__blob {
  opacity: 0.3;
  transform: scale(1.2);
}

/* Responsive */
@media (max-width: 992px) {
  .arch__grid {
    grid-template-columns: 1fr;
  }
  .arch__card--large {
    grid-row: auto;
  }
}

/* NEURAL NODES SECTION */
.nodes {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

.nodes__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
}

.nodes__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 2rem;
}

.nodes__text {
  font-size: 1.15rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

.nodes__capabilities {
  list-style: none;
  margin-bottom: 3rem;
}

.nodes__item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.nodes__item svg {
  color: var(--accent-secondary);
}

/* VISUAL ORB */
.nodes__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nodes__orb {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    var(--accent-primary) 0%,
    transparent 70%
  );
  border-radius: 50%;
  position: relative;
  filter: drop-shadow(0 0 50px var(--accent-primary));
  animation: orbFloat 6s ease-in-out infinite;
}

.nodes__orb-inner {
  position: absolute;
  inset: 20px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; /* Organic Shape */
  animation: morphing 8s ease-in-out infinite;
}

.nodes__point {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--text-light);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--text-light);
}

.nodes__point::after {
  content: attr(data-label);
  position: absolute;
  left: 20px;
  top: -5px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  opacity: 0.6;
}

.nodes__point--1 {
  top: 20%;
  left: 20%;
}
.nodes__point--2 {
  top: 50%;
  right: 10%;
}
.nodes__point--3 {
  bottom: 20%;
  left: 40%;
}

.nodes__glass-card {
  position: absolute;
  bottom: -20px;
  right: 0;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass);
  border-radius: 20px;
  max-width: 250px;
  font-size: 0.9rem;
  transform: rotate(5deg);
}

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

@keyframes morphing {
  0% {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  }
  50% {
    border-radius: 50% 50% 33% 67% / 63% 31% 69% 37%;
  }
  100% {
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  }
}

@media (max-width: 992px) {
  .nodes__container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .nodes__visual {
    order: -1;
  }
  .nodes__orb {
    width: 300px;
    height: 300px;
  }
}

/* AUTOMATION SECTION */
.auto {
  padding: 100px 0;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 229, 255, 0.03),
    transparent
  );
}

.auto__header {
  text-align: center;
  margin-bottom: 5rem;
}

.auto__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.auto__flow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  position: relative;
  margin-bottom: 5rem;
}

/* Линия-связка (видна на десктопе) */
.auto__flow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--glass), transparent);
  z-index: 1;
}

.auto__step {
  flex: 1;
  position: relative;
  z-index: 2;
  text-align: center;
}

.auto__number {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  opacity: 0.1;
  margin-bottom: -2rem;
  transition: var(--transition);
}

.auto__box {
  background: var(--glass);
  padding: 2.5rem 1.5rem;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; /* Organic shape */
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.auto__box--alt {
  border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
  margin-top: 2rem;
}

.auto__box i {
  color: var(--accent-secondary);
  margin-bottom: 1rem;
  width: 40px;
  height: 40px;
}

.auto__box h4 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.auto__box p {
  font-size: 0.95rem;
  opacity: 0.7;
}

.auto__step:hover .auto__box {
  transform: scale(1.05);
  border-color: var(--accent-primary);
  border-radius: 50%; /* Сглаживание при наведении */
}

.auto__step:hover .auto__number {
  opacity: 0.3;
  color: var(--accent-primary);
}

.auto__cta-block {
  text-align: center;
  background: var(--glass);
  padding: 3rem;
  border-radius: 50px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.auto__cta-block p {
  margin-bottom: 2rem;
  font-style: italic;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .auto__flow {
    flex-direction: column;
    align-items: center;
  }
  .auto__flow::before {
    display: none;
  }
  .auto__box--alt {
    margin-top: 0;
  }
  .auto__step {
    margin-bottom: 3rem;
  }
}

/* AI LAB SECTION */
.lab {
  padding: 100px 0;
  position: relative;
}

.lab__header {
  margin-bottom: 4rem;
}

.lab__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.lab__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
}

.lab__card {
  background: var(--glass);
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.lab__card:hover {
  transform: scale(1.02) translateY(-10px);
  border-color: var(--accent-secondary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lab__img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0% 100%); /* Organic cut */
}

.lab__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.lab__card:hover .lab__img {
  transform: scale(1.1);
}

.lab__tag {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--accent-primary);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.lab__info {
  padding: 2rem;
}

.lab__card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.lab__excerpt {
  opacity: 0.6;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.lab__link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-secondary);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.lab__link:hover {
  gap: 10px;
}

/* CONTACT SECTION */
.contact {
  padding: 120px 0;
  background: linear-gradient(180deg, transparent, rgba(124, 77, 255, 0.05));
}

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

.contact__title {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.contact__form {
  margin-top: 3rem;
  text-align: left;
  background: var(--glass);
  padding: 3rem;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form__group {
  margin-bottom: 1.5rem;
}

.form__input {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: var(--text-light);
  font-family: var(--font-main);
  transition: var(--transition);
}

.form__input:focus {
  outline: none;
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.07);
}

/* Captcha & Checkboxes */
.form__captcha,
.form__policy {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
}

.captcha__label,
.policy__label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.8;
}

.captcha__checkbox,
.policy__checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-primary);
}

.form__submit {
  width: 100%;
  justify-content: center;
  margin-top: 1rem;
}

.form__status {
  margin-top: 2rem;
  padding: 1rem;
  border-radius: 15px;
  display: none; /* Hidden by default */
}

.form__status.success {
  display: block;
  background: rgba(0, 255, 127, 0.1);
  color: #00ff7f;
  border: 1px solid #00ff7f;
}

/* Cookie Pop-up */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px;
  max-width: 500px;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass);
  padding: 1.5rem;
  border-radius: 25px;
  z-index: 2000;
  transform: translateY(200%);
  transition: var(--transition);
}

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

.cookie-popup__content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
}

.cookie-popup p {
  font-size: 0.85rem;
  opacity: 0.8;
}
.btn--small {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

/* Styles for Policy Pages (privacy.html etc.) */
.pages {
  padding: 150px 0 100px;
  min-height: 80vh;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  margin-bottom: 2rem;
  color: var(--accent-secondary);
}
.pages h2 {
  font-family: var(--font-heading);
  margin: 2rem 0 1rem;
}
.pages p {
  margin-bottom: 1.2rem;
  opacity: 0.8;
}
.pages ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}
.pages li {
  margin-bottom: 0.5rem;
  opacity: 0.8;
}
.pages a {
  color: var(--accent-primary);
  text-decoration: none;
}
