/* Transforma Fincore — landing page */
:root {
  --navy: #001f3f;
  --navy-deep: #0a1628;
  --solution-tab-border: #8ebfe8;
  --solution-tab-border-hover: #5a9fd4;
  --gold: #d4af37;
  --gold-hover: #c9a432;
  --gold-gradient: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa8623 100%);
  --white: #ffffff;
  --grey-bg: #f8f9fa;
  --text-muted: #5c6570;
  --text-nav: #4a5563;
  --shadow-card: 0 12px 40px rgba(0, 31, 63, 0.08);
  --shadow-card-hover: 0 20px 50px rgba(0, 31, 63, 0.14);
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Montserrat", system-ui, sans-serif;
  --font-inter: "Inter", system-ui, sans-serif;
  --section-pad: clamp(4rem, 8vw, 6.25rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-inter);
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  background: var(--white);
  overflow-x: hidden;
  width: 100%;
}

.typography-quote, .typography-highlight {
  font-family: var(--font-serif);
  font-weight: 500;
  font-style: italic;
}

.typography-metric, .typography-number {
  font-family: var(--font-inter);
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 2.5rem);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid rgba(0, 31, 63, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 84px;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo:hover .logo-img {
  opacity: 0.92;
}

.logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s ease;
}

.logo-img--header {
  height: 80px;
  width: auto;
  max-width: min(280px, 50vw);
}

.logo-img--footer {
  height: 65px;
  width: auto;
  max-width: min(220px, 60vw);
}

.logo-footer {
  padding: 0.25rem 0.4rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--navy);
  margin-inline: auto;
  transition: transform 0.2s, opacity 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-nav);
  transition: color 0.2s;
}

.nav-list a:hover {
  color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font-inter);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: none;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn .arrow {
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s;
}

.btn:hover .arrow {
  transform: translateX(3px);
}

.btn-nav {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  white-space: nowrap;
}

.btn-nav:hover {
  background: #002a52;
  border-color: #002a52;
  box-shadow: 0 6px 20px rgba(0, 31, 63, 0.25);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--gold-gradient);
  color: var(--navy);
  border-color: var(--white);
}

.btn-primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy);
  border-color: var(--gold);
  flex-shrink: 0;
}

.btn-gold:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

.text-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Hero */
.hero {
  position: relative;
  min-height: min(65vh, 600px);
  display: flex;
  align-items: center;
  padding: var(--section-pad) 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    url("images/hero-bg.jpg")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0, 31, 63, 0.92) 0%,
    rgba(0, 31, 63, 0.75) 42%,
    rgba(0, 31, 63, 0.35) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
}

.hero-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 0.85rem;
}

.hero-line {
  display: inline;
}

.text-gold {
  color: var(--gold);
  font-style: normal;
}

.hero-lead {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-actions .btn {
  padding: 0.7rem 1.25rem;
  font-size: 0.75rem;
}

/* Sections */
.section {
  padding: var(--section-pad) 0;
}

.section-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin: 0 0 0.75rem;
}

.section-label-left {
  text-align: left;
}

.section-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  line-height: 1.25;
  color: var(--navy);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-title-left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  max-width: 520px;
}

.solutions {
  background: var(--white);
}

.card-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.card-row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.solution-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--solution-tab-border);
  border-radius: 10px;
  padding: 1.35rem 1.1rem 2.35rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.solution-card:hover,
