/* ============================
   NAVBAR
   ============================ */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(225, 11, 44, 0.4);
  transition: background var(--transition);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px
}

.logo {
  font-weight: 900;
  font-size: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: -0.02em;
}

.logo-dark,
.logo-light {
  margin-left: -10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--red), #ff4d63);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 18px;
  color: #fff;
  animation: pulse 3s infinite;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  margin-left: auto
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color var(--transition);
}

.nav-links a:not(.btn):hover {
  color: #fff
}

.nav-links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 0;
  background: var(--red);
  transition: width var(--transition);
}

.nav-links a:not(.btn):hover::after {
  width: 100%
}

/* Mobile menu */
.hamburger {
  display: none;
  background: none;
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  border-radius: 10px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition);
}

.hamburger:hover {
  border-color: var(--red)
}

/* Theme toggle */
.theme-toggle {
  margin-left: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.theme-toggle:hover {
  background: var(--red);
  border-color: var(--red);
  transform: rotate(20deg) scale(1.1)
}

/* ============================
   HERO
   ============================ */

:root {
  --red: #ff2a4b;
  --red-hover: #e01f3f;
  --bg-dark: #0a0406;
  --text-main: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.75);
}

/* ============================
   GLOBAL CONTAINER & BASE
   ============================ */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
  box-sizing: border-box;
}

/* ============================
   NAVBAR
   ============================ */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 20px 0;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
}

.brand-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* ============================
   HERO SECTION
   ============================ */
.hero {
  position: relative;
  min-height: 640px;
  padding: 80px 0;
  display: flex;
  align-items: center;
  /* background: #080004 url('../img/bg.png') no-repeat right center / cover; */
  overflow: hidden;
  box-sizing: border-box;
}

.hero {
  background:
    linear-gradient(90deg,
      #080004 0%,
      rgba(8, 0, 4, 0.95) 35%,
      rgba(8, 0, 4, 0.55) 60%,
      rgba(8, 0, 4, 0.15) 100%),
    #080004 url('../img/bg.png') no-repeat right center / contain;
}

/* Dark gradient overlay for readability on left side */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: linear-gradient(90deg,
      #080004 0%,
      rgba(8, 0, 4, 0.95) 38%,
      rgba(8, 0, 4, 0.65) 60%,
      rgba(8, 0, 4, 0.15) 100%);
  z-index: 1; */
  pointer-events: none;
}

.hero .wrap {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 620px;
  animation: fadeUp 0.8s ease-out forwards;
}

/* Eyebrow Label */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.eyebrow-line {
  width: 28px;
  height: 3px;
  background-color: var(--red);
  border-radius: 2px;
}

.eyebrow-text {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
}

/* Headline */
.hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #ffffff;
}

.hero h1 .highlight-red {
  color: var(--red);
}

/* Lead Paragraph */
.hero-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 480px;
  font-weight: 400;
}

/* CTA Buttons */
.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-red {
  background-color: var(--red);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 20px rgba(255, 42, 75, 0.35);
}

.btn-red:hover {
  background-color: var(--red-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 42, 75, 0.45);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(198, 106, 106, 0.304);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff !important;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 6px;
}

.play-icon-wrap {
  width: 24px;
  height: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Feature Highlights Row */
.hero-features {
  display: flex;
  align-items: center;
  gap: 40px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  background: rgba(255, 42, 75, 0.08);
  flex-shrink: 0;
}

.feature-item span {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.9);
}

/* Glow Blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 1;
}

.hero-blob-1 {
  width: 450px;
  height: 450px;
  background: rgba(255, 42, 75, 0.3);
  bottom: -100px;
  left: -100px;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: rgba(255, 42, 75, 0.2);
  top: 10%;
  left: 30%;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================
   RESPONSIVE DESIGN
   ============================ */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-features {
    flex-direction: row;
    align-items: flex-start;
    /* gap: 20px; */
  }

  .feature-item {
    display: ruby-text;
    align-items: flex-start;
    justify-items: center;
    gap: 12px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .hero {
    /* stack: text on top, image at bottom */
    background:
      #080004 url('../img/bg.png') no-repeat bottom center / contain;
    background-position: bottom center;
    padding-bottom: 260px;
    min-height: auto;
  }

  /* Optional: dark fade from bottom so the image blends nicely */
  .hero::after {
    display: block;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
        rgba(8, 0, 4, 0) 0%,
        /* image visible at bottom */
        rgba(8, 0, 4, 0.55) 40%,
        rgba(8, 0, 4, 0.9) 100%
        /* solid at top for text */
      );
    z-index: 1;
    pointer-events: none;
  }

  .hero .wrap {
    position: relative;
    z-index: 2;
  }
}

/* ============================
   SECTIONS GENERAL
   ============================ */
section {
  padding: 100px 0
}

/* ============================
   STATS BAR
   ============================ */
.stats-bar {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a0a10 100%);
  color: #fff;
  padding: 60px 0;
  border-top: 1px solid rgba(225, 11, 44, 0.2);
  border-bottom: 1px solid rgba(225, 11, 44, 0.2);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 20px
}

.stat-num {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 900;
  color: var(--red);
  display: block;
  letter-spacing: -0.03em;
}

.stat-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px
}

/* ============================
   FEATURES SECTION
   ============================ */

#features {
  background: #0a0406;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

#features::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #ff2a4b;
  filter: blur(160px);
  opacity: 0.12;
  left: -180px;
  top: 15%;
  animation: blobFloat 12s ease-in-out infinite;
}

#features .wrap {
  position: relative;
  z-index: 1;
}

/* Section header */
#features .section-header {
  margin-bottom: 56px;
}

#features .section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

#features .section-header h2 .accent {
  color: #ff2a4b;
}

