/* --- VARIABLES & SETUP --- */
:root {
  /* Palette: Holographic / Iridescent */
  --bg-body: #f3f5f9;
  --text-main: #1a1a2e;
  --text-muted: #5e6ad2;
  --white: #ffffff;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  --gradient-holo: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%);
  --gradient-dark: linear-gradient(
    135deg,
    #24243e 0%,
    #302b63 50%,
    #0f0c29 100%
  );

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

  /* Layout */
  --container-width: 1240px;
  --header-height: 80px;
  --radius-blob: 20px 20px 20px 20px; /* Base for fluid shapes */
}

/* Reset */
*,
*::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(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* Subtle mesh background effect */
  background-image: radial-gradient(
      at 0% 0%,
      hsla(253, 16%, 7%, 1) 0,
      transparent 50%
    ),
    radial-gradient(at 50% 0%, hsla(225, 39%, 30%, 1) 0, transparent 50%),
    radial-gradient(at 100% 0%, hsla(339, 49%, 30%, 1) 0, transparent 50%);
  background-size: 100% 100vh;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Utility */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

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

ul {
  list-style: none;
}

/* --- HEADER --- */
.header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header__container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px; /* Organic pill shape */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.header__logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-dark);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

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

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

.header__link {
  font-weight: 500;
  position: relative;
  font-size: 0.95rem;
}

/* Micro-interaction: Scale & Underline */
.header__link::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background: var(--gradient-holo);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

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

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

.header__cta {
  background: var(--gradient-dark);
  color: var(--white);
  padding: 10px 24px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header__cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

/* Mobile Menu Logic */
@media (max-width: 992px) {
  .header__burger {
    display: block;
  }

  .header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
  }

  .header__nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__menu {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
}

/* --- FOOTER --- */
.footer {
  background: var(--white);
  padding: 80px 0 30px;
  margin-top: 100px; /* Separation from main content */
  border-top-left-radius: 60px; /* Fluid shape */
  border-top-right-radius: 60px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.03);
}

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

.footer__logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text-main);
  display: inline-block;
  margin-bottom: 20px;
}

.footer__desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 25px;
  max-width: 300px;
}

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

.footer__socials a {
  width: 40px;
  height: 40px;
  background: var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  transition: 0.3s;
}

.footer__socials a:hover {
  background: var(--gradient-holo);
  color: var(--white);
  transform: rotate(10deg);
}

.footer__title {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-main);
}

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

.footer__list a {
  color: #666;
  font-size: 0.95rem;
}

.footer__list a:hover {
  color: var(--text-muted);
  padding-left: 5px; /* Slight movement on hover */
}

/* Contact Specifics */
.footer__list--contacts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #666;
  font-size: 0.95rem;
}

.footer__list--contacts svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-top: 3px;
}

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

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

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer__socials {
    justify-content: center;
  }
  .footer__list--contacts li {
    justify-content: center;
  }
  .header__container {
    padding: 0 15px;
  }
}

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

/* Background Shapes for Parallax */
.hero__bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
}

.shape--1 {
  width: 500px;
  height: 500px;
  background: var(--gradient-primary);
  top: -10%;
  right: -10%;
}

.shape--2 {
  width: 400px;
  height: 400px;
  background: var(--gradient-holo);
  bottom: 10%;
  left: -5%;
}

.shape--3 {
  width: 300px;
  height: 300px;
  background: #5e6ad2;
  top: 40%;
  right: 20%;
  opacity: 0.3;
}

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

.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: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

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

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

.text-gradient {
  background: var(--gradient-holo);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.2rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 500px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 50px; /* Pill shape */
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
}

.btn--primary {
  background: var(--text-main);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(26, 26, 46, 0.2);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(26, 26, 46, 0.3);
  background: black;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #777;
  background: rgba(255, 255, 255, 0.4);
  padding: 6px 12px;
  border-radius: 12px;
}

.hero__info svg {
  width: 16px;
  height: 16px;
}

/* Glass Card Visual */
.hero__visual {
  position: relative;
  perspective: 1000px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 30px;
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s ease;
  min-height: 300px;
  display: flex;
  flex-direction: column;
}

.hero__visual:hover .glass-card {
  transform: rotateY(0deg) rotateX(0deg);
}

.glass-card__header {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.glass-card__content {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--text-main);
}

.typing-demo {
  background: rgba(255, 255, 255, 0.5);
  padding: 15px;
  border-radius: 15px 15px 15px 0;
  margin-bottom: 15px;
  display: inline-block;
  animation: slideIn 0.5s ease-out;
}

