:root {
  --bg-dark: #0a0a14;
  --text-main: #ffffff;
  --text-muted: #a0a0b8;
  --accent-primary: #8093fe;
  --accent-secondary: #f2adff;
  --hologram-gradient: linear-gradient(
    135deg,
    #8093fe 0%,
    #f2adff 50%,
    #7eefff 100%
  );
  --container-width: 1200px;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo__text {
  font-family: "Syne", sans-serif;
  font-weight: 800;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Aurora Background Effect */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(128, 147, 254, 0.15) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(242, 173, 255, 0.15) 0%,
      transparent 40%
    );
  filter: blur(100px);
}

/* Header */
.header {
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 10, 20, 0.7);
  backdrop-filter: blur(12px);
  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(--text-main);
}

.logo__text {
  font-size: 1.2rem;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.nav__list {
  display: flex;
  list-style: none;
  gap: 32px;
}

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

.nav__link:hover {
  color: var(--accent-secondary);
  text-shadow: 0 0 10px rgba(242, 173, 255, 0.5);
}

/* Buttons */
.btn {
  padding: 12px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-block;
}

.btn--holographic {
  background: var(--hologram-gradient);
  color: #000;
  position: relative;
  overflow: hidden;
  border: none;
  background-size: 200% auto;
}

.btn--holographic:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(128, 147, 254, 0.3);
}

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

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

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

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

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

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

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

.footer__contacts li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer__contacts i {
  color: var(--accent-primary);
  width: 18px;
}

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

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

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

@media (max-width: 992px) {
  .header__nav,
  .header__cta {
    display: none;
  }
  .burger {
    display: flex;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

.text-gradient {
  background: var(--hologram-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

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

.bento-grid__item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(5px);
  transition:
    transform 0.5s ease,
    border-color 0.3s ease;
}

.bento-grid__item:hover {
  border-color: rgba(128, 147, 254, 0.4);
}

.bento-grid__item--main {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 24px;
  max-width: 900px;
}

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

.hero__actions {
  display: flex;
  gap: 20px;
}

.btn--outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--text-main);
}

.bento-grid__item--accent-1 {
  grid-column: span 1;
}

.bento-grid__icon {
  width: 50px;
  height: 50px;
  background: rgba(128, 147, 254, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent-primary);
}

.bento-grid__item--visual {
  grid-column: span 2;
  background: radial-gradient(
    circle at center,
    rgba(128, 147, 254, 0.1) 0%,
    transparent 70%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-visual {
  position: relative;
  width: 150px;
  height: 150px;
}

.ai-visual__circle {
  width: 100%;
  height: 100%;
  border: 2px dashed var(--accent-secondary);
  border-radius: 50%;
  animation: rotate 10s linear infinite;
}

.ai-visual__scanner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--hologram-gradient);
  box-shadow: 0 0 15px var(--accent-primary);
  animation: scan 3s ease-in-out infinite;
}

.bento-grid__tag {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
}

.bento-grid__item--accent-2 {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-grid__highlight {
  font-size: 1.5rem;
  font-weight: 600;
  font-family: "Syne", sans-serif;
}

.bento-grid__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

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

@keyframes scan {
  0%,
  100% {
    top: 0;
  }
  50% {
    top: 100%;
  }
}

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

@media (max-width: 576px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-grid__item {
    grid-column: span 1 !important;
  }
  .hero__actions {
    flex-direction: column;
  }
}

/* Section General Styles */
.section {
  padding: 100px 0;
}

.section-header {
  margin-bottom: 60px;
  max-width: 700px;
}

.section-title {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Bento Grid Modifiers */
.bento-grid__item--col-2 {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
}

.bento-grid__item--row-2 {
  grid-row: span 2;
}

.bento-grid__item--accent {
  background: linear-gradient(
    135deg,
    rgba(128, 147, 254, 0.1) 0%,
    rgba(242, 173, 255, 0.1) 100%
  );
  border-color: rgba(242, 173, 255, 0.3);
}

.bento-grid__img {
  width: 200px;
  height: 150px;
  object-fit: cover;
  border-radius: 20px;
  opacity: 0.6;
}

.bento-grid__content {
  flex: 1;
}

.daily__schedule-demo {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-line {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.demo-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 30%;
  background: var(--hologram-gradient);
  border-radius: 4px;
  animation: loading-bar 3s infinite ease-in-out;
}

.demo-line:nth-child(2)::after {
  width: 60%;
  animation-delay: 0.5s;
}
.demo-line:nth-child(3)::after {
  width: 45%;
  animation-delay: 1s;
}

@keyframes loading-bar {
  0%,
  100% {
    transform: translateX(-10%);
    opacity: 0.5;
  }
  50% {
    transform: translateX(150%);
    opacity: 1;
  }
}

.btn--sm {
  padding: 10px 20px;
  font-size: 0.8rem;
  margin-top: 15px;
}

/* Responsive fixes for daily section */
@media (max-width: 768px) {
  .bento-grid__item--col-2 {
    flex-direction: column;
    grid-column: span 1;
  }
  .bento-grid__img {
    width: 100%;
  }
}

/* Work Section Specifics */
.bento-grid__item--dark {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(128, 147, 254, 0.2);
}

.work__chart-preview {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
  padding-bottom: 10px;
}

.work__chart-preview .bar {
  width: 12px;
  background: var(--hologram-gradient);
  border-radius: 4px 4px 0 0;
  animation: bar-rise 2s ease-out infinite alternate;
}

.work__chart-preview .bar:nth-child(1) {
  height: 40%;
  animation-delay: 0.1s;
}
.work__chart-preview .bar:nth-child(2) {
  height: 90%;
  animation-delay: 0.3s;
}
.work__chart-preview .bar:nth-child(3) {
  height: 60%;
  animation-delay: 0.5s;
}

.work__tag {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  background: rgba(128, 147, 254, 0.15);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  border: 1px solid rgba(128, 147, 254, 0.3);
}

@keyframes bar-rise {
  0% {
    transform: scaleY(0.8);
    opacity: 0.7;
  }
  100% {
    transform: scaleY(1.2);
    opacity: 1;
  }
}

/* Hover tweak for dark items */
.bento-grid__item--dark:hover {
  background: rgba(128, 147, 254, 0.05);
  border-color: var(--accent-secondary);
}

/* Mobile adjustments */
@media (max-width: 992px) {
  .work__chart-preview {
    display: none; /* Скрываем декор на планшетах для компактности */
  }
}

/* Creative Section Visuals */
.creative__art {
  background: radial-gradient(
    circle at bottom right,
    rgba(242, 173, 255, 0.15),
    transparent
  );
}

.creative__canvas-demo {
  height: 120px;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.canvas-glow {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--accent-secondary);
  filter: blur(40px);
  border-radius: 50%;
  animation: move-glow 4s infinite alternate ease-in-out;
}

@keyframes move-glow {
  0% {
    top: 10%;
    left: 10%;
  }
  100% {
    top: 60%;
    left: 70%;
  }
}

.creative__audio-waves {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  margin-top: 20px;
}

.creative__audio-waves span {
  display: block;
  width: 4px;
  background: var(--hologram-gradient);
  border-radius: 2px;
  animation: wave-pulse 1.2s infinite ease-in-out;
}

.creative__audio-waves span:nth-child(1) {
  height: 20%;
  animation-delay: 0.1s;
}
.creative__audio-waves span:nth-child(2) {
  height: 80%;
  animation-delay: 0.2s;
}
.creative__audio-waves span:nth-child(3) {
  height: 50%;
  animation-delay: 0.3s;
}
.creative__audio-waves span:nth-child(4) {
  height: 100%;
  animation-delay: 0.4s;
}
.creative__audio-waves span:nth-child(5) {
  height: 40%;
  animation-delay: 0.5s;
}

@keyframes wave-pulse {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.5);
    opacity: 1;
  }
}

/* Education Section Visuals */
.education__languages {
  background: linear-gradient(to right, rgba(128, 147, 254, 0.05), transparent);
}

.education .bento-grid__item:hover {
  border-color: var(--accent-primary);
}

/* Contact Section */
.contact__wrapper {
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.03);
  padding: 60px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

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

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 20px;
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.08);
}