.solution-card:focus-visible {
  border-color: var(--solution-tab-border-hover);
  background: #fafcfe;
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.solution-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.solution-card:hover .card-arrow,
.solution-card:focus-visible .card-arrow {
  transform: translateX(4px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.card-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.card-arrow {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  transition: transform 0.2s ease;
}

.solution-card h3 {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.75rem;
  line-height: 1.35;
}

.solution-card p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.solution-card-placeholder {
  font-style: italic;
  color: #7a8490;
}

/* Stats */
.stats-bar {
  background: var(--navy);
  padding: 3.5rem 0;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  color: var(--gold);
  width: 36px;
  height: 36px;
  margin-bottom: 0.25rem;
}

.stat-icon svg {
  width: 100%;
  height: 100%;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  max-width: 160px;
}

/* Who We Are */
.who-we-are {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 0 4rem;
}

.who-we-are-title {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  line-height: 1.2;
}

.who-we-are-subtitle {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.who-we-are-text {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1rem;
}
.who-we-are-text:last-child {
  margin-bottom: 0;
}

/* About */
.about {
  background: var(--grey-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-copy p {
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Founder Metrics Layout */
.founder-metrics-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.founder-metrics-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.metric-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 31, 63, 0.05);
  border-left: 4px solid var(--gold);
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateX(10px);
}

.metric-icon {
  width: 50px;
  height: 50px;
  background: #eff6ff;
  color: #01378E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.metric-icon svg {
  width: 24px;
  height: 24px;
}

.metric-data h3 {
  font-family: var(--font-inter);
  font-size: 1.25rem;
  color: var(--navy);
  margin: 0 0 0.25rem 0;
}

.metric-data p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 1024px) {
  .founder-metrics-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.quote-divider {
  width: 50px;
  height: 3px;
  background: var(--gold);
  margin-bottom: 1rem;
}

.quote-author {
  font-family: var(--font-inter);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* --- Dropdown Styles --- */
.has-dropdown {
  position: relative;
}
.dropdown-icon {
  margin-left: 2px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}
.has-dropdown:hover .dropdown-icon,
.footer-dropdown:hover .dropdown-icon {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 200px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  list-style: none;
  margin: 0;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0 !important;
  padding: 0 !important;
}

.dropdown-menu li a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: var(--navy) !important;
  font-weight: 500;
  font-size: 0.85rem;
  border: none !important;
}

.dropdown-menu li a:hover {
  background: var(--light-bg);
  color: var(--gold) !important;
}

/* Footer Dropdown */
.footer-dropdown {
  position: relative;
  display: inline-block;
}

.footer-dropdown-menu {
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--navy);
  min-width: 200px;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
  border-radius: 4px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  border: 1px solid rgba(255,255,255,0.1);
}

.footer-dropdown:hover .footer-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.footer-dropdown-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: #fff !important;
  text-decoration: none;
  border-bottom: none !important;
}

.footer-dropdown-menu a:hover {
  color: var(--gold) !important;
  background: rgba(255,255,255,0.05);
}

.footer-contact-line {
  width: 100%;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}
.footer-contact-line a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-line a:hover {
  color: var(--white);
}
.footer-contact-line strong {
  color: var(--white);
  font-weight: 600;
}
.footer-contact-line .sep {
  margin: 0 0.5rem;
  opacity: 0.5;
}

@media (max-width: 768px) {
  .footer-contact-line {
    line-height: 1.8;
  }
  .footer-contact-line .sep {
    display: block;
    font-size: 0;
    margin: 0.5rem 0;
  }
}

@media (max-width: 1024px) {
  .founder-quote-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.core-principles {
  margin: 0 0 1rem;
  max-width: 520px;
}

.about-copy .btn {
  margin-top: 1.5rem;
}

.about-visual {
  position: relative;
}

.about-image-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.about-image-wrap img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-quote {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  margin: 0;
  max-width: min(280px, 85%);
  background: var(--navy);
  color: var(--white);
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.about-quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.45;
  font-weight: 500;
}

.quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.5rem;
  line-height: 0.5;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

/* CTA bar */
.cta-bar {
  background: var(--navy);
  padding: 2.75rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-copy {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: min(100%, 320px);
}

.cta-icon {
  flex-shrink: 0;
  color: var(--gold);
  width: 40px;
  height: 40px;
  margin-top: 0.15rem;
}

.cta-icon svg {
  width: 100%;
  height: 100%;
}

.cta-head {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--white);
  margin: 0 0 0.35rem;
  line-height: 1.3;
}

.cta-sub {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 2rem 0 1.35rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: clamp(0.5rem, 1.5vw, 1rem);
  row-gap: 0.75rem;
  padding-bottom: 1.1rem;
}

.footer-top .logo-footer {
  justify-self: start;
  grid-column: 1;
}

.footer-mid {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
  max-width: 100%;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  max-width: 100%;
}

.footer-top .social {
  display: flex;
  align-items: center;
  line-height: 0;
}

.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--gold);
}

.social {
  flex-shrink: 0;
  color: var(--white);
  opacity: 0.9;
  transition: color 0.2s, opacity 0.2s;
}

.social:hover {
  color: var(--gold);
  opacity: 1;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom p {
  margin: 0;
}

.footer-legal {
  text-align: right;
  margin: 0;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s;
}

.footer-legal a:hover {
  color: var(--gold);
}

.footer-legal .sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}

/* Responsive */
@media (max-width: 1100px) {
  .card-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: 84px 0 auto 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem 1.5rem 1.5rem;
    box-shadow: 0 16px 40px rgba(0, 31, 63, 0.12);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .site-nav .btn-nav {
    width: 100%;
    margin-top: 0.5rem;
  }

  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .footer-mid {
    grid-column: unset;
    flex-direction: column;
    width: 100%;
    align-items: center;
  }

  .footer-nav {
    justify-content: center;
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .card-row {
    grid-template-columns: 1fr;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    width: auto;
    padding: 0.6rem 0.6rem;
    font-size: 0.65rem;
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* About Page Specific Styles */
.hero-about {
  min-height: 60vh;
}
.hero-about .hero-title {
  margin-bottom: 0.5rem;
}
.hero-about .hero-lead {
  font-size: 1.125rem;
}

.card-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.icon-list-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.icon-list-icon svg {
  width: 24px;
  height: 24px;
}
.icon-list-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-family: var(--font-serif);
}
.icon-list-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.accordion-header:hover {
  color: var(--gold);
}
.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.accordion-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}
.accordion-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}
.accordion-item.is-active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease;
  color: rgba(255, 255, 255, 0.85);
}
.accordion-item.is-active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.accordion-content li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.accordion-content li span {
  color: var(--gold);
  margin-top: 0.15rem;
}

/* Trusted By */
.trusted-by {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 31, 63, 0.05);
  text-align: center;
}
.trusted-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
  }
}

