/* --- VARIABLES & RESET --- */
:root {
  /* Palette: Holographic / Aurora */
  --color-bg: #fafafd; /* Очень светлый, почти белый с оттенком */
  --color-text: #2a2a35;
  --color-text-light: #6b6b7b;

  --color-primary: #8e2de2; /* Фиолетовый */
  --color-secondary: #4a00e0; /* Глубокий синий */
  --color-accent: #00d2ff; /* Циан */
  --color-warm: #ff9a9e; /* Теплый розовый для градиентов */

  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-blob: 60% 40% 30% 70% / 60% 30% 70% 40%; /* Органическая форма */

  --shadow-soft: 0 10px 40px -10px rgba(142, 45, 226, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: 1px solid rgba(255, 255, 255, 0.5);
}

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

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

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

/* Background Noise Texture */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: -1;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 999px; /* Pill shape */
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn--small {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn--glow {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: white;
  box-shadow: 0 4px 15px rgba(74, 0, 224, 0.3);
}

.btn--glow:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 25px rgba(74, 0, 224, 0.4);
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1240px;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: 999px;
  padding: 12px 24px;
  box-shadow: var(--shadow-soft);
}

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

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

/* Hover Effect: Organic underline */
.nav__link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav__link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text);
}

/* --- MOBILE MENU --- */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__list {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
}

/* --- FOOTER --- */
.footer {
  position: relative;
  padding: 80px 0 40px;
  margin-top: 80px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(240, 240, 255, 0.5) 100%
  );
  overflow: hidden;
}

.footer__blob {
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--color-warm) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: 0.4;
  filter: blur(60px);
  z-index: -1;
}

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

.footer__logo-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--color-primary);
}

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

.footer__badge {
  display: inline-block;
  padding: 6px 12px;
  background: var(--color-accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 99px;
  transform: rotate(-2deg);
}

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

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

.footer__list a {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.footer__list a:hover {
  color: var(--color-primary);
  padding-left: 5px; /* Micro-interaction */
}

.footer__list--contacts li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  font-size: 0.95rem;
}

.icon-sm {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

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

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
  .header__nav {
    display: none;
  }
  .header__burger {
    display: block;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .header {
    top: 10px;
    width: calc(100% - 20px);
  }
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__col--brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer__list--contacts li {
    justify-content: center;
  }
}

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

/* Background Animation (Aurora Effect) */
.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: floatBlob 10s infinite alternate ease-in-out;
}

.hero__blob--1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--color-primary);
  animation-delay: 0s;
}

.hero__blob--2 {
  bottom: -10%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: var(--color-secondary);
  animation-delay: -5s;
}

.hero__blob--3 {
  top: 40%;
  left: 40%;
  width: 30vw;
  height: 30vw;
  background: var(--color-warm);
  opacity: 0.4;
  animation: floatBlob 15s infinite alternate-reverse ease-in-out;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 30px) scale(1.1);
  }
}

.hero__container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Typography & Content */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin-bottom: 24px;
  backdrop-filter: blur(5px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-accent);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 5vw, 5.5rem); /* Giant typography */
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

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

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

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

.hero__btn {
  padding: 16px 40px;
  font-size: 1.1rem;
}

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

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

.hero__note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

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

/* Visual / organic shapes */
.hero__visual {
  position: relative;
  perspective: 1000px;
}

.hero__card {
  position: relative;
  border-radius: var(--radius-blob); /* Organic shape */
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s ease;
}

.hero__img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transform: scale(1.05); /* Slight zoom for visual fix */
}

/* Floating Glass Cards */
.hero__float-card {
  position: absolute;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: var(--glass-border);
  padding: 12px 20px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  animation: floatY 4s ease-in-out infinite;
}

.hero__float-card--top {
  top: 15%;
  right: 0;
  transform: translateX(20%);
  animation-delay: 1s;
}

.hero__float-card--bottom {
  bottom: 15%;
  left: 0;
  transform: translateX(-10%);
  animation-delay: 2s;
}

.hero__float-card i {
  color: var(--color-primary);
}

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

