/* --- Variables & Core --- */
:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --accent: #ec4899; /* Pink/Magenta for gradients */
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-main: #334155;
  --text-light: #64748b;
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-bg: rgba(255, 255, 255, 0.7);

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;

  --radius-pill: 100px;
  --radius-card: 24px;
  --container-width: 1240px;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
  list-style: none;
}

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

/* --- Floating Header --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
  pointer-events: none; /* Allows clicking through empty space */
}

.header__glass {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
  padding: 12px 24px;
  pointer-events: auto; /* Re-enable clicks */
  transition: all 0.3s ease;
}

/* Scroll state styling could be added via JS later */

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

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

.header__logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
}

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

.header__link {
  font-weight: 500;
  color: var(--text-main);
  font-size: 15px;
  position: relative;
}

.header__link::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.header__link:hover::before {
  width: 20px;
}

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

/* --- Glow Button --- */
.btn--glow {
  position: relative;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--primary);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn--glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn__blur {
  position: absolute;
  top: 0;
  left: -50%;
  width: 200%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: 0.5s;
  pointer-events: none;
  z-index: -1;
  opacity: 0;
}

.btn--glow:hover .btn__blur {
  opacity: 1;
  animation: shine 1s forwards;
}

@keyframes shine {
  0% {
    left: -50%;
  }
  100% {
    left: 100%;
  }
}

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

.burger-line {
  width: 24px;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: 0.3s;
}

/* --- Footer (Cyber Style) --- */
.footer {
  position: relative;
  background-color: var(--dark-bg);
  color: white;
  padding: 80px 0 30px;
  overflow: hidden;
  margin-top: auto;
}

/* Footer Background Grid */
.footer__bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
  pointer-events: none;
}

.footer__bg-glow {
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

.footer__mission {
  margin-top: 20px;
  color: #94a3b8;
  font-size: 15px;
  max-width: 320px;
}

.footer__badges {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.badge {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
}

.footer__title {
  font-family: var(--font-heading);
  color: white;
  font-size: 18px;
  margin-bottom: 24px;
}

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

.footer__links a {
  color: #94a3b8;
  font-size: 14px;
}

.footer__links a:hover {
  color: var(--primary);
  padding-left: 6px;
  text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: #e2e8f0;
  font-size: 14px;
}

.contact-list i {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.footer__note {
  font-size: 12px;
  color: #64748b;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 8px;
  display: inline-block;
}

.footer__bottom {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  color: #64748b;
  font-size: 13px;
}

.footer__made {
  opacity: 0.5;
}

.text-white {
  color: white !important;
  -webkit-text-fill-color: white !important;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .header__glass {
    margin: 0 20px;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 50px 30px;
  }
}

@media (max-width: 768px) {
  .header__menu,
  .header__actions .btn {
    display: none;
  }
  .header__burger {
    display: flex;
  }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  /* Mobile Menu Logic Styles */
  body.mobile-menu-open .header__glass {
    border-radius: 24px;
    background: white;
  }

  body.mobile-menu-open .header__nav {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    padding: 20px 0;
    border-top: 1px solid #eee;
    animation: fadeIn 0.3s;
  }

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

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

/* --- Hero Section --- */
.hero {
    position: relative;
    padding-top: 160px; /* Відступ під плаваючий хедер */
    padding-bottom: 100px;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Background Glows */
.hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
    animation: pulseGlow 8s infinite alternate;
}

.hero__glow--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -100px;
    left: -100px;
}

.hero__glow--2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: 0;
    right: -50px;
    animation-delay: 2s;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.2); opacity: 0.5; }
}

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

/* Hero Content */
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 30px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

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

.hero__title {
    font-family: var(--font-heading);
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-bg);
}

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

.hero__desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 480px;
}

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

/* Buttons in Hero */
.hero__actions {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn--lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-main);
    background: transparent;
    border: 1px solid #E2E8F0;
    border-radius: var(--radius-pill);
    transition: all 0.3s ease;
}

.btn--outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(255, 255, 255, 0.5);
}

/* Trust Indicators */
.hero__trust {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #E2E8F0;
}

.avatars {
    display: flex;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    margin-left: -10px;
    overflow: hidden;
    position: relative;
}

.avatar:first-child { margin-left: 0; }

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trust-text p {
    font-size: 13px;
    color: var(--text-light);
    font-weight: 500;
}

.trust-stars {
    color: #F59E0B; /* Amber */
    font-size: 14px;
    letter-spacing: 2px;
}

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

.tilt-card {
    width: 100%;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid white;
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Плавність руху */
    overflow: hidden;
}

.tilt-card__header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.5);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.tilt-card__title {
    margin-left: 12px;
    font-size: 13px;
    color: var(--text-light);
    font-weight: 600;
}

.tilt-card__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 340px;
    position: relative;
}

/* Chat Bubbles */
.chat-msg {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    opacity: 0; /* JS triggered animation */
    animation-fill-mode: forwards;
}

.chat-msg.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-avatar.user-avatar {
    background: var(--text-main);
}

.chat-avatar i { width: 16px; height: 16px; }