/* About Page Specific Styles */
.hero-about {
  min-height: 60vh;
}
.hero-about .hero-title {
  margin-bottom: 0.5rem;
}
.hero-about .hero-lead {
  font-size: 1.125rem;
}

.card-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.icon-list-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.icon-list-icon svg {
  width: 24px;
  height: 24px;
}
.icon-list-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-family: var(--font-serif);
}
.icon-list-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.accordion-header:hover {
  color: var(--gold);
}
.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.accordion-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}
.accordion-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}
.accordion-item.is-active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease;
  color: rgba(255, 255, 255, 0.85);
}
.accordion-item.is-active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.accordion-content li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.accordion-content li span {
  color: var(--gold);
  margin-top: 0.15rem;
}

/* Trusted By */
.trusted-by {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 31, 63, 0.05);
  text-align: center;
}
.trusted-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}
.trusted-logos:hover {
  opacity: 1;
  filter: grayscale(20%);
}
.abstract-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--white);
  font-size: 1.25rem;
  font-family: var(--font-serif);
}

/* About Page Specific Styles */
.hero-about {
  min-height: 60vh;
}
.hero-about .hero-title {
  margin-bottom: 0.5rem;
}
.hero-about .hero-lead {
  font-size: 1.125rem;
}

.card-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.icon-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.icon-list-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}
.icon-list-icon {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.3);
}
.icon-list-icon svg {
  width: 24px;
  height: 24px;
}
.icon-list-item h4 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
  font-family: var(--font-serif);
}
.icon-list-item p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Accordion */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.accordion-header {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  padding: 1.25rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}
.accordion-header:hover {
  color: var(--gold);
}
.accordion-icon {
  position: relative;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.accordion-icon::before, .accordion-icon::after {
  content: '';
  position: absolute;
  background: var(--gold);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.accordion-icon::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}
.accordion-icon::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
}
.accordion-item.is-active .accordion-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}
.accordion-content {
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out, padding 0.4s ease;
  color: rgba(255, 255, 255, 0.85);
}
.accordion-item.is-active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-bottom: 1.25rem;
}
.accordion-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.accordion-content li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}
.accordion-content li span {
  color: var(--gold);
  margin-top: 0.15rem;
}

