/* ============================================================
   TroofAi — Premium Design System v10
   Black & White minimal aesthetic (OpenAI / Anthropic inspired)
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
section[id] { scroll-margin-top: 120px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f8f8f6;
  color: #1a1a1a;
  overflow-x: hidden;
  line-height: 1.6;
}
::selection { background: rgba(0, 0, 0, 0.08); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font: inherit; background: none; }

/* ======= ANNOUNCEMENT BAR — pure black ======= */
.announcement-bar {
  background: #000;
  padding: 0.85rem 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}
.announcement-shimmer { display: none; }
.announcement-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  z-index: 2;
  width: 100%;
}
.announcement-badge { display: none; }
.announcement-text {
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.005em;
}
.announcement-text strong { color: #fff; font-weight: 600; }
.announcement-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  transition: opacity 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.announcement-link:hover { opacity: 0.7; }
.announcement-bar.hidden { display: none; }

/* ======= HEADER WRAPPER — scroll up/down behavior ======= */
.header-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #f8f8f6;
  transform: translateY(0);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease,
              backdrop-filter 0.5s ease;
}
.header-wrapper.scrolled {
  background: #f8f8f6;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 30px rgba(0, 0, 0, 0.06);
}
.header-wrapper.nav-hidden {
  transform: translateY(-100%);
  box-shadow: none;
}

/* ======= HEADER — seamless with page bg, compact ======= */
.site-header {
  background: #F8F8F6;
  position: relative;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* When mega panel is open — entire header turns dark */
.site-header.mega-open {
  background: #111;
}

.header-inner {
  display: flex;
  align-items: center;
  padding: 1rem 5%;
  position: relative;
  z-index: 10;
}

/* Logo — large and prominent */
.header-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 200px;
  width: auto;
  max-width: none;
  margin: -60px 0;
  transition: all 0.35s;
}
/* White logo when mega-menu is open */
.site-header.mega-open .logo-img {
  filter: brightness(0) invert(1);
}
.header-logo:hover .logo-img { opacity: 0.7; }