/* Scroll Indicator */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.hero__scroll:hover {
  opacity: 1;
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--color-text-light);
  border-radius: 20px;
  display: block;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--color-text-light);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    top: 6px;
    opacity: 1;
  }
  100% {
    top: 20px;
    opacity: 0;
  }
}

/* Responsive Hero */
@media (max-width: 992px) {
  .hero {
    padding-top: 120px;
    min-height: auto;
    padding-bottom: 60px;
  }
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__actions {
    align-items: center;
  }
  .hero__desc {
    margin: 0 auto 40px;
  }
  .hero__visual {
    max-width: 500px;
    margin: 0 auto;
  }
  .hero__float-card--top {
    right: -10px;
  }
}

/* --- SECTIONS COMMON --- */
.section {
  padding: 100px 0;
  position: relative;
}

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

.badge-pill {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(142, 45, 226, 0.1);
  color: var(--color-primary);
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

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

.bento-card {
  position: relative;
  background: white;
  border-radius: 24px; /* Soft corners */
  padding: 32px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effect: Lift & Glow */
.bento-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(142, 45, 226, 0.15);
  border-color: rgba(142, 45, 226, 0.2);
}

/* Grid Spanning Logic */
.bento-card--large {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff 0%, #f8f0ff 100%);
}

.bento-card--tall {
  grid-row: span 2;
  background: linear-gradient(180deg, #fff 0%, #eefbfb 100%);
}

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

.bento-icon-wrapper {
  width: 56px;
  height: 56px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  color: var(--color-primary);
}

.bento-icon-wrapper svg {
  width: 28px;
  height: 28px;
}

.bento-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

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

/* Decorative Blobs inside cards */
.bento-decor {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  z-index: 1;
  opacity: 0.5;
  transition: transform 0.5s ease;
}

.bento-card:hover .bento-decor {
  transform: scale(1.2);
}

.bento-decor--1 {
  width: 200px;
  height: 200px;
  background: var(--color-warm);
  top: -50px;
  right: -50px;
}

.bento-decor--2 {
  width: 150px;
  height: 150px;
  background: var(--color-accent);
  bottom: -30px;
  right: -30px;
}

/* Animations Classes (for JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 {
  transition-delay: 0.1s;
}
.delay-2 {
  transition-delay: 0.2s;
}
.delay-3 {
  transition-delay: 0.3s;
}
.delay-4 {
  transition-delay: 0.4s;
}

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

@media (max-width: 600px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card--large {
    grid-column: span 1;
  }
}

/* --- PRACTICE SECTION --- */
.practice {
  overflow: hidden;
}

.practice__glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(
    circle,
    rgba(142, 45, 226, 0.08) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* Carousel Layout */
.carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel__track {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 40px 20px; /* Padding for shadows */
  width: 100%;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE */
  cursor: grab;
}

.carousel__track::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* Carousel Cards */
.carousel__card {
  flex: 0 0 350px; /* Fixed width */
  scroll-snap-align: center;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.carousel__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(142, 45, 226, 0.1);
}

/* Card Visual Area */
.card__visual {
  height: 200px;
  background: #f3f4f6;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__visual--text {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.card__visual--audio {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.card__ui-mockup {
  background: rgba(255, 255, 255, 0.9);
  padding: 15px;
  border-radius: 12px;
  width: 70%;
  font-size: 0.8rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.typing {
  color: var(--color-primary);
  font-weight: 600;
}

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

.card__tag {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
}

/* Audio Animation */
.audio-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 40px;
}

.audio-wave span {
  display: block;
  width: 6px;
  background: white;
  border-radius: 99px;
  animation: wave 1s infinite ease-in-out;
}

.audio-wave span:nth-child(1) {
  height: 20%;
  animation-delay: 0s;
}
.audio-wave span:nth-child(2) {
  height: 50%;
  animation-delay: 0.1s;
}
.audio-wave span:nth-child(3) {
  height: 100%;
  animation-delay: 0.2s;
}
.audio-wave span:nth-child(4) {
  height: 50%;
  animation-delay: 0.3s;
}
.audio-wave span:nth-child(5) {
  height: 20%;
  animation-delay: 0.4s;
}

@keyframes wave {
  0%,
  100% {
    height: 20%;
  }
  50% {
    height: 100%;
  }
}

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

.card__content h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card__content p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  flex-grow: 1;
}

.link-arrow {
  font-weight: 600;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9rem;
}

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

/* CTA Card Variant */
.carousel__card--cta {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: white;
  justify-content: center;
  text-align: center;
  border: none;
}

.carousel__card--cta h3 {
  color: white;
  font-size: 1.5rem;
}

.carousel__card--cta p {
  color: rgba(255, 255, 255, 0.8);
}

.carousel__card--cta .btn {
  background: white;
  color: var(--color-primary);
  margin-top: auto;
}

.carousel__card--cta .btn:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}

/* Carousel Controls */
.carousel__btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 2;
  flex-shrink: 0;
}

