/* ==========================================================================
   BeeOnLion Stylesheet (style.css)
   Clean [data-md-src] Markdown-driven layout architecture.
   100% Self-Hosted Fonts, Zero External CDNs, WCAG 2.1 AA Accessible.
   ========================================================================== */

@font-face {
  font-family: 'InterLocal';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'InterLocal';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Basic Reset & Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'InterLocal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  color: #1e293b;
  background-color: #f8fafc;
  margin: auto;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: 'InterLocal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.65rem;
}

h2 {
  font-size: 2.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.4rem;
}

p {
  margin-bottom: 1.15rem;
  color: #334155;
  line-height: 1.75;
}

a {
  text-decoration: none;
  color: #1d4ed8;
  transition: color 0.2s ease;
}

a:hover {
  color: #1e40af;
  text-decoration: underline;
}

p a:not(.cta-button):not(.cta-button-outline):not(.cta-button-light) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

.bg-light {
  background-color: #ffffff;
}

.brand-name {
  font-weight: 700;
  color: inherit;
}

/* Accessibility Skip Link & Focus States */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: #1d4ed8;
  color: #ffffff;
  padding: 0.65rem 1.25rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #1d4ed8 !important;
  outline-offset: 2px !important;
}

.hero-section :where(a, button):focus-visible,
footer :where(a, button):focus-visible {
  outline-color: #93c5fd !important;
}

/* Header & Navigation */
header {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.07);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.logo-wordmark {
  font-size: 1.38rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0f172a;
  line-height: 1;
}

.logo-wordmark span {
  color: #b39111;
}

.nav-links {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: #0f172a;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.2rem;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #1d4ed8;
  border-bottom-color: #1d4ed8;
  text-decoration: none;
}

.mobile-menu-toggle {
  display: none;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 0.45rem 0.75rem;
  font-size: 1.35rem;
  color: #0f172a;
  cursor: pointer;
  line-height: 1;
}

.menu-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 4.5rem 0;
  text-align: center;
}

.hero-section .container {
  max-width: 960px;
}

.hero-section h1 {
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.hero-section .subtitle,
.hero-section [data-md-src] {
  font-size: 1.12rem;
  margin-bottom: 2rem;
  color: #e2e8f0;
  text-align: left;
}

.hero-section [data-md-src] p {
  color: #f1f5f9;
  font-size: 1.12rem;
  margin-bottom: 1.15rem;
  line-height: 1.75;
}

.hero-section [data-md-src] strong {
  color: #ffffff;
}

.hero-section [data-md-src] a {
  color: #93c5fd;
  text-decoration: underline;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.75rem;
}

.cta-button,
.cta-button-outline,
.cta-button-light {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.cta-button {
  background-color: #2563eb;
  color: #ffffff;
  border: 2px solid #2563eb;
}

.cta-button:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-button-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.75);
}

.cta-button-outline:hover {
  background-color: #ffffff;
  color: #0f172a;
  border-color: #ffffff;
  text-decoration: none;
}

.cta-button-light {
  background-color: #ffffff;
  color: #1e293b;
  border: 2px solid #cbd5e1;
}

.cta-button-light:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  text-decoration: none;
}

/* Content Sections */
.content-section {
  padding: 4.5rem 0;
}

section[id],
article[id] {
  scroll-margin-top: 90px;
}

.section-lead {
  text-align: center;
  max-width: 820px;
  margin: -0.5rem auto 2.5rem auto;
  font-size: 1.15rem;
  color: #475569;
}

/* Markdown Content Specific Styling ([data-md-src]) */
[data-md-src] h2 {
  font-size: 1.65rem;
  color: #0f172a;
  text-align: left;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #e2e8f0;
}

[data-md-src] h3 {
  font-size: 1.45rem;
  color: #0f172a;
  margin-bottom: 0.9rem;
  line-height: 1.35;
}

[data-md-src] p {
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.1rem;
  line-height: 1.75;
  text-align: left;
}

[data-md-src] ul,
[data-md-src] ol {
  max-width: 920px;
  margin: 0.75rem auto 1.25rem auto;
  padding-left: 1.5rem;
}

[data-md-src] li {
  margin-bottom: 0.55rem;
  line-height: 1.65;
  color: #334155;
}

[data-md-src] a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-md-src] code {
  font-family: 'InterLocal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.86em;
  font-weight: 700;
  background: #f1f5f9;
  color: #0f172a;
  padding: 0.12rem 0.48rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* Flagship Capabilities & 6-Pillar Spotlight Grid */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.spotlight-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.spotlight-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: flex-start;
}

