:root {
  --c-bg: #030305;
  --c-text: #e0e0e0;
  --c-accent: #00f2ea;
  --c-accent-2: #ff0055;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  background-color: #030305;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  max-width: 2500px;
  margin: 0px auto;
}
body {
  cursor: auto;
  padding-top: 0;
}

body.has-custom-cursor {
  cursor: none;
}
#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  opacity: 1;
}
#smooth-wrapper {
  width: 100%;
  position: relative;
  z-index: 2;
}

.cursor-dot,
.cursor-circle {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2147483647; /* Max Z-Index to sit above Bitrix/Chat widgets */
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: white;
}
.cursor-circle {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    width 0.3s,
    height 0.3s,
    background 0.3s;
}
body:hover .cursor-circle.hovered {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--c-accent);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(10px);
}

nav .nav-links {
  display: flex !important;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  position: relative !important;
}

/* Center mega menus relative to nav-links container */
nav .has-dropdown {
  position: static !important;
}

nav .dropdown {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100% !important;
  max-width: min(90vw, 1200px);
  width: max-content;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #242430;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 242, 234, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  padding: 15px 0;
  min-width: 250px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 20px;
}
.dropdown a {
  display: block;
  padding: 12px 25px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 13px;
  text-transform: none;
  letter-spacing: 0.5px;
  transition: all 0.3s;
}
.dropdown a:hover {
  background: rgba(0, 242, 234, 0.1);
  color: var(--c-accent);
  padding-left: 30px;
}

section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10vw;
  position: relative;
}

.deployment-badge {
  display: inline-block;
  padding: 10px 20px;
  background: rgba(0, 242, 234, 0.1);
  border: 1px solid rgba(0, 242, 234, 0.3);
  border-radius: 50px;
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.1);
  backdrop-filter: blur(5px);
  margin-bottom: 30px;
}

.btn-explore {
  padding: 12px 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  color: white;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
}
.btn-explore:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

/* Primary CTA Button */
.btn-primary {
  padding: 14px 32px;
  background: var(--c-accent);
  color: #000;
  border: none;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}
.btn-primary:hover {
  background: #00d9d1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 234, 0.4);
}

/* CTA Button Container */
.build-cta {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

/* Dashboard Mockup Container */
.dashboard-mockup {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Features Image */
.features-image {
  width: 100%;
  height: auto;
  max-width: 650px;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
  animation: floatImage 6s ease-in-out infinite;
  border-radius: 12px;
}

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

.hero-sub {
  font-size: 1.5rem;
  margin-bottom: 40px;
}
.hero-content {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}
.hero-left {
  flex: 1;
  max-width: 600px;
}
.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
nav .mega-menu {
  position: absolute !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  top: 100% !important;
  max-width: min(
    60vw,
    840px
  ) !important; /* Added !important to force consistency */
  width: 100%; /* Ensure it can shrink */
}

nav .mega-menu.wide {
  max-width: min(60vw, 840px) !important;
  /* border-color: #00d9d1 !important; */
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 30px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  z-index: 100;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

nav .nav-item,
nav .nav-item a,
nav .nav-item button,
.btn-cta,
.menu-toggle {
  cursor: pointer;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  font: inherit;
  padding: 4px 0;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-item {
  font-size: 14px;
  text-transform: lowercase;
  letter-spacing: 1px;
  opacity: 0.7;
  transition: opacity 0.3s;
  position: relative;
  color: white;
}

.nav-item:hover {
  opacity: 1;
}

.nav-item.has-dropdown:hover .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 4px;
}

.dropdown-toggle .caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid rgba(255, 255, 255, 0.6);
  transition: transform 0.3s ease;
}

.nav-item.dropdown-open .dropdown-toggle,
.dropdown-toggle:hover {
  opacity: 1;
}

.nav-item.dropdown-open .caret {
  transform: rotate(180deg);
}

.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.menu-toggle:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

nav.nav-open .menu-toggle span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

nav.nav-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .menu-toggle span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.logo {
  color: var(--c-accent, #00f2ea) !important;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  transition: opacity 0.3s;
}

.logo:hover .logo-img {
  opacity: 0.8;
}

.logo-subtitle {
  font-size: 0.55rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 4px;
}

.accent-text {
  color: var(--c-accent, #00f2ea);
}

body.nav-menu-open,
body.modal-open {
  overflow: hidden;
}

#smooth-content {
  padding-top: clamp(80px, 10vw, 120px);
}

.hero {
  min-height: calc(100vh - clamp(90px, 11vw, 150px));
  padding-top: clamp(10px, 4vw, 80px);
  gap: 16px;
}

/* Fix for app pages that lack the #smooth-content wrapper */
body > .hero {
  padding-top: clamp(10px, 10vw, 200px);
}

.hero h1 {
  font-size: clamp(42px, 5vw, 84px);
  line-height: 1.05;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: clamp(18px, 2vw, 24px);
  max-width: min(720px, 90vw);
}

/* Desktop dropdown usability */
nav .has-dropdown {
  position: relative;
  height: 100%; /* Ensure full height check */
  display: flex;
  align-items: center;
}

/* HOVER BRIDGE: Fixes gap between nav item and dropdown */
nav .has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 30px; /* Covers the visual gap */
  background: transparent;
  z-index: 10;
}

/* Default dropdown adjustments */
nav .dropdown {
  margin-top: 0 !important;
  top: calc(100% + 12px) !important;
  transition:
    all 0.3s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* MEGA MENU STYLES */
nav .mega-menu {
  position: absolute;
  display: flex !important;
  flex-direction: row;
  gap: 0;
  width: max-content;
  max-width: 90vw;
  min-width: 550px;
  background: #181920;
  backdrop-filter: blur(10px);
  padding: 24px; /* Reduced padding */
  border-radius: 12px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  border: none;

  /* Initial State for Animation */
  top: 100%;
  left: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-15px);
  transition: all 0.25s cubic-bezier(0.2, 0.6, 0.2, 1);
  z-index: 1000;
}

/* Hover State */
.nav-item.has-dropdown:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px); /* Slight gap from nav */
}