.carousel__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .carousel__btn {
    display: none; /* Hide buttons on mobile, rely on swipe */
  }
  .carousel__card {
    flex: 0 0 300px;
  }
  .carousel__track {
    padding-left: 20px; /* Peek effect */
  }
}

/* --- TOOLS SECTION --- */
.tools {
  background: linear-gradient(180deg, var(--color-bg) 0%, #f4f4f9 100%);
}

.tools__container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.tools__info {
  position: sticky;
  top: 120px; /* Stick to top while scrolling lists */
}

.tools__cta-box {
  margin-top: 40px;
  padding: 24px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.03);
  display: inline-block;
}

.tools__cta-box p {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-text);
}

/* Tool Cards (Interactive List) */
.tools__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tool-card {
  background: white;
  border-radius: 16px;
  padding: 0 24px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: default;
  overflow: hidden;
}

.tool-card__header {
  display: flex;
  align-items: center;
  padding: 24px 0;
  gap: 20px;
  cursor: pointer;
}

.tool-card__icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f8f8fa;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.tool-card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  flex-grow: 1;
  transition: color 0.3s ease;
}

.tool-card__arrow {
  color: var(--color-text-light);
  transition: transform 0.3s ease;
}

.tool-card__body {
  max-height: 0;
  opacity: 0;
  transition: all 0.4s ease;
  padding-left: 68px; /* Align with text */
  padding-right: 20px;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Hover / Active State */
.tool-card:hover {
  box-shadow: 0 15px 30px rgba(142, 45, 226, 0.1);
  transform: translateX(10px);
  border-color: rgba(142, 45, 226, 0.2);
}

.tool-card:hover .tool-card__icon-box {
  background: var(--color-primary);
  color: white;
}

.tool-card:hover .tool-card__title {
  color: var(--color-primary);
}

.tool-card:hover .tool-card__arrow {
  transform: rotate(90deg);
  color: var(--color-primary);
}

.tool-card:hover .tool-card__body {
  max-height: 100px; /* Expand */
  opacity: 1;
  padding-bottom: 24px;
}

/* Responsive */
@media (max-width: 992px) {
  .tools__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .tools__info {
    position: static;
    text-align: center;
    margin-bottom: 20px;
  }
  .tool-card:hover {
    transform: translateY(-5px); /* Up instead of right on mobile */
  }
}

/* --- FAQ SECTION --- */
.faq {
  background-color: var(--color-bg);
}

.faq__grid {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq__item {
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq__item.active {
  box-shadow: 0 10px 30px rgba(142, 45, 226, 0.1);
  border-color: rgba(142, 45, 226, 0.3);
}

.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.3s;
}

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

.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f3f4f6;
  border-radius: 50%;
  color: var(--color-text);
  transition:
    transform 0.3s ease,
    background 0.3s ease,
    color 0.3s ease;
}

/* Rotate icon when active */
.faq__item.active .faq__icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: white;
}

.faq__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1); /* Smooth closing */
}

.faq__item.active .faq__content {
  max-height: 200px; /* Adjust if content is very long */
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0); /* Smooth opening */
}

.faq__text {
  padding: 0 24px 24px;
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.faq__footer {
  text-align: center;
  margin-top: 40px;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.faq__footer strong {
  color: var(--color-primary);
}

/* --- CONTACT SECTION --- */
.contact {
  padding-bottom: 120px;
  position: relative;
  overflow: hidden;
}

/* Background Blobs */
.contact__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  opacity: 0.5;
}

.contact__blob--1 {
  width: 400px;
  height: 400px;
  background: var(--color-primary);
  top: 50%;
  left: -100px;
  transform: translateY(-50%);
}

.contact__blob--2 {
  width: 300px;
  height: 300px;
  background: var(--color-accent);
  bottom: -50px;
  right: -50px;
}

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

/* Left Content */
.contact__info-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
}