.spotlight-card.ai-card {
  border-top: 4px solid #dc2626;
}

.spotlight-card.mobile-card {
  border-top: 4px solid #2563eb;
}

.spotlight-card.automation-card {
  border-top: 4px solid #d97706;
}

.spotlight-card.vision-card {
  border-top: 4px solid #7c3aed;
}

.spotlight-card.geo-card {
  border-top: 4px solid #0d9488;
}

.spotlight-card.security-card {
  border-top: 4px solid #15803d;
}

.spotlight-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.spotlight-tag.tag-ai {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.spotlight-tag.tag-mobile {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.spotlight-tag.tag-automation {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.spotlight-tag.tag-vision {
  background: #f5f3ff;
  color: #6d28d9;
  border: 1px solid #ddd6fe;
}

.spotlight-tag.tag-geo {
  background: #f0fdfa;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.spotlight-tag.tag-security {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.spotlight-card [data-md-src] ul {
  list-style: none;
  padding-left: 0;
}

.spotlight-card [data-md-src] li {
  position: relative;
  padding-left: 1.6rem;
}

.spotlight-card [data-md-src] li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.tech-pill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1.25rem;
}

.tech-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.81rem;
  font-weight: 600;
  border-radius: 999px;
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
}

.spotlight-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  width: 100%;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.spotlight-actions .cta-button,
.spotlight-actions .cta-button-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  padding: 0.78rem 0.9rem;
  font-size: 0.92rem;
  line-height: 1.25;
  white-space: nowrap;
}

/* Services Icon Navigation Grid */
.services-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.service-nav-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  text-decoration: none;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px -5px rgba(37, 99, 235, 0.14);
  border-color: #3b82f6;
  text-decoration: none;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.service-nav-card h3 {
  font-size: 1.02rem;
  margin: 0;
  color: #0f172a;
}

/* Features / Service Detail Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.75rem;
}

.feature-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  scroll-margin-top: 95px;
}

.service-detail-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.25rem;
  margin-bottom: 1.75rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
  scroll-margin-top: 95px;
}

/* AI Disclaimer Banner (ai-generated-content-disclaimer skill) */
.ai-disclaimer {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #fef8ee;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  max-width: 920px;
  margin: 1.25rem auto 0 auto;
  align-items: flex-start;
}

.ai-disclaimer-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 6px;
  font-size: 16px;
  color: #d97706;
  flex-shrink: 0;
}

.ai-disclaimer-text {
  flex: 1;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #78350f;
  margin: 0;
}

.ai-disclaimer-text strong {
  color: #92400e;
}

/* Contact Cards Grid */
#contact.content-section,
#contact-details.content-section {
  padding: 3rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1rem;
  max-width: 1120px;
  margin: 1.25rem auto 0 auto;
  align-items: stretch;
}

.contact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.contact-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.contact-card h3,
.contact-card [data-md-src] h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
  line-height: 1.25;
}

.contact-card p,
.contact-card [data-md-src] p {
  margin-bottom: 0;
  font-size: 0.92rem;
  line-height: 1.4;
  color: #334155;
}

/* Legal Document Container (Privacy Policy & Cookie Statement) */
.legal-document-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 2.5rem;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

/* About Us Story & Built Platforms Bento Showcase Cards */
#about-story .legal-document-card,
#built-platforms .legal-document-card {
  max-width: 1120px;
  padding: 2.5rem 2.75rem;
}

#about-story [data-md-src] p,
#built-platforms [data-md-src] p {
  max-width: 100%;
}

#about-story [data-md-src] h3,
#built-platforms [data-md-src] h3 {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.4rem;
  color: #0f172a;
  border-left: 4px solid #2563eb;
  padding-left: 0.85rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

#about-story [data-md-src] h3:first-child,
#built-platforms [data-md-src] h3:first-child {
  margin-top: 0;
}

#built-platforms [data-md-src] h3 {
  border-left-color: #0d9488;
}

#about-story [data-md-src] ul,
#built-platforms [data-md-src] ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  padding-left: 0;
  max-width: 100%;
  margin: 1.25rem 0 0.5rem 0;
}

#about-story [data-md-src] li,
#built-platforms [data-md-src] li {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #2563eb;
  border-radius: 12px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 0;
  font-size: 0.96rem;
  line-height: 1.6;
  color: #334155;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.25s ease,
              opacity 0.25s ease,
              background-color 0.25s ease;
}