/* Trusted By */
.trusted-by {
  background: var(--white);
  padding: 5rem 0;
  border-top: 1px solid rgba(0, 31, 63, 0.05);
  text-align: center;
}
.trusted-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}
.trusted-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  opacity: 0.7;
  filter: grayscale(100%);
  transition: opacity 0.3s, filter 0.3s;
}
.trusted-logos:hover {
  opacity: 1;
  filter: grayscale(20%);
}
.abstract-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  font-family: var(--font-sans);
  letter-spacing: 0.05em;
}
.abstract-logo svg {
  width: 36px;
  height: 36px;
  color: var(--gold);
}

/* Responsive Grids for About Page */
.accordion-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.contact-details {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .card-row-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-row-2 {
    grid-template-columns: 1fr;
  }
  .accordion-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  .leadership-grid .about-visual {
    order: -1;
  }
}

@media (max-width: 520px) {
  .card-row-3 {
    grid-template-columns: 1fr;
  }
}

/* Resource Augmentation Specific Styles */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.skill-tag {
  background: rgba(26, 43, 73, 0.05);
  color: var(--navy);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(26, 43, 73, 0.1);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* Micro-animations for benefits list */
.icon-list-item {
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 0.25rem;
}

.icon-list-item:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
}

.icon-list-icon {
  transition: transform 0.3s ease;
}

.icon-list-item:hover .icon-list-icon {
  transform: scale(1.15);
}

/* Animated Gradient Text */
.animated-gradient-text {
  background: linear-gradient(270deg, var(--gold) 0%, #ffffff 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  animation: shine 4s linear infinite;
  display: inline-block;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Glassmorphism Card */
.glassmorphism-card {
  background: rgba(0, 31, 63, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 60px rgba(0, 31, 63, 0.4);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  padding: 3rem;
  color: white;
}

/* Pain Point Hover Card */
.pain-point-card {
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
  border: 1px solid var(--solution-tab-border);
}

.pain-point-card:hover {
  transform: translateY(-8px);
  border-color: #ffb4a2;
  box-shadow: 0 20px 40px rgba(255, 180, 162, 0.2);
}

.pain-point-card:hover .card-icon {
  color: #e07a5f !important;
  transform: scale(1.1);
  transition: color 0.4s ease, transform 0.4s ease;
}

.pain-point-card .card-icon {
  transition: color 0.4s ease, transform 0.4s ease;
}

/* Cortex BI Redesign Styles */
.hero-cortex {
  background-color: #071B34; /* Dark Navy from prompt */
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(59, 201, 255, 0.05), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(10, 102, 255, 0.05), transparent 25%),
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  color: var(--white);
  padding: 0 0 6rem 0; /* Minimized top padding to near zero */
  position: relative;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 60%;
  background-image: url('images/cortex-hero-bg-v3.png');
  background-size: cover;
  background-position: center -100px;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.95;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%);
  mask-image: linear-gradient(to right, transparent 0%, black 15%);
}

.hero-overlay-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: 60%;
  background: linear-gradient(to right, #071B34 0%, rgba(7, 27, 52, 0.2) 100%);
  z-index: 1;
}

.hero-cortex-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); /* Prevents fixed-width children from expanding the grid */
  gap: 2rem;
  align-items: stretch;
  max-width: 1400px;
  width: 92%;
  margin: 0 auto;
}

.hero-content-left {
  position: relative;
  z-index: 2;
  align-self: end; /* Push down towards the bottom of the banner */
  margin-bottom: 4rem; /* Give it a little breathing room from the absolute bottom */
  margin-top: 0;
}

.hero-cortex-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.cortex-logo-icon {
  width: 60px;
  height: 60px;
  color: #0A66FF; /* Royal Blue */
  filter: drop-shadow(0 0 10px rgba(10, 102, 255, 0.5));
}

.hero-cortex-subtitle {
  font-size: clamp(1.5rem, 2.5vw, 2rem); /* Reduced size so long unbroken strings fit cleanly */
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-cortex-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 650px; /* Increased to allow text to extend further into the center */
}

.cortex-micro-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Single row of 4 icons */
  gap: 1.5rem; /* Increased gap to properly spread icons out */
  margin-top: 2rem; 
  max-width: 700px; /* Let the icons stretch out into the extra space */
}

.micro-feature {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center horizontally */
  text-align: center; /* Center text */
  gap: 0.5rem;
}