#features .section-header .bar {
  display: block;
  width: 60px;
  height: 4px;
  background: #ff2a4b;
  border-radius: 2px;
  margin: 16px 0 20px;
}

#features .section-header p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 620px;
  margin: 0;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.features-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.features-bottom-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
}

/* ============================
   FIRST ROW — 3 EQUAL CARDS
   ============================ */

.features-grid>.feature-card:nth-child(1) {
  grid-column: 1 / span 3;
}

.features-grid>.feature-card:nth-child(2) {
  grid-column: 4 / span 3;
}

.features-grid>.feature-card:nth-child(3) {
  grid-column: 7 / span 3;
}

/* ============================
   SECOND ROW — 1.2 : 1.8
   ============================ */

/* Card 4 = 40% */
.features-grid>.feature-card:nth-child(4) {
  grid-column: 1 / span 4;
}

/* Card 5 = 60% */
.features-grid>.feature-card:nth-child(5) {
  grid-column: 5 / span 6;
}


/* Card base */
.feature-card {
  background: #14080c;
  border: 1px solid rgba(255, 42, 75, 0.25);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ff2a4b, #ff4d63);
  transition: width 0.5s ease;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 75, 0.6);
  box-shadow: 0 30px 60px rgba(255, 42, 75, 0.15);
}

.feature-card:hover::before {
  width: 100%;
}

/* Card inner layout */
.feature-card-top {
  display: flex;
  flex-direction: row;
  gap: 100px;
}

/* Text area */
.feature-card-text h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}

.feature-card-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card-text li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}

.feature-card-text li:first-child {
  border-top: none;
}

.feature-card-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: #ff2a4b;
  font-weight: 800;
  font-size: 13px;
}

.feature-card-text li strong {
  font-weight: 700;
  color: #fff;
}

/* Feature card image / icon container */
.feature-card-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 55px;
  margin-bottom: 8px;
}

.feature-card-image img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  opacity: 0.95;
  transition: transform 0.3s ease;
}

.feature-card-top4 {
  display: flex;
  flex-direction: row;
  gap: 35px;
}

/* Per-image scale tuning */
.feature-card-image img[src*="feature-database"] {
  transform: scale(1.85);
  margin-right: 16px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}

.feature-card-image img[src*="feature-complaint"] {
  transform: scale(2.0);
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}

.feature-card-image img[src*="feature-workforce"] {
  transform: scale(2.30);
  margin-right: 31px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}

.feature-card-image img[src*="feature-warranty"] {
  transform: scale(2.60);
  height: auto;
  width: 72px;
  object-fit: contain;
  margin-right: 13px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}

.feature-card-image img[src*="feature-reporting"] {
  transform: scale(4.28);
  height: auto;
  width: 72px;
  object-fit: contain;
  margin-right: 72px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}

.feature-card:hover .feature-card-image img[src*="feature-database"] {
  transform: scale(1.55);
}

.feature-card:hover .feature-card-image img[src*="feature-complaint"] {
  transform: scale(1.85);
}

.feature-card:hover .feature-card-image img[src*="feature-workforce"] {
  transform: scale(2.10);
}

.feature-card:hover .feature-card-image img[src*="feature-warranty"] {
  transform: scale(2.30);
}

.feature-card:hover .feature-card-image img[src*="feature-reporting"] {
  transform: scale(4.0);
}

/* Blob animation */
@keyframes blobFloat {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(30px, -30px) scale(1.05);
  }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  /* .features-grid {
    grid-template-columns: repeat(2, 1fr);
  } */

  /* Card 4 takes 1 col, Card 5 takes 2 (full row) */
  .features-grid>.feature-card:nth-child(4) {
    grid-column: span 1 / span 1;
  }

  .features-grid>.feature-card:nth-child(5) {
    grid-column: span 2 / span 2;
  }
}

@media (max-width: 768px) {
  /* .features-grid {
    grid-template-columns: 1fr;
  } */

  .features-grid>.feature-card:nth-child(4),
  .features-grid>.feature-card:nth-child(5) {
    grid-column: span 1 / span 1;
  }

  #features {
    padding: 70px 0;
  }
}

@media (max-width: 640px) {
  .feature-card {
    padding: 24px 20px;
  }

  .feature-card-image img {
    width: 60px;
    height: 60px;
  }
}

/* =========================================================
   FEATURES GRID
   ========================================================= */

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}


/* =========================================================
   TOP ROW
   Desktop: 3 equal cards
   ========================================================= */

.features-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}

.features-bottom-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  width: 100%;
}


/* =========================================================
   CARD BASE
   ========================================================= */

.feature-card {
  background: #14080c;
  border: 1px solid rgba(255, 42, 75, 0.25);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  min-width: 0;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* Top red line */

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ff2a4b, #ff4d63);
  transition: width 0.5s ease;
}


.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 75, 0.6);
  box-shadow: 0 30px 60px rgba(255, 42, 75, 0.15);
}


.feature-card:hover::before {
  width: 100%;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.feature-card-top {
  display: flex;
  flex-direction: row;
  gap: 60px;
  min-width: 0;
}


.feature-card-top4 {
  display: flex;
  flex-direction: row;
  gap: 35px;
  min-width: 0;
}


/* =========================================================
   TEXT AREA
   ========================================================= */

.feature-card-text {
  min-width: 0;
  flex: 1;
}


.feature-card-text h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}


.feature-card-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.feature-card-text li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);

  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}


.feature-card-text li:first-child {
  border-top: none;
}


.feature-card-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;

  color: #ff2a4b;
  font-weight: 800;
  font-size: 13px;
}


.feature-card-text li strong {
  font-weight: 700;
  color: #fff;
}


/* =========================================================
   IMAGE CONTAINER
   ========================================================= */

.feature-card-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 55px;
  margin-bottom: 8px;

  min-width: 0;
}