/* Wide menu adjustment - Deprecated usage but kept for safety */
nav .mega-menu.wide {
  min-width: 600px;
}

/* --- GRID LAYOUT FOR FEATURES MENU --- */
nav .mega-menu.mega-menu-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  padding: 32px;
  min-width: 800px;
}

/* Reset item behavior for grid context */
nav .mega-menu.mega-menu-grid .mega-item {
  height: 100%; /* Stretch to fill grid cell height */
  box-sizing: border-box;
  width: auto !important; /* Let grid control width */
}

/* Columns */
.mega-column {
  flex: 1;
  padding: 0; /* Reset default padding */
  display: flex;
  flex-direction: column;
  gap: 2px; /* Reduced gap between items */
  border-right: 1px solid rgba(0, 242, 234, 0.15); /* Separator matching theme accent */
  padding-right: 30px; /* Space between text and border */
}

.mega-column:last-child {
  border-right: none;
  padding-right: 0; /* No extra padding on component right edge */
  padding-left: 0; /* Rely on grid gap for left spacing */
}

/* Individual Item */
.mega-item {
  display: flex !important;
  flex-direction: column; /* Changed from row to column */
  align-items: flex-start;
  gap: 2px; /* Space between Header Row and Description */
  padding: 10px !important;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s;
  background: transparent;
}

.mega-item:hover {
  background: rgba(255, 255, 255, 0.05) !important; /* White glow on hover */
  transform: translateY(-2px);
}
.mega-item-header {
  display: flex;
  align-items: center; /* Vertically center icon with text */
  gap: 13px; /* Gap between Icon and Title */
  width: 100%;
}
.mega-title-row {
  display: flex;
  align-items: center; /* Centers Icon and Text vertically */
  gap: 10px; /* Space between Icon and Heading */
  width: 100%;
}

/* Icon Container */
.mega-icon {
  flex-shrink: 0;
}

/* --- New Grid Layout for Link Groups --- */
.mega-link-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Inner columns equal width */
  gap: 5px 20px; /* Reduced gap: row-gap 5px, col-gap 20px */
  width: 100%;
  margin-top: 0;
  align-items: start;
  position: relative; /* For separator positioning */
}

/* Vertical Separator Line in Center of Grid */
.mega-link-grid::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-50%);
}

/* --- CONSOLIDATED MENU STYLES --- */
.mega-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: none;
  padding: 0;
}

.column-header {
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0px;
  letter-spacing: 2px;
  font-weight: 700;
  padding-left: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
}

.mega-link-simple {
  display: block;
  width: fit-content; /* Only take up necessary width */
  padding: 6px 8px; /* Tighter padding */
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px; /* Slightly smaller font */
  transition: all 0.2s ease;
  border-radius: 4px;
  line-height: 1.3;
  white-space: nowrap; /* Prevent wrapping */
}

