/* --- VARIABLES --- */
:root {
  --bg-color: #0b0e14;
  --surface-color: #151a23;
  --primary-color: #6366f1; /* Indigo Neon */
  --accent-color: #a855f7; /* Purple Neon */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-radius: 32px; /* Hyper-rounded */
  --font-heading: "Outfit", sans-serif;
  --font-body: "Inter", sans-serif;
  --glow: 0 0 20px rgba(99, 102, 241, 0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & GLOBAL --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

html {
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 1000;
}

.header__container {
  background: rgba(21, 26, 35, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px; /* Fully rounded header */
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-main);
}

.header__logo-highlight {
  color: var(--primary-color);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.header__list {
  display: flex;
  gap: 30px;
}

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

.header__link:hover,
.header__link--active {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.header__cta {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  padding: 12px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-family: var(--font-heading);
  box-shadow: var(--glow);
}

.header__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

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

/* --- FOOTER --- */
.footer {
  background-color: var(--surface-color);
  padding: 80px 0 30px;
  margin-top: 100px;
  border-top-left-radius: 60px;
  border-top-right-radius: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer__logo {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.footer__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  max-width: 300px;
  margin-bottom: 25px;
}

.footer__socials {
  display: flex;
  gap: 15px;
}

.footer__social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: var(--transition);
}

.footer__social-link:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

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

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

.footer__link {
  color: var(--text-muted);
  font-size: 0.95rem;
}

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

.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer__icon {
  color: var(--primary-color);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

/* --- MOBILE ADAPTIVE --- */
@media (max-width: 1024px) {
  .header__container {
    padding: 10px 20px;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--surface-color);
    flex-direction: column;
    justify-content: center;
    transition: right 0.4s ease;
    padding: 40px;
    z-index: -1; /* Behind burger button */
  }

  .header__nav.active {
    right: 0;
  }

  .header__list {
    flex-direction: column;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
  }

  .header__link {
    font-size: 1.2rem;
  }

  .header__burger {
    display: block;
    z-index: 1001; /* Above mobile menu */
  }

  .footer__container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__socials,
  .footer__contact-item {
    justify-content: center;
  }

  .footer {
    border-radius: 40px 40px 0 0;
  }
}

/* --- BUTTONS & UTILS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: 50px; /* Hyper-rounded */
  font-weight: 700;
  font-family: var(--font-heading);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  box-shadow: 0 10px 30px -10px var(--primary-color);
}

.btn--primary:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 40px -10px var(--primary-color);
}

.text-gradient {
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--accent-color),
    #fff
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% auto;
  animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

/* --- HERO SECTION --- */
.hero {
  position: relative;
  padding: 180px 0 100px; /* Top padding to account for fixed header */
  overflow: hidden;
}

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

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 20px;
  border-radius: 30px;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 25px;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4rem; /* Giant typography */
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -0.02em;
}

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

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

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

.hero__info i {
  color: #10b981; /* Success Green */
  width: 18px;
}

/* Hero Visual & Animation */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hero__image-wrapper {
  position: relative;
  z-index: 2;
  border-radius: 40px;
  overflow: visible;
}

.hero__img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: block;
  transform: rotateY(-5deg) rotateX(5deg);
  transition: transform 0.1s ease-out;
}

/* Floating Elements */
.hero__card {
  position: absolute;
  bottom: 40px;
  left: -30px;
  background: rgba(21, 26, 35, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: float 6s ease-in-out infinite;
}

.hero__card-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.hero__card-text strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-main);
}

.hero__card-text span {
  font-size: 0.8rem;
  color: #10b981;
}

/* Glowing Background Blobs */
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 1;
  opacity: 0.6;
}

.hero__glow--1 {
  width: 300px;
  height: 300px;
  background: var(--primary-color);
  top: -50px;
  right: -50px;
}

.hero__glow--2 {
  width: 200px;
  height: 200px;
  background: var(--accent-color);
  bottom: -30px;
  left: 20px;
}

.hero__glow--3 {
  width: 150px;
  height: 150px;
  background: #10b981;
  top: 40%;
  right: 40%;
  opacity: 0.3;
}

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