.micro-icon-wrap {
  width: 50px; /* Slightly larger for the 4-column layout */
  height: 50px;
  background: #0f2a5c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border: 1px solid #3b82f6;
}

.micro-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.micro-feature h4 {
  font-size: 0.85rem; /* Smaller font to fit 4 columns */
  font-weight: 700;
  margin: 0;
  color: var(--white);
  line-height: 1.2;
  white-space: nowrap; /* Force headings to stay on a single line */
}

.micro-feature p {
  font-size: 0.75rem; /* Smaller subtext */
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.3;
}

.hero-cortex-image {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  min-height: 0; /* Remove artificial min-height */
}

/* Laptop Frame and HTML-based Dashboard */
.laptop-mockup {
  position: relative;
  width: 750px; /* Fixed width so UI inside doesn't squish */
  max-width: 100vw;
  margin-left: -3rem; 
  margin-top: -12rem; /* Collapse the DOM "ghost space" left behind by scaling the element to 60% */
  margin-bottom: 0; 
  z-index: 10;
  transform: scale(0.5) translateY(8rem); /* Reduced scale from 0.6 to 0.5 */
  transform-origin: bottom center; 
}

.laptop-screen-bezel {
  background: #111;
  padding: 12px 12px 20px 12px;
  border-radius: 16px 16px 4px 4px;
  box-shadow: inset 0 0 0 1px #333, 0 20px 40px rgba(0, 0, 0, 0.4);
}

.laptop-base {
  position: relative;
  width: 114%;
  left: -7%;
  height: 18px;
  background: linear-gradient(to bottom, #d1d5db, #9ca3af);
  border-radius: 2px 2px 16px 16px;
  box-shadow: inset 0 2px 4px rgba(255,255,255,0.5), 0 15px 35px rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  z-index: 11;
}

.laptop-notch {
  width: 80px;
  height: 6px;
  background: #6b7280;
  border-radius: 0 0 4px 4px;
}

.cortex-ui-mockup {
  width: 100%;
  background: #f8fafc;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-sans);
  height: auto;
}

.ui-header {
  background: #0b1527;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ui-body {
  display: flex;
  flex: 1;
}

.ui-sidebar {
  background: #0b1527;
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding-top: 1rem;
}

.ui-sidebar-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border-radius: 8px;
  transition: all 0.2s;
}

.ui-sidebar-icon.active {
  background: rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.ui-sidebar-icon svg {
  width: 20px;
  height: 20px;
}

.ui-content {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 1.25rem;
  flex: 1;
  padding: 1.5rem;
  background: #f1f5f9; /* Revert to light grey inner background */
  position: relative;
}

.ui-content::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(10, 102, 255, 0.1), transparent 70%);
  pointer-events: none;
}

.ui-card {
  background: var(--white); /* Solid white cards */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: 8px;
  padding: 1.25rem;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  position: relative;
  z-index: 1;
}

.ui-chat-bubble {
  background: #eff6ff; /* Light blue bubble */
  color: #1e3a8a; /* Dark blue text */
  padding: 1rem 1.25rem;
  border-radius: 8px 8px 8px 0;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: inline-block;
  border: none;
  box-shadow: none;
}

.ui-table-card h5, .ui-analysis-card h5, .ui-sql-card h5 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy); /* Dark text for headings */
  margin: 0 0 1rem 0;
  text-shadow: none;
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.ui-table th {
  text-align: left;
  color: #64748b;
  font-weight: 600;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.ui-table td {
  padding: 0.5rem 0;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}

.ui-table td:last-child, .ui-table th:last-child {
  text-align: right;
  font-weight: 600;
  color: #334155; /* Revert to dark text */
}

.ui-table tr:last-child td {
  border-bottom: none;
}

.ui-right-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ui-analysis-card p {
  font-size: 0.75rem;
  color: #334155;
  line-height: 1.6;
  margin: 0;
}

.ui-sql-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ui-sql-card code {
  display: block;
  font-family: monospace;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  text-shadow: none;
}

.ui-sql-time {
  text-align: right;
  font-size: 0.65rem;
  color: #94a3b8;
}

.db-connection-card {
  position: absolute;
  bottom: -5.5rem; /* Moved slightly upwards as requested */
  left: calc(50% - 3rem);
  transform: translateX(-50%) translateY(50%) scale(0.8);
  background: var(--white);
  border-radius: 12px;
  padding: 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  width: 375px; /* Match new scale(0.5) of 750px laptop */
  max-width: 100%;
  z-index: 20;
}

.db-connection-card p {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.db-logos {
  display: flex;
  align-items: center;
  gap: 3rem;
  justify-content: center;
}

.db-logo {
  height: 40px;
  width: auto;
}

.problem-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.problem-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}

.problem-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 10%; /* Slight offset from top */
  bottom: 10%; /* Slight offset from bottom */
  right: -1rem; /* Centered in the 2rem grid gap */
  width: 1px;
  background-color: #e2e8f0;
}