.error-msg {
  color: #ff4d4d;
  font-size: 0.8rem;
  display: none;
  margin-top: 5px;
}

/* Captcha & Checkbox */
.captcha-box,
.agreement-box {
  margin: 25px 0;
  padding: 15px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.custom-checkbox input {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent-primary);
  border-radius: 5px;
  margin-right: 12px;
  position: relative;
  transition: var(--transition);
}

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

.custom-checkbox input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  color: #000;
  font-weight: bold;
  font-size: 14px;
  left: 3px;
  top: -2px;
}

/* Messages */
.form-message {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  background: rgba(0, 255, 136, 0.1);
  color: #00ff88;
  border: 1px solid rgba(0, 255, 136, 0.3);
}

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

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 20px;
  right: 20px;
  background: rgba(10, 10, 20, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  padding: 20px;
  border-radius: 20px;
  z-index: 10001;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-popup.active {
  bottom: 20px;
}

.cookie-popup__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* Styles for Policy Pages (Stage 5) */
.pages {
  padding: 160px 0 100px;
}

.pages h1 {
  font-size: 3rem;
  margin-bottom: 40px;
  color: var(--accent-secondary);
}
.pages h2 {
  font-size: 1.8rem;
  margin: 30px 0 20px;
  color: var(--accent-primary);
}
.pages p {
  margin-bottom: 20px;
  color: var(--text-muted);
}
.pages ul {
  margin-bottom: 25px;
  padding-left: 20px;
}
.pages li {
  margin-bottom: 10px;
  color: var(--text-muted);
}
.pages strong {
  color: #fff;
}
.pages a {
  color: var(--accent-primary);
  text-decoration: none;
}