.chat-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    border-bottom-left-radius: 2px;
    font-size: 14px;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    color: var(--text-main);
    line-height: 1.5;
}

.chat-msg.user .chat-bubble {
    background: var(--primary);
    color: white;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 2px;
}

.chat-bubble.highlight {
    background: linear-gradient(135deg, #F8FAFC 0%, #EEF2FF 100%);
    border: 1px solid #E0E7FF;
}

/* Floating Widgets inside visual */
.float-widget {
    position: absolute;
    bottom: 40px;
    right: -30px;
    background: white;
    padding: 12px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: #10B981; /* Emerald */
    transform: translateZ(40px); /* 3D effect */
    animation: float 4s ease-in-out infinite;
}

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

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

.fade-in-up {
    animation-name: fadeInUp;
    animation-duration: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero__container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero__content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero__desc { margin: 0 auto 40px; }
    
    .hero__trust { flex-direction: column; }
    
    .hero__visual { margin-top: 40px; }
}

@media (max-width: 576px) {
    .hero__title { font-size: 36px; }
    .hero__actions { flex-direction: column; width: 100%; }
    .btn { width: 100%; }
    .float-widget { right: 0; }
}

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

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

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: #F1F5F9;
    color: var(--text-light);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--dark-bg);
}

.section-desc {
    color: var(--text-light);
    font-size: 16px;
}

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

.bento-card {
    background-color: rgba(255, 255, 255, 0.6); /* Прозорість для фону сторінки */
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    /* Cursor Glow Setup */
    --mouse-x: 0px;
    --mouse-y: 0px;
}

/* Ефект світіння при наведенні через ::before */
.bento-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background: radial-gradient(
        600px circle at var(--mouse-x) var(--mouse-y),
        rgba(99, 102, 241, 0.15),
        transparent 40%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 2;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background-color: white;
}

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