.contact__info-item i {
  color: var(--color-primary);
  width: 20px;
}

/* Form Card (Glassmorphism) */
.contact__card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 40px;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.form__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 24px;
  text-align: center;
}

/* Floating Label Inputs */
.form__group {
  position: relative;
  margin-bottom: 24px;
}

.form__input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #e1e1e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  font-family: var(--font-body);
  transition: all 0.3s;
  outline: none;
}

.form__input:focus {
  border-color: var(--color-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(142, 45, 226, 0.1);
}

/* Error State */
.form__input.error {
  border-color: #ff4757;
  animation: shake 0.4s;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

.form__error {
  display: none;
  font-size: 0.8rem;
  color: #ff4757;
  position: absolute;
  bottom: -20px;
  left: 10px;
}

.form__input.error ~ .form__error {
  display: block;
}

.form__error--static {
  position: static;
  margin-top: 5px;
  text-align: center;
}

/* Floating Label Logic */
.form__label {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
  transition: all 0.2s ease;
  background: transparent;
  padding: 0 4px;
}

.form__input:focus ~ .form__label,
.form__input:not(:placeholder-shown) ~ .form__label {
  top: 0;
  font-size: 0.8rem;
  color: var(--color-primary);
  background: white; /* Cut line effect */
}

/* Custom Checkbox (Consent) */
.form__checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

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

.custom-checkbox {
  appearance: none;
  min-width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  margin-top: 2px;
}

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

.custom-checkbox:checked::after {
  content: "✓";
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Custom Captcha */
.captcha-box {
  background: #f9f9f9;
  border: 1px solid #d3d3d3;
  border-radius: 4px;
  padding: 15px;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 20px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.captcha-checkbox-wrapper {
  position: relative;
  margin-right: 12px;
}

.captcha-input {
  opacity: 0;
  position: absolute;
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2;
}

.captcha-label {
  display: block;
  width: 24px;
  height: 24px;
  border: 2px solid #c1c1c1;
  border-radius: 2px;
  background: white;
  transition: all 0.2s;
}

.captcha-input:checked + .captcha-label {
  background: transparent;
  border: none;
}

.captcha-input:checked + .captcha-label::after {
  content: "";
  display: block;
  width: 10px;
  height: 18px;
  border: solid #009688; /* Captcha green */
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
  margin-left: 7px;
  margin-top: -2px;
}

.captcha-text {
  font-family: "Roboto", sans-serif;
  color: #000;
  font-size: 14px;
  flex-grow: 1;
}

.captcha-logo {
  width: 32px;
  opacity: 0.5;
}

/* Button & Loader */
.form__btn {
  width: 100%;
  margin-top: 10px;
  position: relative;
}

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

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.form.loading .btn-text {
  visibility: hidden;
}
.form.loading .btn-loader {
  display: block;
}

/* Success Message */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  padding: 40px;
  animation: fadeIn 0.5s;
}

.success-message.active {
  display: flex;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #4cd137;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 992px) {
  .contact__wrapper {
    grid-template-columns: 1fr;
  }
  .contact__content {
    text-align: center;
  }
  .contact__info-list {
    align-items: center;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Or right: 20px */
  width: calc(100% - 40px);
  max-width: 400px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(150%); /* Hidden initially */
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.cookie-content {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.cookie-icon {
  color: var(--color-primary);
  flex-shrink: 0;
}

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

/* --- TEXT PAGES (Privacy, Terms etc.) --- */
.pages {
  padding: 140px 0 80px; /* Space for fixed header */
  min-height: 60vh;
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 24px;
  color: var(--color-secondary);
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin: 40px 0 20px;
  color: var(--color-text);
}

.pages p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 800px;
}

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

.pages li {
  margin-bottom: 8px;
}

.pages a {
  color: var(--color-primary);
  font-weight: 500;
}