.mega-link-simple:hover {
  color: var(--c-accent, #00f2ea);
  background: rgba(255, 255, 255, 0.05);
}

.mega-icon img {
  width: 20px;
  height: auto;
  opacity: 0.9;
  filter: brightness(0) invert(1); /* Ensure logo is white if it's dark */
}

/* Content */
.mega-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mega-content h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff; /* White text */
  margin: 0;
  line-height: 1.2;
}

.mega-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6); /* Muted white text */
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
  max-width: 220px;
}

.mega-item h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

/* Target P (Description) */
.mega-item p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  line-height: 1.4;
  font-weight: 400;
  max-width: 100%;
  padding-top: 10px;
  padding-left: 20px;
}

/* Hover Effect */
.mega-item:hover h4 {
  color: var(--c-accent);
}

/* Hover State */
.mega-item:hover h4 {
  color: var(--c-accent); /* Cyan accent on hover */
}

/* --- CUSTOM SCROLLBAR --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* --- UI POLISH (Glows & Transitions) --- */
.btn-cta {
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 0 0 rgba(0, 242, 234, 0);
}
.btn-cta:hover {
  box-shadow: 0 0 20px rgba(0, 242, 234, 0.4);
  border-color: var(--c-accent);
  transform: translateY(-2px);
}

/* --- FEATURE CARDS & GRID --- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 50px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  transition:
    transform 0.3s,
    background 0.3s,
    border-color 0.3s;
}

.feature-card h3 {
  font-family: var(--font-body);
  font-size: 1.2rem;
  margin-bottom: 15px;
  font-weight: 400;
  color: var(--c-accent);
  text-align: center;
}

.feature-card p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 234, 0.3);
  transform: translateY(-10px);
}

.step-icon {
  box-shadow:
    0 0 30px rgba(0, 242, 234, 0.1),
    inset 0 0 20px rgba(0, 242, 234, 0.2);
  transition: box-shadow 0.3s;
}
.arch-step:hover .step-icon {
  box-shadow:
    0 0 50px rgba(0, 242, 234, 0.3),
    inset 0 0 30px rgba(0, 242, 234, 0.4);
}

/* --- HERO SECTION REFACTOR --- */
.hero {
  display: flex;
  align-items: center; /* Vertically center */
  justify-content: space-between;
  gap: 40px;
  min-height: calc(100vh - 120px); /* Adjust for nav */
  padding-top: 20px;
  padding-bottom: 60px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Text slightly wider */
  align-items: center;
  width: 100%;
  gap: 4vw;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Pill Tag */
.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(0, 242, 234, 0.1);
  border: 1px solid rgba(0, 242, 234, 0.3);
  border-radius: 50px;
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  /* text-transform: uppercase; */
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.1);
  backdrop-filter: blur(5px);
}

/* Typography Polish */
h1,
h2,
h3 {
  letter-spacing: -0.01em;
}
.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(
    2rem,
    3.5vw,
    3.5rem
  ); /* Reduced by ~50% from (3.5rem, 6vw, 6rem) */
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 24px;
  color: #1a4f6e; /* Using a dark teal to match the "Anexee" colored feel */
  background: linear-gradient(
    90deg,
    #fff,
    #a5d8ff
  ); /* Slight gradient for depth */
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  max-width: 600px;
}