.typing-reply {
  background: var(--gradient-holo);
  color: white;
  padding: 15px;
  border-radius: 15px 15px 0 15px;
  align-self: flex-end;
  float: right;
  width: fit-content;
}

/* Loading Dots Animation */
.loading-dots span {
  animation: blink 1.4s infinite both;
  font-size: 1.5rem;
  line-height: 10px;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0% {
    opacity: 0.2;
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}

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

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

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    margin: 0 auto 30px;
  }

  .hero__actions {
    align-items: center;
    margin-bottom: 40px;
  }

  .glass-card {
    transform: none;
    max-width: 500px;
    margin: 0 auto;
  }
}

@media (max-width: 576px) {
  .hero__title {
    font-size: 2.5rem;
  }
  .hero__badge {
    font-size: 0.8rem;
  }
}

/* --- SOLUTIONS SECTION --- */
.solutions {
  padding: 100px 0;
  position: relative;
}

/* Section Header (Global Style can be reused) */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #eef2ff;
  color: var(--text-muted);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.badge-pill svg {
  width: 14px;
  height: 14px;
}

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

.section-desc {
  color: #666;
  font-size: 1.1rem;
}

/* Grid Layout */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto; /* 2 rows */
  gap: 24px;
  /* Layout map:
       [ Wide (1) ][ Wide (1) ][ Tall (2) ]
       [ Std  (3) ][ CTA  (4) ][ Tall (2) ]
    */
}

/* Base Card Style */
.sol-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 30px;
  border-radius: 30px;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Hover Effect: Lift & Glow */
.sol-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 15px 40px rgba(94, 106, 210, 0.15);
  border-color: rgba(94, 106, 210, 0.3);
}

/* Specific Sizes */
.sol-card--wide {
  grid-column: span 2;
  /* Organic shape: top-left, top-right, bottom-right, bottom-left */
  border-radius: 30px 30px 5px 30px;
}

.sol-card--tall {
  grid-column: span 1;
  grid-row: span 2;
  border-radius: 30px 30px 30px 5px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(240, 244, 255, 0.7) 100%
  );
}

.sol-card--cta {
  background: var(--gradient-dark);
  color: var(--white);
  border-radius: 5px 30px 30px 30px;
}

.sol-card--cta p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

/* Content Styling */
.sol-card h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.sol-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.sol-card--cta h3 {
  color: var(--white);
}

.icon-box {
  width: 50px;
  height: 50px;
  background: #fff;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.icon-box--blue {
  background: #eef2ff;
  color: #3a7bd5;
}

.sol-card__icon-bg {
  position: absolute;
  top: -20px;
  right: -20px;
  opacity: 0.05;
  transform: rotate(15deg);
}
.sol-card__icon-bg svg {
  width: 200px;
  height: 200px;
}

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

.link-arrow:hover {
  gap: 10px; /* Slide effect */
}

/* Features List in Tall Card */
.sol-features {
  margin-top: auto;
}
.sol-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #444;
}
.sol-features svg {
  width: 16px;
  height: 16px;
  color: #27c93f;
}

/* Small Button for CTA card */
.btn--sm {
  display: inline-flex;
  padding: 10px 20px;
  background: var(--white);
  color: var(--text-main);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.3s;
}
.btn--sm:hover {
  background: var(--gradient-holo);
  color: white;
}

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

@media (max-width: 600px) {
  .sol-grid {
    grid-template-columns: 1fr;
  }
  .sol-card--wide,
  .sol-card--tall {
    grid-column: span 1;
  }

  .section-title {
    font-size: 2rem;
  }
}

/* --- TECHNOLOGY SECTION --- */
.technology {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Background Blob */
.blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(161, 140, 209, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
}

.steps-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 80px 0;
  gap: 30px;
}

/* Connecting Line */
.steps-line {
  position: absolute;
  top: 40px; /* Aligns with icons */
  left: 50px;
  right: 50px;
  height: 2px;
  background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
  background-size: 20px 100%; /* Dashed effect */
  z-index: 0;
}

.step-card {
  flex: 1;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(94, 106, 210, 0.1);
}