.bento-card--tall {
    grid-row: span 2;
    background: linear-gradient(to bottom, white, #F8FAFC);
}

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

/* Content Styling */
.bento-content {
    padding: 32px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 3;
}

.icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

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

.icon-box--primary { background: rgba(99, 102, 241, 0.1); color: var(--primary); }
.icon-box--accent { background: rgba(236, 72, 153, 0.1); color: var(--accent); }
.icon-box--green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.icon-box--orange { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.icon-box--dark { background: rgba(15, 23, 42, 0.1); color: #0F172A; }

.bento-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--dark-bg);
}

.bento-text {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* Decorative Visuals inside cards */
.tech-visual {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.code-line { height: 6px; background: #E2E8F0; border-radius: 4px; }

.visual-blocks {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    opacity: 0.5;
}
.block-rect { width: 100%; height: 40px; border: 2px dashed #CBD5E1; border-radius: 8px; }

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

.chart-mini {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
    width: 80px;
}
.bar {
    width: 100%;
    background: #E2E8F0;
    border-radius: 4px;
}
.bar.active { background: var(--primary); }

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

@media (max-width: 600px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-card--large, .bento-card--wide, .bento-card--tall { grid-column: span 1; }
    .row-content { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* --- Blog Section --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

.blog-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Image Area */
.blog-card__image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image img {
    transform: scale(1.05);
}

/* Tags */
.blog-card__tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.blog-card__tag--accent { color: var(--accent); }
.blog-card__tag--dark { color: var(--dark-bg); }

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

.blog-card__meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.blog-card__meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-card__meta i { width: 14px; height: 14px; }

.blog-card__title {
    font-family: var(--font-heading);
    font-size: 20px;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark-bg);
}

.blog-card__title a {
    background: linear-gradient(to right, var(--primary), var(--primary)) 0% 100% / 0% 2px no-repeat;
    transition: background-size 0.3s;
}

.blog-card__title a:hover {
    background-size: 100% 2px;
    color: var(--primary);
}

.blog-card__excerpt {
    font-size: 15px;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    color: var(--primary);
}

.blog-card__link i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.blog-card__link:hover i {
    transform: translateX(4px);
}

.section-footer {
    margin-top: 40px;
}

/* Responsive Blog */
@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 650px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-card__image { height: 200px; }
}

/* --- Dark Section (AI Core) --- */
.section--dark {
    background-color: var(--dark-bg);
    color: white;
    overflow: hidden;
}

.text-white { color: white !important; }
.text-gray { color: #94A3B8 !important; }

.text-gradient-purple {
    background: linear-gradient(135deg, #A78BFA 0%, #F472B6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge-pill--glow {
    background: rgba(99, 102, 241, 0.2);
    color: #A5B4FC;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

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

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

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

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.check-icon i { width: 14px; height: 14px; color: white; }

.tech-item strong { display: block; font-size: 16px; margin-bottom: 4px; }
.tech-item p { font-size: 14px; color: #94A3B8; }

/* --- AI Core Animation --- */
.tech-visual-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
    position: relative;
}

.ai-core {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.core-circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.core-inner { width: 100px; height: 100px; border-color: rgba(99, 102, 241, 0.8); animation: spin 10s linear infinite; }
.core-middle { width: 200px; height: 200px; animation: spin 15s linear infinite reverse; }
.core-outer { width: 300px; height: 300px; border-style: dashed; animation: spin 20s linear infinite; }

.core-icon {
    font-size: 40px;
    color: white;
    z-index: 10;
    filter: drop-shadow(0 0 10px var(--primary));
}
.core-icon i { width: 48px; height: 48px; }

.node {
    position: absolute;
    background: var(--dark-bg);
    border: 1px solid var(--primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: white;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.3);
}

.node-1 { top: 20px; left: 20px; animation: floatNode 4s ease-in-out infinite; }
.node-2 { bottom: 40px; right: 10px; animation: floatNode 5s ease-in-out infinite 1s; }
.node-3 { top: 50%; left: -40px; animation: floatNode 6s ease-in-out infinite 2s; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* --- Cases Section --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.case-card {
    background: white;
    padding: 30px;
    border-radius: 24px;
    border: 1px solid #E2E8F0;
    transition: transform 0.3s ease;
}

.case-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.case-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.case-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.bg-blue { background: #3B82F6; }
.bg-purple { background: #8B5CF6; }
.bg-green { background: #10B981; }

.case-company { font-weight: 700; font-size: 16px; color: var(--text-main); }

.case-metric { margin-bottom: 20px; }
.metric-value { display: block; font-size: 42px; font-weight: 700; color: var(--dark-bg); line-height: 1; }
.metric-label { font-size: 14px; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; }

.case-desc { font-size: 15px; color: var(--text-main); line-height: 1.5; }

/* CTA Strip */
.cta-strip {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.25);
}

.cta-content h3 { font-family: var(--font-heading); font-size: 24px; margin-bottom: 8px; }
.cta-content p { opacity: 0.9; }

.btn--white {
    background: white;
    color: var(--primary);
    font-weight: 700;
}
.btn--white:hover {
    background: #F8FAFC;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 992px) {
    .tech-layout { grid-template-columns: 1fr; text-align: center; }
    .tech-content { margin-bottom: 40px; }
    .tech-list { align-items: flex-start; text-align: left; display: inline-flex; }
    .cases-grid { grid-template-columns: 1fr; }
    .cta-strip { flex-direction: column; text-align: center; gap: 24px; }
}

/* --- FAQ Section --- */
.container--narrow {
    max-width: 800px;
}

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

.accordion-item {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
}

.accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 18px;
    color: var(--dark-bg);
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: var(--primary);
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg); /* Plus becomes X */
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0, 1, 0, 1);
}

.accordion-body {
    padding: 0 24px 24px;
    color: var(--text-main);
    line-height: 1.6;
}

/* --- Contact Section --- */
.section--contact {
    background-color: #0F172A; /* Dark background */
    padding-bottom: 120px;
}

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

/* Contact Info (Left) */
.contact-details {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-circle {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.label {
    display: block;
    font-size: 13px;
    color: #94A3B8;
    margin-bottom: 4px;
}

.value {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

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

/* Contact Form (Right) */
.contact-form-box {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark-bg);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s ease;
}

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

/* Checkbox */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    color: var(--text-light);
}

.form-check input {
    margin-top: 4px;
}

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

/* Button Loader State */
.btn--full {
    width: 100%;
    position: relative;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    position: absolute;
}

.btn.loading .btn-text { opacity: 0; }
.btn.loading .btn-loader { display: block; }

/* Success Message */
.form-success {
    display: none;
    text-align: center;
    padding-top: 20px;
    animation: fadeIn 0.5s;
}

.form-success i {
    width: 48px;
    height: 48px;
    color: #10B981;
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-main);
    font-size: 16px;
}

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
    .contact-info {
        text-align: center;
        align-items: center;
    }
    .contact-row {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .contact-details { align-items: center; }
}

/* --- Cookie Consent --- */
.cookie-consent {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Сховано знизу */
    width: 90%;
    max-width: 600px;
    background: rgba(15, 23, 42, 0.95); /* Dark layout */
    backdrop-filter: blur(10px);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.cookie-consent.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.cookie-content p {
    color: #E2E8F0;
    font-size: 14px;
    margin: 0;
}

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

.btn--sm {
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
}

/* --- Policy Pages Styles (privacy.html, terms.html etc.) --- */
.pages {
    padding: 160px 0 80px; /* Великий відступ зверху через плаваючий хедер */
    min-height: 80vh;
}

.pages .container {
    max-width: 800px; /* Вузький контейнер для читабельності тексту */
}

.pages h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--dark-bg);
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 20px;
}

.pages h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--dark-bg);
}

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

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

.pages li {
    margin-bottom: 10px;
    color: var(--text-main);
    line-height: 1.6;
}

.pages strong {
    color: var(--dark-bg);
    font-weight: 600;
}

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

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

/* Responsive for Cookie & Pages */
@media (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
        align-items: flex-start;
        text-align: center;
        width: 95%;
    }
    .cookie-consent .btn { width: 100%; }
    
    .pages h1 { font-size: 32px; }
}