.feature-card-image img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;

  opacity: 0.95;

  transition: transform 0.3s ease;
}


/* =========================================================
   IMAGE SCALE
   ========================================================= */

.feature-card-image img[src*="feature-database"] {
  transform: scale(1.85);
  margin-right: 16px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-complaint"] {
  transform: scale(2);
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-workforce"] {
  transform: scale(2.30);
  margin-right: 31px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-warranty"] {
  transform: scale(2.60);
  height: auto;
  width: 72px;
  object-fit: contain;
  margin-right: 13px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-reporting"] {
  transform: scale(4.28);
  height: auto;
  width: 72px;
  object-fit: contain;
  margin-right: 72px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


/* =========================================================
   HOVER IMAGE SCALE
   ========================================================= */

.feature-card:hover .feature-card-image img[src*="feature-database"] {
  transform: scale(2);
}


.feature-card:hover .feature-card-image img[src*="feature-complaint"] {
  transform: scale(2.15);
}


.feature-card:hover .feature-card-image img[src*="feature-workforce"] {
  transform: scale(2.45);
}


.feature-card:hover .feature-card-image img[src*="feature-warranty"] {
  transform: scale(2.75);
}


.feature-card:hover .feature-card-image img[src*="feature-reporting"] {
  transform: scale(4.45);
}


/* =========================================================
   TABLET
   1024px
   ========================================================= */

@media (max-width: 1024px) {

  #features {
    padding: 80px 0;
  }


  /* Top cards become 2 columns */

  .features-top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* Bottom row remains 40 / 60 */

  .features-bottom-row {
    grid-template-columns: 2fr 3fr;
  }


  .feature-card {
    padding: 28px 24px;
  }


  .feature-card-top {
    gap: 35px;
  }


  .feature-card-image {
    gap: 30px;
  }

}


/* =========================================================
   SMALL TABLET
   900px
   ========================================================= */

@media (max-width: 900px) {

  .feature-card-top {
    gap: 25px;
  }


  .feature-card-image {
    gap: 20px;
  }


  .feature-card-text h3 {
    font-size: 19px;
  }


  .feature-card-text li {
    font-size: 13px;
  }

}


/* =========================================================
   MOBILE
   768px
   ONE CARD PER ROW
   ========================================================= */

@media (max-width: 768px) {

  #features {
    padding: 70px 0;
  }


  #features .section-header {
    margin-bottom: 40px;
  }


  #features .section-header h2 {
    font-size: clamp(28px, 7vw, 38px);
  }


  #features .section-header p {
    font-size: 15px;
    line-height: 1.6;
  }


  /* ==========================================
     TOP ROW
     1 CARD PER ROW
     ========================================== */

  .features-top-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* ==========================================
     BOTTOM ROW
     1 CARD PER ROW
     ========================================== */

  .features-bottom-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* ==========================================
     ALL CARDS
     ========================================== */

  .feature-card {
    width: 100%;
    padding: 26px 22px;
    border-radius: 18px;
  }


  /* Disable large desktop movement */

  .feature-card:hover {
    transform: translateY(-4px);
  }


  /* ==========================================
     CARD 1–3
     ========================================== */

  .feature-card-image {
    gap: 20px;
  }


  .feature-card-text h3 {
    font-size: 19px;
  }


  .feature-card-text li {
    font-size: 14px;
    line-height: 1.55;
  }


  /* ==========================================
     CARD 4 & 5
     ========================================== */

  .feature-card-top,
  .feature-card-top4 {
    flex-direction: column;
    gap: 25px;
  }


  .feature-card-top > .feature-card-image,
  .feature-card-top4 > .feature-card-image {
    width: 100%;
    justify-content: center;
    margin: 10px 0 20px;
  }


  /* Reporting image */

  .feature-card-image img[src*="feature-reporting"] {
    margin-right: 0;
  }


  /* Warranty image */

  .feature-card-image img[src*="feature-warranty"] {
    margin-right: 0;
  }

}


/* =========================================================
   SMALL MOBILE
   600px
   ========================================================= */

@media (max-width: 600px) {

  #features {
    padding: 60px 0;
  }


  #features .section-header h2 {
    font-size: 30px;
    line-height: 1.2;
  }


  #features .section-header .bar {
    width: 50px;
    height: 3px;
    margin: 14px 0 18px;
  }


  .features-grid {
    gap: 18px;
  }


  .features-top-row,
  .features-bottom-row {
    gap: 18px;
  }


  .feature-card {
    padding: 24px 18px;
    border-radius: 16px;
  }


  .feature-card-text h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }


  .feature-card-text li {
    padding: 9px 0 9px 24px;
    font-size: 13px;
  }


  .feature-card-text li::before {
    top: 9px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   480px
   ========================================================= */

@media (max-width: 480px) {

  #features {
    padding: 50px 0;
  }


  #features .section-header {
    margin-bottom: 32px;
  }


  #features .section-header h2 {
    font-size: 27px;
  }


  #features .section-header p {
    font-size: 14px;
  }


  .feature-card {
    padding: 22px 16px;
  }


  .feature-card-image {
    gap: 12px;
  }


  .feature-card-text h3 {
    font-size: 17px;
    padding: 4px;
  }


  .feature-card-text li {
    font-size: 13px;
    line-height: 1.5;
  }


  /* Slightly reduce huge image scaling on phones */

  .feature-card-image img[src*="feature-database"] {
    transform: scale(1.55);
  }


  .feature-card-image img[src*="feature-complaint"] {
    transform: scale(1.7);
  }


  .feature-card-image img[src*="feature-workforce"] {
    transform: scale(1.9);
    margin-right: 10px;
  }


  .feature-card-image img[src*="feature-warranty"] {
    transform: scale(2.1);
  }


  .feature-card-image img[src*="feature-reporting"] {
    transform: scale(2.8);
  }


  /* Hover is not really needed on mobile */

  .feature-card:hover .feature-card-image img[src*="feature-database"] {
    transform: scale(1.55);
  }


  .feature-card:hover .feature-card-image img[src*="feature-complaint"] {
    transform: scale(1.7);
  }


  .feature-card:hover .feature-card-image img[src*="feature-workforce"] {
    transform: scale(1.9);
  }


  .feature-card:hover .feature-card-image img[src*="feature-warranty"] {
    transform: scale(2.1);
  }


  .feature-card:hover .feature-card-image img[src*="feature-reporting"] {
    transform: scale(2.8);
  }

}