/* Nav links — compact, RD-matched spacing */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
  margin-right: 0;
}
.nav-link {
  font-size: 1rem;
  font-weight: 400;
  color: #374151;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: all 0.25s;
  position: relative;
  white-space: nowrap;
}
.nav-link:hover { color: #000; }
.nav-link.active {
  color: #000;
  background: rgba(0, 0, 0, 0.04);
}

/* About Us dropdown */
.nav-dropdown-wrap { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 12px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
  z-index: 100;
}
.nav-dropdown-wrap:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-link {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  font-weight: 450;
  color: #374151;
  border-radius: 8px;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-dropdown-link:hover {
  background: rgba(0,0,0,0.04);
  color: #000;
}

/* When mega open — nav links turn white */
.site-header.mega-open .nav-link {
  color: rgba(255, 255, 255, 0.45);
}
.site-header.mega-open .nav-link:hover,
.site-header.mega-open .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Header actions — compact */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: 1.75rem;
  padding-left: 1.75rem;
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}
.site-header.mega-open .header-actions {
  border-left-color: rgba(255, 255, 255, 0.1);
}
.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.4rem;
  background: #000;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.mega-open .btn-contact {
  background: #fff;
  color: #000;
}
.btn-contact:hover {
  background: #222;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}
.btn-arrow-right { font-size: 0.7rem; }
.btn-get-started {
  font-size: 1rem;
  font-weight: 500;
  color: #374151;
  transition: all 0.25s;
}
.site-header.mega-open .btn-get-started { color: #fff; }
.btn-get-started:hover { opacity: 0.6; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  z-index: 1010;
  position: relative;
}
.mobile-menu-btn span {
  width: 22px;
  height: 2px;
  background: #000;
  border-radius: 2px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform-origin: center;
}
/* X state — white lines when menu is open */
.mobile-menu-btn.open span { background: #fff; }
.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ======= MOBILE MENU DROPDOWN — Reality Defender style ======= */
.mobile-menu-dropdown {
  display: none;
}
@media (max-width: 768px) {
  .mobile-menu-dropdown {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #111;
    z-index: 998;
    clip-path: inset(0 0 100% 0);
    opacity: 0;
    visibility: hidden;
    transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0.55s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu-dropdown.open {
    clip-path: inset(0 0 0% 0);
    opacity: 1;
    visibility: visible;
    transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0s 0s;
  }
  .mobile-menu-inner {
    padding: 7rem 2rem 3rem;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }
  .mobile-menu-nav {
    flex: 1;
  }

  /* Menu items */
  .mobile-menu-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mobile-menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
  }
  .mobile-menu-link span {
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: -0.01em;
    transition: color 0.25s;
  }
  .mobile-menu-link:hover span { color: #fff; }
  a.mobile-menu-link { text-decoration: none; }

  /* Chevron arrow for expandable items */
  .mobile-menu-chevron {
    color: rgba(255, 255, 255, 0.35);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.25s;
    flex-shrink: 0;
  }
  .mobile-menu-item.expanded .mobile-menu-chevron {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.7);
  }

  /* Sub-menu accordion */
  .mobile-sub-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease;
    opacity: 0;
    padding-left: 0.5rem;
  }
  .mobile-menu-item.expanded .mobile-sub-menu {
    max-height: 600px;
    opacity: 1;
  }
  .mobile-sub-group {
    padding: 0.5rem 0 1rem;
  }
  .mobile-sub-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 0.6rem;
    padding: 0.4rem 0 0 0.5rem;
  }
  .mobile-sub-menu a {
    display: block;
    font-size: 1.05rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    padding: 0.55rem 0 0.55rem 0.5rem;
    transition: color 0.2s;
    text-decoration: none;
  }
  .mobile-sub-menu a:hover { color: #fff; }

  /* Footer / CTA area */
  .mobile-menu-footer {
    padding-top: 2rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .mobile-menu-cta {
    display: block;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s;
  }
  .mobile-menu-cta:hover { background: #e5e5e5; }
  .mobile-menu-secondary {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s;
  }
  .mobile-menu-secondary:hover { color: #fff; border-color: rgba(255, 255, 255, 0.3); }

  /* When mobile menu is open — header turns dark */
  .header-wrapper.mobile-menu-open .site-header {
    background: #111;
  }
  .header-wrapper.mobile-menu-open .logo-img {
    filter: brightness(0) invert(1);
  }
  .header-wrapper.mobile-menu-open .mobile-menu-btn span {
    background: #fff;
  }
}

/* ======= MEGA PANEL -- Full-width, premium reveal ======= */
.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: #111;
  clip-path: inset(0 0 100% 0);
  opacity: 0;
  visibility: hidden;
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0.55s;
  z-index: 5;
  pointer-events: none;
}
.mega-panel.open {
  clip-path: inset(0 0 0% 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: clip-path 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0s 0s;
}
/* Staggered content reveal inside the panel */
.mega-panel .mega-panel-featured,
.mega-panel .mega-panel-col,
.mega-panel .mega-panel-bottom {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.mega-panel.open .mega-panel-featured {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.15s;
}
.mega-panel.open .mega-panel-col:nth-child(2) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.22s;
}
.mega-panel.open .mega-panel-col:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.29s;
}
.mega-panel.open .mega-panel-bottom {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.35s;
}
.mega-panel-inner {
  padding: 3rem 5%;
  display: grid !important;
  grid-template-columns: 280px 1fr 1fr !important;
  gap: 3rem;
  align-items: start;
}

/* Featured card (left column — Solutions style) */
.mega-panel-featured {
  overflow: hidden;
  border-radius: 14px;
  max-width: 280px;
}
.mega-featured-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: center;
  height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.75rem;
}
.mega-featured-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.85) 100%);
  z-index: 1;
}
.mega-featured-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  position: relative;
  z-index: 2;
}
.mega-featured-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* ===== Insight-style mega panel (Platform, Resources, About) ===== */
#megaPlatform .mega-panel-inner,
#megaResources .mega-panel-inner,
#megaAbout .mega-panel-inner {
  grid-template-columns: 340px 1fr !important;
  gap: 3.5rem;
  align-items: start;
}
/* Insight featured block — image + metadata below */
.mega-insight-block {
  max-width: 340px;
}
.mega-insight-block a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.mega-insight-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-insight-block a:hover .mega-insight-img {
  transform: scale(1.03);
}
.mega-insight-img-wrap {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.mega-insight-meta {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
}
.mega-insight-meta span {
  color: rgba(255,255,255,0.5);
}
.mega-insight-title {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  line-height: 1.4;
  transition: color 0.25s;
}
.mega-insight-block a:hover .mega-insight-title {
  color: #fff;
}

/* Mega panel columns — group hover dimming */
.mega-panel-col {
  display: flex;
  flex-direction: column;
}
.mega-col-heading {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 1.25rem;
}
.mega-panel-link {
  display: block;
  font-size: 1.35rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  padding: 0.65rem 0;
  transition: all 0.25s;
  line-height: 1.3;
}
.mega-panel-col:hover .mega-panel-link {
  opacity: 0.4;
}
.mega-panel-col:hover .mega-panel-link:hover {
  opacity: 1;
  color: #fff;
}

/* Bottom bar in mega panel */
.mega-panel-bottom {
  padding: 1.25rem 5%;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}
.mega-bottom-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.6;
  max-width: 700px;
}
.mega-bottom-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.3rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.25s;
}
.mega-bottom-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.mega-bottom-arrow { font-size: 0.7rem; }