/* Hero Image */
.hero-image {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-image img {
  width: 100%;
  height: auto;
  max-width: 650px; /* Prevent it from getting too huge */
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
  animation: floatImage 6s ease-in-out infinite;
}

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

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  section {
    min-height: auto;
    padding: 140px 6vw 90px;
  }
  /* MEGA MENU MOBILE RESET */
  nav .mega-menu,
  nav .mega-menu.wide {
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    background: transparent;
    box-shadow: none;
    border: none;
    backdrop-filter: none;
    padding: 0;
    display: none !important;
    opacity: 1;
    visibility: visible;
    flex-direction: column;
    left: auto;
    top: auto;
  }

  /* Override specific overrides from desktop */
  .nav-links .nav-item:nth-child(1) .mega-menu,
  .nav-links .nav-item:nth-child(2) .mega-menu {
    left: auto;
    transform: none;
  }

  /* Show when open (JS toggle) */
  .has-dropdown.dropdown-open .mega-menu {
    display: flex !important;
  }

  /* Disable hover effect on mobile */
  .nav-item.has-dropdown:hover .mega-menu {
    transform: none;
    display: none; /* Rely on click class */
  }
  .nav-item.has-dropdown:hover .mega-menu.dropdown-open {
    display: flex !important;
  }

  /* Reset Columns */
  .mega-column {
    border-right: none;
    padding: 0;
    gap: 0;
  }

  /* Adjust Items */
  .mega-item {
    padding: 12px 16px !important;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mega-content p {
    font-size: 0.8rem;
    max-width: 100%;
    opacity: 0.7;
  }

  /* --- EXISTING STYLES BELOW --- */
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr; /* Stack on tablet */
    text-align: center;
    gap: 60px;
  }
  .hero-text {
    align-items: center; /* Center text on mobile stack */
  }
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero {
    padding-top: 60px;
  }

  /* Nav Mobile Logic */
  nav {
    padding: 16px 20px;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(3, 3, 5, 0.95);
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
  }
  nav.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .dropdown {
    position: static;
    opacity: 1 !important;
    pointer-events: auto;
    transform: none !important;
    margin-top: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 0;
    display: none;
  }
  .has-dropdown.dropdown-open .dropdown {
    display: block;
  }
  .dropdown a {
    padding: 10px 20px;
  }
  .btn-cta {
    width: auto; /* Allow button to size to content */
    padding: 8px 16px; /* Smaller padding for mobile */
    font-size: 12px;
    margin-right: 0; /* Align with toggle */
    margin-left: auto; /* Push to right, adjacent to logo if needed, but flex gap handles it */
  }
  .menu-toggle {
    margin-left: 0; /* Reset margin since gap handles spacing */
  }
}