/* =========================================================
   EXTRA SMALL PHONES
   360px
   ========================================================= */

@media (max-width: 360px) {

  .feature-card {
    padding: 20px 14px;
  }


  #features .section-header h2 {
    font-size: 25px;
  }


  .feature-card-text h3 {
    font-size: 16px;
  }


  .feature-card-text li {
    font-size: 12.5px;
  }


  .feature-card-image img[src*="feature-database"] {
    transform: scale(1.4);
  }


  .feature-card-image img[src*="feature-complaint"] {
    transform: scale(1.5);
  }


  .feature-card-image img[src*="feature-workforce"] {
    transform: scale(1.7);
  }


  .feature-card-image img[src*="feature-warranty"] {
    transform: scale(1.9);
  }


  .feature-card-image img[src*="feature-reporting"] {
    transform: scale(2.5);
  }

}/* =========================================================
   FEATURES GRID
   ========================================================= */

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}


/* =========================================================
   TOP ROW
   Desktop: 3 equal cards
   ========================================================= */

.features-top-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
}


/* =========================================================
   BOTTOM ROW
   Desktop: 40% / 60%
   ========================================================= */

.features-bottom-row {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 24px;
  width: 100%;
}


/* =========================================================
   CARD BASE
   ========================================================= */

.feature-card {
  background: #14080c;
  border: 1px solid rgba(255, 42, 75, 0.25);
  border-radius: 20px;
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  min-width: 0;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* Top red line */

.feature-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #ff2a4b, #ff4d63);
  transition: width 0.5s ease;
}


.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 75, 0.6);
  box-shadow: 0 30px 60px rgba(255, 42, 75, 0.15);
}


.feature-card:hover::before {
  width: 100%;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.feature-card-top {
  display: flex;
  flex-direction: row;
  gap: 60px;
  min-width: 0;
}


.feature-card-top4 {
  display: flex;
  flex-direction: row;
  gap: 35px;
  min-width: 0;
}


/* =========================================================
   TEXT AREA
   ========================================================= */

.feature-card-text {
  min-width: 0;
  flex: 1;
}


.feature-card-text h3 {
  font-size: 20px;
  font-weight: 800;
  line-height: 30px;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: #fff;
}


.feature-card-text ul {
  list-style: none;
  padding: 0;
  margin: 0;
}


.feature-card-text li {
  padding: 10px 0 10px 26px;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.06);

  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
}


.feature-card-text li:first-child {
  border-top: none;
}


.feature-card-text li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;

  color: #ff2a4b;
  font-weight: 800;
  font-size: 13px;
}


.feature-card-text li strong {
  font-weight: 700;
  color: #fff;
}


/* =========================================================
   IMAGE CONTAINER
   ========================================================= */

.feature-card-image {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 55px;
  margin-bottom: 8px;

  min-width: 0;
}


.feature-card-image img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;

  opacity: 0.95;

  transition: transform 0.3s ease;
}


/* =========================================================
   IMAGE SCALE
   ========================================================= */

.feature-card-image img[src*="feature-database"] {
  transform: scale(1.85);
  margin-right: 16px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-complaint"] {
  transform: scale(2);
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-workforce"] {
  transform: scale(2.30);
  margin-right: 31px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-warranty"] {
  transform: scale(2.60);
  height: auto;
  width: 72px;
  object-fit: contain;
  margin-right: 13px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


.feature-card-image img[src*="feature-reporting"] {
  transform: scale(4.28);
  height: auto;
  width: 72px;
  object-fit: contain;
  margin-right: 72px;
  filter: drop-shadow(0 10px 14px rgba(113, 26, 26, 0.663));
}


/* =========================================================
   HOVER IMAGE SCALE
   ========================================================= */

.feature-card:hover .feature-card-image img[src*="feature-database"] {
  transform: scale(2);
}


.feature-card:hover .feature-card-image img[src*="feature-complaint"] {
  transform: scale(2.15);
}


.feature-card:hover .feature-card-image img[src*="feature-workforce"] {
  transform: scale(2.45);
}


.feature-card:hover .feature-card-image img[src*="feature-warranty"] {
  transform: scale(2.75);
}


.feature-card:hover .feature-card-image img[src*="feature-reporting"] {
  transform: scale(4.45);
}


/* =========================================================
   TABLET
   1024px
   ========================================================= */

@media (max-width: 1024px) {

  #features {
    padding: 80px 0;
  }


  /* Top cards become 2 columns */

  .features-top-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }


  /* Bottom row remains 40 / 60 */

  .features-bottom-row {
    grid-template-columns: 2fr 3fr;
  }


  .feature-card {
    padding: 28px 24px;
  }


  .feature-card-top {
    gap: 35px;
  }


  .feature-card-image {
    gap: 30px;
  }

}


/* =========================================================
   SMALL TABLET
   900px
   ========================================================= */

@media (max-width: 900px) {

  .feature-card-top {
    gap: 25px;
  }


  .feature-card-image {
    gap: 20px;
  }


  .feature-card-text h3 {
    font-size: 19px;
  }


  .feature-card-text li {
    font-size: 13px;
  }

}