.problem-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  border: 2px solid #0f213b;
  color: #0f213b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.problem-icon svg {
  width: 28px;
  height: 28px;
}

.problem-item h4 {
  font-size: 1.1rem;
  color: var(--navy);
  margin: 0;
  line-height: 1.4;
}

.problem-item p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}


.process-flow-section {
  background: #f0f4f8;
  padding: 5rem 0;
}

.process-flow-container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 4rem;
  position: relative;
}

/* Add a line behind the steps */
.process-flow-container::before {
  content: '';
  position: absolute;
  top: 40px; /* middle of the icon */
  left: 5%;
  right: 5%;
  height: 2px;
  background: #cbd5e1;
  z-index: 0;
}

.process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  width: 18%;
  position: relative;
  z-index: 1;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.process-icon svg {
  width: 36px;
  height: 36px;
}

.process-step h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.process-arrow {
  position: absolute;
  top: 40px;
  right: -15%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 2;
  background: #f0f4f8;
  padding: 0 10px;
}

.process-arrow svg {
  width: 24px;
  height: 24px;
}

.capabilities-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.capability-card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.capability-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: #cbd5e1;
}

.capability-icon {
  width: 60px;
  height: 60px;
  background: #0f213b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.capability-icon svg {
  width: 30px;
  height: 30px;
}