/* Mobile Hero */
@media (max-width: 992px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__desc {
    margin: 0 auto 30px;
  }

  .hero__actions {
    align-items: center;
  }

  .hero__visual {
    margin-top: 40px;
  }

  .hero__img {
    transform: none;
  }
}

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

.section-badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.text-highlight {
  color: var(--accent-color);
  position: relative;
  display: inline-block;
}

.text-highlight::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--accent-color);
  opacity: 0.3;
  z-index: -1;
  border-radius: 4px;
}

/* --- BENTO GRID LAYOUT --- */
.features {
  padding: 100px 0;
  background: radial-gradient(
    circle at 50% 50%,
    #1a1f2e 0%,
    var(--bg-color) 70%
  );
}

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

/* Card Styles */
.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius);
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.bento-card__icon {
  width: 50px;
  height: 50px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: var(--transition);
}

.bento-card:hover .bento-card__icon {
  background: var(--primary-color);
  color: white;
  transform: rotate(10deg);
}

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

.bento-card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.bento-card__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  transition: gap 0.3s ease;
}

.bento-card__link:hover {
  gap: 10px;
  color: var(--primary-color);
}

/* Modifiers for Grid Positions */
.bento-card--large {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: 40px;
}

.bento-card--tall {
  grid-row: span 2;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(168, 85, 247, 0.1) 100%
  );
}

.bento-card--accent {
  background: rgba(99, 102, 241, 0.05);
  border-color: rgba(99, 102, 241, 0.2);
}

/* Decorative Elements */
.bento-card__visual--chart {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  height: 100px;
  flex-grow: 1;
}

.chart-bar {
  width: 15px;
  background: var(--primary-color);
  border-radius: 10px;
  height: var(--h);
  opacity: 0.5;
  transition: height 0.5s ease;
}

.bento-card:hover .chart-bar {
  height: 100%;
  opacity: 1;
  background: var(--accent-color);
}

.bento-card__bg-icon {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 0;
}

.bento-card__bg-icon i {
  width: 200px;
  height: 200px;
  color: rgba(255, 255, 255, 0.02);
  transform: rotate(-15deg);
}

.bento-card__circle-decor {
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--accent-color);
  filter: blur(60px);
  opacity: 0.2;
}

/* Mobile Adaptation for Grid */
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .bento-card--large {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
  }

  .bento-card--tall {
    grid-row: span 1;
  }

  .bento-card__visual--chart {
    width: 100%;
    margin-top: 20px;
  }
}

/* --- CASES SECTION --- */
.cases {
  padding: 80px 0;
  position: relative;
  /* Neon glow separator line */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cases__slider {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  padding: 20px 5px 40px; /* Bottom padding for scrollbar/shadows */
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) var(--surface-color);
}

/* Custom Scrollbar */
.cases__slider::-webkit-scrollbar {
  height: 8px;
}

.cases__slider::-webkit-scrollbar-track {
  background: var(--surface-color);
  border-radius: 4px;
}

.cases__slider::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

/* Card Styles */
.case-card {
  min-width: 350px;
  background: var(--surface-color);
  border-radius: var(--border-radius);
  padding: 30px;
  scroll-snap-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.case-card--highlight {
  background: linear-gradient(
    145deg,
    var(--surface-color),
    rgba(99, 102, 241, 0.1)
  );
  border-color: rgba(99, 102, 241, 0.3);
}

.case-card__header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.case-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-color);
}

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

.case-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--text-main);
}

.case-card__role {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.case-card__icon {
  margin-left: auto;
  color: var(--primary-color);
  opacity: 0.5;
}

.case-card__body {
  flex-grow: 1;
  margin-bottom: 20px;
}

.case-card__quote {
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.6;
}

.case-card__quote strong {
  color: var(--text-main);
  font-weight: 500;
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-card__tags span {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.case-card:hover .case-card__tags span {
  background: rgba(99, 102, 241, 0.2);
  color: white;
}

/* Mobile Adaptation */
@media (max-width: 768px) {
  .case-card {
    min-width: 85vw; /* Almost full width on mobile */
  }

  .cases__slider {
    padding-bottom: 20px;
  }
}

/* --- INFO SECTION (TOOLS + FAQ) --- */
.info-section {
  padding: 100px 0;
}

.info-section__container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 Columns */
  gap: 80px;
  align-items: start;
}

/* Tools Column */
.tools__header {
  margin-bottom: 40px;
}

.tools__list {
  margin-bottom: 50px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tools__item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.03);
  padding: 15px 25px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.tools__item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(10px);
}

.tools__icon {
  width: 45px;
  height: 45px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
}

.tools__item strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
}