@media (max-width: 768px) {
  .arch-steps {
    flex-direction: column;
    gap: 40px;
  }
  .arch-line {
    display: none;
  }
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 110px 5vw 70px;
  }
  nav {
    padding: 12px 20px;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
    max-height: 80px; /* Ensure consistent height */
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .logo {
    font-size: 18px; /* Slightly smaller */
  }
  .logo-img {
    height: 24px; /* Reduced from 36px/default for mobile */
    width: auto;
  }
  .site-footer {
    padding: 70px 5vw 40px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .lead-modal__dialog {
    padding: 28px;
  }
}

/* VIDEO SHOWCASE SECTION */
.video-showcase-section {
  padding: 20px 6vw 80px;
  background: transparent;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: start;
}

.video-item {
  position: relative;
  width: 100%;
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Offset center column */
.video-item:nth-child(2) {
  margin-top: 60px;
}

.video-item:nth-child(5) {
  margin-top: 60px;
}

/* Random background colors for each video */
.video-item:nth-child(1) {
  background: linear-gradient(135deg, #f7f6fb 0%, #d5d3e8 50%, #b8b5d0 100%);
}

.video-item:nth-child(2) {
  background: linear-gradient(135deg, #f2ca73 0%, #e8b84f 50%, #d9a02e 100%);
}

.video-item:nth-child(3) {
  background: linear-gradient(135deg, #1d434a 0%, #2a5c65 50%, #3a7580 100%);
}

.video-item:nth-child(4) {
  background: linear-gradient(135deg, #ede5d7 0%, #d9cdb9 50%, #c4b59b 100%);
}

.video-item:nth-child(5) {
  background: linear-gradient(135deg, #949d89 0%, #7f8a73 50%, #6a755e 100%);
}

.video-item:nth-child(6) {
  background: linear-gradient(135deg, #f1f1f1 0%, #d9d9d9 50%, #c1c1c1 100%);
}

.video-item video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .video-showcase-section {
    padding: 60px 5vw;
  }
}

/* FOOTER STYLES & CTA BAR */
.site-footer {
  background: #000;
  color: white;
  padding: 80px 6vw 40px;
  position: relative;
  overflow: hidden;
}

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

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 300px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.2rem;
  transition:
    color 0.3s,
    transform 0.3s;
}

.footer-social a:hover {
  color: var(--c-accent);
  transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: white;
}

.footer-links a {
  display: block;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 12px;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--c-accent);
}

.footer-contact p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-contact a {
  color: white;
  text-decoration: none;
  display: block;
  margin-top: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* CTA BAR (Ready to get started?) */
.cta-bar {
  background: #0a0a0f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.cta-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: white;
}

.cta-text p {
  color: rgba(255, 255, 255, 0.6);
}

.cta-form-container {
  min-width: 400px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
  .cta-bar {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  .cta-form-container {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    padding: 60px 5vw 30px;
  }
}

/* --- SECTION BACKGROUND --- */
.app-showcase-section {
  position: relative;
  /* Dark textured background similar to image */
  /* background-color: #030305;  */
  background-image: radial-gradient(
    circle at 50% 50%,
    rgba(0, 242, 234, 0.05) 0%,
    transparent 50%
  );
  padding: 80px 0;
  overflow: hidden; /* Hide overflow for carousel */
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- CAROUSEL CONTAINER --- */
.carousel-container {
  /* Force 70% of viewport width */
  width: 70vw !important;
  max-width: 1000px;
  margin: 0 auto; /* Centers the container */
  position: relative;
  perspective: 1000px;
}

.carousel-track {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px; /* Adjust based on your content height */
  position: relative;
}

/* --- INDIVIDUAL SLIDE --- */
.carousel-slide {
  position: absolute;
  width: 80%; /* Width of the central card */
  max-width: 900px;
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  opacity: 0;
  transform: scale(0.8) translateX(100%); /* Default hidden state */
  z-index: 1;
  pointer-events: none; /* Prevent clicking inactive slides */
}

/* Active Slide (Center) */
.carousel-slide.active {
  opacity: 1;
  transform: scale(1) translateX(0);
  z-index: 10;
  pointer-events: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); /* Deep shadow */
}

/* Previous Slide (Left) */
.carousel-slide.prev {
  opacity: 0.4;
  transform: scale(0.7) translateX(-60%);
  z-index: 5;
  filter: blur(2px); /* Slight blur for depth */
}

/* Next Slide (Right) */
.carousel-slide.next {
  opacity: 0.4;
  transform: scale(0.7) translateX(60%);
  z-index: 5;
  filter: blur(2px);
}

/* --- APP WINDOW DESIGN (The Card) --- */
.app-window {
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* 1. Header (White bar) */
.window-header {
  background: #ffffff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

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

.win-brand img {
  height: 20px;
  width: auto;
}

.win-badge {
  font-size: 0.75rem;
  color: #666;
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}

.win-controls {
  display: flex;
  gap: 6px;
}

.win-dot {
  width: 8px;
  height: 8px;
  background: #ddd;
  border-radius: 50%;
}

/* 2. Body (Image Area) */
.window-body {
  background: #f8f9fa;
  position: relative;
  /* Aspect ratio to match screenshot (roughly 16:9 or similar) */
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.window-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 3. Footer (Dark Blue Text Area) */
.window-footer {
  /* Match the dark blue from your screenshot */
  background: #001e2b;
  padding: 30px 40px;
  color: white;
  text-align: left;
}

.window-footer h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #fff;
  font-weight: 600;
}

.window-footer p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  max-width: 700px;
  margin: 0;
}

/* --- NAVIGATION DOTS --- */
.carousel-nav {
  /* position: absolute; */
  bottom: 50px; /* Adjust based on container height */
  left: 50%;
  margin-top: 50px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 20;
}

.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-dot.active {
  background: #fff;
  transform: scale(1.2);
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1); /* Glassy background */
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.carousel-arrow:hover {
  background: white;
  color: #000; /* Icon turns black on hover */
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 0 20px rgba(0, 242, 234, 0.4); /* Cyan glow */
}

/* Positioning */
.carousel-arrow.prev {
  left: -80px; /* Moves button outside the 70% container */
}

.carousel-arrow.next {
  right: -80px; /* Moves button outside the 70% container */
}

/* Update this rule to include 'video' */
.window-body img,
.window-body video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video fills the area without stretching */
  display: block;
}

/* Shared Component Styles (moved from internal HTML to global consistency) */

/* Typewriter Container - Controls spacing before CTA button */
/* Typewriter Container - Controls spacing before CTA button */
.typewriter-container {
  font-size: 1.1rem;
  font-weight: 500;
  color: white;
  margin-top: 5px; /* Reduced to 5px based on user feedback to reduce spacing */
  margin-bottom: 35px;
  letter-spacing: 0.3px;
  min-height: 1.5em;
  line-height: 1.5;
}

#typewriter-text {
  display: inline-block;
  min-width: 1ch;
}

/* CTA Button */
.btn-cta {
  padding: 12px 15px;
  background: var(--c-accent, #00f2ea);
  color: #000;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 242, 234, 0.3);
}

.btn-cta:hover {
  background: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 234, 0.5);
}

/* CTA Outline Button (Transparent with Border) */
.btn-cta-outline {
  padding: 12px 24px;
  background: transparent;
  color: #fff;
  border: 1px solid var(--c-accent, #00f2ea);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  margin-left: 10px; /* Spacing between buttons */
}

.btn-cta-outline:hover {
  background: rgba(0, 242, 234, 0.1);
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
  transform: translateY(-2px);
}

/* Application Tags (Separated from CTA styling) */
.app-tag {
  padding: 10px 24px;
  border: 1px solid rgba(0, 242, 234, 0.3); /* Restored original semi-transparent border */
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: transparent;
  color: white;
  display: inline-block;
  white-space: nowrap;
}

.app-tag:hover {
  background: rgba(0, 242, 234, 0.1);
  border-color: rgba(0, 242, 234, 0.8);
  transform: translateY(-2px);
}

/* --- Wave Journey (Reference UI Style) --- */
/* --- Wave Journey (Reference UI Style) --- */
.journey-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 60px 0;
  width: 100%; /* Changed from max-width to width 100% to fill grid column */
  /* margin: 0 auto; Removed auto margin */
}

/* Background Curve */
.journey-line-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

.anim-dash {
  stroke-dasharray: 10;
  animation: dashMove 30s linear infinite;
}

@keyframes dashMove {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Journey Steps */
.journey-step {
  position: relative;
  z-index: 2;
  width: 160px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* Alternating Vertical offsets for the Wave effect */
.step-odd {
  transform: translateY(-40px);
}
.step-even {
  transform: translateY(40px);
}

/* Mini UI Card */
.mini-ui {
  width: 140px;
  height: 100px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.journey-step:hover .mini-ui {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 242, 234, 0.2);
}

/* UI Header */
.ui-header {
  height: 18px;
  background: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 4px;
}

.ui-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ccc;
}
.journey-step:hover .ui-dot {
  background: var(--c-accent);
}

/* UI Body */
.ui-body {
  flex: 1;
  padding: 10px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ui-icon {
  font-size: 24px;
  color: #333;
  transition: color 0.3s;
}

.journey-step:hover .ui-icon {
  color: var(--c-accent);
}

/* Placeholder UI Elements */
.ui-line {
  height: 4px;
  background: #eee;
  width: 80%;
  margin: 4px auto;
  border-radius: 2px;
  position: absolute;
  bottom: 20px;
}
.ui-line.short {
  width: 50%;
  bottom: 10px;
}

.ui-chart-bar {
  width: 30px;
  height: 30px;
  background: conic-gradient(var(--c-accent) 0 70%, #eee 0 100%);
  border-radius: 50%;
}

.journey-text h3 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 5px;
  font-weight: 600;
}

.journey-text p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .journey-container {
    flex-direction: column;
    gap: 50px;
  }
  .journey-line-svg {
    display: none;
  } /* Hide wave on mobile */

  .step-odd,
  .step-even {
    transform: none;
  }
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  position: relative;
  background: #0a0a0f;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 25px 50px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(0, 242, 234, 0.1);
  padding: 40px;
  overflow-y: auto;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 36px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
  color: var(--c-accent);
}

/* CUSTOMIZE BITRIX FORM TO FIT MODAL */
.b24-form-wrapper {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.b24-form-header {
  color: white !important;
}

@media (max-width: 768px) {
  .modal-container {
    padding: 20px;
    width: 95%;
  }
}

/* --- NEW ADVANTAGE CARD REDESIGN --- */
.advantage-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  height: 100%;
}

.advantage-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 234, 0.5); /* Accent color border */
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(0, 242, 234, 0.1);
}

.advantage-card h3 {
  font-family: "Onest", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.advantage-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin: 0;
}

/* Icon Styling */
.advantage-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--c-accent, #00f2ea); /* Use accent color for icon */
  transition: all 0.3s ease;
}

.advantage-card:hover .advantage-icon {
  background: var(--c-accent, #00f2ea);
  color: #000; /* Dark icon on bright background on hover */
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

/* --- CIRCULAR PROCESS LAYOUT --- */
.circular-process-area {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .circular-process-area {
    aspect-ratio: auto;
    height: auto;
    flex-direction: column;
    gap: 30px;
  }
  .circle-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
}

.circle-center-logo {
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--c-accent, #00f2ea);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 50px rgba(0, 242, 234, 0.15);
  backdrop-filter: blur(5px);
}

.circle-bg-ring {
  position: absolute;
  width: 80%; /* Orbit radius approx */
  height: 80%;
  border: 5px dashed rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: spinSlow 60s linear infinite;
  pointer-events: none;
}

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

.circle-item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 250px;
  margin-left: -110px; /* Half width */
  margin-top: -80px; /* Half height approx */
  z-index: 5;
  transition: all 0.3s ease;
}

/* Card Styling */
.circle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.circle-card:hover {
  background: rgba(0, 242, 234, 0.1);
  border-color: var(--c-accent, #00f2ea);
  transform: translateY(-5px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(0, 242, 234, 0.2);
}

.circle-card img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  margin-bottom: 5px;
}

.circle-card h4 {
  font-size: 1rem;
  color: white;
  margin: 0;
  font-weight: 600;
}

/* Positioning - Radius ~320px */
/* Angles: 0(Top), 72, 144, 216, 288 */
/* Note: CSS rotate starts from 12 o'clock if logical, but transform rotate starts from X axis (3 o'clock). 
   Let's assume -90deg is Top. */

/* Item 1: Top (-90deg) */
.pos-1 {
  transform: rotate(-90deg) translate(320px) rotate(90deg);
}

/* Item 2: Top Right (-18deg) */
.pos-2 {
  transform: rotate(-18deg) translate(320px) rotate(18deg);
}

/* Item 3: Bottom Right (54deg) */
.pos-3 {
  transform: rotate(54deg) translate(320px) rotate(-54deg);
}

/* Item 4: Bottom Left (126deg) */
.pos-4 {
  transform: rotate(126deg) translate(320px) rotate(-126deg);
}

/* Item 5: Top Left (198deg) */
.pos-5 {
  transform: rotate(198deg) translate(320px) rotate(-198deg);
}
/* Footer Layout Adjustment for 4 Columns */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1fr 1fr; /* Brand wider, links narrower */
  gap: 30px;
  width: 100%;
  max-width: 100%; /* Allow full width to align with navbar */
  margin: 0;
  padding: 60px 50px; /* Match navbar horizontal padding (50px) */
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr; /* 2 columns on tablet */
  }
  .footer-brand {
    grid-column: span 2; /* Brand takes full width */
    text-align: center;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr; /* Stack on mobile */
    text-align: center;
  }
  .footer-brand {
    grid-column: auto;
  }
}

/* --- SHARED FEATURE SECTION STYLES (Moved from Page-Level) --- */
.feature-section {
  padding: 100px 5vw;
  display: flex;
  flex-direction: column;
  gap: 60px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-section:last-child {
  border-bottom: none;
}
.feature-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}
.feature-reverse {
  flex-direction: row-reverse;
}
.feature-text {
  flex: 1;
  max-width: 600px;
}
.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  width: 100%;
}
.feature-badge {
  color: var(--c-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 25px;
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(0, 242, 234, 0.3);
  border-radius: 50px;
  background: rgba(0, 242, 234, 0.05);
}
.feature-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  margin-bottom: 25px;
  line-height: 1.2;
  color: white;
}
.feature-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.15rem;
  line-height: 1.7;
  margin-bottom: 40px;
}
.feature-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 16px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}
.feature-box:hover {
  transform: translateY(-5px);
  border-color: var(--c-accent);
  background: rgba(0, 242, 234, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.box-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: white;
  font-family: var(--font-display);
}
.box-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* --- REUSABLE PROTO-GRID STYLES (Moved from feature-grid.css) --- */
.proto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 50px auto; /* Centered grid */
  width: 100%;
  max-width: 1400px;
}
.proto-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 12px;
  transition:
    transform 0.3s,
    background 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.proto-card:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-10px);
  border-color: rgba(0, 242, 234, 0.3);
}
.proto-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--c-accent);
  margin-top: 20px;
}
.proto-card p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}
/* Ensure box-icon is available */
.box-icon {
  font-size: 28px;
  color: var(--c-accent);
  margin-bottom: 20px;
  display: inline-block;
}
@media (max-width: 900px) {
  .proto-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .proto-grid {
    grid-template-columns: 1fr;
  }
}

/* Fix for centered feature headers */
.feature-grid-header {
  text-align: center !important;
  max-width: 900px;
  margin: 0 auto 60px auto !important;
}