#built-platforms [data-md-src] li {
  border-left-color: #0d9488;
}

#about-story [data-md-src] li:hover,
#built-platforms [data-md-src] li:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -6px rgba(15, 23, 42, 0.1);
}

#about-story [data-md-src] li > strong:first-child,
#built-platforms [data-md-src] li > strong:first-child {
  display: block;
  font-size: 1.02rem;
  color: #0f172a;
  margin-bottom: 0.25rem;
}

#built-platforms .ai-disclaimer {
  max-width: 100%;
  margin-top: 1.75rem;
}

/* Footer (3-column symmetrical footer layout) */
footer {
  background-color: #0f172a;
  color: #cbd5e1;
  padding: 3.5rem 0 2rem 0;
  font-size: 0.95rem;
}

footer .footer-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}

footer .footer-column {
  min-width: 0;
}

footer .footer-column h2,
footer .footer-column h3,
footer .footer-column h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #1e293b;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: left;
}

footer .footer-column p,
footer .footer-column ul li,
footer .footer-column [data-md-src] p {
  color: #cbd5e1;
  margin: 0 0 0.55rem 0;
  text-align: left;
  max-width: 100%;
  font-size: 0.94rem;
  line-height: 1.65;
}

footer .footer-column ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

footer .footer-column a {
  color: #93c5fd;
  text-decoration: none;
  font-weight: 500;
}

footer .footer-column p a,
footer .copyright a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

footer .footer-column a:hover {
  color: #ffffff;
  text-decoration: underline;
}

footer .copyright {
  text-align: center;
  width: 100%;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: 0.9rem;
}

footer .copyright p {
  text-align: center;
  color: #94a3b8;
  margin-bottom: 0;
}

footer .copyright a {
  color: #93c5fd;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0 18px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.65rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    padding: 1rem 0;
    gap: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 0.6rem 1rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .spotlight-grid,
  .features-grid,
  .tech-pill-list,
  .spotlight-actions,
  #about-story [data-md-src] ul,
  #built-platforms [data-md-src] ul {
    grid-template-columns: 1fr;
  }

  .spotlight-actions .cta-button,
  .spotlight-actions .cta-button-light {
    white-space: normal;
  }

  .service-detail-block,
  .legal-document-card,
  #about-story .legal-document-card,
  #built-platforms .legal-document-card,
  .spotlight-card {
    padding: 1.5rem;
  }

  footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   Modern CSS Progressive Enhancements (Zero-JS, GitLab Pages Compatible)
   1. Multi-Page View Transitions (@view-transition)
   2. P3 Wide-Gamut OKLCH Brand Tokens & Relative Color Surfaces
   3. Interactive Spotlight Focus Grids (:has())
   4. Sticky Header Container Scroll-State Queries (scroll-state)
   5. Smooth Mobile Menu Entry/Exit (@starting-style)
   6. Scroll-Driven Reveal Animations (animation-timeline: view())
   7. Dynamic Cascading Stagger Delays (sibling-index())
   ========================================================================== */

/* 1. Native Cross-Document View Transitions */
@view-transition {
  navigation: auto;
}

header {
  view-transition-name: site-header;
}

.hero-section h1 {
  view-transition-name: hero-heading;
}