.tools__item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  padding: 40px;
  border-radius: var(--border-radius);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.2) 0%,
    transparent 70%
  );
  animation: rotate 10s linear infinite;
}

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

.cta-card__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.cta-card h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.cta-card p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

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

.cta-card__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-card__note i {
  width: 16px;
  height: 16px;
}

/* FAQ Column */
.faq__title {
  margin-bottom: 40px;
}

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

.faq__item {
  background: var(--surface-color);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

.faq__item.active {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
}

.faq__header {
  width: 100%;
  background: none;
  border: none;
  padding: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
}

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

.faq__item.active .faq__icon {
  transform: rotate(180deg);
}

.faq__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq__item.active .faq__body {
  max-height: 200px; /* Arbitrary large number */
}

.faq__content {
  padding: 0 25px 25px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Adaptation */
@media (max-width: 992px) {
  .info-section__container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  position: relative;
  /* Background accent */
  background: linear-gradient(
    180deg,
    var(--bg-color) 0%,
    rgba(21, 26, 35, 0.8) 100%
  );
}

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

/* Contact Info */
.contact__highlights {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact__highlight-item {
  display: flex;
  gap: 20px;
}

.contact__icon-box {
  width: 50px;
  height: 50px;
  background: rgba(168, 85, 247, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  flex-shrink: 0;
}

/* Form Styles */
.contact__form-wrapper {
  background: var(--surface-color);
  padding: 40px;
  border-radius: 40px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

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

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-left: 10px;
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  width: 20px;
  height: 20px;
  transition: var(--transition);
}

.form-input {
  width: 100%;
  padding: 16px 20px 16px 55px; /* Space for icon */
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px; /* Rounded inputs */
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary-color);
}

/* Validation Styles */
.form-input.invalid {
  border-color: #ef4444;
}

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

.form-input.invalid ~ .error-msg {
  display: block;
}

/* Custom Checkbox */
.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  margin-bottom: 20px;
  user-select: none;
}

.custom-checkbox input {
  display: none;
}

.checkbox-box {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.checkbox-box i {
  width: 16px;
  height: 16px;
  color: var(--surface-color);
  opacity: 0;
  transition: var(--transition);
}

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

.custom-checkbox input:checked + .checkbox-box i {
  opacity: 1;
}

.checkbox-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.checkbox-text a {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Custom Captcha Styles */
.captcha-container {
  background: rgba(255, 255, 255, 0.02);
  padding: 15px 20px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 30px;
  width: fit-content;
}

.captcha-box {
  margin-bottom: 0;
  align-items: center;
}

.captcha-logo {
  margin-left: 20px;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Button State */
.form-btn:disabled {
  background: #334155;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Success Message Overlay */
.success-message {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--surface-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.success-message.visible {
  opacity: 1;
  pointer-events: all;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #10b981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

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

.success-message h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 992px) {
  .contact__container {
    grid-template-columns: 1fr;
  }
}

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  right: 30px; /* Full width on mobile, constrained max-width on desktop */
  max-width: 450px;
  background: rgba(21, 26, 35, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  padding: 25px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  transform: translateY(150%); /* Hidden by default */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.cookie-popup__content {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

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

.cookie-popup__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-popup__text a {
  color: var(--accent-color);
  text-decoration: underline;
}

.cookie-popup__btn {
  width: 100%;
  justify-content: center;
  padding: 12px 20px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cookie-popup {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }
}

/* --- LEGAL PAGES STYLES --- */
.pages {
  padding: 180px 0 100px; /* Top padding for header */
  min-height: 80vh;
}

.pages .container {
  max-width: 800px; /* Reading width */
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--text-main);
  margin-bottom: 40px;
  line-height: 1.1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 30px;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--text-main);
  margin-top: 50px;
  margin-bottom: 20px;
}

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

.pages ul {
  margin-bottom: 30px;
  padding-left: 20px;
}

.pages li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

.pages li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.pages strong {
  color: var(--text-main);
}

.pages a {
  color: var(--accent-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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