/* =========================================================
   MOBILE
   768px
   ONE CARD PER ROW
   ========================================================= */

@media (max-width: 768px) {

  #features {
    padding: 70px 0;
  }


  #features .section-header {
    margin-bottom: 40px;
  }


  #features .section-header h2 {
    font-size: clamp(28px, 7vw, 38px);
  }


  #features .section-header p {
    font-size: 15px;
    line-height: 1.6;
  }


  /* ==========================================
     TOP ROW
     1 CARD PER ROW
     ========================================== */

  .features-top-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* ==========================================
     BOTTOM ROW
     1 CARD PER ROW
     ========================================== */

  .features-bottom-row {
    grid-template-columns: 1fr;
    gap: 20px;
  }


  /* ==========================================
     ALL CARDS
     ========================================== */

  .feature-card {
    width: 100%;
    padding: 26px 22px;
    border-radius: 18px;
  }


  /* Disable large desktop movement */

  .feature-card:hover {
    transform: translateY(-4px);
  }


  /* ==========================================
     CARD 1–3
     ========================================== */

  .feature-card-image {
    gap: 20px;
  }


  .feature-card-text h3 {
    font-size: 19px;
  }


  .feature-card-text li {
    font-size: 14px;
    line-height: 1.55;
  }


  /* ==========================================
     CARD 4 & 5
     ========================================== */

  .feature-card-top,
  .feature-card-top4 {
    flex-direction: column;
    gap: 25px;
  }


  .feature-card-top > .feature-card-image,
  .feature-card-top4 > .feature-card-image {
    width: 100%;
    justify-content: center;
    margin: 10px 0 20px;
  }


  /* Reporting image */

  .feature-card-image img[src*="feature-reporting"] {
    margin-right: 0;
  }


  /* Warranty image */

  .feature-card-image img[src*="feature-warranty"] {
    margin-right: 0;
  }

}


/* =========================================================
   SMALL MOBILE
   600px
   ========================================================= */

@media (max-width: 600px) {

  #features {
    padding: 60px 0;
  }


  #features .section-header h2 {
    font-size: 30px;
    line-height: 1.2;
  }


  #features .section-header .bar {
    width: 50px;
    height: 3px;
    margin: 14px 0 18px;
  }


  .features-grid {
    gap: 18px;
  }


  .features-top-row,
  .features-bottom-row {
    gap: 18px;
  }


  .feature-card {
    padding: 24px 18px;
    border-radius: 16px;
  }


  .feature-card-text h3 {
    font-size: 18px;
    margin-bottom: 14px;
  }


  .feature-card-text li {
    padding: 9px 0 9px 24px;
    font-size: 13px;
  }


  .feature-card-text li::before {
    top: 9px;
  }

}


/* =========================================================
   VERY SMALL MOBILE
   480px
   ========================================================= */

@media (max-width: 480px) {

  #features {
    padding: 50px 0;
  }


  #features .section-header {
    margin-bottom: 32px;
  }


  #features .section-header h2 {
    font-size: 27px;
  }


  #features .section-header p {
    font-size: 14px;
  }


  .feature-card {
    padding: 22px 16px;
  }


  .feature-card-image {
    gap: 12px;
  }


  .feature-card-text h3 {
    font-size: 17px;
  }


  .feature-card-text li {
    font-size: 13px;
    line-height: 1.5;
  }


  /* Slightly reduce huge image scaling on phones */

  .feature-card-image img[src*="feature-database"] {
    transform: scale(1.55);
  }


  .feature-card-image img[src*="feature-complaint"] {
    transform: scale(1.7);
  }


  .feature-card-image img[src*="feature-workforce"] {
    transform: scale(1.9);
    margin-right: 10px;
  }


  .feature-card-image img[src*="feature-warranty"] {
    transform: scale(2.1);
  }


  .feature-card-image img[src*="feature-reporting"] {
    transform: scale(2.8);
  }


  /* Hover is not really needed on mobile */

  .feature-card:hover .feature-card-image img[src*="feature-database"] {
    transform: scale(1.55);
  }


  .feature-card:hover .feature-card-image img[src*="feature-complaint"] {
    transform: scale(1.7);
  }


  .feature-card:hover .feature-card-image img[src*="feature-workforce"] {
    transform: scale(1.9);
  }


  .feature-card:hover .feature-card-image img[src*="feature-warranty"] {
    transform: scale(2.1);
  }


  .feature-card:hover .feature-card-image img[src*="feature-reporting"] {
    transform: scale(2.8);
  }

}


/* =========================================================
   EXTRA SMALL PHONES
   360px
   ========================================================= */

@media (max-width: 360px) {

  .feature-card {
    padding: 20px 14px;
  }


  #features .section-header h2 {
    font-size: 25px;
  }


  .feature-card-text h3 {
    font-size: 16px;
  }


  .feature-card-text li {
    font-size: 12.5px;
  }


  .feature-card-image img[src*="feature-database"] {
    transform: scale(1.4);
  }


  .feature-card-image img[src*="feature-complaint"] {
    transform: scale(1.5);
  }


  .feature-card-image img[src*="feature-workforce"] {
    transform: scale(1.7);
  }


  .feature-card-image img[src*="feature-warranty"] {
    transform: scale(1.9);
  }


  .feature-card-image img[src*="feature-reporting"] {
    transform: scale(2.5);
  }

}


/* ============================
   HIERARCHY SECTION
   ============================ */
#hierarchy {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  color: #fff;
  background: linear-gradient(135deg, #7a0016 0%, #9e001c 45%, #5c0011 100%);
}

/* Dark red overlay glow */
#hierarchy::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 42, 75, 0.4), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(160, 0, 30, 0.6), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

#hierarchy .wrap {
  position: relative;
  z-index: 1;
}

/* Section header */
#hierarchy .section-header {
  margin-bottom: 34px;
}