/* Spacer to offset fixed header */
.header-spacer { height: 0; }

/* ======= HERO ======= */
.hero-section {
  padding: 2rem 0 0;
  background: #f8f8f6;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 5%;
  gap: 5rem;
  align-items: end;
  min-height: 78vh;
}
.hero-content { padding-bottom: 8rem; }
.hero-title {
  font-size: clamp(4.5rem, 8vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #000;
  margin-bottom: 2.5rem;
}
.hero-word-line { display: block; }
.hero-static-line { display: block; }

.hero-rotating-wrapper {
  position: relative;
  display: inline-block;
  min-width: 420px;
  height: 1.15em;
  vertical-align: bottom;
  overflow: hidden;
}
.hero-rotating-word {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  color: #000;
  font-weight: 500;
  opacity: 0;
  transform: translateY(110%);
  filter: blur(8px);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  will-change: transform, opacity, filter;
}
.hero-rotating-word.active {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.hero-rotating-word.exit {
  opacity: 0;
  transform: translateY(-80%);
  filter: blur(6px);
}

.hero-description {
  font-size: 1.15rem;
  color: #6b7280;
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.5s;
}
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 2rem;
  background: #000;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
  animation-delay: 0.7s;
  transform: translateY(12px);
}
.btn-hero:hover {
  background: #222;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}
.btn-hero-arrow { transition: transform 0.25s; }
.btn-hero:hover .btn-hero-arrow { transform: translate(3px, -3px); }

.hero-image {
  position: relative;
  align-self: stretch;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  min-height: 480px;
}

/* ======= KPMG SECTION — premium recognition ======= */
.kpmg-section {
  position: relative;
  padding: 6rem 0;
  background: #0a0a0a;
  overflow: hidden;
}
.kpmg-section-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}
.kpmg-accent-line {
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}
.kpmg-section-inner {
  position: relative;
  z-index: 2;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

/* Rank block */
.kpmg-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 4rem;
  flex-shrink: 0;
}
.kpmg-rank-number {
  font-size: clamp(4rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.kpmg-rank-label {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.4);
}

/* Vertical dividers */
.kpmg-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  flex-shrink: 0;
}

/* Center content */
.kpmg-content {
  text-align: center;
  flex: 1;
  padding: 0 4rem;
}
.kpmg-eyebrow-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1rem;
}
.kpmg-headline {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

/* KPMG logo area */
.kpmg-logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 0 4rem;
  flex-shrink: 0;
}
.kpmg-recognized-label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.3);
}
.kpmg-logo-img {
  height: 80px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s;
}
.kpmg-logo-area:hover .kpmg-logo-img { opacity: 1; }