.capability-card h4 {
  font-size: 1.05rem;
  color: var(--navy);
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.capability-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.cortex-cta {
  background: #061121;
  color: var(--white);
  padding: 3rem 0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.cortex-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cortex-cta-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cortex-rocket {
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}

.cortex-rocket svg {
  width: 32px;
  height: 32px;
}

.cortex-cta-text h3 {
  font-size: 1.5rem;
  margin: 0 0 0.25rem;
  font-family: var(--font-sans);
}

.cortex-cta-text p {
  font-size: 1.1rem;
  margin: 0;
  color: #60a5fa;
}

@media (max-width: 1024px) {
  .hero-bg-image, .hero-overlay-gradient {
    width: 100%;
    left: 0;
    right: 0;
  }
  .hero-bg-image {
    background-position: center center;
    opacity: 0.3; /* Make it subtle so text remains readable */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
  }
  .hero-overlay-gradient {
    background: linear-gradient(to bottom, #071B34 0%, rgba(7, 27, 52, 0.5) 50%, #071B34 100%);
  }
  .hero-cortex-grid {
    grid-template-columns: minmax(0, 1fr);
    text-align: center;
  }
  .hero-cortex-lead {
    margin: 0 auto 3rem;
  }
  .db-connection-card {
    position: relative;
    left: auto;
    bottom: auto;
    transform: scale(0.8);
    margin: 12rem auto 2rem;
  }
  .laptop-mockup {
    margin: 2rem auto -10rem; /* Fixes overlapping above, and collapses ghost space below */
    transform: scale(0.6);
  }
  .problem-item::after {
    display: none; /* Hide vertical dividers on mobile */
  }
  .cortex-micro-features {
    justify-content: center;
  }
  .problem-flow {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-flow-container {
    flex-wrap: wrap;
    gap: 3rem;
  }
  .process-flow-container::before {
    display: none;
  }
  .process-step {
    width: 45%;
  }
  .process-arrow {
    display: none;
  }
  .capabilities-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .laptop-mockup {
    width: 100%;
    transform: none;
    margin: 2rem 0;
  }
  .laptop-base {
    display: none;
  }
  .laptop-screen-bezel {
    padding: 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    background: transparent;
  }
  .cortex-ui-mockup {
    border-radius: 12px;
  }
  .ui-sidebar {
    display: none;
  }
  .ui-content {
    grid-template-columns: 1fr;
    padding: 1rem;
    gap: 1rem;
  }
  .db-connection-card {
    width: 100%;
    transform: none;
    margin: 0 0 2rem 0;
  }
  .hero-cortex-subtitle span {
    white-space: normal !important;
  }
  .micro-feature h4 {
    white-space: normal !important;
  }
  .cortex-micro-features {
    grid-template-columns: repeat(2, 1fr);
  }
  .problem-flow {
    grid-template-columns: 1fr;
  }
  .process-step {
    width: 100%;
  }
  .capabilities-row {
    grid-template-columns: 1fr;
  }
  .cortex-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .cortex-cta-left {
    flex-direction: column;
  }
}

/* Intro Split Layout */
.intro-split {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .intro-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Custom Premium List */
.custom-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.custom-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.custom-list-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
}
.custom-list-icon svg {
  width: 100%;
  height: 100%;
}
.premium-card {
  text-align: left !important;
  padding: 2.5rem !important;
  background: var(--white);
  border: 1px solid rgba(0, 31, 63, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* Glass Badge Grid */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 0;
}
.glass-badge {
  background: var(--white);
  border: 1px solid rgba(0, 31, 63, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-badge:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border-color: rgba(212, 175, 55, 0.3);
}
.glass-badge svg {
  width: 28px;
  height: 28px;
}
.glass-badge h4 {
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 0;
}

/* Z-Layout */
.z-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.z-layout-img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,31,63,0.1);
  object-fit: cover;
}
@media (max-width: 900px) {
  .z-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .z-layout-img {
    order: -1;
  }
}

/* Tabs */
.tabs-container {
  max-width: 960px;
  margin: 0 auto;
}
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--white);
  border: 1px solid rgba(0,31,63,0.1);
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-muted);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.tab-btn:hover {
  border-color: var(--gold);
}
.tab-btn.active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  box-shadow: 0 10px 20px rgba(0,31,63,0.1);
}
.tab-pane {
  display: none;
  background: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  animation: fadeInTab 0.4s ease-in-out;
}
.tab-pane.active {
  display: block;
}
.tab-list {
  margin: 0;
}
.tab-list li {
  font-size: 1.1rem;
}
@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Glass Panel */
.hero-glass-panel {
  display: inline-block;
  padding: 3rem 4rem;
  border-radius: 16px;
  background: rgba(0, 31, 63, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .hero-glass-panel {
    padding: 2rem 1.5rem;
  }
}

/* Gold Text Gradient Utility */
.text-gradient-gold {
  background: linear-gradient(135deg, #FFEFB3 0%, #D4AF37 50%, #A68420 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: var(--gold); /* Fallback */
}

/* Highlight Marker Utility */
.highlight-marker {
  position: relative;
  display: inline-block;
  z-index: 1;
}
.highlight-marker::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  bottom: 0.15em;
  height: 0.35em;
  background-color: rgba(212, 175, 55, 0.7); /* Semi-transparent gold */
  z-index: -1;
  border-radius: 2px;
  transform: skewX(-15deg);
}

/* Bento Box Layout */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.bento-featured {
  grid-column: span 2;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem;
  background: var(--navy) !important;
  color: var(--white) !important;
  border: none;
}
.bento-featured h3 {
  color: var(--white) !important;
  font-size: 2rem !important;
  margin-bottom: 1rem;
}
.bento-featured p {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 1.15rem !important;
  line-height: 1.7 !important;
}
.bento-featured .card-icon {
  margin: 0 0 1.5rem 0;
  width: 56px;
  height: 56px;
}
.bento-featured:hover {
  background: var(--navy) !important;
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 31, 63, 0.2);
}
@media (max-width: 992px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-featured {
    grid-column: span 2;
  }
}
@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-featured {
    grid-column: span 1;
    padding: 2.5rem 1.5rem;
  }
}

/* Anchor links scroll offset for fixed header */
*[id] { scroll-margin-top: 120px; }