#hierarchy .section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

#hierarchy .section-header .bar {
  display: block;
  width: 60px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  margin: 16px 0 20px;
}

#hierarchy .section-header p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0;
}

/* ---------- GRID ---------- */
.hierarchy-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 36px;
  align-items: end;
}

/* ---------- LEFT: timeline ---------- */
.hierarchy-levels {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-left: 32px;
}

.timeline-line {
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.hierarchy-step {
  position: relative;
  display: flex;
  align-items: center;
}

/* Dot on timeline */
.step-dot {
  position: absolute;
  left: -27px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #801E2E;
  border: 2px solid rgba(255, 255, 255, 0.6);
  z-index: 2;
  transition: all 0.3s ease;
}

.hierarchy-step.is-active .step-dot {
  width: 20px;
  height: 20px;
  left: -30px;
  background: #fff;
  border-color: #ff2a4b;
  box-shadow: 0 0 0 4px rgba(255, 42, 75, 0.3),
    0 0 16px rgba(255, 42, 75, 0.9);
}

/* Step card */
.step-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.3s ease;
  cursor: default;
  backdrop-filter: blur(4px);
}

.hierarchy-step.is-active .step-card {
  background: #fff;
  border-color: #fff;
  color: #111;
  box-shadow: 0 0 25px rgba(255, 42, 75, 0.6), 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.hierarchy-step.is-active .step-icon {
  background: #e10b2c;
  color: #fff;
}

.step-num {
  font-size: 20px;
  font-weight: 600;
  opacity: 0.7;
  min-width: 22px;
}

.hierarchy-step.is-active .step-num {
  color: #e10b2c;
  opacity: 1;
}

.step-label {
  flex: 1;
  font-size: 25px;
  font-weight: 600;
  padding: 10px 0;
  letter-spacing: -0.01em;
}

.step-arrow {
  font-size: 22px;
  line-height: 1;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.hierarchy-step.is-active .step-arrow {
  color: #e10b2c;
  opacity: 1;
}

/* ---------- RIGHT: info card ---------- */
.hierarchy-info {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.info-card {
  height: 100%;
  width: 100%;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  padding: 0;
  overflow: visible;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image inside the info card */
.hierarchy-panel-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
  object-fit: contain;
  filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.45));
}

/* Header row */
.info-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.info-header h3 {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
  color: #c8102e;
}

.info-header p {
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 0;
  max-width: 420px;
}

.info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: #c8102e;
  box-shadow: 0 10px 24px rgba(200, 16, 46, 0.4);
  flex-shrink: 0;
}

/* Stats row */
.info-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.stat-tile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  background: #f7f7f8;
  border-radius: 12px;
  border: 1px solid #ececec;
}

.stat-tile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.stat-tile strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #111;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-tile span {
  font-size: 12px;
  color: #777;
}

/* Tree preview */
.info-tree {
  background: #faf6f7;
  border-radius: 14px;
  padding: 20px 16px 16px;
  border: 1px solid #f1e6e8;
  text-align: center;
}

.tree-root {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: #c8102e;
  color: #fff;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 10px 22px rgba(200, 16, 46, 0.3);
  margin-bottom: 22px;
}

.tree-root-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.tree-root strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.tree-root span {
  display: block;
  font-size: 11px;
  opacity: 0.85;
  margin-top: 2px;
}

.tree-children {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  position: relative;
  padding-top: 16px;
}

/* connecting horizontal line */
.tree-children::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12%;
  right: 12%;
  height: 1px;
  background: #e0c8cd;
}

/* small vertical drop lines above each child */
.tree-child {
  position: relative;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 12px 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.tree-child::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 16px;
  background: #e0c8cd;
}

.tree-child strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 3px;
}

.tree-child span {
  font-size: 11px;
  color: #888;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hierarchy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hierarchy-info,
  .info-card {
    height: auto;
  }

  .hierarchy-panel-img {
    height: auto;
    transform: none;
  }

  .info-header h3 {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  #hierarchy {
    padding: 70px 0;
  }

  .hierarchy-levels {
    padding-left: 22px;
  }

  .step-card {
    padding: 12px 14px;
    gap: 12px;
  }

  .step-label {
    font-size: 15px;
  }

  .info-card {
    padding: 22px 18px;
  }

  .info-stats {
    grid-template-columns: 1fr;
  }

  .info-header {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  .tree-children {
    grid-template-columns: repeat(2, 1fr);
  }

  .tree-children::before {
    display: none;
  }

  .tree-child::before {
    display: none;
  }
}


/* =========================================================
   CLICKABLE HIERARCHY STEPS
   ========================================================= */

.hierarchy-step {
  cursor: pointer;
}

.hierarchy-step:focus {
  outline: none;
}

.hierarchy-step:focus-visible .step-card {
  outline: 2px solid #fff;
  outline-offset: 3px;
}


/* Image transition */

.hierarchy-panel-img {
  transition:
    opacity 0.25s ease,
    transform 0.35s ease;
}


/* Small animation when changing image */

.hierarchy-panel-img.is-changing {
  opacity: 0;
  transform: translateY(8px) scale(0.98);
}


/* Hover effect */

.hierarchy-step:not(.is-active):hover .step-card {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.hierarchy-step:not(.is-active):hover .step-icon {
  background: rgba(255, 255, 255, 0.15);
}

.hierarchy-step:not(.is-active):hover .step-arrow {
  opacity: 1;
  transform: translateX(3px);
}




/* ============================
   TEAM / ROLES SECTION
   ============================ */
#team {
  background: #000;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

#team::after {
  content: "";
  position: absolute;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: #ff2a4b;
  filter: blur(140px);
  opacity: 0.2;
  right: -130px;
  bottom: -130px;
  pointer-events: none;
}

#team .wrap {
  position: relative;
  z-index: 1;
}