::view-transition-old(root),
::view-transition-new(root),
::view-transition-old(hero-heading),
::view-transition-new(hero-heading) {
  animation-duration: 0.32s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

/* 2. P3 Wide-Gamut Glassmorphism with OKLCH & Relative Color Syntax */
:root {
  --brand-primary: oklch(0.55 0.22 260);
  --brand-ai: oklch(0.58 0.22 25);
  --brand-automation: oklch(0.66 0.17 65);
  --brand-vision: oklch(0.55 0.24 295);
  --brand-geo: oklch(0.60 0.14 185);
  --brand-security: oklch(0.54 0.16 145);
  --brand-navy: oklch(0.21 0.04 260);
}

.spotlight-card:hover {
  transform: translateY(-3px);
}

@supports (color: oklch(from red l c h)) {
  .hero-section {
    background: linear-gradient(
      135deg,
      oklch(from var(--brand-navy) calc(l - 0.04) c h) 0%,
      oklch(from var(--brand-navy) calc(l + 0.06) calc(c + 0.03) h) 100%
    );
  }

  .spotlight-card.ai-card:hover {
    border-color: oklch(from var(--brand-ai) l c h / 0.35);
    box-shadow: 0 16px 36px oklch(from var(--brand-ai) 0.35 0.14 h / 0.12);
  }

  .spotlight-card.mobile-card:hover {
    border-color: oklch(from var(--brand-primary) l c h / 0.35);
    box-shadow: 0 16px 36px oklch(from var(--brand-primary) 0.35 0.15 h / 0.14);
  }

  .spotlight-card.automation-card:hover {
    border-color: oklch(from var(--brand-automation) l c h / 0.4);
    box-shadow: 0 16px 36px oklch(from var(--brand-automation) 0.38 0.14 h / 0.14);
  }

  .spotlight-card.vision-card:hover {
    border-color: oklch(from var(--brand-vision) l c h / 0.38);
    box-shadow: 0 16px 36px oklch(from var(--brand-vision) 0.35 0.16 h / 0.14);
  }

  .spotlight-card.geo-card:hover {
    border-color: oklch(from var(--brand-geo) l c h / 0.4);
    box-shadow: 0 16px 36px oklch(from var(--brand-geo) 0.35 0.12 h / 0.14);
  }

  .spotlight-card.security-card:hover {
    border-color: oklch(from var(--brand-security) l c h / 0.4);
    box-shadow: 0 16px 36px oklch(from var(--brand-security) 0.35 0.13 h / 0.14);
  }

  .service-nav-card:hover {
    border-color: oklch(from var(--brand-primary) calc(l + 0.08) c h / 0.65);
    box-shadow: 0 12px 26px -4px oklch(from var(--brand-primary) 0.4 0.16 h / 0.18);
  }
}

/* 3. Interactive Spotlight Focus Grids with :has() */
.spotlight-card,
.contact-card,
.service-detail-block {
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              opacity 0.28s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.28s ease;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .services-nav-grid:has(.service-nav-card:hover, .service-nav-card:focus-visible)
    .service-nav-card:not(:hover):not(:focus-visible) {
    opacity: 0.58;
    transform: scale(0.97);
  }

  .spotlight-grid:has(.spotlight-card:hover)
    .spotlight-card:not(:hover) {
    opacity: 0.78;
    transform: scale(0.99);
  }

  .contact-grid:has(.contact-card:hover)
    .contact-card:not(:hover) {
    opacity: 0.68;
    transform: scale(0.985);
  }

  #about-story [data-md-src] ul:has(li:hover) li:not(:hover),
  #built-platforms [data-md-src] ul:has(li:hover) li:not(:hover) {
    opacity: 0.72;
  }
}

/* 4. Container Scroll-State Queries (scroll-state) for Sticky Header */
@supports (container-type: scroll-state) {
  header {
    container-type: scroll-state;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
  }

  header > .container {
    background-color: #ffffff;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    transition: padding 0.28s ease, background-color 0.28s ease, box-shadow 0.28s ease;
  }

  .logo img {
    transition: height 0.28s ease;
  }

  @container scroll-state(stuck: top) {
    header > .container {
      background-color: rgba(255, 255, 255, 0.88);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      padding-top: 0.45rem;
      padding-bottom: 0.45rem;
      box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
      border-radius: 0 0 12px 12px;
    }

    .logo img {
      height: 40px;
    }
  }
}

/* 5. Smooth Entry/Exit Animations with @starting-style for Mobile Menu */
@media (max-width: 768px) and (prefers-reduced-motion: no-preference) {
  .nav-links {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.22s ease,
                transform 0.22s ease,
                display 0.22s ease allow-discrete;
  }

  .nav-links.active {
    opacity: 1;
    transform: translateY(0);

    @starting-style {
      opacity: 0;
      transform: translateY(-8px);
    }
  }
}

/* 6. Scroll-Driven Scrub & Reveal (animation-timeline: view()) */
@keyframes card-scroll-reveal {
  from {
    transform: translateY(28px) scale(0.985);
    opacity: 1;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .service-detail-block,
    .spotlight-card,
    .contact-card {
      view-timeline-name: --card-scroll;
      view-timeline-axis: block;
      animation: card-scroll-reveal ease-out both;
      animation-timeline: --card-scroll;
      animation-range: entry 5% cover 24%;
    }
  }
}

/* 7. Dynamic Cascading Stagger Delays with sibling-index() */
@keyframes pill-cascade-reveal {
  from {
    opacity: 1;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-delay: calc(sibling-index() * 1ms)) {
    .service-nav-card,
    .tech-pill {
      animation: pill-cascade-reveal 0.45s cubic-bezier(0.16, 1, 0.3, 1) backwards;
      animation-delay: calc(sibling-index() * 45ms);
    }
  }
}