/* Number behind the card (Decoration) */
.step-card__number {
  position: absolute;
  top: -40px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(0, 0, 0, 0.03);
  z-index: -1;
  line-height: 1;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 5px solid var(--white); /* White ring */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.step-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* CTA Box */
.tech-cta {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.tech-cta__box {
  background: var(--gradient-holo);
  padding: 40px 60px;
  border-radius: 30px; /* Pill/Blob shape */
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 40px rgba(58, 123, 213, 0.3);
  color: white;
  max-width: 900px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Shine effect for CTA */
.tech-cta__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

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

.tech-cta__text h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tech-cta__text p {
  font-size: 1rem;
  opacity: 0.9;
}

.btn--white {
  background: white;
  color: #3a7bd5;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}

.btn--white:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Responsive Tech Section */
@media (max-width: 992px) {
  .steps-wrapper {
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
  }

  .steps-line {
    display: none; /* Hide line on mobile */
  }

  .tech-cta__box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 25px;
  }
}

/* --- TECHNOLOGY SECTION --- */
.technology {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Background Blob */
.blob-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(161, 140, 209, 0.15) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
}

.steps-wrapper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 80px 0;
  gap: 30px;
}

/* Connecting Line */
.steps-line {
  position: absolute;
  top: 40px; /* Aligns with icons */
  left: 50px;
  right: 50px;
  height: 2px;
  background-image: linear-gradient(to right, #ccc 50%, transparent 50%);
  background-size: 20px 100%; /* Dashed effect */
  z-index: 0;
}

.step-card {
  flex: 1;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 30px 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
}

.step-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(94, 106, 210, 0.1);
}

/* Number behind the card (Decoration) */
.step-card__number {
  position: absolute;
  top: -40px;
  right: 20px;
  font-size: 5rem;
  font-weight: 900;
  font-family: var(--font-heading);
  color: rgba(0, 0, 0, 0.03);
  z-index: -1;
  line-height: 1;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-body);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  border: 5px solid var(--white); /* White ring */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

.step-icon svg {
  width: 32px;
  height: 32px;
}

.step-card h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.step-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
}

/* CTA Box */
.tech-cta {
  margin-top: 60px;
  display: flex;
  justify-content: center;
}

.tech-cta__box {
  background: var(--gradient-holo);
  padding: 40px 60px;
  border-radius: 30px; /* Pill/Blob shape */
  display: flex;
  align-items: center;
  gap: 40px;
  box-shadow: 0 20px 40px rgba(58, 123, 213, 0.3);
  color: white;
  max-width: 900px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* Shine effect for CTA */
.tech-cta__box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 4s infinite;
}

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

.tech-cta__text h4 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.tech-cta__text p {
  font-size: 1rem;
  opacity: 0.9;
}

.btn--white {
  background: white;
  color: #3a7bd5;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  white-space: nowrap;
  z-index: 2;
}

.btn--white:hover {
  background: #f0f0f0;
  transform: scale(1.05);
}

/* Responsive Tech Section */
@media (max-width: 992px) {
  .steps-wrapper {
    flex-direction: column;
    gap: 50px;
    margin-top: 50px;
  }

  .steps-line {
    display: none; /* Hide line on mobile */
  }

  .tech-cta__box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
    gap: 25px;
  }
}

/* --- BLOG SECTION --- */
.blog {
  padding: 100px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr; /* Asymmetric split */
  grid-template-rows: auto auto;
  gap: 30px;
}

.blog-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Main Featured Card specific styles */
.blog-card--main {
  grid-row: span 2; /* Takes full height on the left */
  background: transparent; /* Fluid background from body */
  border: none;
}

.blog-card--main .blog-card__image {
  height: 300px;
  width: 100%;
  overflow: hidden;
  border-radius: 20px;
  margin-bottom: 20px;
}

.blog-card--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.blog-card--main .blog-card__content {
  padding: 10px;
}

/* Side Cards Styling */
.blog-card:not(.blog-card--main) {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  padding: 30px;
  justify-content: center;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  color: #888;
}

.tag {
  background: var(--text-main);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag--blue {
  background: #3a7bd5;
}
.tag--purple {
  background: #a18cd1;
}

.blog-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.blog-card--main .blog-title {
  font-size: 2rem; /* Bigger title for main article */
}

.highlight {
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(58, 123, 213, 0.2) 100%
  );
  padding: 0 5px;
}

.blog-excerpt {
  color: #666;
  margin-bottom: 20px;
  font-size: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: gap 0.3s;
}

.blog-link:hover {
  gap: 12px;
  color: var(--text-main);
}