#team .section-header p {
  color: #bbb;
}

/* ---------- GRID ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ---------- CARD ---------- */
.role-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0d0509;
  border: 1px solid rgba(255, 42, 75, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  aspect-ratio: 3 / 4;
  /* keeps card tall like the reference */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.role-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 42, 75, 0.8);
  box-shadow: 0 20px 50px rgba(255, 42, 75, 0.35);
}

/* ---------- IMAGE WRAPPER ---------- */
.role-card-image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.role-card-image {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.role-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.role-card:hover .role-card-image img {
  transform: scale(1.05);
}

/* ---------- BOTTOM BLEND OVERLAY ---------- */
/* This is the magic: transparent at top, solid card color at bottom */
.role-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(13, 5, 9, 0) 0%,
      rgba(13, 5, 9, 0.15) 35%,
      rgba(13, 5, 9, 0.75) 65%,
      rgba(13, 5, 9, 0.97) 85%,
      #0d0509 100%);
  pointer-events: none;
}

/* ---------- CARD CONTENT (on top of image) ---------- */
.role-card-content {
  position: relative;
  z-index: 2;
  padding: 0px 18px 24px;
}

.role-card-content h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 6px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Small red underline under the title (like the reference image) */
.role-card-content h3::after {
  content: "";
  display: block;
  width: 34px;
  height: 3px;
  background: #ff2a4b;
  border-radius: 2px;
  margin-top: 8px;
}

.role-card-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.55;
  margin: 12px 0 0;
  min-height: 48px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .roles-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    aspect-ratio: 4 / 5;
  }

  #team {
    padding: 70px 0;
  }
}

/* ============================
   SMS SECTION
   ============================ */
#sms {
  background: #08040a;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 60px 0 40px;
}

/* Bottom-left red glow */
#sms::before {
  content: "";
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: #c8102e;
  filter: blur(180px);
  opacity: 0.28;
  left: -260px;
  bottom: -260px;
  pointer-events: none;
  animation: blobFloat 12s ease-in-out infinite;
}

/* Top-right subtle glow behind phone */
#sms::after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: #c8102e;
  filter: blur(160px);
  opacity: 0.22;
  right: -120px;
  top: 20%;
  pointer-events: none;
  animation: blobFloat 14s ease-in-out infinite;
}

#sms .wrap {
  position: relative;
  z-index: 1;
}

/* Section header */
#sms .section-header {
  margin: 0 0 0 0;
}

#sms .section-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #fff;
}

#sms .section-header h2 .accent {
  color: #c8102e;
}

#sms .section-header .bar {
  display: block;
  width: 48px;
  height: 4px;
  background: #c8102e;
  border-radius: 2px;
  margin: 12px 0 16px;
}

#sms .section-header p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 480px;
  margin: 0 0 32px;
}

/* ---------- GRID ---------- */
/* Outer 2-col: [header+features] | [phone] */
.sms-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------- LEFT: left column wrapper ---------- */
.sms-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* ---------- LEFT: feature cards ---------- */
.sms-features {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sms-feature {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 42, 75, 0.25);
  border-radius: 14px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.sms-feature:hover {
  transform: translateX(6px);
  border-color: rgba(255, 42, 75, 0.7);
  box-shadow: 0 15px 40px rgba(200, 16, 46, 0.25);
}

.sms-feature-icon {
  width: 52px;
  height: 52px;
  background: #c8102e;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35);
}

.sms-feature-text {
  flex: 1;
  min-width: 0;
}

.sms-feature h4 {
  font-weight: 700;
  font-size: 17px;
  margin: 0 0 6px;
  color: #fff;
  letter-spacing: -0.01em;
}

.sms-feature p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  margin: 0;
}

.sms-feature-arrow {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  transition: transform 0.3s ease, color 0.3s ease;
}

.sms-feature:hover .sms-feature-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* ---------- RIGHT: glowing panel with phone image ---------- */
.sms-mockup {
  position: relative;
  min-width: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
}

/* subtle inner glow ring */
.sms-mockup::before {
  display: none;
}

/* Phone image */
.sms-phone-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  max-width: 540px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.5));
  transition: transform 0.5s ease;
  margin-bottom: -179px;
}

.sms-mockup:hover .sms-phone-img {
  transform: translateY(-6px) scale(1.02);
}



/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .sms-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sms-mockup {
    max-width: 520px;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  #sms .section-header {
    /* margin-bottom: 36px; */
    margin: 0 0 56px;
  }

  .sms-grid {
    gap: 32px;
  }

  #sms {
    padding: 70px 0 190px;
  }

  .sms-feature {
    padding: 16px;
    gap: 14px;
  }

  .sms-feature-icon {
    width: 44px;
    height: 44px;
  }

  .sms-feature h4 {
    font-size: 15px;
  }

  .sms-feature p {
    font-size: 13px;
  }
}

/* ---------- Clickable feature cards ---------- */
.sms-feature {
  cursor: pointer;
  user-select: none;
}

/* Active state — highlight the selected card */
.sms-feature.is-active {
  border-color: rgba(255, 42, 75, 0.9);
  background: linear-gradient(180deg, rgba(255, 42, 75, 0.10) 0%, rgba(255, 42, 75, 0.03) 100%);
  box-shadow: 0 15px 40px rgba(200, 16, 46, 0.35);
}

.sms-feature.is-active .sms-feature-arrow {
  color: #fff;
  transform: translateX(4px);
}

/* Small left accent bar on the active card */
.sms-feature::after {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #c8102e;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sms-feature.is-active::after {
  opacity: 1;
}

/* Smooth cross-fade when the image swaps */
.sms-phone-img {
  transition: transform 0.5s ease, opacity 0.35s ease;
}