/* ======= SOLUTIONS / STATS ======= */
.solutions-section { padding: 8rem 0; background: #f8f8f6; }
.solutions-inner { padding: 0 5%; }
.solutions-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 5rem; align-items: start; }
.solutions-image { overflow: hidden; }
.solutions-img { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.solutions-text { font-size: 1.1rem; color: #374151; line-height: 1.85; margin-bottom: 3rem; }
.solutions-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stat-item { padding: 1.5rem 1.5rem 1.5rem 2rem; border-left: 1px solid #d1d5db; }
.stat-number { font-size: 3rem; font-weight: 400; letter-spacing: -0.03em; color: #000; line-height: 1.1; margin-bottom: 1rem; }
.stat-desc { font-size: 0.85rem; color: #6b7280; line-height: 1.65; }

/* ======= USE CASES ======= */
.usecases-section { background: #111; padding: 6rem 0; border-radius: 20px; margin: 0 1.5rem; }
.usecases-inner { padding: 0 5%; }
.section-label { font-size: 0.78rem; font-weight: 500; color: rgba(255, 255, 255, 0.4); letter-spacing: 0.02em; display: block; margin-bottom: 1.5rem; }
.section-label-dark { color: #9ca3af; }
.usecases-header { margin-bottom: 3.5rem; }
.usecases-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.usecases-title { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.usecases-desc { font-size: 1rem; color: rgba(255, 255, 255, 0.5); line-height: 1.8; padding-top: 0.5rem; }
.usecases-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; overflow: hidden; margin-bottom: 3rem; }
.usecase-card { display: flex; align-items: center; justify-content: space-between; padding: 2.5rem 3rem; background: #111; transition: background 0.3s; cursor: pointer; }
.usecase-card:hover { background: #1a1a1a; }
.usecase-card h3 { font-size: 1.15rem; font-weight: 500; color: #fff; line-height: 1.45; }
.usecase-img { flex-shrink: 0; }
.usecase-placeholder { width: 110px; height: 88px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.usecase-photo { width: 110px; height: 88px; border-radius: 10px; object-fit: cover; }
.usecases-cta-card { display: flex; align-items: center; justify-content: space-between; padding: 2.5rem 3rem; background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 16px; gap: 3rem; }
.usecases-cta-card p { font-size: 1.05rem; color: rgba(255, 255, 255, 0.8); line-height: 1.65; max-width: 600px; }
.btn-solutions { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.75rem; background: #fff; color: #000; font-size: 0.88rem; font-weight: 600; border-radius: 10px; white-space: nowrap; transition: all 0.25s; }
.btn-solutions:hover { background: #e5e5e5; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15); }
.btn-solutions-arrow { font-size: 0.7rem; }

/* ======= INDUSTRIES ======= */
.industries-section { padding: 8rem 0; background: #f8f8f6; }
.industries-inner { padding: 0 5%; }
.industries-top { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; margin-bottom: 3.5rem; align-items: start; }
.industries-title { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; color: #000; letter-spacing: -0.02em; line-height: 1.15; }
.industries-desc { font-size: 1.05rem; color: #6b7280; line-height: 1.8; padding-top: 0.5rem; }
.industries-list { border-top: 1px solid #d1d5db; }

/* Industry rows — dramatic dark hover with image reveal */
.industry-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  padding: 3rem 2rem;
  border-bottom: 1px solid #d1d5db;
  align-items: start;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Background image layer — oversized to avoid stretching */
.industry-row::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120%;
  height: 300%;
  transform: translate(-50%, -50%) scale(1.05);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}
/* Dark overlay for readability */
.industry-row::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
/* Hover — reveal everything */
.industry-row:hover {
  background: #0a0a0a;
  border-bottom-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin: 0 -0.5rem;
  padding: 3rem 2.5rem;
}
.industry-row:hover::before {
  opacity: 0.5;
  transform: translate(-50%, -50%) scale(1);
}
.industry-row:hover::after {
  opacity: 1;
}
/* Image sources */
.industry-row[data-bg-energy]::before { background-image: url('assets/industry-energy.jpg'); background-position: center top; }
.industry-row[data-bg-finance]::before { background-image: url('assets/industry-finance.jpg'); }
.industry-row[data-bg-government]::before { background-image: url('assets/industry-government.jpg'); background-position: center center; }
.industry-row[data-bg-healthcare]::before { background-image: url('assets/industry-healthcare.jpg'); background-position: right 25%; }
.industry-row[data-bg-enterprise]::before { background-image: url('assets/industry-enterprise.jpg'); }
/* Text */
.industry-name {
  font-size: 2.2rem; font-weight: 400; color: #000; letter-spacing: -0.02em;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative; z-index: 2;
}
.industry-row:hover .industry-name { color: #fff; }
.industry-features { display: flex; flex-direction: column; gap: 0.6rem; position: relative; z-index: 2; }
.industry-features span {
  font-size: 1rem; color: #374151; line-height: 1.6;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.industry-row:hover .industry-features span { color: rgba(255, 255, 255, 0.75); }

/* ======= RECOGNIZED ======= */
.recognized-section { padding: 6rem 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.05)); }
.recognized-inner { padding: 0 5%; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.recognized-title { font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 400; color: #000; letter-spacing: -0.02em; line-height: 1.2; }
.recognized-right { display: flex; flex-direction: column; }
.recognition-card { display: block; padding: 2.5rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.1); transition: all 0.3s ease; }
.recognition-card:first-child { border-top: 1px solid rgba(0, 0, 0, 0.1); }
.recognition-card:hover h3 { opacity: 0.7; }
.recognition-card:hover .recognition-meta { opacity: 0.7; }
.recognition-card:hover .recognition-arrow-icon { opacity: 0.7; }

/* Top row: meta left, arrow+logo right */
.recognition-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.recognition-meta { display: flex; align-items: center; }
.recognition-meta span { font-size: 0.75rem; color: #6b7280; font-weight: 500; }
.recognition-top-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Diagonal arrow icon */
.recognition-arrow-icon {
  color: #6b7280;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
  flex-shrink: 0;
}
.recognition-card:hover .recognition-arrow-icon {
  transform: translate(3px, -3px);
  color: #000;
}

/* Logo image (e.g. KPMG) */
.recognition-logo-img {
  height: 48px;
  width: auto;
  border-radius: 4px;
  object-fit: contain;
}
.recognition-logo-dark {
  filter: brightness(0);
  transition: filter 0.35s ease;
}
.recognition-card:hover .recognition-logo-dark {
  filter: none;
}

/* Small badge (e.g. TPM 2.0) */
.recognition-badge-sm {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  background: #222;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.recognition-card h3 { font-size: 1.15rem; font-weight: 500; color: #000; line-height: 1.45; }

/* ======= WHY SECTION ======= */
.why-section { background: #111; padding: 6rem 0; margin: 0 1.5rem; border-radius: 20px; position: relative; overflow: hidden; }
.why-bg-pattern { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 60px 60px; }
.why-inner { padding: 0 5%; position: relative; z-index: 2; }
.why-title { font-size: clamp(2.5rem, 4vw, 3.5rem); font-weight: 400; color: #fff; letter-spacing: -0.02em; margin-bottom: 3.5rem; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.why-card { padding: 2.5rem; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 16px; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
.why-card:hover { border-color: rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.04); transform: translateY(-4px); }
.why-icon { margin-bottom: 1.5rem; width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); display: flex; align-items: center; justify-content: center; }
.why-card h3 { font-size: 1.15rem; font-weight: 600; color: #fff; margin-bottom: 0.75rem; }
.why-card p { font-size: 0.88rem; color: rgba(255, 255, 255, 0.4); line-height: 1.75; }

/* ======= CTA ======= */
.cta-section { padding: 6rem 0; background: #f8f8f6; }
.cta-inner { padding: 0 5%; }
.cta-card { position: relative; padding: 6rem 3rem; text-align: center; background: #000; border-radius: 20px; overflow: hidden; }
.cta-bg-grid { position: absolute; inset: 0; background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.04) 0%, transparent 70%), linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px); background-size: 100% 100%, 40px 40px, 40px 40px; }
.cta-content { position: relative; z-index: 2; }
.cta-title { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 400; color: #fff; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 1.25rem; }
.cta-desc { font-size: 1.05rem; color: rgba(255, 255, 255, 0.45); margin-bottom: 2.5rem; line-height: 1.75; }
.cta-buttons { display: flex; align-items: center; justify-content: center; gap: 2rem; }
.btn-cta-primary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 2.2rem; background: #fff; color: #000; font-size: 0.95rem; font-weight: 600; border-radius: 12px; transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.btn-cta-primary:hover { background: #e5e5e5; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15); }
.btn-cta-secondary { display: inline-flex; align-items: center; gap: 0.5rem; padding: 1rem 0; color: rgba(255, 255, 255, 0.6); font-size: 0.95rem; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.15); transition: all 0.3s; }
.btn-cta-secondary:hover { color: #fff; border-bottom-color: #fff; }
.btn-cta-arrow { transition: transform 0.25s; }
.btn-cta-primary:hover .btn-cta-arrow, .btn-cta-secondary:hover .btn-cta-arrow { transform: translate(3px, -3px); }

/* ======= WAITLIST INLINE FORM ======= */
.waitlist-inline {
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

/* The trigger button (inherits btn-cta-primary / footer-cta-btn styling) */
.waitlist-inline .waitlist-trigger {
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 250px;
}

/* The form — hidden by default */
.waitlist-form {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

/* EXPANDED state */
.waitlist-inline.expanded .waitlist-trigger {
  max-width: 0;
  opacity: 0;
  padding: 0;
  transform: scale(0.8);
  pointer-events: none;
  overflow: hidden;
}

.waitlist-inline.expanded .waitlist-form {
  max-width: 340px;
  opacity: 1;
}

/* Input field — dark bg (CTA section) */
.waitlist-input {
  width: 220px;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px 0 0 12px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
}
.waitlist-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.waitlist-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.18);
}

/* Submit arrow button */
.waitlist-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  background: #fff;
  border: none;
  border-radius: 0 12px 12px 0;
  cursor: pointer;
  color: #000;
  transition: background 0.25s, transform 0.25s;
}
.waitlist-submit:hover {
  background: #e5e5e5;
}
.waitlist-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Success state */
.waitlist-success {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.6rem;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  animation: waitlistFadeIn 0.4s ease;
}
@keyframes waitlistFadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Dark variant adjustments (footer CTA zone — already dark bg) */
.waitlist-inline-dark .waitlist-input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}
.waitlist-inline-dark .waitlist-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.14);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  .waitlist-inline.expanded .waitlist-form {
    max-width: 300px;
  }
  .waitlist-input {
    width: 180px;
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }
}

/* ======= ABOUT ======= */
.about-section { padding: 6rem 0; background: #f8f8f6; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.about-inner { padding: 0 5%; display: grid; grid-template-columns: 0.45fr 1fr; gap: 5rem; align-items: center; }
.about-photo-wrapper { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; }
.about-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; filter: grayscale(0.15); transition: filter 0.4s; }
.about-photo-wrapper:hover .about-photo { filter: grayscale(0); }
.about-photo-wrapper::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.15)); pointer-events: none; }
.about-quote-side { position: relative; padding-left: 2.5rem; }
.about-accent-line { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #000, rgba(0, 0, 0, 0.1)); border-radius: 2px; }
.about-blockquote { font-size: 1.35rem; color: #374151; line-height: 1.85; font-style: normal; margin-bottom: 2.5rem; border: none; padding: 0; }
.about-blockquote em { color: #000; font-style: italic; }
.about-blockquote strong { color: #000; }
.about-author { display: flex; align-items: center; gap: 0.85rem; }
.about-author strong { display: block; font-size: 0.95rem; color: #000; }
.about-author span { font-size: 0.8rem; color: #9ca3af; }

/* ======= PREMIUM FOOTER ======= */
.site-footer { background: #0a0a0a; position: relative; overflow: hidden; }

/* — Pre-footer CTA Zone — */
.footer-cta-zone {
  position: relative;
  padding: 10rem 5% 8rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-cta-glow {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 60%);
  pointer-events: none;
  animation: footerPulse 8s ease-in-out infinite alternate;
}
@keyframes footerPulse {
  0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}
.footer-cta-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}
.footer-cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 1.5rem;
}
.footer-cta-headline {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.08;
  margin-bottom: 3rem;
}
.footer-cta-actions {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.4rem;
  background: #fff;
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-cta-btn:hover {
  background: #e5e5e5;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 255, 255, 0.12);
}
.footer-cta-btn svg {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-cta-btn:hover svg {
  transform: translate(3px, -3px);
}
.footer-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}
.footer-cta-link:hover { color: #fff; }
.footer-cta-link svg {
  transition: transform 0.25s;
}
.footer-cta-link:hover svg { transform: translateX(4px); }

/* Giant watermark */
.footer-watermark {
  position: absolute;
  right: -2%;
  bottom: -15%;
  font-size: clamp(10rem, 20vw, 22rem);
  font-weight: 700;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* — Main Footer — */
.footer-main { padding: 4rem 0 0; }
.footer-content { padding: 0 5%; position: relative; z-index: 3; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.footer-logo { width: 130px; height: auto; margin-bottom: 1.25rem; filter: none; }
.footer-tagline { font-size: 0.85rem; color: rgba(255, 255, 255, 0.3); line-height: 1.65; max-width: 260px; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-icon {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.social-icon:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.footer-links-area { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3rem; }
.footer-col { display: flex; flex-direction: column; gap: 0; }
.footer-col h5 {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.2); margin-bottom: 1.2rem;
}
.footer-col a {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.88rem; color: rgba(255, 255, 255, 0.4);
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: all 0.25s;
}
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-link-arrow {
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateX(-8px);
}
.footer-col a:hover .footer-link-arrow {
  color: #fff; opacity: 1; transform: translateX(0);
}

/* Achievement row */
.footer-achievement-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0;
  margin-top: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 2rem;
}
.footer-achievement-badge {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
}
.footer-achievement-badge:hover .footer-kpmg-logo { opacity: 1; }
.footer-kpmg-logo { height: 32px; width: auto; opacity: 0.5; transition: opacity 0.3s; }
.footer-achievement-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  flex-shrink: 0;
}
.footer-achievement-info { display: flex; flex-direction: column; gap: 0.2rem; }
.footer-achievement-rank {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.02em;
}
.footer-achievement-detail {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.01em;
}

/* Newsletter compact */
.footer-newsletter-compact { flex-shrink: 0; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-input {
  padding: 0.75rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-right: none;
  border-radius: 10px 0 0 10px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  outline: none;
  width: 220px;
  transition: all 0.3s;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.2); }
.newsletter-input:focus { border-color: rgba(255, 255, 255, 0.25); }
.newsletter-btn {
  padding: 0.75rem 1.2rem;
  background: #fff;
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 0 10px 10px 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.newsletter-btn:hover { background: #e5e5e5; }

/* Bottom bar */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2rem 0;
  font-size: 0.72rem; color: rgba(255, 255, 255, 0.12);
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: rgba(255, 255, 255, 0.12); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(255, 255, 255, 0.4); }

/* ======= SCROLL ANIMATIONS ======= */
.reveal { opacity: 0; transform: translateY(35px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .header-inner { padding: 0.7rem 2rem; }
  .logo-img { height: 140px; margin: -38px 0; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; min-height: auto; padding: 0 2rem; }
  .hero-content { padding-bottom: 2rem; }
  .hero-image { border-radius: 16px; max-height: 400px; }
  .hero-rotating-wrapper { min-width: 200px; }
  .solutions-grid { grid-template-columns: 1fr; gap: 3rem; }
  .solutions-inner, .usecases-inner, .industries-inner, .recognized-inner, .why-inner, .cta-inner, .about-inner, .footer-content, .kpmg-section-inner { padding: 0 5%; }
  .usecases-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .industries-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .recognized-inner { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 3rem; }
  .about-photo-wrapper { aspect-ratio: 1 / 1; max-height: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-links-area { grid-template-columns: 1fr 1fr 1fr; }
  .solutions-stats { grid-template-columns: 1fr; }
  .stat-item { border-left: none; border-top: 1px solid #d1d5db; padding: 1.5rem 0; }
  .kpmg-section-inner { flex-direction: column; gap: 2.5rem; text-align: center; }
  .kpmg-divider { width: 60px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent); }
  .kpmg-rank { padding: 0; }
  .kpmg-content { padding: 0; }
  .kpmg-logo-area { padding: 0; }
  .mega-panel { display: none !important; }
  .footer-cta-zone { padding: 6rem 5% 5rem; }
  .footer-cta-actions { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .footer-achievement-row { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .announcement-bar { padding: 0.7rem 2rem; }
}
@media (max-width: 768px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .mobile-menu-btn { display: flex; margin-left: auto; }
  .hero-title { font-size: 2.8rem; }
  .hero-rotating-wrapper { min-width: 100%; display: block; height: 1.2em; }
  .hero-word-line { display: block; min-height: 1.2em; }
  .hero-content { padding-bottom: 2rem; }
  .usecases-grid { grid-template-columns: 1fr; }
  .industry-row { grid-template-columns: 1fr; gap: 1rem; }
  .usecases-section, .why-section { margin: 0 0.75rem; border-radius: 16px; }
  .usecases-cta-card { flex-direction: column; text-align: center; gap: 1.5rem; }
  .footer-links-area { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .cta-buttons { flex-direction: column; gap: 1rem; }
  .announcement-bar { padding: 0.6rem 4%; }
  .announcement-inner { gap: 0.5rem; flex-wrap: nowrap; }
  .announcement-text { font-size: 0.72rem; line-height: 1.4; }
  .announcement-link { font-size: 0.72rem; gap: 0.25rem; }
  .announcement-link svg { width: 10px; height: 10px; }
  .about-photo { object-position: center 10%; }
  .about-photo-wrapper { aspect-ratio: 3 / 4; }
  .recognized-inner { gap: 2rem; }
  .recognition-card h3 { font-size: 1rem; }
  .recognition-logo-img { height: 36px; }
  .footer-cta-zone { padding: 5rem 5% 4rem; }
  .footer-cta-headline { font-size: 2.5rem; margin-bottom: 2rem; }
  .footer-watermark { font-size: 8rem; right: -2%; bottom: -12%; }
  .newsletter-input { width: 100%; flex: 1; }
  .footer-achievement-badge { padding: 0.65rem 1rem; }

  /* Mobile Crisp Logo Swap */
  .header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    margin: 0;
  }
  .header-logo .logo-img { display: none; }
  .header-logo::before {
    content: "";
    display: block;
    width: 36px;
    height: 36px;
    background: url('assets/Favicon-TroofAi-New-Logo-512px-Transparent.png') no-repeat center;
    background-size: contain;
  }
  .header-logo::after {
    content: "TroofAi";
    font-size: 1.65rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: #000;
  }
  .site-header.mega-open .header-logo::after,
  .header-wrapper.mobile-menu-open .header-logo::after {
    color: #fff;
  }
  .site-header.mega-open .header-logo::before,
  .header-wrapper.mobile-menu-open .header-logo::before {
    filter: brightness(0) invert(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