/* Responsive Blog */
@media (max-width: 992px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .blog-card--main {
    grid-row: auto;
  }
  .blog-card--main .blog-card__image {
    height: 250px;
  }
}

/* --- FAQ SECTION --- */
.faq {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

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

.faq-item {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: 0.3s;
}

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

.faq-trigger i {
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-trigger[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.faq-trigger[aria-expanded="true"] {
  color: #3a7bd5; /* Highlight active title */
}

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

.faq-inner {
  padding: 0 25px 25px;
  color: #666;
  line-height: 1.6;
}

.faq-extra {
  text-align: center;
  margin-top: 40px;
  font-size: 0.95rem;
  color: #777;
}

.btn--outline {
  margin-top: 15px;
  border: 2px solid var(--text-muted);
  background: transparent;
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.3s;
}

.btn--outline:hover {
  background: var(--text-muted);
  color: white;
}

/* --- CONTACT SECTION --- */
.contact {
  padding: 100px 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.8) 100%
  );
}

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

.contact__title {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.contact__desc {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
}

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

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: var(--text-main);
}
.benefit-item svg {
  color: #27c93f;
}

/* FORM STYLES */
.contact__form-wrapper {
  background: var(--white);
  padding: 40px;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  position: relative;
}

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

.form__label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #aaa;
  transition: 0.3s;
}

.form__input {
  width: 100%;
  padding: 14px 14px 14px 45px; /* Space for icon */
  border: 2px solid #eee;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all 0.3s;
  outline: none;
}

.form__input:focus {
  border-color: var(--text-muted);
  background: #fdfdfd;
}

.form__input:focus + .input-icon, /* This selector logic needs JS or different structure, handled via :focus-within in modern css */
.input-wrapper:focus-within .input-icon {
  color: var(--text-muted);
}

/* Validation Styles */
.form__input.error {
  border-color: #ff5f56;
}
.error-msg {
  display: none;
  font-size: 0.8rem;
  color: #ff5f56;
  margin-top: 5px;
}
.form__input.error ~ .error-msg {
  display: block;
}

/* Custom Checkbox (Shared) */
.custom-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  font-size: 0.9rem;
  color: #666;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  height: 22px;
  width: 22px;
  background-color: #eee;
  border-radius: 6px;
  position: relative;
  flex-shrink: 0;
  transition: 0.2s;
}

.custom-checkbox:hover input ~ .checkmark {
  background-color: #ddd;
}

.custom-checkbox input:checked ~ .checkmark {
  background-color: var(--text-muted);
}

/* Checkmark Icon */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 7px;
  top: 3px;
  width: 6px;
  height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
}

/* Captcha Specific */
.captcha-box {
  background: #f9f9f9;
  padding: 15px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  width: fit-content;
  margin-bottom: 20px;
}

.legal-text a {
  color: var(--text-muted);
  text-decoration: underline;
}

.btn--block {
  width: 100%;
  margin-top: 10px;
}

/* Success Message Overlay */
.success-message {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border-radius: 30px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 10;
  padding: 40px;
}

.success-message.active {
  display: flex;
  animation: fadeIn 0.4s ease;
}

.success-icon {
  width: 60px;
  height: 60px;
  background: #27c93f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.success-icon svg {
  width: 30px;
  height: 30px;
}

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

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

/* --- COOKIE POPUP --- */
.cookie-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateY(150%); /* Hidden by default */
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

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

.cookie-content svg {
  color: #c08b5c; /* Cookie color */
  flex-shrink: 0;
}

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

/* --- TEXT PAGES (Privacy, Terms, etc.) --- */
/* Эти стили будут работать на всех дополнительных страницах */
.pages {
  padding: 120px 0 80px; /* Top padding matches header height + space */
  min-height: 60vh;
}

.pages .container {
  max-width: 800px; /* Narrower for readability */
  background: rgba(255, 255, 255, 0.8);
  padding: 50px;
  border-radius: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.pages h1 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--text-main);
  border-bottom: 2px solid #eee;
  padding-bottom: 20px;
}

.pages h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-top: 40px;
  margin-bottom: 15px;
  color: var(--text-main);
}

.pages p {
  margin-bottom: 15px;
  color: #555;
  line-height: 1.7;
}

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

.pages ul li {
  margin-bottom: 10px;
  list-style-type: disc;
  color: #555;
}

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

/* Mobile adjust */
@media (max-width: 600px) {
  .cookie-popup {
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: none;
  }
  .pages .container {
    padding: 30px 20px;
  }
}