.sms-phone-img.is-swapping {
  opacity: 0;
  transform: scale(0.98);
}


/* ============================
   INDUSTRIES
   ============================ */
#industries {
  background: linear-gradient(135deg, #000 0%, #3a0a14 100%);
  color: #fff;
  overflow: hidden;
}

#industries .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto
}

#industries .section-header .bar {
  margin-left: auto;
  margin-right: auto
}

#industries .section-header p {
  color: #ccc
}

.industries-track {
  overflow: hidden;
  padding: 20px 0
}

.industries-row {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.industries-row:hover {
  animation-play-state: paused
}

.industry-chip {
  white-space: nowrap;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 99px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 15px;
  background: transparent;
  color: #fff;
  transition: var(--transition);
  cursor: default;
}

.industry-chip:hover {
  background: var(--red);
  border-color: var(--red);
  transform: scale(1.05);
}

/* ============================
   CTA SECTION (New)
   ============================ */
#cta-section {
  /* background: linear-gradient(135deg, var(--red) 0%, #8c0619 100%); */
  background: url('../img/hierarchy-bg.png');
  color: #fff;
  text-align: center;
  padding: 65px 0;
  position: relative;
  overflow: hidden;
}

#cta-section::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.06;
  left: -120px;
  top: -140px;
  animation: blobFloat 9s ease-in-out infinite;
}

#cta-section .wrap {
  position: relative
}

#cta-section h2 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

#cta-section p {
  margin: 14px auto 28px;
  max-width: 600px;
  font-size: 18px;
  opacity: 0.9;
}

#cta-section .btn {
  background: #000;
  border-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  padding: 18px 40px;
}

#cta-section .btn:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5)
}

#cta-section .btn::after {
  display: none
}

/* ============================
   FAQ
   ============================ */

#faq {
  background: var(--grey-dark);
  color: #fff;
}

#faq .wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

#faq .section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 48px;
}

#faq .section-header p {
  color: #bbb;
}

#faq .section-header .bar,
#faq .bar {
  margin: 14px auto 0;
}

#faq .faq-list {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

#faq details {
  text-align: left;
}


/* ============================
   CONTACT FORM
   ============================ */
#contact {
  background: linear-gradient(135deg, var(--red) 0%, #8c0619 100%);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.06;
  right: -120px;
  bottom: -140px;
  animation: blobFloat 8s ease-in-out infinite;
}

#contact .wrap {
  position: relative
}

#contact h2 {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

#contact .sub {
  margin: 14px auto 36px;
  max-width: 560px;
  font-size: 18px;
  opacity: 0.9
}


/* ============================
   SITE FOOTER
   ============================ */
.site-footer {
  position: relative;
  background: #05010a;
  color: #fff;
  padding: 48px 0 36px;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -420px;
  transform: translateX(-50%);
  width: 1200px;
  height: 600px;
  border-radius: 50%;
  background: #c8102e;
  filter: blur(180px);
  opacity: 0.28;
  pointer-events: none;
}

.wrap-footer {
  position: relative;
  z-index: 1;
  max-width: 93rem;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

/* ---------- Top glowing divider ---------- */
.footer-glow-divider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg,
      rgba(200, 16, 46, 0) 0%,
      rgba(200, 16, 46, 0.7) 20%,
      rgba(255, 60, 90, 1) 50%,
      rgba(200, 16, 46, 0.7) 80%,
      rgba(200, 16, 46, 0) 100%);
  box-shadow:
    0 0 20px rgba(255, 42, 75, 0.55),
    0 0 40px rgba(255, 42, 75, 0.3);
}

.footer-glow-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translate(-50%, 0) rotate(45deg);
  border-right: 2px solid #ff3c5a;
  border-bottom: 2px solid #ff3c5a;
  border-radius: 2px;
  background: #05010a;
  box-shadow: 0 0 12px rgba(255, 42, 75, 0.7);
}

/* ---------- 3-Column Footer Layout: Brand | Links | Product-Of ---------- */
.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: nowrap;
}

/* ---------- LEFT: brand block ---------- */
.footer-brand-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  flex: 0 1 auto;
}

.brand-complenic {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  margin-top: -6px;
  /* Offsets 18px transparent top padding inside PNG to align top with title text */
}

.brand-complenic img {
  height: 6rem;
  width: auto;
  display: block;
  object-fit: contain;
  margin-left: -10px;
}

.footer-meta {
  max-width: 360px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  color: #fff;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0 0 6px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

/* ---------- CENTER: Nav links ---------- */
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  white-space: nowrap;
}

.footer-links a {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  transition: color 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-links a.is-active {
  color: #fff;
  font-weight: 600;
}

.footer-links a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: #ff2a4b;
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(255, 42, 75, 0.7);
}

/* ---------- RIGHT: Alison logo block ---------- */
.footer-product-of {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding-left: 32px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
  flex-shrink: 0;
}

.product-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  margin-bottom: -34px;
}

.brand-alison {
  display: inline-flex;
  align-items: center;
}

.brand-alison img {
  height: 5rem !important;
  width: auto !important;
  max-width: none;
  display: block !important;
  opacity: 0.9;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand-alison:hover img {
  transform: scale(1.04);
  opacity: 1;
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
  .footer-content {
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 28px;
  }

  .footer-brand-block {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
  }

  .brand-complenic {
    margin-top: 0;
  }

  .footer-meta {
    max-width: 100%;
  }

  .footer-product-of {
    padding-left: 0;
    border-left: none;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    align-items: center;
    width: 100%;
  }

  .footer-links {
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 0px 0px;
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 36px 0 24px;
  }

  .wrap-footer {
    padding: 0 20px;
  }

  .brand-complenic img {
    height: 65px;
  }

  .product-label{
    margin: 0 100px -19px 0;
  }

  .brand-alison img {
    height: 62px !important;
  }
}