/* ==========================================================================
   404 Page: "Lost in the Honeycomb" Interactive Experience
   ========================================================================== */

.hero-404 {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 2.5rem 0;
}

.hero-404 h1.hero-404-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(252, 204, 9, 0.14);
  color: #fde047;
  border: 1px solid rgba(252, 204, 9, 0.45);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-404-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #fccc09;
  box-shadow: 0 0 10px #fccc09;
  animation: pulse-hive-dot 2s infinite ease-in-out;
}

@keyframes pulse-hive-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.35);
    opacity: 0.65;
  }
}

.hive-404-visual {
  max-width: 440px;
  margin: 0 auto;
  position: relative;
}

.hive-404-svg {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.35));
}

@media (prefers-reduced-motion: no-preference) {
  .scout-bee-group {
    animation: scout-bee-hover 4.5s ease-in-out infinite;
    transform-origin: center;
  }

  .hive-radar-ring {
    animation: hive-radar-pulse 3.6s ease-out infinite;
    transform-origin: 220px 115px;
  }

  .hex-cell-glow {
    animation: hex-shimmer 4s ease-in-out infinite alternate;
  }
}

@keyframes scout-bee-hover {
  0%, 100% {
    transform: translate(0, 0) rotate(-3deg);
  }
  25% {
    transform: translate(8px, -7px) rotate(4deg);
  }
  50% {
    transform: translate(-6px, -11px) rotate(-5deg);
  }
  75% {
    transform: translate(-10px, -3px) rotate(3deg);
  }
}

@keyframes hive-radar-pulse {
  0% {
    transform: scale(0.75);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes hex-shimmer {
  0% {
    opacity: 0.22;
  }
  100% {
    opacity: 0.65;
  }
}

/* Interactive Route Recovery & Search Section */
.hive-finder-box {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 1.75rem 2rem;
  max-width: 920px;
  margin: 0 auto 2.25rem auto;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

.hive-search-label {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: #0f172a;
  margin-bottom: 0.65rem;
}

.hive-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.hive-search-icon {
  position: absolute;
  left: 1rem;
  color: #475569;
  display: inline-flex;
  pointer-events: none;
}

.hive-search-input {
  width: 100%;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  font-family: inherit;
  font-size: 1rem;
  color: #0f172a;
  background: #f8fafc;
  border: 2px solid #cbd5e1;
  border-radius: 10px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.hive-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.18);
}

.hive-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.hive-filter-btn {
  background: #f1f5f9;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 0.38rem 0.9rem;
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hive-filter-btn:hover {
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: #eff6ff;
}

.hive-filter-btn[aria-pressed="true"] {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}

.hive-search-status {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.hive-rescue-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.hive-rescue-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid #2563eb;
  border-radius: 14px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.hive-rescue-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.09);
}

.hive-rescue-card.card-gold {
  border-top-color: #b39111;
}

.hive-rescue-card.card-ai {
  border-top-color: #dc2626;
}

.hive-rescue-card.card-mobile {
  border-top-color: #2563eb;
}

.hive-rescue-card.card-web {
  border-top-color: #0d9488;
}

.hive-rescue-card.card-auto {
  border-top-color: #d97706;
}

.hive-rescue-card.card-security {
  border-top-color: #15803d;
}

.hive-rescue-card.is-recommended {
  border-color: #b39111;
  border-top: 4px solid #b39111;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 42%);
  box-shadow: 0 10px 26px rgba(179, 145, 17, 0.16);
}

.hive-rescue-card[hidden] {
  display: none !important;
}

.hive-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.hive-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}

.hive-recommended-badge {
  display: none;
  font-size: 0.73rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.hive-rescue-card.is-recommended .hive-recommended-badge {
  display: inline-block;
}

.hive-rescue-card h3 {
  font-size: 1.22rem;
  margin-bottom: 0.55rem;
  color: #0f172a;
}

.hive-rescue-card p {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.hive-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #1d4ed8;
  text-decoration: none;
  margin-top: auto;
}

.hive-card-link:hover {
  color: #1e40af;
  text-decoration: underline;
}

@media (max-width: 992px) {
  .hive-rescue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .hive-rescue-grid {
    grid-template-columns: 1fr;
  }

  .hive-finder-box {
    padding: 1.35rem;
  }
}


