.video-bg-layer {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100vh;
   z-index: -2;
   overflow: hidden
}

.video-bg-layer video {
   min-width: 100%;
   min-height: 100%;
   width: auto;
   height: auto;
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   object-fit: cover;
   opacity: 0.6;
   transition: opacity 2s ease-in-out
}

.video-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(20, 0, 10, 0.4) 50%, rgba(0, 0, 0, 0.8) 100%);
   z-index: 1
}

:root {
   --bg-obsidian: #050505;
   --bg-obsidian-soft: #0a0a0a;
   --garnet-deep: hsl(348, 83%, 25%);
   --garnet-main: hsl(348, 83%, 47%);
   --garnet-glow: hsla(348, 83%, 47%, 0.4);
   --garnet-rim: hsla(348, 83%, 60%, 0.15);
   --text-primary: #ffffff;
   --text-secondary: rgba(255, 255, 255, 0.85);
   --text-muted: rgba(255, 255, 255, 0.55);
   --glass-bg: rgba(15, 15, 15, 0.6);
   --glass-border: rgba(255, 255, 255, 0.08);
   --glass-glow: hsla(348, 83%, 47%, 0.1);
   --font-heading: 'Outfit', sans-serif;
   --font-body: 'Inter', sans-serif;
   --container-max: 1200px;
   --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
   --transition-med: 0.4s cubic-bezier(0.16, 1, 0.3, 1)
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   -webkit-font-smoothing: antialiased
}

html {
   scroll-behavior: smooth;
   background-color: var(--bg-obsidian);
   overflow-x: hidden;
   max-width: 100%
}

body {
   font-family: var(--font-body);
   color: var(--text-primary);
   line-height: 1.6;
   overflow-x: hidden;
   width: 100%;
   max-width: 100%;
   position: relative;
   margin: 0;
   padding: 0
}

h1,
h2,
h3,
h4 {
   font-family: var(--font-heading);
   font-weight: 700;
   letter-spacing: -0.02em
}

.aurora-bg {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -2;
   background: radial-gradient(circle at 20% 30%, var(--garnet-deep) 0%, transparent 40%), radial-gradient(circle at 80% 70%, #1a0510 0%, transparent 40%);
   filter: blur(80px);
   opacity: 0.5;
   animation: auroraShift 20s ease-in-out infinite alternate;
   will-change: transform;
   transform: translateZ(0);
   contain: strict
}

@keyframes auroraShift {
   0% {
      transform: scale(1) translate(0, 0)
   }

   100% {
      transform: scale(1.1) translate(5%, 5%)
   }
}

.gridfield {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   z-index: -1;
   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: 50px 50px;
   mask-image: radial-gradient(circle at center, black, transparent 80%);
   perspective: 1000px;
   transform: rotateX(60deg) scale(2);
   transform-origin: top;
   opacity: 0.4;
   will-change: transform;
   contain: strict
}

.grid-shimmer {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: linear-gradient(to bottom, transparent, var(--garnet-glow), transparent);
   background-size: 100% 200%;
   animation: shimmer 8s linear infinite;
   will-change: transform;
   transform: translateZ(0)
}

@keyframes shimmer {
   0% {
      background-position: 0% 100%
   }

   100% {
      background-position: 0% -100%
   }
}

header.main-nav {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 1000;
   padding: 1.5rem 0;
   transition: var(--transition-med)
}

header.main-nav.scrolled {
   padding: 0.8rem 0;
   background: var(--glass-bg);
   backdrop-filter: blur(12px);
   border-bottom: 1px solid var(--glass-border)
}

.nav-container {
   max-width: var(--container-max);
   margin: 0 auto;
   padding: 0 2rem;
   display: flex;
   justify-content: space-between;
   align-items: center
}

.logo {
   font-family: var(--font-heading);
   font-size: 1.5rem;
   font-weight: 800;
   text-decoration: none;
   color: var(--text-primary);
   display: flex;
   align-items: center;
   gap: 0.8rem;
   transition: var(--transition-med)
}

.logo img {
   height: 38px;
   width: auto;
   filter: drop-shadow(0 0 10px var(--garnet-glow))
}

.logo span {
   background: linear-gradient(135deg, var(--text-primary), var(--garnet-main));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent
}

.nav-links {
   display: flex;
   gap: 2.5rem;
   align-items: center
}

.nav-links a {
   text-decoration: none;
   color: var(--text-secondary);
   font-size: 0.85rem;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   transition: var(--transition-med);
   position: relative;
   padding: 0.5rem 0
}

.nav-links a:hover,
.nav-links a.active {
   color: var(--text-primary)
}

.nav-links a::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   width: 0;
   height: 1.5px;
   background: var(--garnet-main);
   box-shadow: 0 0 10px var(--garnet-main);
   transition: var(--transition-med);
   transform: translateX(-50%)
}

.nav-links a:hover::after,
.nav-links a.active::after {
   width: 100%
}

/* --- Tools Dropdown --- */
.nav-dropdown {
   position: relative
}

.nav-dropdown>a {
   cursor: pointer
}

.nav-dropdown>a::after {
   display: none !important
}

.nav-dropdown-menu {
   position: absolute;
   top: 100%;
   left: 50%;
   transform: translateX(-50%) translateY(8px);
   min-width: 200px;
   background: rgba(12, 12, 16, 0.95);
   border: 1px solid var(--glass-border);
   border-top: 2px solid var(--garnet-main);
   backdrop-filter: blur(20px);
   padding: 0.5rem 0;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
   z-index: 1000;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(220, 20, 60, 0.08)
}

.nav-dropdown:hover .nav-dropdown-menu {
   opacity: 1;
   visibility: visible;
   transform: translateX(-50%) translateY(0)
}

.nav-dropdown-menu a {
   display: block;
   padding: 0.7rem 1.3rem !important;
   color: var(--text-secondary) !important;
   font-size: 0.8rem !important;
   text-transform: uppercase !important;
   letter-spacing: 0.08em !important;
   transition: all 0.2s ease !important;
   white-space: nowrap;
   border-left: 2px solid transparent
}

.nav-dropdown-menu a:hover {
   color: var(--text-primary) !important;
   background: rgba(220, 20, 60, 0.08);
   border-left-color: var(--garnet-main)
}

.nav-dropdown-menu a::after {
   display: none !important
}

/* Tools Dropdown Category Labels */
.nav-dropdown-menu .dropdown-label {
   display: block;
   font-size: 0.6rem;
   font-weight: 700;
   letter-spacing: 0.14em;
   text-transform: uppercase;
   color: var(--garnet-main);
   padding: 0.6rem 1.3rem 0.15rem;
   border-top: 1px solid rgba(196, 30, 58, 0.15);
   margin-top: 0.2rem;
   pointer-events: none;
   user-select: none
}

.nav-dropdown-menu .dropdown-label:first-child {
   border-top: none;
   margin-top: 0;
   padding-top: 0.4rem
}

/* Mobile nav Tools section */
.mobile-nav-tools-label {
   font-size: 0.65rem;
   text-transform: uppercase;
   letter-spacing: 0.15em;
   color: var(--garnet-main);
   padding: 1rem 0 0.3rem;
   display: block;
   border-top: 1px solid var(--glass-border);
   margin-top: 0.5rem
}

.btn-primary {
   padding: 0.7rem 1.6rem;
   background: var(--garnet-main);
   color: white;
   text-decoration: none;
   font-weight: 600;
   font-size: 0.85rem;
   border-radius: 4px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   transition: var(--transition-med);
   position: relative;
   overflow: hidden;
   display: inline-block
}

.btn-primary::before {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   width: 0%;
   height: 100%;
   background: rgba(255, 255, 255, 0.2);
   transform: translate(-50%, -50%) skewX(45deg);
   transition: 0.5s;
   pointer-events: none
}

.btn-primary:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 20px rgba(183, 18, 52, 0.3)
}

.btn-primary:hover::before {
   width: 150%
}

.btn-secondary {
   padding: 0.7rem 1.6rem;
   background: transparent;
   color: var(--text-primary);
   text-decoration: none;
   font-weight: 600;
   font-size: 0.85rem;
   border-radius: 4px;
   border: 1px solid var(--glass-border);
   transition: var(--transition-med);
   backdrop-filter: blur(8px)
}

.btn-secondary:hover {
   background: rgba(255, 255, 255, 0.05);
   border-color: var(--text-secondary)
}

.mobile-toggle {
   display: none;
   background: none;
   border: none;
   cursor: pointer;
   padding: 0.5rem
}

.mobile-toggle span {
   display: block;
   width: 25px;
   height: 2px;
   background: var(--text-primary);
   margin: 5px 0;
   transition: var(--transition-med)
}

.glass-card {
   background: var(--glass-bg);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 8px;
   padding: 1.8rem;
   transition: var(--transition-med);
   position: relative;
   overflow: hidden
}

.glass-card:hover {
   border-color: rgba(255, 255, 255, 0.2);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), inset 0 0 20px var(--glass-glow);
   transform: translateY(-5px)
}

.testimonials {
   position: relative;
   background: linear-gradient(rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.85)), url('assets/images/garnet-data-stream.png') no-repeat center center;
   background-size: cover;
   background-attachment: fixed;
   padding: 8rem 0
}

.testimonials-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 2rem;
   margin-top: 3rem
}

.testimonial-card {
   height: 100%;
   display: flex;
   flex-direction: column;
   padding: 2rem;
   border-radius: 8px
}

.testimonial-stars {
   display: flex;
   gap: 4px;
   color: #ff5f33;
   margin-bottom: 1.5rem;
   font-size: 0.8rem
}

.testimonial-quote {
   font-style: italic;
   color: var(--text-secondary);
   margin-bottom: 2rem;
   font-size: 1rem;
   line-height: 1.7;
   flex-grow: 1
}

.testimonial-author h4 {
   color: var(--text-primary);
   margin-bottom: 0.2rem;
   font-size: 0.95rem
}

.testimonial-author p {
   color: var(--text-muted);
   font-size: 0.8rem;
   letter-spacing: 0.02em
}

.metrics-strip {
   display: flex;
   justify-content: center;
   align-items: center;
   flex-wrap: wrap;
   gap: 2.5rem;
   margin-top: 5rem;
   padding-top: 4rem;
   border-top: 1px solid var(--glass-border)
}

.metric-item {
   text-align: center
}

.metric-value {
   display: block;
   font-size: 3.5rem;
   font-weight: 800;
   color: var(--garnet-main);
   font-family: var(--font-heading);
   line-height: 1;
   margin-bottom: 0.8rem
}

.metric-label {
   color: var(--text-secondary);
   font-size: 0.85rem;
   font-weight: 500;
   text-transform: uppercase;
   letter-spacing: 0.1em
}

.tile-bg {
   position: relative;
   overflow: hidden;
   background: var(--bg-obsidian-soft) !important
}

.tile-bg::before {
   content: '';
   position: absolute;
   inset: 0;
   background-image: var(--tile-img);
   background-size: cover;
   background-position: center;
   opacity: 0.15;
   filter: saturate(0.5) brightness(0.8);
   transition: var(--transition-med);
   z-index: 0
}

.tile-bg::after {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(180deg, rgba(5, 5, 5, 0.2) 0%, rgba(5, 5, 5, 0.7) 40%, #050505 100%);
   z-index: 1
}

.tile-bg>* {
   position: relative;
   z-index: 2
}

.tile-bg:hover::before {
   opacity: 0.3;
   transform: scale(1.1);
   filter: saturate(1) brightness(1)
}

.card-icon {
   width: 60px;
   height: 60px;
   margin-bottom: 1.5rem;
   object-fit: contain;
   display: block;
   filter: drop-shadow(0 0 8px var(--garnet-glow))
}

.case-study-img,
.showcase-img {
   width: 100%;
   height: 220px;
   object-fit: cover;
   border-radius: 8px;
   margin-bottom: 1.5rem;
   border: 1px solid var(--garnet-rim);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5)
}

.showcase-img {
   height: 300px
}

.bg-nebula {
   background: linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.8)), url('assets/images/header-nebula.png') no-repeat center center;
   background-size: cover
}

.bg-fluid {
   background: linear-gradient(rgba(10, 10, 12, 0.8), rgba(10, 10, 12, 0.8)), url('assets/images/header-fluid.png') no-repeat center center;
   background-size: cover
}

.reveal {
   opacity: 0;
   transform: translateY(30px);
   transition: var(--transition-slow)
}

.reveal.active {
   opacity: 1;
   transform: translateY(0)
}

section {
   padding: 6rem 0;
   position: relative;
   z-index: 1
}

.container {
   max-width: var(--container-max);
   margin: 0 auto;
   padding: 0 2rem
}

.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   padding-top: 80px;
   overflow: hidden;
   position: relative
}

.hero-content {
   max-width: 700px;
   z-index: 2
}

.hero h1 {
   font-size: 4.5rem;
   line-height: 1;
   margin-bottom: 1.5rem;
   background: linear-gradient(135deg, #ffffff 60%, var(--garnet-main));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent
}

.hero p {
   font-size: 1.25rem;
   color: var(--text-secondary);
   margin-bottom: 2.5rem;
   max-width: 600px;
   text-align: center;
   margin-left: auto;
   margin-right: auto
}

.hero-btns {
   display: flex;
   gap: 1.5rem;
   justify-content: center
}

.hero-visual {
   position: absolute;
   right: -2%;
   top: 55%;
   transform: translateY(-50%);
   width: 350px;
   height: 350px;
   z-index: 0;
   pointer-events: none;
   opacity: 0.6
}

.garnet-orb {
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 30% 30%, var(--garnet-main), var(--garnet-deep));
   border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
   filter: blur(2px);
   box-shadow: 0 0 50px var(--garnet-glow), inset -20px -20px 50px rgba(0, 0, 0, 0.5);
   animation: orbMorph 15s ease-in-out infinite alternate
}

@keyframes orbMorph {
   0% {
      border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%
   }

   50% {
      border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%
   }

   100% {
      border-radius: 40% 60% 40% 60% / 40% 40% 60% 60%
   }
}

.section-header {
   text-align: center;
   margin-bottom: 4rem
}

.section-header h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem
}

.section-header p {
   color: var(--text-secondary);
   max-width: 600px;
   margin: 0 auto
}

.card-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
   gap: 2rem
}

.what-we-build {
   position: relative
}

.what-we-build .card-grid {
   grid-template-columns: repeat(4, 1fr)
}

.expertise-preview,
.engagement-tiers,
.why-garnet,
.testimonials,
.cta-banner {
   position: relative;
   background: linear-gradient(rgba(5, 5, 5, 0.95), rgba(5, 5, 5, 0.85)), url('assets/images/garnet-data-stream.png') no-repeat center center !important;
   background-size: cover !important;
   background-attachment: fixed !important;
   padding: 6rem 0;
   border-top: 1px solid rgba(162, 23, 62, 0.1)
}

.engagement-tiers {
   padding-bottom: 2rem !important;
   border-bottom: none !important
}

.why-garnet {
   padding-top: 2rem !important;
   border-top: none !important
}

.metrics-visual {
   text-align: center;
   margin-bottom: -2rem;
   margin-top: 6rem;
   position: relative;
   z-index: 1;
   height: 300px;
   display: flex;
   justify-content: center;
   align-items: center;
   overflow: hidden
}

.metrics-story-container {
   position: relative;
   width: 600px;
   max-width: 100%;
   height: 100%
}

.story-slide {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 100%;
   height: auto;
   max-height: 100%;
   opacity: 0;
   border-radius: 12px;
   box-shadow: 0 0 20px rgba(162, 23, 62, 0.4);
   border: 1px solid rgba(162, 23, 62, 0.3)
}

.slide-1 {
   animation: storyCycle 16s infinite;
   animation-delay: 0s
}

.slide-2 {
   animation: storyCycle 16s infinite;
   animation-delay: 2s
}

.slide-3 {
   animation: storyCycle 16s infinite;
   animation-delay: 4s
}

.slide-4 {
   animation: storyCycle 16s infinite;
   animation-delay: 6s
}

.slide-5 {
   animation: storyCycle 16s infinite;
   animation-delay: 8s
}

.slide-6 {
   animation: storyCycle 16s infinite;
   animation-delay: 10s
}

.slide-7 {
   animation: storyCycle 16s infinite;
   animation-delay: 12s
}

.slide-8 {
   animation: storyCycle 16s infinite;
   animation-delay: 14s
}

@keyframes storyCycle {
   0% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
      z-index: 2
   }

   5% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
      z-index: 2
   }

   12.5% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.02);
      z-index: 1
   }

   15% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.03);
      z-index: 1
   }

   15.1% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(1.03);
      z-index: 0
   }

   100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
      z-index: 0
   }
}

@media (max-width:600px) {
   .what-we-build .card-grid {
      grid-template-columns: 1fr
   }
}

footer {
   background: var(--bg-obsidian-soft);
   padding: 5rem 0 2rem;
   border-top: 1px solid var(--garnet-rim);
   position: relative
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr repeat(3, 1fr);
   gap: 2.5rem;
   margin-bottom: 4rem
}

.footer-col h4 {
   color: var(--text-primary);
   margin-bottom: 1.5rem;
   font-size: 1.1rem
}

.footer-col ul {
   list-style: none
}

.footer-col ul li {
   margin-bottom: 0.8rem
}

.footer-col ul li a {
   color: var(--text-muted);
   text-decoration: none;
   transition: var(--transition-med);
   font-size: 0.9rem
}

.footer-col ul li a:hover {
   color: var(--garnet-main);
   padding-left: 5px
}

.footer-bottom {
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   padding-top: 2rem;
   text-align: center;
   color: var(--text-muted);
   font-size: 0.85rem
}

.mobile-nav {
   position: fixed;
   top: 0;
   right: 0;
   width: 80%;
   max-width: 400px;
   height: 100vh;
   background: rgba(10, 10, 10, 0.98);
   backdrop-filter: blur(20px);
   z-index: 1100;
   display: flex;
   flex-direction: column;
   padding: 5rem 2rem 2rem;
   transform: translateX(100%);
   transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
   border-left: 1px solid var(--garnet-rim);
   overflow-y: auto;
   -webkit-overflow-scrolling: touch
}

.mobile-nav.active {
   transform: translateX(0)
}

.mobile-nav a {
   font-size: 1.15rem;
   margin-bottom: 1.1rem;
   text-decoration: none;
   color: var(--text-primary);
   font-family: var(--font-heading)
}

.mobile-nav a.active {
   color: var(--garnet-main)
}

.toolbelt {
   background: rgba(255, 255, 255, 0.02);
   border-top: 1px solid var(--glass-border);
   border-bottom: 1px solid var(--glass-border);
   padding: 3rem 0;
   margin-top: 4rem
}

.tool-grid {
   display: flex;
   justify-content: center;
   gap: 2.5rem;
   flex-wrap: wrap;
   opacity: 0.6
}

.tool-item {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.8rem;
   font-weight: 700;
   color: var(--text-muted)
}

.tool-icon {
   width: 40px;
   height: 40px;
   background: var(--garnet-rim);
   border: 1px solid var(--garnet-main);
   border-radius: 8px;
   display: flex;
   align-items: center;
   justify-content: center;
   color: var(--garnet-main);
   font-family: monospace
}

.deliverables-list {
   list-style: none;
   margin-top: 1.5rem
}

.deliverables-list li {
   font-size: 0.85rem;
   color: var(--text-secondary);
   margin-bottom: 0.5rem;
   padding-left: 1.5rem;
   position: relative
}

.deliverables-list li::before {
   content: '→';
   position: absolute;
   left: 0;
   color: var(--garnet-main)
}

.ba-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 0;
   border-radius: 12px;
   overflow: hidden;
   border: 1px solid var(--glass-border)
}

.ba-card {
   padding: 3rem;
   position: relative
}

.ba-card.before {
   background: rgba(255, 255, 255, 0.02);
   border-right: 1px solid var(--glass-border)
}

.ba-card.after {
   background: var(--glass-bg)
}

.ba-tag {
   position: absolute;
   top: 1.5rem;
   left: 1.5rem;
   font-size: 0.7rem;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   font-weight: 800;
   padding: 0.3rem 0.8rem;
   border-radius: 4px
}

.before .ba-tag {
   background: rgba(255, 255, 255, 0.1);
   color: var(--text-muted)
}

.after .ba-tag {
   background: var(--garnet-main);
   color: white
}

.tier-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin-top: 4rem
}

.tier-card {
   text-align: center
}

.tier-num {
   font-size: 3rem;
   font-family: var(--font-heading);
   font-weight: 900;
   color: var(--garnet-main);
   opacity: 0.3;
   margin-bottom: -1.5rem
}

.sub-nav {
   position: sticky;
   top: 80px;
   background: var(--bg-obsidian);
   border-bottom: 1px solid var(--glass-border);
   padding: 1rem 0;
   z-index: 900;
   margin-bottom: 2rem
}

.sub-nav .container {
   display: flex;
   gap: 2rem;
   overflow-x: auto
}

.sub-nav a {
   color: var(--text-muted);
   text-decoration: none;
   font-size: 0.8rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   white-space: nowrap;
   transition: var(--transition-med)
}

.sub-nav a:hover {
   color: var(--garnet-main)
}

.feature-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2.5rem;
   align-items: center;
   margin-bottom: 8rem
}

.feature-row:nth-child(even) {
   direction: rtl
}

.feature-row:nth-child(even) .feature-text {
   direction: ltr
}

.stat-box {
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid var(--glass-border);
   padding: 1.5rem;
   border-radius: 8px;
   text-align: center
}

.stat-val {
   display: block;
   font-size: 2rem;
   font-weight: 800;
   color: var(--garnet-main);
   font-family: var(--font-heading)
}

.stat-label {
   font-size: 0.75rem;
   text-transform: uppercase;
   color: var(--text-muted)
}

.code-panel {
   background: #000;
   border: 1px solid var(--garnet-rim);
   padding: 2rem;
   border-radius: 8px;
   font-family: 'Courier New', Courier, monospace;
   font-size: 0.9rem;
   line-height: 1.5;
   position: relative;
   overflow-x: auto
}

.code-panel::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 4px;
   background: linear-gradient(90deg, var(--garnet-main), transparent)
}

.code-keyword {
   color: #f92672
}

.code-class {
   color: #a6e22e
}

.code-string {
   color: #e6db74
}

.code-comment {
   color: #75715e
}

.cta-banner {
   padding: 8rem 0;
   position: relative;
   overflow: hidden;
   background: transparent
}

.cta-banner .container {
   background: linear-gradient(145deg, #0a0a0a, #000000);
   border: 1px solid var(--garnet-rim);
   border-radius: 24px;
   padding: 5rem 3rem;
   position: relative;
   overflow: hidden;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px rgba(162, 23, 62, 0.1);
   max-width: 1000px;
   margin: 0 auto;
   text-align: center
}

.cta-banner .container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 50% -20%, rgba(255, 255, 255, 0.05), transparent 70%);
   pointer-events: none;
   z-index: 0
}

.cta-banner .container::after {
   content: '';
   position: absolute;
   bottom: -50px;
   left: 50%;
   transform: translateX(-50%);
   width: 60%;
   height: 100px;
   background: var(--garnet-main);
   filter: blur(80px);
   opacity: 0.2;
   z-index: 0;
   pointer-events: none
}

.cta-banner .section-header {
   position: relative;
   z-index: 2
}

.cta-banner .section-header h2 {
   font-size: 3.5rem;
   margin-bottom: 1.5rem;
   background: linear-gradient(135deg, #ffffff 60%, var(--garnet-main));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent
}

.cta-banner h2 {
   font-size: 3.5rem;
   margin-bottom: 1.5rem;
   background: linear-gradient(135deg, #ffffff 60%, var(--garnet-main));
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent
}

@media (max-width:1024px) {
   .hero h1 {
      font-size: 3.5rem
   }
}

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

   .ba-card.before {
      border-right: none;
      border-bottom: 1px solid var(--glass-border)
   }

   header.main-nav {
      padding: 1rem 0
   }

   .mobile-toggle {
      display: block
   }

   .nav-links {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100vh;
      background: rgba(10, 10, 10, 0.98);
      backdrop-filter: blur(20px);
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 1000;
      gap: 2rem
   }

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

   .nav-links a {
      font-size: 1.5rem;
      color: #ffffff
   }

   .mobile-toggle {
      display: block;
      position: relative;
      z-index: 2000
   }

   .mobile-toggle.active span:nth-child(1) {
      transform: rotate(45deg) translate(5px, 5px)
   }

   .mobile-toggle.active span:nth-child(2) {
      transform: rotate(-45deg) translate(5px, -5px)
   }

   .nav-btn {
      display: none
   }

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

   .hero {
      text-align: center;
      justify-content: center
   }

   .hero-content {
      max-width: 100%
   }

   .hero-btns {
      justify-content: center
   }

   .hero-visual {
      display: none
   }

   section {
      padding: 5rem 0
   }

   .stats-row {
      grid-template-columns: 1fr 1fr
   }
}

@media (max-width:480px) {
   section {
      padding: 3rem 0
   }

   .hero {
      padding: 5rem 1rem 3rem
   }

   .hero h1,
   .hero-heading {
      font-size: 1.8rem;
      line-height: 1.2
   }

   .hero p,
   .hero-subtitle {
      font-size: 0.95rem
   }

   .container {
      padding: 0 1rem
   }

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

   h2,
   .section-heading {
      font-size: 1.6rem
   }

   h3 {
      font-size: 1.2rem
   }

   .stats-row {
      grid-template-columns: 1fr
   }
}

.tech-stack-section {
   padding: 4rem 0;
   text-align: center
}

.tech-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
   gap: 1.5rem;
   margin-top: 3rem
}

.tech-item {
   padding: 2rem 1rem;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
   background: rgba(255, 255, 255, 0.03)
}

.tech-item:hover {
   transform: translateY(-5px);
   border-color: var(--garnet-main);
   box-shadow: 0 0 15px rgba(220, 20, 60, 0.2)
}

.tech-label {
   font-family: 'Outfit', sans-serif;
   font-weight: 700;
   font-size: 1.1rem;
   color: var(--text-primary)
}

.tech-category {
   font-size: 0.8rem;
   color: var(--text-secondary);
   margin-top: 0.25rem;
   text-transform: uppercase;
   letter-spacing: 0.05em
}

.showcase-content .glass-card::before {
   content: '';
   position: absolute;
   top: -2px;
   left: -2px;
   right: -2px;
   bottom: -2px;
   background: linear-gradient(45deg, var(--garnet-main), #ff6b9d, var(--garnet-main), #c71585);
   background-size: 300% 300%;
   border-radius: inherit;
   z-index: -1;
   opacity: 0;
   transition: opacity 0.3s ease;
   animation: gradientShift 4s ease infinite
}

.showcase-content .glass-card:hover::before {
   opacity: 0.6
}

@keyframes gradientShift {

   0%,
   100% {
      background-position: 0% 50%
   }

   50% {
      background-position: 100% 50%
   }
}

.code-panel {
   position: relative;
   overflow: hidden
}

.code-panel::after {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.1), transparent);
   transition: left 0.5s ease
}

.glass-card:hover .code-panel::after {
   left: 100%
}

.stat-box {
   position: relative;
   overflow: hidden
}

.stat-val {
   display: block;
   font-size: 2.5rem;
   font-weight: 900;
   font-family: 'Outfit', sans-serif;
   color: var(--garnet-main);
   text-shadow: 0 0 20px rgba(220, 20, 60, 0.3);
   transition: transform 0.3s ease
}

.stat-box:hover .stat-val {
   transform: scale(1.1)
}

.stat-label {
   display: block;
   font-size: 0.9rem;
   color: var(--text-secondary);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-top: 0.5rem
}

.tech-item {
   opacity: 0;
   transform: translateY(20px);
   animation: techFadeIn 0.6s ease forwards
}

.tech-item:nth-child(1) {
   animation-delay: 0.1s
}

.tech-item:nth-child(2) {
   animation-delay: 0.2s
}

.tech-item:nth-child(3) {
   animation-delay: 0.3s
}

.tech-item:nth-child(4) {
   animation-delay: 0.4s
}

.tech-item:nth-child(5) {
   animation-delay: 0.5s
}

.tech-item:nth-child(6) {
   animation-delay: 0.6s
}

.tech-item:nth-child(7) {
   animation-delay: 0.7s
}

.tech-item:nth-child(8) {
   animation-delay: 0.8s
}

@keyframes techFadeIn {
   to {
      opacity: 1;
      transform: translateY(0)
   }
}

.showcase-divider {
   position: relative;
   height: 1px;
   background: linear-gradient(90deg, transparent, var(--garnet-rim), transparent);
   margin: 4rem 0;
   overflow: hidden
}

.showcase-divider::after {
   content: '';
   position: absolute;
   top: 0;
   left: -100%;
   width: 30%;
   height: 100%;
   background: linear-gradient(90deg, transparent, var(--garnet-main), transparent);
   animation: dividerScan 3s ease-in-out infinite
}

@keyframes dividerScan {

   0%,
   100% {
      left: -100%
   }

   50% {
      left: 100%
   }
}

.glass-card img {
   transition: transform 0.5s ease, filter 0.5s ease
}

.glass-card:hover img {
   transform: scale(1.05);
   filter: brightness(1.1) saturate(1.2)
}

.section-header h2::before {
   content: attr(data-number);
   display: inline-block;
   width: 50px;
   height: 50px;
   line-height: 50px;
   text-align: center;
   background: linear-gradient(135deg, var(--garnet-main), #c71585);
   border-radius: 50%;
   margin-right: 1rem;
   font-size: 1.2rem;
   font-weight: 900;
   box-shadow: 0 0 20px rgba(220, 20, 60, 0.4)
}

.deliverables-list {
   list-style: none;
   padding: 0;
   margin-top: 2rem
}

.deliverables-list li {
   position: relative;
   padding-left: 2rem;
   margin-bottom: 1rem;
   color: var(--text-primary);
   transition: transform 0.2s ease, color 0.2s ease
}

.deliverables-list li::before {
   content: '▸';
   position: absolute;
   left: 0;
   color: var(--garnet-main);
   font-size: 1.2rem;
   transition: transform 0.2s ease
}

.deliverables-list li:hover {
   transform: translateX(5px);
   color: var(--garnet-main)
}

.deliverables-list li:hover::before {
   transform: translateX(-3px)
}

.showcase-particles {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   pointer-events: none;
   z-index: 0;
   opacity: 0.1
}

.particle {
   position: absolute;
   width: 2px;
   height: 2px;
   background: var(--garnet-main);
   border-radius: 50%;
   animation: float 20s infinite
}

@keyframes float {

   0%,
   100% {
      transform: translateY(0) translateX(0);
      opacity: 0
   }

   10% {
      opacity: 1
   }

   90% {
      opacity: 1
   }

   100% {
      transform: translateY(-100vh) translateX(50px);
      opacity: 0
   }
}

.scroll-progress {
   position: fixed;
   top: 0;
   left: 0;
   width: 0%;
   height: 3px;
   background: linear-gradient(90deg, var(--garnet-main), #ff6b9d);
   z-index: 9999;
   transition: width 0.1s ease;
   box-shadow: 0 0 10px rgba(220, 20, 60, 0.5)
}

.stat-box {
   position: relative;
   padding: 1.5rem;
   text-align: center;
   background: rgba(255, 255, 255, 0.02);
   border-radius: 8px;
   border: 1px solid rgba(220, 20, 60, 0.2);
   transition: all 0.3s ease
}

.stat-box::before {
   content: '';
   position: absolute;
   inset: -1px;
   border-radius: 8px;
   padding: 1px;
   background: linear-gradient(135deg, var(--garnet-main), transparent);
   -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
   -webkit-mask-composite: xor;
   mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
   mask-composite: exclude;
   opacity: 0;
   transition: opacity 0.3s ease
}

.stat-box:hover::before {
   opacity: 1
}

.code-panel {
   position: relative;
   counter-reset: line
}

.code-panel br::before {
   counter-increment: line;
   content: counter(line);
   display: inline-block;
   width: 2em;
   margin-right: 1em;
   color: var(--garnet-rim);
   text-align: right;
   user-select: none
}

@media (max-width:768px) {
   .tech-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem
   }

   .section-header h2::before {
      width: 40px;
      height: 40px;
      line-height: 40px;
      font-size: 1rem
   }
}

.section-header h2::before {
   content: none !important;
   display: none !important
}

.tech-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   grid-template-rows: repeat(2, 1fr);
   gap: 1.5rem;
   margin-top: 3rem;
   max-width: 1200px;
   margin-left: auto;
   margin-right: auto
}

.tech-item {
   aspect-ratio: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   padding: 2rem 1rem
}

.showcase-section-left .glass-card>div {
   grid-template-columns: 1fr 1.5fr !important
}

.showcase-section-right .glass-card>div {
   grid-template-columns: 1.5fr 1fr !important
}

.pbi-showcase .glass-card>div {
   grid-template-columns: 1fr 1.5fr !important
}

.xplusplus-showcase .glass-card>div {
   grid-template-columns: 1.5fr 1fr !important
}

.sql-showcase .glass-card>div {
   grid-template-columns: 1fr 1.5fr !important
}

.web-showcase .glass-card>div {
   grid-template-columns: 1.5fr 1fr !important
}

@media (max-width:768px) {
   .tech-grid {
      grid-template-columns: repeat(2, 1fr);
      grid-template-rows: repeat(4, 1fr)
   }

   .pbi-showcase .glass-card>div,
   .xplusplus-showcase .glass-card>div,
   .sql-showcase .glass-card>div,
   .web-showcase .glass-card>div {
      grid-template-columns: 1fr !important
   }
}

.contact-hero {
   position: relative;
   padding: 10rem 0 8rem;
   overflow: hidden
}

.contact-hero-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.15), transparent 70%);
   animation: pulseGlow 8s ease-in-out infinite
}

@keyframes pulseGlow {

   0%,
   100% {
      transform: scale(1);
      opacity: 0.3
   }

   50% {
      transform: scale(1.2);
      opacity: 0.6
   }
}

.hero-label {
   display: inline-block;
   color: var(--garnet-main);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.2em;
   font-size: 0.9rem;
   margin-bottom: 1rem
}

.contact-main-section {
   padding: 4rem 0
}

.contact-grid {
   display: grid;
   grid-template-columns: 1.5fr 1fr;
   gap: 2.5rem;
   align-items: start
}

.contact-form-wrapper {
   position: relative
}

.contact-form-card {
   padding: 3rem;
   position: relative;
   overflow: hidden
}

.contact-form-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   height: 4px;
   background: linear-gradient(90deg, var(--garnet-main), #ff6b9d, var(--garnet-main));
   background-size: 200% 100%;
   animation: shimmerTop 3s linear infinite
}

@keyframes shimmerTop {
   0% {
      background-position: -200% 0
   }

   100% {
      background-position: 200% 0
   }
}

.form-header {
   margin-bottom: 2.5rem
}

.form-header h2 {
   font-size: 2rem;
   margin-bottom: 0.5rem;
   color: var(--text-primary)
}

.form-header p {
   color: var(--text-secondary);
   font-size: 0.95rem
}

.contact-form-luxury {
   display: flex;
   flex-direction: column;
   gap: 1.5rem
}

.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem
}

.form-group-luxury {
   position: relative;
   display: flex;
   flex-direction: column
}

.form-group-luxury label {
   font-size: 0.85rem;
   font-weight: 600;
   color: var(--text-secondary);
   margin-bottom: 0.5rem;
   text-transform: uppercase;
   letter-spacing: 0.05em
}

.form-input-luxury,
.form-select-luxury,
.form-textarea-luxury {
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid rgba(220, 20, 60, 0.2);
   border-radius: 8px;
   padding: 1rem 1.25rem;
   color: var(--text-primary);
   font-size: 1rem;
   font-family: 'Inter', sans-serif;
   transition: all 0.3s ease;
   position: relative
}

.form-input-luxury:focus,
.form-select-luxury:focus,
.form-textarea-luxury:focus {
   outline: none;
   border-color: var(--garnet-main);
   background: rgba(255, 255, 255, 0.05);
   box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1)
}

.form-input-luxury::placeholder,
.form-textarea-luxury::placeholder {
   color: var(--text-muted)
}

.form-textarea-luxury {
   resize: vertical;
   min-height: 150px
}

.input-focus-border {
   position: absolute;
   bottom: 0;
   left: 0;
   width: 0;
   height: 2px;
   background: linear-gradient(90deg, var(--garnet-main), #ff6b9d);
   transition: width 0.4s ease
}

.form-input-luxury:focus~.input-focus-border,
.form-select-luxury:focus~.input-focus-border,
.form-textarea-luxury:focus~.input-focus-border {
   width: 100%
}

/* ============================================
   Custom Dropdown (replaces native <select>)
   ============================================ */
.custom-select-wrapper {
   position: relative;
   width: 100%
}

.custom-select-trigger {
   display: flex;
   align-items: center;
   justify-content: space-between;
   width: 100%;
   background: rgba(255, 255, 255, 0.03);
   border: 1px solid rgba(220, 20, 60, 0.2);
   border-radius: 8px;
   padding: 1rem 1.25rem;
   color: var(--text-primary);
   font-size: 1rem;
   font-family: 'Inter', sans-serif;
   cursor: pointer;
   transition: all 0.3s ease;
   text-align: left;
   outline: none
}

.custom-select-trigger:hover {
   border-color: rgba(220, 20, 60, 0.4);
   background: rgba(255, 255, 255, 0.05)
}

.custom-select-trigger:focus,
.custom-select-wrapper.open .custom-select-trigger {
   border-color: var(--garnet-main);
   background: rgba(255, 255, 255, 0.05);
   box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1)
}

.custom-select-value {
   flex: 1;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap
}

.custom-select-value.placeholder {
   color: var(--text-muted)
}

.custom-select-chevron {
   flex-shrink: 0;
   margin-left: 0.75rem;
   color: var(--text-muted);
   transition: transform 0.3s ease
}

.custom-select-wrapper.open .custom-select-chevron {
   transform: rotate(180deg);
   color: var(--garnet-main)
}

.custom-select-options {
   position: absolute;
   top: calc(100% + 6px);
   left: 0;
   right: 0;
   list-style: none;
   margin: 0;
   padding: 0.4rem 0;
   background: rgba(18, 18, 24, 0.95);
   backdrop-filter: blur(20px);
   -webkit-backdrop-filter: blur(20px);
   border: 1px solid rgba(220, 20, 60, 0.25);
   border-radius: 8px;
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(220, 20, 60, 0.08);
   z-index: 100;
   transform: scaleY(0);
   transform-origin: top center;
   opacity: 0;
   transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
   pointer-events: none;
   max-height: 260px;
   overflow-y: auto
}

.custom-select-wrapper.open .custom-select-options {
   transform: scaleY(1);
   opacity: 1;
   pointer-events: auto
}

.custom-select-option {
   padding: 0.7rem 1.25rem;
   font-size: 0.95rem;
   color: var(--text-secondary, rgba(255, 255, 255, 0.7));
   cursor: pointer;
   transition: all 0.15s ease;
   border-left: 2px solid transparent
}

.custom-select-option:hover {
   background: rgba(220, 20, 60, 0.12);
   color: #fff;
   border-left-color: var(--garnet-main)
}

.custom-select-option.selected {
   background: rgba(220, 20, 60, 0.18);
   color: #fff;
   font-weight: 600;
   border-left-color: var(--garnet-main)
}

/* Focus-border sync for custom dropdown */
.custom-select-wrapper.open~.input-focus-border {
   width: 100%
}

.btn-submit-luxury {
   position: relative;
   padding: 1.25rem 3rem;
   background: linear-gradient(135deg, var(--garnet-main), #c71585);
   border: none;
   border-radius: 8px;
   color: white;
   font-size: 1.1rem;
   font-weight: 700;
   font-family: 'Outfit', sans-serif;
   cursor: pointer;
   overflow: hidden;
   transition: all 0.3s ease;
   align-self: flex-start;
   margin-top: 1rem
}

.btn-submit-luxury:hover {
   transform: translateY(-2px);
   box-shadow: 0 10px 30px rgba(220, 20, 60, 0.4)
}

.btn-submit-luxury .btn-text {
   position: relative;
   z-index: 2
}

.btn-submit-luxury .btn-icon {
   position: relative;
   z-index: 2;
   margin-left: 0.5rem;
   display: inline-block;
   transition: transform 0.3s ease
}

.btn-submit-luxury:hover .btn-icon {
   transform: translateX(5px)
}

.btn-shimmer {
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
   transition: left 0.5s ease
}

.btn-submit-luxury:hover .btn-shimmer {
   left: 100%
}

.contact-sidebar {
   display: flex;
   flex-direction: column;
   gap: 1.5rem
}

.contact-info-card {
   padding: 2rem;
   text-align: center;
   transition: all 0.3s ease
}

.contact-info-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(220, 20, 60, 0.2)
}

.contact-icon {
   width: 60px;
   height: 60px;
   margin: 0 auto 1.5rem;
   display: flex;
   align-items: center;
   justify-content: center;
   background: linear-gradient(135deg, rgba(220, 20, 60, 0.2), rgba(199, 21, 133, 0.2));
   border-radius: 50%;
   color: var(--garnet-main)
}

.contact-info-card h3 {
   font-size: 1.2rem;
   margin-bottom: 0.75rem;
   color: var(--text-primary)
}

.contact-link {
   display: inline-block;
   color: var(--garnet-main);
   font-weight: 600;
   font-size: 1rem;
   text-decoration: none;
   transition: all 0.3s ease;
   margin-bottom: 0.5rem
}

.contact-link:hover {
   color: #ff6b9d;
   transform: translateX(3px)
}

.contact-detail {
   font-size: 1.1rem;
   color: var(--text-primary);
   font-weight: 600;
   margin-bottom: 0.5rem
}

.contact-note {
   font-size: 0.85rem;
   color: var(--text-muted);
   margin: 0
}

.security-badge {
   background: rgba(220, 20, 60, 0.05);
   border: 1px solid rgba(220, 20, 60, 0.2);
   border-radius: 12px;
   padding: 1.5rem;
   display: flex;
   gap: 1rem;
   align-items: flex-start
}

.security-icon {
   font-size: 2rem;
   flex-shrink: 0
}

.security-text h4 {
   font-size: 0.9rem;
   color: var(--text-primary);
   margin-bottom: 0.5rem
}

.security-text p {
   font-size: 0.8rem;
   color: var(--text-secondary);
   margin: 0;
   line-height: 1.5
}

.faq-section {
   padding: 6rem 0
}

.faq-accordion {
   max-width: 900px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   gap: 1rem
}

.faq-accordion-item {
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(220, 20, 60, 0.2);
   border-radius: 12px;
   overflow: hidden;
   transition: all 0.3s ease
}

.faq-accordion-item:hover {
   border-color: var(--garnet-main);
   box-shadow: 0 5px 20px rgba(220, 20, 60, 0.1)
}

.faq-accordion-header {
   width: 100%;
   padding: 1.5rem 2rem;
   background: transparent;
   border: none;
   display: flex;
   justify-content: space-between;
   align-items: center;
   cursor: pointer;
   color: var(--text-primary);
   font-size: 1.1rem;
   font-weight: 600;
   font-family: 'Outfit', sans-serif;
   text-align: left;
   transition: all 0.3s ease
}

.faq-accordion-header:hover {
   color: var(--garnet-main)
}

.faq-icon {
   font-size: 1.5rem;
   color: var(--garnet-main);
   transition: transform 0.3s ease;
   flex-shrink: 0;
   margin-left: 1rem
}

.faq-accordion-item.faq-open .faq-icon {
   transform: rotate(45deg)
}

.faq-accordion-content {
   max-height: 0;
   overflow: hidden;
   transition: max-height 0.4s ease, padding 0.4s ease;
   padding: 0 2rem
}

.faq-accordion-item.faq-open .faq-accordion-content {
   max-height: 500px;
   padding: 0 2rem 1.5rem
}

.faq-accordion-content p {
   color: var(--text-secondary);
   line-height: 1.8;
   margin: 0
}

.cta-final-section {
   padding: 4rem 0 8rem
}

.cta-final-card {
   padding: 4rem;
   text-align: center;
   background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(199, 21, 133, 0.05));
   position: relative;
   overflow: hidden
}

.cta-final-card::before {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: radial-gradient(circle, rgba(220, 20, 60, 0.1), transparent 50%);
   animation: rotateBg 20s linear infinite
}

@keyframes rotateBg {
   0% {
      transform: rotate(0deg)
   }

   100% {
      transform: rotate(360deg)
   }
}

.cta-final-content {
   position: relative;
   z-index: 2
}

.cta-final-content h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem
}

.cta-final-content>p {
   font-size: 1.2rem;
   color: var(--text-secondary);
   margin-bottom: 3rem
}

.cta-stats {
   display: flex;
   justify-content: center;
   gap: 2.5rem;
   margin-bottom: 3rem
}

.cta-stat {
   display: flex;
   flex-direction: column;
   align-items: center
}

.cta-stat-value {
   font-size: 2.5rem;
   font-weight: 900;
   font-family: 'Outfit', sans-serif;
   color: var(--garnet-main);
   text-shadow: 0 0 20px rgba(220, 20, 60, 0.3)
}

.cta-stat-label {
   font-size: 0.9rem;
   color: var(--text-secondary);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-top: 0.5rem
}

.btn-large {
   padding: 1.25rem 3rem;
   font-size: 1.1rem
}

@media (max-width:1024px) {
   .contact-grid {
      grid-template-columns: 1fr;
      gap: 3rem
   }

   .contact-sidebar {
      order: -1
   }
}

@media (max-width:768px) {
   .contact-hero {
      padding: 6rem 0 4rem
   }

   .contact-hero h1 {
      font-size: 3rem !important
   }

   .form-row {
      grid-template-columns: 1fr
   }

   .cta-stats {
      flex-direction: column;
      gap: 2rem
   }

   .cta-final-card {
      padding: 3rem 2rem
   }

   .cta-final-content h2 {
      font-size: 2rem
   }
}

@media (max-width:480px) {
   .contact-form-card {
      padding: 2rem 1.5rem
   }

   .btn-submit-luxury {
      width: 100%;
      text-align: center
   }
}

.outcomes-hero {
   position: relative;
   padding: 12rem 0 6rem;
   overflow: hidden
}

.outcomes-hero-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 50% 30%, rgba(220, 20, 60, 0.2), transparent 60%);
   animation: pulseGlow 10s ease-in-out infinite
}

.hero-label {
   display: inline-block;
   color: var(--garnet-main);
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.2em;
   font-size: 0.9rem;
   margin-bottom: 1rem
}

.transformation-journey {
   padding: 6rem 0;
   position: relative
}

.journey-timeline {
   display: grid;
   grid-template-columns: 1fr auto 1fr;
   gap: 3rem;
   align-items: center;
   max-width: 1400px;
   margin: 0 auto
}

.journey-card {
   padding: 3rem;
   position: relative;
   min-height: 600px;
   display: flex;
   flex-direction: column
}

.journey-icon {
   font-size: 4rem;
   margin-bottom: 1.5rem
}

.before-icon {
   filter: grayscale(100%) brightness(0.7)
}

.after-icon {
   animation: sparkle 2s ease-in-out infinite
}

@keyframes sparkle {

   0%,
   100% {
      transform: scale(1);
      filter: brightness(1)
   }

   50% {
      transform: scale(1.1);
      filter: brightness(1.3)
   }
}

.journey-badge {
   display: inline-block;
   padding: 0.5rem 1.5rem;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(220, 20, 60, 0.3);
   border-radius: 20px;
   font-size: 0.85rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-bottom: 1.5rem;
   align-self: flex-start
}

.success-badge {
   background: rgba(220, 20, 60, 0.1);
   border-color: var(--garnet-main);
   color: var(--garnet-main)
}

.journey-card h3 {
   font-size: 2rem;
   margin-bottom: 2rem
}

.journey-problems,
.journey-solutions {
   display: flex;
   flex-direction: column;
   gap: 1.5rem
}

.problem-item,
.solution-item {
   display: flex;
   gap: 1rem;
   align-items: flex-start
}

.problem-icon,
.solution-icon {
   font-size: 1.5rem;
   flex-shrink: 0;
   width: 32px;
   height: 32px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%
}

.problem-icon {
   background: rgba(255, 0, 0, 0.1)
}

.solution-icon {
   background: rgba(220, 20, 60, 0.2);
   color: var(--garnet-main)
}

.problem-item h4,
.solution-item h4 {
   font-size: 1.1rem;
   margin-bottom: 0.25rem;
   color: var(--text-primary)
}

.problem-item p,
.solution-item p {
   font-size: 0.9rem;
   color: var(--text-secondary);
   margin: 0
}

.journey-arrow {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 1rem;
   position: relative
}

.arrow-line {
   width: 2px;
   height: 100px;
   background: linear-gradient(180deg, transparent, var(--garnet-main), transparent)
}

.arrow-head {
   font-size: 3rem;
   color: var(--garnet-main);
   animation: arrowPulse 2s ease-in-out infinite
}

@keyframes arrowPulse {

   0%,
   100% {
      transform: translateX(0);
      opacity: 0.7
   }

   50% {
      transform: translateX(10px);
      opacity: 1
   }
}

.arrow-label {
   font-size: 0.85rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--garnet-main);
   writing-mode: vertical-rl;
   text-orientation: mixed
}

.impact-metrics {
   padding: 6rem 0;
   background: rgba(0, 0, 0, 0.2)
}

.metrics-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 2rem
}

.metric-card {
   padding: 3rem 2rem;
   text-align: center;
   position: relative;
   transition: all 0.3s ease
}

.metric-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 40px rgba(220, 20, 60, 0.3)
}

.metric-icon {
   font-size: 3rem;
   margin-bottom: 1.5rem
}

.metric-value {
   font-size: 4rem;
   font-weight: 900;
   font-family: 'Outfit', sans-serif;
   color: var(--garnet-main);
   line-height: 1;
   display: inline-block
}

.metric-unit {
   font-size: 2rem;
   font-weight: 700;
   color: var(--garnet-main);
   margin-left: 0.25rem
}

.metric-label {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--text-primary);
   margin: 1rem 0 0.5rem
}

.metric-desc {
   font-size: 0.9rem;
   color: var(--text-secondary);
   margin: 0
}

.value-pillars {
   padding: 6rem 0
}

.pillars-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 3rem
}

.pillar-card {
   padding: 3rem;
   position: relative;
   transition: all 0.3s ease
}

.pillar-card:hover {
   transform: translateY(-5px)
}

.pillar-number {
   position: absolute;
   top: 2rem;
   right: 2rem;
   font-size: 6rem;
   font-weight: 900;
   font-family: 'Outfit', sans-serif;
   color: rgba(220, 20, 60, 0.1);
   line-height: 1
}

.pillar-icon-large {
   font-size: 4rem;
   margin-bottom: 1.5rem
}

.pillar-card h3 {
   font-size: 2rem;
   margin-bottom: 1rem;
   color: var(--garnet-main)
}

.pillar-card>p {
   font-size: 1.05rem;
   color: var(--text-secondary);
   line-height: 1.8;
   margin-bottom: 2rem
}

.pillar-benefits {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 0.75rem
}

.pillar-benefits li {
   padding-left: 2rem;
   position: relative;
   color: var(--text-primary);
   font-size: 0.95rem
}

.pillar-benefits li::before {
   content: '→';
   position: absolute;
   left: 0;
   color: var(--garnet-main);
   font-weight: 700
}

.case-studies-luxury {
   padding: 6rem 0;
   background: rgba(0, 0, 0, 0.2)
}

.case-studies-grid {
   display: grid;
   grid-template-columns: repeat(2, 1fr);
   gap: 3rem
}

.case-study-card {
   background: rgba(255, 255, 255, 0.02);
   border: 1px solid rgba(220, 20, 60, 0.2);
   border-radius: 16px;
   overflow: hidden;
   transition: all 0.3s ease
}

.case-study-card:hover {
   transform: translateY(-10px);
   border-color: var(--garnet-main);
   box-shadow: 0 20px 50px rgba(220, 20, 60, 0.3)
}

.case-study-image {
   position: relative;
   height: 300px;
   overflow: hidden
}

.case-study-image img {
   width: 100%;
   height: 100%;
   object-fit: cover;
   transition: transform 0.5s ease
}

.case-study-card:hover .case-study-image img {
   transform: scale(1.1)
}

.case-study-overlay {
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.8) 100%);
   display: flex;
   align-items: flex-end;
   padding: 2rem
}

.case-study-industry {
   padding: 0.5rem 1.5rem;
   background: rgba(220, 20, 60, 0.9);
   backdrop-filter: blur(10px);
   border-radius: 20px;
   font-size: 0.85rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: white
}

.case-study-content {
   padding: 2.5rem
}

.case-study-content h3 {
   font-size: 1.8rem;
   margin-bottom: 1rem;
   color: var(--text-primary)
}

.case-study-desc {
   font-size: 1.05rem;
   color: var(--text-secondary);
   line-height: 1.7;
   margin-bottom: 2rem
}

.case-study-stat {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   padding: 1.5rem;
   background: rgba(220, 20, 60, 0.05);
   border-left: 3px solid var(--garnet-main);
   border-radius: 8px;
   margin-bottom: 2rem
}

.stat-value {
   font-size: 2.5rem;
   font-weight: 900;
   font-family: 'Outfit', sans-serif;
   color: var(--garnet-main)
}

.stat-label {
   font-size: 0.9rem;
   color: var(--text-secondary)
}

.case-study-tags {
   display: flex;
   gap: 0.75rem;
   flex-wrap: wrap
}

.tag {
   padding: 0.5rem 1rem;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(220, 20, 60, 0.3);
   border-radius: 20px;
   font-size: 0.8rem;
   font-weight: 600;
   color: var(--text-primary)
}

.engagement-models {
   padding: 6rem 0
}

.engagement-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem
}

.engagement-card {
   padding: 3rem 2.5rem;
   position: relative;
   transition: all 0.3s ease;
   display: flex;
   flex-direction: column
}

.engagement-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 15px 40px rgba(220, 20, 60, 0.2)
}

.featured-engagement {
   background: linear-gradient(135deg, rgba(220, 20, 60, 0.1), rgba(199, 21, 133, 0.05));
   border-color: var(--garnet-main);
   transform: scale(1.05)
}

.featured-engagement:hover {
   transform: scale(1.08) translateY(-5px)
}

.featured-badge {
   position: absolute;
   top: -12px;
   left: 50%;
   transform: translateX(-50%);
   padding: 0.5rem 1.5rem;
   background: linear-gradient(135deg, var(--garnet-main), #c71585);
   border-radius: 20px;
   font-size: 0.75rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: white;
   box-shadow: 0 5px 15px rgba(220, 20, 60, 0.4)
}

.engagement-header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-bottom: 2rem
}

.engagement-number {
   font-size: 4rem;
   font-weight: 900;
   font-family: 'Outfit', sans-serif;
   color: rgba(220, 20, 60, 0.3);
   line-height: 1
}

.engagement-icon {
   font-size: 3rem
}

.engagement-card h3 {
   font-size: 2rem;
   margin-bottom: 1rem;
   color: var(--garnet-main)
}

.engagement-desc {
   font-size: 1.05rem;
   color: var(--text-secondary);
   line-height: 1.7;
   margin-bottom: 2rem
}

.engagement-details {
   flex: 1;
   margin-bottom: 2rem
}

.engagement-details h4 {
   font-size: 0.9rem;
   font-weight: 700;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   color: var(--garnet-main);
   margin: 1.5rem 0 0.75rem
}

.engagement-details h4:first-child {
   margin-top: 0
}

.engagement-details ul {
   list-style: none;
   padding: 0;
   margin: 0;
   display: flex;
   flex-direction: column;
   gap: 0.5rem
}

.engagement-details li {
   padding-left: 1.5rem;
   position: relative;
   color: var(--text-primary);
   font-size: 0.9rem
}

.engagement-details li::before {
   content: '•';
   position: absolute;
   left: 0;
   color: var(--garnet-main)
}

.engagement-duration {
   padding-top: 1.5rem;
   border-top: 1px solid rgba(220, 20, 60, 0.2);
   display: flex;
   justify-content: space-between;
   align-items: center
}

.duration-label {
   font-size: 0.85rem;
   color: var(--text-secondary)
}

.duration-value {
   font-size: 1.1rem;
   font-weight: 700;
   color: var(--garnet-main)
}

.outcomes-cta {
   padding: 6rem 0;
   position: relative;
   overflow: hidden
}

.outcomes-cta-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 50% 50%, rgba(220, 20, 60, 0.15), transparent 70%);
   animation: pulseGlow 8s ease-in-out infinite
}

.cta-content {
   position: relative;
   z-index: 2;
   text-align: center
}

.btn-large {
   padding: 1.25rem 3rem;
   font-size: 1.1rem
}

@media (max-width:1024px) {
   .journey-timeline {
      grid-template-columns: 1fr;
      gap: 2rem
   }

   .journey-arrow {
      flex-direction: row;
      transform: rotate(90deg)
   }

   .arrow-label {
      writing-mode: horizontal-tb
   }

   .metrics-grid {
      grid-template-columns: repeat(2, 1fr)
   }

   .pillars-grid {
      grid-template-columns: 1fr
   }

   .engagement-grid {
      grid-template-columns: 1fr
   }

   .featured-engagement {
      transform: scale(1)
   }

   .featured-engagement:hover {
      transform: translateY(-5px)
   }
}

@media (max-width:768px) {
   .outcomes-hero h1 {
      font-size: 3rem !important
   }

   .journey-card {
      min-height: auto;
      padding: 2rem
   }

   .metrics-grid {
      grid-template-columns: 1fr
   }

   .case-studies-grid {
      grid-template-columns: 1fr
   }

   .metric-value {
      font-size: 3rem
   }

   .pillar-number {
      font-size: 4rem;
      top: 1rem;
      right: 1rem
   }
}

@media (max-width:480px) {
   .journey-icon {
      font-size: 3rem
   }

   .engagement-card {
      padding: 2rem 1.5rem
   }

   .engagement-number {
      font-size: 3rem
   }

   .engagement-icon {
      font-size: 2rem
   }
}

.outcomes-hero::before {
   content: '';
   position: absolute;
   top: -20%;
   left: 50%;
   transform: translateX(-50%);
   width: 150%;
   height: 150%;
   background: radial-gradient(circle at center, rgba(220, 20, 60, 0.3) 0%, rgba(199, 21, 133, 0.2) 20%, rgba(138, 43, 226, 0.1) 40%, transparent 70%);
   animation: heroFlare 15s ease-in-out infinite;
   pointer-events: none;
   z-index: 0
}

@keyframes heroFlare {

   0%,
   100% {
      transform: translateX(-50%) scale(1);
      opacity: 0.6
   }

   50% {
      transform: translateX(-50%) scale(1.2);
      opacity: 0.9
   }
}

.outcomes-hero::after {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: linear-gradient(135deg, transparent 0%, transparent 40%, rgba(220, 20, 60, 0.15) 45%, rgba(220, 20, 60, 0.3) 50%, rgba(220, 20, 60, 0.15) 55%, transparent 60%, transparent 100%);
   animation: diagonalSweep 20s linear infinite;
   pointer-events: none;
   z-index: 0
}

@keyframes diagonalSweep {
   0% {
      transform: translateX(-100%) translateY(-100%)
   }

   100% {
      transform: translateX(100%) translateY(100%)
   }
}

.transformation-journey {
   position: relative
}

.transformation-journey::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: radial-gradient(circle at 20% 30%, rgba(220, 20, 60, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(199, 21, 133, 0.12) 0%, transparent 50%), radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 50%);
   animation: particleFloat 25s ease-in-out infinite;
   pointer-events: none;
   z-index: 0
}

@keyframes particleFloat {

   0%,
   100% {
      background-position: 0% 0%, 100% 100%, 50% 50%
   }

   33% {
      background-position: 30% 20%, 70% 80%, 60% 40%
   }

   66% {
      background-position: 60% 40%, 40% 60%, 30% 70%
   }
}

.impact-metrics::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: linear-gradient(90deg, rgba(220, 20, 60, 0.05) 1px, transparent 1px), linear-gradient(0deg, rgba(220, 20, 60, 0.05) 1px, transparent 1px);
   background-size: 100px 100px;
   animation: gridPulse 8s ease-in-out infinite;
   pointer-events: none;
   z-index: 0
}

@keyframes gridPulse {

   0%,
   100% {
      opacity: 0.3;
      transform: scale(1)
   }

   50% {
      opacity: 0.6;
      transform: scale(1.05)
   }
}

.impact-metrics::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 80%;
   height: 80%;
   background: radial-gradient(ellipse at center, rgba(220, 20, 60, 0.2) 0%, transparent 70%);
   animation: spotlightPulse 10s ease-in-out infinite;
   pointer-events: none;
   z-index: 0
}

@keyframes spotlightPulse {

   0%,
   100% {
      opacity: 0.4;
      transform: translate(-50%, -50%) scale(1)
   }

   50% {
      opacity: 0.7;
      transform: translate(-50%, -50%) scale(1.1)
   }
}

.value-pillars::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(circle at 10% 20%, rgba(220, 20, 60, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(199, 21, 133, 0.08) 0%, transparent 40%), radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.06) 0%, transparent 50%);
   animation: ambientGlow 20s ease-in-out infinite;
   pointer-events: none;
   z-index: 0
}

@keyframes ambientGlow {

   0%,
   100% {
      opacity: 0.5
   }

   50% {
      opacity: 0.8
   }
}

.outcomes-hero .container,
.transformation-journey .container,
.impact-metrics .container,
.value-pillars .container {
   position: relative;
   z-index: 1
}

.case-studies-luxury::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 3px;
   background: linear-gradient(90deg, transparent 0%, rgba(220, 20, 60, 0.5) 50%, transparent 100%);
   animation: scanLine 8s linear infinite;
   pointer-events: none;
   z-index: 1
}

@keyframes scanLine {
   0% {
      transform: translateY(0);
      opacity: 0
   }

   10% {
      opacity: 1
   }

   90% {
      opacity: 1
   }

   100% {
      transform: translateY(600px);
      opacity: 0
   }
}

@media (max-width:768px) {

   .outcomes-hero::before,
   .outcomes-hero::after {
      width: 200%;
      height: 200%
   }

   .transformation-journey::before,
   .impact-metrics::before,
   .value-pillars::before {
      opacity: 0.5
   }
}

.architect-ribbon {
   background: #020202;
   padding: 2.2rem 0;
   position: relative;
   overflow: hidden;
   border-top: 1px solid rgba(220, 20, 60, 0.15)
}

.ribbon-background {
   position: absolute;
   inset: 0;
   overflow: hidden;
   pointer-events: none
}

.ribbon-glow {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 1px;
   background: linear-gradient(90deg, transparent 0%, rgba(220, 20, 60, 0.2) 20%, var(--garnet-main) 50%, rgba(220, 20, 60, 0.2) 80%, transparent 100%);
   box-shadow: 0 0 15px rgba(220, 20, 60, 0.3)
}

.ribbon-glow::after {
   content: '';
   position: absolute;
   top: 0;
   left: -100px;
   width: 200px;
   height: 1px;
   background: #fff;
   box-shadow: 0 0 20px #fff, 0 0 40px var(--garnet-main);
   animation: ribbonScan 4s cubic-bezier(0.4, 0, 0.2, 1) infinite
}

@keyframes ribbonScan {
   0% {
      left: -10%;
      opacity: 0
   }

   10% {
      opacity: 1
   }

   90% {
      opacity: 1
   }

   100% {
      left: 110%;
      opacity: 0
   }
}

.ribbon-content {
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 3rem;
   position: relative;
   z-index: 2
}

.ribbon-branding {
   display: flex;
   align-items: center;
   gap: 1.2rem;
   flex-shrink: 0
}

.ribbon-title {
   font-size: 0.95rem;
   font-weight: 400;
   letter-spacing: 0.15rem;
   color: #fff;
   opacity: 0.9
}

.ribbon-title strong {
   font-weight: 900;
   color: var(--garnet-main)
}

.ribbon-meta {
   font-family: monospace;
   font-size: 0.6rem;
   color: rgba(255, 255, 255, 0.2);
   letter-spacing: 0.05rem;
   text-transform: uppercase;
   border: 1px solid rgba(255, 255, 255, 0.05);
   padding: 2px 6px;
   border-radius: 2px
}

.ribbon-nav {
   display: flex;
   gap: 2.5rem;
   flex-grow: 1;
   justify-content: center;
   flex-wrap: wrap
}

.nav-segment {
   display: flex;
   align-items: center;
   gap: 1.2rem
}

.segment-label {
   font-family: monospace;
   font-size: 0.65rem;
   color: var(--garnet-main);
   letter-spacing: 0.1rem;
   opacity: 0.7;
   font-weight: 700
}

.nav-segment a {
   color: rgba(255, 255, 255, 0.4);
   text-decoration: none;
   font-size: 0.8rem;
   text-transform: uppercase;
   letter-spacing: 0.08rem;
   transition: all 0.3s ease;
   position: relative
}

.nav-segment a::after {
   content: '';
   position: absolute;
   bottom: -4px;
   left: 0;
   width: 0;
   height: 1px;
   background: var(--garnet-main);
   transition: width 0.3s ease
}

.nav-segment a:hover {
   color: #fff;
   text-shadow: 0 0 10px rgba(220, 20, 60, 0.5)
}

.nav-segment a:hover::after {
   width: 100%
}

.ribbon-status {
   display: flex;
   align-items: center;
   gap: 1rem;
   flex-shrink: 0
}

.status-code {
   font-family: monospace;
   font-size: 0.7rem;
   color: #00ff88;
   letter-spacing: 0.1rem;
   opacity: 0.9
}

@media (max-width:900px) {
   .ribbon-content {
      flex-direction: column;
      gap: 2rem;
      text-align: center
   }

   .ribbon-branding {
      justify-content: center;
      width: 100%
   }

   .ribbon-nav {
      flex-direction: column;
      gap: 1.5rem;
      width: 100%
   }

   .nav-segment {
      justify-content: center;
      flex-wrap: wrap;
      gap: 1rem
   }

   .ribbon-status {
      width: 100%;
      justify-content: center
   }
}

.status-pulse {
   width: 6px;
   height: 6px;
   background: #00ff88;
   border-radius: 50%;
   box-shadow: 0 0 10px #00ff88;
   animation: pulse-mini 2s infinite
}

@keyframes pulse-mini {
   0% {
      opacity: 0.4;
      transform: scale(0.8)
   }

   50% {
      opacity: 1;
      transform: scale(1.2)
   }

   100% {
      opacity: 0.4;
      transform: scale(0.8)
   }
}

.ribbon-bottom {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin-top: 1.5rem;
   padding-top: 1rem;
   border-top: 1px solid rgba(255, 255, 255, 0.03)
}

.ribbon-bottom .legal,
.ribbon-bottom .tagline {
   font-size: 0.7rem;
   font-family: monospace;
   color: rgba(255, 255, 255, 0.2);
   letter-spacing: 0.12rem
}

.arch-logo-v2 {
   width: 36px;
   height: 36px;
   position: relative;
   perspective: 500px;
   display: flex;
   align-items: center;
   justify-content: center;
   user-select: none;
   pointer-events: none;
   margin-right: 1rem
}

.logo-inner {
   width: 100%;
   height: 100%;
   position: relative;
   transform-style: preserve-3d;
   animation: logo-master-spin 15s linear infinite
}

.core-nucleus {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 12px;
   height: 12px;
   background: var(--garnet-main);
   transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg);
   box-shadow: 0 0 15px var(--garnet-main), inset 0 0 5px rgba(255, 255, 255, 0.8);
   animation: nucleus-pulse 3s ease-in-out infinite
}

.grid-shell {
   position: absolute;
   inset: 0;
   transform-style: preserve-3d
}

.shell-plane {
   position: absolute;
   inset: 0;
   border: 1px solid rgba(220, 20, 60, 0.3);
   border-radius: 2px
}

.shell-plane:nth-child(1) {
   transform: rotateY(0deg)
}

.shell-plane:nth-child(2) {
   transform: rotateY(60deg)
}

.shell-plane:nth-child(3) {
   transform: rotateY(120deg)
}

.orbit-ring {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 44px;
   height: 44px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 50%;
   transform: translate(-50%, -50%) rotateX(70deg)
}

.orbit-ring::after {
   content: '';
   position: absolute;
   top: 0;
   left: 50%;
   width: 3px;
   height: 3px;
   background: #fff;
   border-radius: 50%;
   box-shadow: 0 0 8px #fff;
   animation: orbit-dot 4s linear infinite
}

@keyframes logo-master-spin {
   from {
      transform: rotateY(0deg) rotateX(0deg)
   }

   to {
      transform: rotateY(360deg) rotateX(360deg)
   }
}

@keyframes nucleus-pulse {

   0%,
   100% {
      transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg) scale(1);
      opacity: 0.8
   }

   50% {
      transform: translate(-50%, -50%) rotateX(45deg) rotateZ(45deg) scale(1.3);
      opacity: 1;
      filter: brightness(1.5)
   }
}

@keyframes orbit-dot {
   from {
      transform: translateX(-50%) rotate(0deg) translateY(-22px)
   }

   to {
      transform: translateX(-50%) rotate(360deg) translateY(-22px)
   }
}

.ribbon-branding .arch-logo-v2 {
   width: 28px;
   height: 28px;
   transform: scale(0.8);
   margin-right: 0.8rem
}

.dazzle-container {
   max-width: 900px;
   margin: 0 auto;
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 100%
}

.hero-label {
   font-size: 1rem;
   font-weight: 700;
   letter-spacing: 0.5rem;
   color: var(--garnet-main);
   text-transform: uppercase;
   margin-bottom: 2rem;
   position: relative;
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 2rem;
   width: 100%;
   opacity: 0;
   animation: labelDazzleIn 1s cubic-bezier(0.2, 0, 0.2, 1) forwards
}

.hero-label::before,
.hero-label::after {
   content: '';
   width: 60px;
   height: 1px;
   background: linear-gradient(90deg, transparent, var(--garnet-main), transparent)
}

@keyframes labelDazzleIn {
   0% {
      opacity: 0;
      transform: translateY(20px) scale(0.9);
      letter-spacing: 1.5rem
   }

   100% {
      opacity: 1;
      transform: translateY(0) scale(1);
      letter-spacing: 0.5rem
   }
}

.dazzle-heading {
   font-size: 6.5rem;
   font-weight: 900;
   line-height: 1.1;
   margin-bottom: 3rem;
   display: flex;
   flex-direction: column;
   align-items: center
}

.d-row {
   display: block;
   background: linear-gradient(90deg, #ffffff 0%, rgba(255, 255, 255, 0.7) 40%, var(--garnet-main) 50%, rgba(255, 255, 255, 0.7) 60%, #ffffff 100%);
   background-size: 300% auto;
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   opacity: 0;
   transform: translateY(40px);
   filter: blur(8px);
   animation: rowReveal 1.2s cubic-bezier(0.2, 0, 0.2, 1) forwards, shimmerSweep 6s linear infinite, textDazzlePulse 3s ease-in-out infinite
}

.d-row:nth-child(1) {
   animation-delay: 0.2s, 0s, 0s
}

.d-row:nth-child(2) {
   animation-delay: 0.4s, 1s, 0.5s
}

.d-row:nth-child(3) {
   animation-delay: 0.6s, 2s, 1s
}

@keyframes rowReveal {
   0% {
      opacity: 0;
      transform: translateY(60px);
      filter: blur(15px)
   }

   100% {
      opacity: 1;
      transform: translateY(0);
      filter: blur(0)
   }
}

@keyframes shimmerSweep {
   0% {
      background-position: -300% center
   }

   100% {
      background-position: 300% center
   }
}

@keyframes textDazzlePulse {

   0%,
   100% {
      text-shadow: 0 0 30px rgba(220, 20, 60, 0.2)
   }

   50% {
      text-shadow: 0 0 60px rgba(220, 20, 60, 0.6), 0 0 20px rgba(220, 20, 60, 0.4)
   }
}

.hero-subtitle {
   font-size: 1.6rem;
   color: rgba(255, 255, 255, 0.6);
   max-width: 700px;
   margin: 0 auto;
   opacity: 0;
   transform: translateY(20px);
   animation: fadeInUp 1s ease-out forwards;
   animation-delay: 1.2s
}

@media (max-width:1024px) {
   .dazzle-heading {
      font-size: 4.5rem
   }
}

@media (max-width:768px) {
   .dazzle-heading {
      font-size: 3rem
   }

   .hero-subtitle {
      font-size: 1.1rem
   }
}

.matrix-complex-bg {
   position: relative;
   background-color: #050505;
   overflow: hidden;
   color: #e0e0e0;
   --code-color: rgba(220, 20, 60, 0.08);
   --code-color-bright: rgba(220, 20, 60, 0.15)
}

.matrix-complex-bg::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image: 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: 40px 40px;
   z-index: 1;
   pointer-events: none
}

.code-layer-1 {
   position: absolute;
   top: -50%;
   left: 5%;
   width: 25%;
   height: 200%;
   background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="300" height="300" viewBox="0 0 300 300"><text x="10" y="20" fill="rgba(220,20,60,0.05)" font-family="monospace" font-size="12">0x4F A2 C1 99\nFUNCTION_INIT(0x1)\nBUFFER_OVERFLOW\nSYSTEM_CHECK:OK\nMEMORY_ALLOC:4TB\n0010101010101</text></svg>');
   opacity: 0.6;
   animation: scrollDown 60s linear infinite;
   z-index: 2;
   pointer-events: none
}

.code-layer-2 {
   position: absolute;
   top: -50%;
   right: 10%;
   width: 30%;
   height: 200%;
   background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"><text x="10" y="20" fill="rgba(255,255,255,0.03)" font-family="monospace" font-size="14">SELECT * FROM DATA_LAKE\nWHERE INTEGRITY = 100%\nORDER BY TIMESTAMP DESC\nJOIN ARCHITECTURE_TABLE\nON ID = NODE_01</text></svg>');
   transform: rotate(-5deg);
   animation: scrollUp 45s linear infinite;
   z-index: 2;
   pointer-events: none
}

.glow-layer {
   position: absolute;
   width: 600px;
   height: 600px;
   background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
   top: 20%;
   left: 40%;
   filter: blur(40px);
   animation: pulseGlow 10s ease-in-out infinite alternate;
   z-index: 3;
   pointer-events: none
}

@keyframes scrollDown {
   0% {
      transform: translateY(0)
   }

   100% {
      transform: translateY(50%)
   }
}

@keyframes scrollUp {
   0% {
      transform: translateY(0) rotate(-5deg)
   }

   100% {
      transform: translateY(-50%) rotate(-5deg)
   }
}

@keyframes pulseGlow {
   0% {
      opacity: 0.3;
      transform: scale(1)
   }

   100% {
      opacity: 0.6;
      transform: scale(1.2)
   }
}

.case-studies-luxury {
   background: transparent;
   position: relative;
   z-index: 10;
   padding: 6rem 0
}

.case-study-card {
   background: rgba(10, 10, 10, 0.6);
   border: 1px solid rgba(255, 255, 255, 0.1);
   backdrop-filter: blur(12px);
   -webkit-backdrop-filter: blur(12px);
   border-radius: 4px;
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.2, 0, 0.2, 1);
   position: relative;
   box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5)
}

.case-study-card:hover {
   border-color: var(--garnet-main);
   transform: translateY(-5px);
   box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 20px rgba(220, 20, 60, 0.2)
}

.card-terminal-header {
   background: rgba(0, 0, 0, 0.5);
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   padding: 0.5rem 1rem;
   display: flex;
   justify-content: space-between;
   align-items: center;
   font-family: 'Courier New', monospace;
   font-size: 0.7rem;
   color: var(--text-muted)
}

.terminal-dots {
   display: flex;
   gap: 4px
}

.terminal-dot {
   width: 6px;
   height: 6px;
   border-radius: 50%;
   background: rgba(255, 255, 255, 0.2)
}

.card-terminal-header span {
   letter-spacing: 1px
}

.live-code-container {
   height: 140px;
   background: #0d0d0d;
   position: relative;
   overflow: hidden;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   padding: 1rem
}

.live-code-content {
   font-family: 'Courier New', monospace;
   font-size: 0.8rem;
   line-height: 1.4;
   color: #a0a0a0;
   white-space: pre;
   position: absolute;
   top: 100%;
   animation: codeScroll 15s linear infinite
}

.code-keyword {
   color: #dc143c
}

.code-var {
   color: #fff
}

.code-comment {
   color: #555
}

.code-string {
   color: #888
}

@keyframes codeScroll {
   0% {
      top: 100%
   }

   100% {
      top: -200%
   }
}

.case-study-card:nth-child(2) .live-code-content {
   animation-delay: -5s
}

.case-study-card:nth-child(3) .live-code-content {
   animation-delay: -2s
}

.case-study-card:nth-child(4) .live-code-content {
   animation-delay: -8s
}

.case-study-content {
   padding: 1.5rem;
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, transparent 100%)
}

.case-study-tags .tag {
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 2px;
   font-family: 'Courier New', monospace;
   font-size: 0.7rem;
   text-transform: uppercase
}

.stat-value {
   color: var(--garnet-main);
   text-shadow: 0 0 10px rgba(220, 20, 60, 0.3)
}

.matrix-blueprint-bg {
   position: relative;
   background-color: #050505;
   overflow: hidden;
   color: #e0e0e0
}

.matrix-blueprint-bg::before {
   content: "";
   position: absolute;
   inset: 0;
   background-image: linear-gradient(rgba(220, 20, 60, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 20, 60, 0.03) 1px, transparent 1px);
   background-size: 80px 80px;
   z-index: 1;
   pointer-events: none
}

.blueprint-overlay {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: radial-gradient(circle at 15% 50%, rgba(220, 20, 60, 0.05) 0%, transparent 20%), radial-gradient(circle at 85% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 20%);
   z-index: 2;
   pointer-events: none
}

.data-stream-vertical {
   position: absolute;
   top: -50%;
   left: 20px;
   font-family: 'Courier New', monospace;
   font-size: 10px;
   color: rgba(255, 255, 255, 0.03);
   white-space: pre;
   line-height: 12px;
   animation: scrollVertical 40s linear infinite;
   z-index: 1
}

@keyframes scrollVertical {
   from {
      transform: translateY(0)
   }

   to {
      transform: translateY(50%)
   }
}

.seo-terminal-viz {
   width: 100%;
   height: 100%;
   background: #0a0a0a;
   border-left: 1px solid var(--garnet-rim);
   position: relative;
   overflow: hidden;
   display: flex;
   flex-direction: column
}

.seo-header {
   background: rgba(255, 255, 255, 0.05);
   padding: 0.5rem 1rem;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   display: flex;
   gap: 0.5rem;
   align-items: center
}

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

.seo-dot.active {
   background: #27c93f;
   box-shadow: 0 0 5px #27c93f
}

.seo-content-area {
   padding: 1rem;
   font-family: 'Courier New', monospace;
   font-size: 0.8rem;
   color: #a0a0a0;
   flex: 1;
   display: flex;
   flex-direction: column;
   justify-content: flex-start
}

.seo-bar-chart {
   display: flex;
   align-items: flex-end;
   gap: 8px;
   height: 100px;
   margin-top: 2rem;
   border-bottom: 1px solid #333;
   padding-bottom: 5px
}

.seo-bar {
   width: 15px;
   background: var(--garnet-main);
   opacity: 0.7;
   animation: growBar 2s ease-out infinite alternate
}

.seo-bar:nth-child(2) {
   animation-delay: 0.2s;
   height: 40%
}

.seo-bar:nth-child(3) {
   animation-delay: 0.4s;
   height: 60%
}

.seo-bar:nth-child(4) {
   animation-delay: 0.6s;
   height: 80%
}

.seo-bar:nth-child(5) {
   animation-delay: 0.8s;
   height: 50%
}

@keyframes growBar {
   from {
      transform: scaleY(0.8);
      opacity: 0.5
   }

   to {
      transform: scaleY(1.1);
      opacity: 0.9
   }
}

.automation-flow-viz {
   width: 100%;
   height: 100%;
   background: #0a0a0a;
   border-right: 1px solid var(--garnet-rim);
   position: relative;
   overflow: hidden;
   display: flex;
   align-items: center;
   justify-content: center
}

.node-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 20px;
   position: relative;
   z-index: 2
}

.auto-node {
   width: 40px;
   height: 40px;
   border: 1px solid var(--garnet-main);
   background: rgba(220, 20, 60, 0.1);
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 4px;
   box-shadow: 0 0 10px rgba(220, 20, 60, 0.2);
   font-size: 1.2rem
}

.packet {
   position: absolute;
   width: 8px;
   height: 8px;
   background: #fff;
   border-radius: 50%;
   box-shadow: 0 0 8px #fff;
   filter: blur(1px);
   animation: packetPath 3s linear infinite
}

@keyframes packetPath {
   0% {
      top: 20%;
      left: 20%;
      opacity: 0
   }

   10% {
      opacity: 1
   }

   90% {
      opacity: 1
   }

   100% {
      top: 80%;
      left: 80%;
      opacity: 0
   }
}

.showcase-content-wrapper {
   position: relative;
   z-index: 10
}

.cosmic-grid-bg {
   position: relative;
   background: radial-gradient(circle at 50% -20%, #1a0505 0%, #000000 100%);
   overflow: hidden;
   min-height: 100vh
}

.cosmic-grid-bg::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: radial-gradient(1px 1px at 10% 10%, rgba(255, 255, 255, 0.3) 1px, transparent 0), radial-gradient(1px 1px at 20% 20%, rgba(220, 20, 60, 0.3) 1px, transparent 0), radial-gradient(1px 1px at 30% 30%, rgba(255, 255, 255, 0.3) 1px, transparent 0), radial-gradient(2px 2px at 40% 40%, rgba(220, 20, 60, 0.4) 1px, transparent 0), radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.3) 1px, transparent 0), radial-gradient(1px 1px at 60% 60%, rgba(220, 20, 60, 0.3) 1px, transparent 0), radial-gradient(1px 1px at 70% 70%, rgba(255, 255, 255, 0.3) 1px, transparent 0), radial-gradient(2px 2px at 80% 80%, rgba(220, 20, 60, 0.5) 1px, transparent 0), radial-gradient(1px 1px at 90% 90%, rgba(255, 255, 255, 0.3) 1px, transparent 0);
   background-size: 500px 500px;
   animation: cosmicFloat 60s linear infinite;
   z-index: 0;
   opacity: 0.6
}

.grid-floor {
   position: absolute;
   bottom: -50%;
   left: -50%;
   width: 200%;
   height: 100%;
   background-image: linear-gradient(rgba(220, 20, 60, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 20, 60, 0.1) 1px, transparent 1px);
   background-size: 50px 50px;
   transform: perspective(500px) rotateX(60deg);
   animation: gridScroll 20s linear infinite;
   z-index: 0;
   pointer-events: none;
   mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 60%);
   -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, transparent 60%)
}

.glow-orb {
   position: absolute;
   border-radius: 50%;
   filter: blur(80px);
   z-index: 0;
   opacity: 0.4;
   animation: glowPulse 10s ease-in-out infinite alternate
}

.glow-orb-1 {
   top: 10%;
   left: 20%;
   width: 300px;
   height: 300px;
   background: radial-gradient(circle, #dc143c, transparent);
   animation-delay: 0s
}

.glow-orb-2 {
   bottom: 20%;
   right: 10%;
   width: 400px;
   height: 400px;
   background: radial-gradient(circle, #3a0ca3, transparent);
   animation-delay: -5s
}

.showcase-content-wrapper {
   position: relative;
   z-index: 10
}

@keyframes cosmicFloat {
   from {
      background-position: 0 0
   }

   to {
      background-position: 500px 500px
   }
}

@keyframes gridScroll {
   from {
      transform: perspective(500px) rotateX(60deg) translateY(0)
   }

   to {
      transform: perspective(500px) rotateX(60deg) translateY(50px)
   }
}

@keyframes glowPulse {
   0% {
      opacity: 0.3;
      transform: scale(1)
   }

   100% {
      opacity: 0.6;
      transform: scale(1.2)
   }
}

.pricing-section {
   position: relative;
   z-index: 10
}

.pricing-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   align-items: center
}

.pricing-grid-4col {
   grid-template-columns: repeat(4, 1fr)
}

.pricing-category-header {
   scroll-margin-top: 100px
}

.pricing-card {
   background: rgba(10, 10, 12, 0.6);
   backdrop-filter: blur(12px);
   border: 1px solid rgba(255, 255, 255, 0.08);
   border-radius: 12px;
   padding: 2.5rem;
   transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
   position: relative;
   overflow: hidden
}

.pricing-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
   border-color: var(--garnet-main)
}

.pricing-card.featured {
   background: rgba(220, 20, 60, 0.05);
   border: 1px solid var(--garnet-main);
   transform: scale(1.05);
   z-index: 2;
   box-shadow: 0 0 30px rgba(220, 20, 60, 0.15)
}

.pricing-card.featured:hover {
   transform: scale(1.05) translateY(-10px);
   box-shadow: 0 0 50px rgba(220, 20, 60, 0.3)
}

.tier-badge {
   display: inline-block;
   font-size: 0.75rem;
   font-weight: 700;
   letter-spacing: 0.15em;
   color: var(--text-secondary);
   border: 1px solid rgba(255, 255, 255, 0.2);
   padding: 0.3rem 0.8rem;
   border-radius: 50px;
   margin-bottom: 1.5rem
}

.tier-badge.main {
   background: var(--garnet-main);
   color: #fff;
   border-color: var(--garnet-main);
   box-shadow: 0 0 10px var(--garnet-glow)
}

.pricing-card h3 {
   font-size: 1.8rem;
   color: #fff;
   margin-bottom: 0.5rem;
   font-family: var(--font-heading)
}

.price {
   font-size: 3rem;
   font-weight: 800;
   color: #fff;
   margin: 1.5rem 0;
   display: flex;
   align-items: baseline;
   flex-wrap: wrap;
   gap: 0.5rem
}

.price .currency {
   font-size: 1.5rem;
   font-weight: 500;
   color: var(--text-secondary);
   vertical-align: top
}

.price .period {
   font-size: 0.9rem;
   font-weight: 400;
   color: var(--text-secondary);
   letter-spacing: 0.05em
}

.card-features {
   margin: 2rem 0;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 2rem
}

.card-features ul {
   list-style: none;
   padding: 0;
   margin: 0
}

.card-features li {
   margin-bottom: 1rem;
   color: var(--text-secondary);
   display: flex;
   align-items: center;
   gap: 0.8rem;
   font-size: 0.95rem
}

.card-features .check {
   color: var(--garnet-main);
   font-weight: bold
}

.full-width {
   width: 100%;
   text-align: center;
   display: block
}

.dazzle-heading .d-row {
   padding-bottom: 0.15em;
   margin-bottom: -0.1em;
   display: block
}

.sql-core-viz {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   grid-template-rows: repeat(3, 1fr);
   gap: 0.5rem;
   width: 100%;
   height: 100%;
   position: relative;
   padding: 2rem;
   background: rgba(0, 0, 0, 0.3);
   border-right: 1px solid var(--garnet-rim)
}

.sql-node {
   border: 1px solid rgba(220, 20, 60, 0.3);
   background: rgba(220, 20, 60, 0.02);
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   font-family: monospace;
   font-size: 0.6rem;
   color: var(--text-secondary);
   position: relative
}

.sql-node.master {
   background: rgba(220, 20, 60, 0.15);
   border-color: var(--garnet-main);
   box-shadow: 0 0 15px rgba(220, 20, 60, 0.2);
   grid-column: 2 / 3;
   grid-row: 2 / 3;
   z-index: 2;
   color: var(--garnet-main);
   font-weight: bold
}

.sql-node::before {
   content: 'DS_0' attr(data-id);
   opacity: 0.5
}

.sql-pulse {
   position: absolute;
   inset: 0;
   border: 1px solid var(--garnet-main);
   animation: sqlPulse 2s infinite;
   opacity: 0
}

@keyframes sqlPulse {
   0% {
      transform: scale(0.8);
      opacity: 0
   }

   50% {
      opacity: 0.5
   }

   100% {
      transform: scale(1.1);
      opacity: 0
   }
}

.server-rack-viz {
   width: 100%;
   height: 100%;
   background: #0d0d10;
   border: 1px solid var(--garnet-rim);
   border-radius: 8px;
   padding: 20px;
   display: flex;
   flex-direction: column;
   gap: 10px;
   position: relative;
   overflow: hidden;
   box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.8)
}

.server-unit {
   height: 12px;
   background: #1a1a20;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
   display: flex;
   align-items: center;
   padding: 0 10px;
   gap: 15px
}

.server-unit:nth-child(3n) {
   background: rgba(220, 20, 60, 0.05)
}

.blink-led {
   width: 4px;
   height: 4px;
   border-radius: 50%;
   background: #333;
   box-shadow: 0 0 2px #333
}

.blink-led.active {
   background: var(--garnet-main);
   box-shadow: 0 0 8px var(--garnet-main);
   animation: ledBlink 0.5s infinite alternate
}

.blink-led.processing {
   background: #fff;
   box-shadow: 0 0 8px #fff;
   animation: ledBlink 0.1s infinite alternate
}

@keyframes ledBlink {
   from {
      opacity: 0.3
   }

   to {
      opacity: 1
   }
}

.data-cable {
   position: absolute;
   bottom: -50%;
   left: 50%;
   width: 2px;
   height: 200%;
   background: linear-gradient(to top, transparent, var(--garnet-main), transparent);
   animation: cableFlow 2s linear infinite;
   opacity: 0.5
}

@keyframes cableFlow {
   0% {
      transform: translateY(100%)
   }

   100% {
      transform: translateY(-100%)
   }
}

.digital-hologram-bg {
   position: relative;
   background: #050505;
   overflow: hidden;
   border-bottom: 1px solid var(--garnet-rim)
}

.holo-grid {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background-image: linear-gradient(rgba(220, 20, 60, 0.1) 1px, transparent 1px), linear-gradient(90deg, rgba(220, 20, 60, 0.1) 1px, transparent 1px);
   background-size: 40px 40px;
   background-position: center center;
   transform: perspective(500px) rotateX(20deg) scale(1.5);
   opacity: 0.3;
   animation: gridScan 10s linear infinite
}

@keyframes gridScan {
   0% {
      background-position: center 0
   }

   100% {
      background-position: center 40px
   }
}

.holo-flare {
   position: absolute;
   top: -50%;
   left: 50%;
   transform: translateX(-50%);
   width: 100%;
   height: 200%;
   background: radial-gradient(circle, rgba(220, 20, 60, 0.2) 0%, transparent 70%);
   pointer-events: none
}

.metatron-bg-layer {
   position: fixed;
   top: 50%;
   left: 50%;
   width: 100vw;
   height: 100vh;
   transform: translate(-50%, -50%);
   pointer-events: none;
   z-index: -1;
   overflow: hidden;
   opacity: 0.03
}

.metatron-cube {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 800px;
   height: 800px;
   transform: translate(-50%, -50%);
   animation: metatronRotate 60s linear infinite;
   will-change: transform;
   contain: layout style
}

.meta-circle {
   position: absolute;
   border: 1px solid var(--garnet-main);
   border-radius: 50%;
   width: 200px;
   height: 200px;
   box-shadow: 0 0 20px rgba(220, 20, 60, 0.2)
}

.meta-c-center {
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%)
}

.meta-c-1 {
   top: 15%;
   left: 50%;
   transform: translate(-50%, -50%)
}

.meta-c-2 {
   top: 32.5%;
   left: 80.3%;
   transform: translate(-50%, -50%)
}

.meta-c-3 {
   top: 67.5%;
   left: 80.3%;
   transform: translate(-50%, -50%)
}

.meta-c-4 {
   top: 85%;
   left: 50%;
   transform: translate(-50%, -50%)
}

.meta-c-5 {
   top: 67.5%;
   left: 19.7%;
   transform: translate(-50%, -50%)
}

.meta-c-6 {
   top: 32.5%;
   left: 19.7%;
   transform: translate(-50%, -50%)
}

.meta-line {
   position: absolute;
   background: var(--garnet-main);
   opacity: 0.3;
   transform-origin: left center
}

@keyframes metatronRotate {
   0% {
      transform: translate(-50%, -50%) rotate(0deg)
   }

   100% {
      transform: translate(-50%, -50%) rotate(360deg)
   }
}

@media (max-width:1024px) {
   .pricing-grid-4col {
      grid-template-columns: repeat(2, 1fr)
   }

   .price {
      font-size: 2.4rem
   }
}

@media (max-width:768px) {
   .metatron-cube {
      width: 400px;
      height: 400px;
      opacity: 0.05
   }

   .meta-circle {
      width: 100px;
      height: 100px
   }

   .main-nav .nav-container {
      padding: 0 1.5rem
   }

   .pricing-grid {
      grid-template-columns: 1fr
   }

   .pricing-grid-4col {
      grid-template-columns: 1fr
   }

   .pricing-category-header h2 {
      font-size: 1.3rem !important;
      word-break: break-word
   }

   .pricing-category-header {
      scroll-margin-top: 5rem;
      padding-top: 1rem;
   }

   .server-rack-viz {
      min-height: 200px
   }

   html,
   body {
      overflow-x: hidden;
      width: 100%;
      max-width: 100%
   }

   .hero h1 {
      font-size: 2.5rem;
      word-wrap: break-word
   }

   .hero-content {
      max-width: 100%;
      padding: 0 1rem
   }

   .ribbon-nav {
      flex-direction: column;
      gap: 1.5rem;
      width: 100%
   }

   .nav-segment {
      flex-direction: column;
      gap: 0.5rem
   }

   .glass-card {
      width: 100%;
      min-width: 0
   }
}

.advantage-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 2.5rem;
   align-items: center
}

@media (max-width:992px) {
   .advantage-grid {
      grid-template-columns: 1fr
   }
}

.synapse-network {
   position: relative;
   width: 100%;
   height: 500px;
   background: radial-gradient(circle at center, rgba(220, 20, 60, 0.05), transparent 70%);
   border: 1px solid var(--garnet-rim);
   border-radius: 12px;
   overflow: hidden
}

.synapse-node {
   position: absolute;
   width: 12px;
   height: 12px;
   background: var(--garnet-main);
   border-radius: 50%;
   box-shadow: 0 0 10px var(--garnet-main);
   animation: pulseNode 3s infinite
}

.synapse-connection {
   position: absolute;
   background: var(--garnet-main);
   opacity: 0.2;
   transform-origin: left center
}

.journey-section {
   padding: 8rem 0;
   position: relative;
   overflow: hidden
}

.timeline-container {
   position: relative;
   max-width: 1000px;
   margin: 0 auto;
   padding: 2rem 0
}

.timeline-container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 50%;
   width: 2px;
   height: 100%;
   background: linear-gradient(to bottom, transparent, var(--garnet-main), transparent);
   transform: translateX(-50%);
   box-shadow: 0 0 10px rgba(220, 20, 60, 0.5)
}

.timeline-node {
   position: relative;
   width: 100%;
   margin-bottom: 6rem;
   display: flex;
   justify-content: center;
   align-items: center
}

.timeline-node:nth-child(odd) {
   flex-direction: row-reverse
}

.node-marker {
   position: absolute;
   left: 50%;
   width: 40px;
   height: 40px;
   background: #000;
   border: 2px solid var(--garnet-main);
   border-radius: 50%;
   transform: translateX(-50%);
   z-index: 2;
   display: flex;
   align-items: center;
   justify-content: center;
   box-shadow: 0 0 20px rgba(220, 20, 60, 0.4)
}

.node-marker::after {
   content: '';
   width: 10px;
   height: 10px;
   background: #fff;
   border-radius: 50%;
   animation: pulseNode 2s infinite
}

.node-content {
   width: 45%;
   padding: 2rem;
   background: rgba(10, 10, 12, 0.8);
   border: 1px solid var(--garnet-rim);
   border-radius: 8px;
   backdrop-filter: blur(10px);
   position: relative;
   transition: transform 0.3s ease
}

.timeline-node:nth-child(odd) .node-content {
   margin-right: auto;
   text-align: right;
   border-right: 4px solid var(--garnet-main);
   transform: translateX(-50px)
}

.timeline-node:nth-child(even) .node-content {
   margin-left: auto;
   text-align: left;
   border-left: 4px solid var(--garnet-main);
   transform: translateX(50px)
}

.timeline-node:hover .node-content {
   background: rgba(220, 20, 60, 0.1);
   transform: translateX(0) scale(1.02)
}

.node-year {
   display: inline-block;
   padding: 0.2rem 0.8rem;
   background: var(--garnet-main);
   color: #fff;
   font-weight: bold;
   font-size: 0.9rem;
   border-radius: 4px;
   margin-bottom: 1rem;
   box-shadow: 0 0 10px rgba(220, 20, 60, 0.5)
}

.node-title {
   font-size: 1.5rem;
   color: #fff;
   margin-bottom: 0.5rem;
   font-family: var(--font-heading)
}

.node-role {
   font-size: 0.9rem;
   color: var(--garnet-main);
   text-transform: uppercase;
   letter-spacing: 0.1em;
   margin-bottom: 1rem;
   display: block
}

.node-desc {
   color: var(--text-secondary);
   line-height: 1.6;
   font-size: 0.95rem
}

.node-asset {
   position: absolute;
   top: -20px;
   right: -20px;
   width: 60px;
   height: 60px;
   opacity: 0.2;
   pointer-events: none
}

@keyframes pulseNode {
   0% {
      transform: scale(1);
      opacity: 0.8
   }

   50% {
      transform: scale(1.2);
      opacity: 1
   }

   100% {
      transform: scale(1);
      opacity: 0.8
   }
}

@media (max-width:768px) {
   .timeline-container::before {
      left: 20px
   }

   .timeline-node,
   .timeline-node:nth-child(odd) {
      flex-direction: column;
      align-items: flex-start;
      margin-left: 50px;
      width: calc(100% - 50px)
   }

   .node-marker {
      left: 20px;
      transform: translateX(-50%)
   }

   .node-content,
   .timeline-node:nth-child(odd) .node-content {
      width: 100%;
      text-align: left;
      border-right: none;
      border-left: 4px solid var(--garnet-main);
      margin: 0;
      transform: none
   }
}

.cta-slim-section {
   padding: 6rem 0;
   position: relative;
   z-index: 10
}

.cta-slim-container {
   background: rgba(15, 15, 15, 0.8);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border: 1px solid rgba(220, 20, 60, 0.3);
   border-radius: 20px;
   padding: 3rem 4rem;
   display: flex;
   align-items: center;
   justify-content: space-between;
   box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
   position: relative;
   overflow: hidden;
   transition: transform 0.3s ease, border-color 0.3s ease
}

.cta-slim-container:hover {
   border-color: var(--garnet-main);
   transform: translateY(-2px);
   box-shadow: 0 25px 60px rgba(220, 20, 60, 0.15)
}

.cta-slim-container::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 4px;
   height: 100%;
   background: var(--garnet-main);
   box-shadow: 0 0 15px var(--garnet-main)
}

.cta-grid-bg {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   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: 30px 30px;
   opacity: 0.5;
   pointer-events: none;
   z-index: 0
}

.cta-content-slim {
   position: relative;
   z-index: 2;
   max-width: 600px
}

.cta-content-slim h2 {
   font-size: 2.2rem;
   margin-bottom: 0.5rem;
   background: linear-gradient(90deg, #fff, #ff6b9d);
   -webkit-background-clip: text;
   background-clip: text;
   -webkit-text-fill-color: transparent;
   font-family: var(--font-heading)
}

.cta-content-slim p {
   font-size: 1.1rem;
   color: var(--text-secondary);
   margin: 0
}

.btn-wow {
   position: relative;
   padding: 1rem 2.5rem;
   background: linear-gradient(135deg, var(--garnet-main), #a01030);
   border: none;
   border-radius: 50px;
   color: #fff;
   font-family: var(--font-heading);
   font-weight: 700;
   font-size: 1rem;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   cursor: pointer;
   overflow: hidden;
   transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
   z-index: 2;
   box-shadow: 0 10px 20px rgba(220, 20, 60, 0.3);
   text-decoration: none;
   display: inline-flex;
   align-items: center;
   gap: 0.5rem
}

.btn-wow:hover {
   transform: scale(1.05) translateY(-2px);
   box-shadow: 0 15px 30px rgba(220, 20, 60, 0.5), 0 0 20px rgba(255, 105, 180, 0.4);
   background: linear-gradient(135deg, #ff1a4a, #c0123a)
}

.btn-wow::after {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
   transform: scale(0);
   transition: transform 0.6s ease-out;
   opacity: 0
}

.btn-wow:hover::after {
   transform: scale(1);
   opacity: 1;
   transition: transform 0s
}

.btn-wow span {
   position: relative;
   z-index: 2
}

.btn-arrow {
   transition: transform 0.3s ease
}

.btn-wow:hover .btn-arrow {
   transform: translateX(4px)
}

@keyframes pulseBtn {
   0% {
      box-shadow: 0 0 0 0 rgba(220, 20, 60, 0.7)
   }

   70% {
      box-shadow: 0 0 0 15px rgba(220, 20, 60, 0)
   }

   100% {
      box-shadow: 0 0 0 0 rgba(220, 20, 60, 0)
   }
}

.btn-wow.pulse {
   animation: pulseBtn 2s infinite
}

@media (max-width:992px) {
   .cta-slim-container {
      flex-direction: column;
      text-align: center;
      padding: 3rem 2rem;
      gap: 2rem
   }

   .cta-slim-container::before {
      width: 100%;
      height: 4px;
      top: 0;
      left: 0
   }
}

.certifications-section {
   padding: 8rem 0;
   position: relative;
   background: var(--bg-obsidian-soft);
   border-top: 1px solid var(--glass-border)
}

.cert-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 2rem;
   margin-top: 3rem
}

.cert-card {
   display: flex;
   align-items: center;
   gap: 1.5rem;
   padding: 1.5rem;
   background: var(--glass-bg);
   border: 1px solid var(--glass-border);
   border-radius: 12px;
   backdrop-filter: blur(10px);
   transition: var(--transition-med)
}

.cert-card:hover {
   border-color: var(--garnet-main);
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3)
}

.cert-icon {
   font-size: 2.5rem;
   filter: drop-shadow(0 0 10px var(--garnet-glow))
}

.cert-details h4 {
   color: var(--text-primary);
   font-size: 1.1rem;
   margin-bottom: 0.3rem
}

.cert-issuer {
   color: var(--text-secondary);
   font-size: 0.85rem;
   text-transform: uppercase;
   letter-spacing: 0.05em
}

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

.story-animation-container {
   position: relative;
   width: 100%;
   height: 100%;
   overflow: hidden;
   background-color: #000
}

.story-animation-frame {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   opacity: 0;
   animation: storyCycle 12s infinite
}

.story-animation-frame:nth-child(1) {
   animation-delay: 0s
}

.story-animation-frame:nth-child(2) {
   animation-delay: 3s
}

.story-animation-frame:nth-child(3) {
   animation-delay: 6s
}

.story-animation-frame:nth-child(4) {
   animation-delay: 9s
}

@keyframes storyCycle {
   0% {
      opacity: 0;
      transform: scale(1)
   }

   5% {
      opacity: 1
   }

   25% {
      opacity: 1;
      transform: scale(1.05)
   }

   30% {
      opacity: 0
   }

   100% {
      opacity: 0
   }
}

@media (max-width:768px) {
   .ribbon-nav {
      width: 100% !important;
      min-width: 0 !important;
      left: 0 !important;
      transform: none !important;
      margin-left: 0 !important;
      border-radius: 0
   }

   .glass-card {
      min-width: 0 !important;
      width: 100% !important
   }

   .container {
      padding: 0 1rem;
      min-width: 0
   }
}

.cookie-banner {
   position: fixed;
   bottom: 20px;
   left: 20px;
   right: 20px;
   background: rgba(10, 10, 10, 0.95);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 12px;
   padding: 1.5rem;
   z-index: 10000;
   transform: translateY(150%);
   transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
   box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
   max-width: 600px;
   margin: 0 auto
}

.cookie-banner.show {
   transform: translateY(0)
}

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

.cookie-content p {
   margin: 0;
   color: var(--text-secondary);
   font-size: 0.9rem;
   line-height: 1.5
}

.cookie-content a {
   color: var(--garnet-main);
   text-decoration: none;
   font-weight: 500
}

.cookie-content a:hover {
   text-decoration: underline
}

.cookie-actions {
   display: flex;
   gap: 0.75rem;
   flex-shrink: 0
}

.btn-primary-small {
   background: var(--garnet-gradient);
   border: none;
   color: white;
   padding: 0.5rem 1.25rem;
   border-radius: 6px;
   font-size: 0.85rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease
}

.btn-primary-small:hover {
   opacity: 0.9;
   transform: translateY(-1px)
}

.btn-secondary-small {
   background: transparent;
   border: 1px solid rgba(255, 255, 255, 0.2);
   color: var(--text-primary);
   padding: 0.5rem 1.25rem;
   border-radius: 6px;
   font-size: 0.85rem;
   font-weight: 600;
   cursor: pointer;
   transition: all 0.3s ease
}

.btn-secondary-small:hover {
   background: rgba(255, 255, 255, 0.05);
   border-color: rgba(255, 255, 255, 0.4)
}

@media (max-width:768px) {
   .cookie-banner {
      bottom: 0;
      left: 0;
      right: 0;
      border-radius: 12px 12px 0 0;
      border-bottom: none
   }

   .cookie-content {
      flex-direction: column;
      align-items: flex-start;
      text-align: left
   }

   .cookie-actions {
      width: 100%;
      margin-top: 0.5rem
   }

   .btn-primary-small,
   .btn-secondary-small {
      flex: 1;
      text-align: center;
      padding: 0.75rem
   }
}

.legal .separator {
   opacity: 0.5;
   margin: 0 0.5rem
}

.legal a {
   color: var(--text-secondary);
   text-decoration: none;
   transition: color 0.3s ease
}

.legal a:hover {
   color: var(--garnet-main)
}

#system-preloader {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: #030303;
   z-index: 9999;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   font-family: 'Outfit', sans-serif;
   color: var(--garnet-main);
   overflow: hidden;
   will-change: opacity, transform;
}

/* === SCAN LINES === */
.preloader-scanlines {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: repeating-linear-gradient(0deg,
         transparent,
         transparent 2px,
         rgba(220, 20, 60, 0.015) 2px,
         rgba(220, 20, 60, 0.015) 4px);
   pointer-events: none;
   z-index: 1;
   animation: scanSweep 4s linear infinite;
}

@keyframes scanSweep {
   0% {
      transform: translateY(0);
   }

   100% {
      transform: translateY(4px);
   }
}

/* === MATRIX RAIN === */
.matrix-rain {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   overflow: hidden;
   z-index: 0;
}

.rain-col {
   position: absolute;
   top: -60px;
   font-family: 'Inter', monospace;
   font-size: 0.65rem;
   color: rgba(220, 20, 60, 0.12);
   letter-spacing: 0.3em;
   writing-mode: vertical-rl;
   animation: rainFall linear infinite;
   will-change: transform;
}

@keyframes rainFall {
   0% {
      transform: translateY(-60px);
      opacity: 0;
   }

   10% {
      opacity: 1;
   }

   90% {
      opacity: 1;
   }

   100% {
      transform: translateY(calc(100vh + 60px));
      opacity: 0;
   }
}

/* === LOADER CONTENT (Central Column) === */
.loader-content {
   text-align: center;
   position: relative;
   width: 320px;
   z-index: 2;
}

/* === HEX RING === */
.hex-ring-container {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 220px;
   height: 220px;
   transform: translate(-50%, -65%);
   z-index: 0;
}

.hex-ring {
   width: 100%;
   height: 100%;
   color: rgba(220, 20, 60, 0.25);
   animation: hexSpin 12s linear infinite;
   will-change: transform;
}

.hex-outline {
   stroke-dasharray: 40 15;
   stroke-dashoffset: 0;
   animation: hexDash 6s linear infinite;
}

.hex-inner {
   stroke-dasharray: 20 30;
   animation-direction: reverse;
   animation-duration: 8s;
   opacity: 0.5;
}

@keyframes hexSpin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

@keyframes hexDash {
   0% {
      stroke-dashoffset: 0;
   }

   100% {
      stroke-dashoffset: 110;
   }
}

/* === SACRED GEOMETRY — METATRON'S CUBE === */
.crystal-container {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 240px;
   height: 240px;
   transform: translate(-50%, -65%);
   z-index: 0;
}

.garnet-crystal {
   width: 100%;
   height: 100%;
   color: rgba(220, 20, 60, 0.45);
   will-change: transform;
}

.garnet-crystal.metatron-cube {
   animation: metatronSpin 30s linear infinite;
}

.metatron-lines {
   transition: opacity 0.6s ease;
}

.metatron-circle {
   stroke-dasharray: 4 2;
   animation: metatronCirclePulse 4s ease-in-out infinite;
   will-change: opacity;
}

.metatron-circle.metatron-outer {
   opacity: 0.5;
   animation-delay: 0.5s;
}

.metatron-core {
   fill: var(--garnet-main);
   filter: drop-shadow(0 0 6px rgba(220, 20, 60, 0.8));
   animation: corePulse 2s ease-in-out infinite;
}

@keyframes metatronSpin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

@keyframes metatronCirclePulse {

   0%,
   100% {
      opacity: 0.3;
   }

   50% {
      opacity: 0.7;
   }
}

/* === PARTICLE DUST === */
.crystal-dust {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   overflow: hidden;
   z-index: 0;
   pointer-events: none;
}

.dust-mote {
   position: absolute;
   width: 2px;
   height: 2px;
   background: radial-gradient(circle, rgba(220, 20, 60, 0.8), transparent);
   border-radius: 50%;
   animation: dustFloat 6s ease-in-out infinite;
   will-change: transform, opacity;
}

@keyframes dustFloat {

   0%,
   100% {
      transform: translateY(0) scale(1);
      opacity: 0.2;
   }

   25% {
      transform: translateY(-30px) scale(1.5);
      opacity: 0.6;
   }

   50% {
      transform: translateY(-15px) scale(0.8);
      opacity: 0.4;
   }

   75% {
      transform: translateY(-40px) scale(1.2);
      opacity: 0.5;
   }
}

/* === CORE NUCLEUS === */
.loader-logo {
   width: 70px;
   height: 70px;
   margin: 0 auto 2rem;
   position: relative;
   z-index: 1;
}

.loader-ring {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   border: 2px solid rgba(220, 20, 60, 0.2);
   border-top-color: var(--garnet-main);
   border-right-color: rgba(220, 20, 60, 0.6);
   border-radius: 50%;
   animation: loaderSpin 1.2s linear infinite;
   will-change: transform;
}

.loader-ring-2 {
   border: 1.5px solid rgba(220, 20, 60, 0.1);
   border-bottom-color: rgba(199, 21, 133, 0.8);
   animation: loaderSpin 2s linear infinite reverse;
   transform: scale(1.15);
}

.loader-core {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 32%;
   height: 32%;
   background: radial-gradient(circle, var(--garnet-main) 0%, rgba(199, 21, 133, 0.8) 100%);
   border-radius: 50%;
   box-shadow:
      0 0 15px var(--garnet-main),
      0 0 40px rgba(220, 20, 60, 0.4),
      0 0 80px rgba(220, 20, 60, 0.15);
   animation: corePulse 2s ease-in-out infinite;
   will-change: transform, opacity;
}

.core-flare {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 120%;
   height: 120%;
   border-radius: 50%;
   background: radial-gradient(circle, rgba(220, 20, 60, 0.1) 0%, transparent 70%);
   animation: flarePulse 3s ease-in-out infinite;
   will-change: transform, opacity;
}

@keyframes loaderSpin {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

@keyframes corePulse {

   0%,
   100% {
      opacity: 0.6;
      transform: translate(-50%, -50%) scale(0.85);
   }

   50% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.15);
   }
}

@keyframes flarePulse {

   0%,
   100% {
      transform: translate(-50%, -50%) scale(0.8);
      opacity: 0.3;
   }

   50% {
      transform: translate(-50%, -50%) scale(1.3);
      opacity: 0.7;
   }
}

/* === BOOT LOG === */
.boot-log {
   text-align: left;
   margin-bottom: 1rem;
}

.boot-text {
   font-size: 1.1rem;
   font-weight: 700;
   letter-spacing: 0.15rem;
   margin-bottom: 0.75rem;
   text-shadow: 0 0 10px rgba(220, 20, 60, 0.5);
   text-align: center;
}

.boot-entries {
   font-family: 'Inter', monospace;
   font-size: 0.7rem;
   line-height: 1.6;
   color: rgba(255, 255, 255, 0.4);
   min-height: 80px;
   max-height: 100px;
   overflow: hidden;
}

.boot-entry {
   opacity: 0;
   animation: bootFadeIn 0.3s ease forwards;
   white-space: nowrap;
   overflow: hidden;
}

.boot-entry .entry-prefix {
   color: rgba(220, 20, 60, 0.6);
   margin-right: 0.5rem;
}

.boot-entry.success {
   color: #39ff14;
}

.boot-entry.success .entry-prefix {
   color: #39ff14;
}

@keyframes bootFadeIn {
   0% {
      opacity: 0;
      transform: translateY(4px);
   }

   100% {
      opacity: 1;
      transform: translateY(0);
   }
}

/* === PROGRESS BAR === */
.progress-bar {
   width: 100%;
   height: 3px;
   background: rgba(255, 255, 255, 0.06);
   margin-top: 1rem;
   position: relative;
   overflow: hidden;
   border-radius: 2px;
}

.progress-fill {
   position: absolute;
   top: 0;
   left: 0;
   height: 100%;
   width: 0%;
   background: linear-gradient(90deg, var(--garnet-main), rgba(199, 21, 133, 0.9));
   box-shadow: 0 0 12px var(--garnet-main), 0 0 30px rgba(220, 20, 60, 0.3);
   transition: width 0.3s ease;
   border-radius: 2px;
}

.progress-shimmer {
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
   animation: shimmerSlide 2s linear infinite;
   will-change: transform;
}

@keyframes shimmerSlide {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(200%);
   }
}

.progress-label {
   font-family: 'Inter', monospace;
   font-size: 0.65rem;
   color: rgba(255, 255, 255, 0.3);
   text-align: right;
   margin-top: 0.4rem;
   letter-spacing: 0.1rem;
}

/* === EXIT ANIMATION === */
.preloader-hidden {
   opacity: 0;
   transform: scale(1.02);
   filter: blur(8px);
   pointer-events: none;
   transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out;
}

/* === GREEN FLASH ON ACCESS GRANTED === */
.preloader-flash {
   animation: greenFlash 0.4s ease;
}

@keyframes greenFlash {
   0% {
      box-shadow: inset 0 0 0 0 transparent;
   }

   50% {
      box-shadow: inset 0 0 200px rgba(57, 255, 20, 0.08);
   }

   100% {
      box-shadow: inset 0 0 0 0 transparent;
   }
}

.status-text {
   font-size: 0.8rem;
   color: rgba(255, 255, 255, 0.5);
   font-family: 'Inter', monospace;
   height: 1.2rem;
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {

   .preloader-scanlines,
   .matrix-rain,
   .hex-ring,
   .sacred-lines,
   .core-flare,
   .progress-shimmer {
      display: none;
   }

   .loader-ring,
   .loader-ring-2,
   .loader-core {
      animation: none;
   }

   .loader-core {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
   }
}

body.light-mode {
   --bg-obsidian: #ffffff;
   --bg-obsidian-soft: #f4f4f4;
   --text-primary: #121212;
   --text-secondary: rgba(0, 0, 0, 0.7);
   --text-muted: rgba(0, 0, 0, 0.5);
   --glass-bg: rgba(255, 255, 255, 0.8);
   --glass-border: rgba(0, 0, 0, 0.1)
}

body.light-mode .gridfield {
   background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px)
}

body.light-mode .aurora-bg {
   opacity: 0.2
}

body.light-mode .noise-layer {
   opacity: 0.03;
   pointer-events: none
}

#theme-toggle {
   position: fixed;
   bottom: 20px;
   left: 20px;
   width: 48px;
   height: 48px;
   background: var(--glass-bg);
   border: 1px solid var(--glass-border);
   border-radius: 50%;
   color: var(--text-primary);
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   z-index: 10000;
   transition: all 0.3s ease;
   backdrop-filter: blur(10px);
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1)
}

#theme-toggle:hover {
   transform: scale(1.1);
   border-color: var(--garnet-main)
}

#theme-toggle svg {
   width: 24px;
   height: 24px
}

@media (max-width:480px) {
   .loader-content {
      width: 90%;
      max-width: 300px
   }

   .boot-text {
      font-size: 1rem;
      letter-spacing: 0.15rem
   }
}

body.blueprint-mode {
   background: #001a1a !important;
   color: #00ffff !important;
   font-family: 'Courier New', monospace !important
}

body.blueprint-mode * {
   background: transparent !important;
   box-shadow: none !important;
   border-radius: 0 !important;
   text-shadow: none !important;
   filter: none !important
}

body.blueprint-mode *:not(i) {
   outline: 1px solid rgba(0, 255, 255, 0.3) !important
}

body.blueprint-mode img,
body.blueprint-mode video,
body.blueprint-mode .logo-inner {
   outline: 1px solid #00ffff !important;
   opacity: 0.5 !important;
   filter: grayscale(100%) sepia(100%) hue-rotate(130deg) !important
}

body.blueprint-mode h1,
body.blueprint-mode h2,
body.blueprint-mode h3,
body.blueprint-mode p,
body.blueprint-mode a {
   color: #00ffff !important;
   font-weight: normal !important
}

body.blueprint-mode::selection {
   background: #00ffff !important;
   color: #000 !important
}

#konami-terminal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: rgba(10, 10, 10, 0.95);
   z-index: 9999;
   font-family: 'Courier New', monospace;
   color: #33ff33;
   padding: 40px;
   display: flex;
   flex-direction: column;
   overflow: hidden;
   display: none
}

#terminal-output {
   flex-grow: 1;
   overflow-y: auto;
   margin-bottom: 20px;
   white-space: pre-wrap
}

.terminal-line {
   margin-bottom: 5px;
   display: block
}

.secret-hint {
   font-family: 'Courier New', monospace;
   font-size: 0.7rem;
   color: rgba(255, 255, 255, 0.1);
   text-align: center;
   margin-bottom: 2px;
   transition: color 0.3s ease;
   cursor: default
}

.command-line {
   display: flex;
   align-items: center;
   border-top: 1px solid #33ff33;
   padding-top: 10px
}

.prompt {
   margin-right: 10px
}

#terminal-input {
   background: transparent;
   border: none;
   color: #33ff33;
   font-family: inherit;
   font-size: 1.2rem;
   flex-grow: 1;
   outline: none
}

.jgpt-uplink {
   padding: 6rem 0;
   position: relative;
   z-index: 10
}

.uplink-header {
   text-align: center;
   margin-bottom: 3rem
}

.uplink-header h2 {
   font-size: 2.5rem;
   margin-bottom: 1rem;
   display: inline-flex;
   align-items: center;
   gap: 1rem
}

.status-dot {
   width: 12px;
   height: 12px;
   background-color: #00ff41;
   border-radius: 50%;
   box-shadow: 0 0 10px #00ff41;
   animation: pulseStatus 2s infinite
}

@keyframes pulseStatus {
   0% {
      opacity: 0.5;
      transform: scale(0.8)
   }

   50% {
      opacity: 1;
      transform: scale(1.2)
   }

   100% {
      opacity: 0.5;
      transform: scale(0.8)
   }
}

.chat-terminal {
   max-width: 900px;
   margin: 0 auto;
   background: rgba(10, 10, 12, 0.95);
   border: 1px solid rgba(255, 45, 85, 0.2);
   box-shadow: 0 0 30px rgba(255, 45, 85, 0.1);
   display: flex;
   flex-direction: column;
   height: 700px;
   padding: 0
}

.terminal-bar {
   background: rgba(255, 255, 255, 0.05);
   padding: 0.8rem 1.5rem;
   display: flex;
   align-items: center;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05)
}

.terminal-controls {
   display: flex;
   gap: 8px;
   margin-right: 1.5rem
}

.ctrl {
   width: 12px;
   height: 12px;
   border-radius: 50%;
   display: block
}

.ctrl.close {
   background: #ff5f56
}

.ctrl.min {
   background: #ffbd2e
}

.ctrl.max {
   background: #27c93f
}

.terminal-title {
   font-family: 'Courier New', monospace;
   font-size: 0.8rem;
   color: var(--text-muted);
   letter-spacing: 0.1em
}

.chat-history {
   flex-grow: 1;
   padding: 2rem;
   overflow-y: auto;
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
   scroll-behavior: smooth
}

.chat-history::-webkit-scrollbar {
   width: 8px
}

.chat-history::-webkit-scrollbar-track {
   background: rgba(0, 0, 0, 0.3)
}

.chat-history::-webkit-scrollbar-thumb {
   background: rgba(255, 255, 255, 0.1);
   border-radius: 4px
}

.message {
   display: flex;
   gap: 1.5rem;
   max-width: 90%;
   animation: fadeIn 0.3s ease-out
}

.message.bot {
   align-self: flex-start
}

.message.user {
   align-self: flex-end;
   flex-direction: row-reverse
}

.msg-avatar {
   width: 40px;
   height: 40px;
   flex-shrink: 0;
   display: flex;
   align-items: center;
   justify-content: center
}

.core-nucleus-sm {
   width: 24px;
   height: 24px;
   background: radial-gradient(circle at 30% 30%, var(--garnet-main), var(--garnet-deep));
   border-radius: 50%;
   box-shadow: 0 0 10px var(--garnet-glow);
   animation: orbMorph 3s infinite alternate
}

.message.user .msg-avatar {
   background: rgba(255, 255, 255, 0.1);
   border-radius: 50%;
   color: white;
   font-weight: bold
}

.msg-content {
   background: rgba(255, 255, 255, 0.03);
   padding: 1rem 1.5rem;
   border-radius: 0 12px 12px 12px;
   font-size: 0.95rem;
   line-height: 1.6;
   border: 1px solid rgba(255, 255, 255, 0.05)
}

.message.user .msg-content {
   background: rgba(255, 45, 85, 0.1);
   border-color: rgba(255, 45, 85, 0.2);
   border-radius: 12px 0 12px 12px
}

.thinking-process {
   background: rgba(10, 10, 10, 0.6);
   border: 1px dashed rgba(255, 255, 255, 0.15);
   border-radius: 8px;
   margin-bottom: 0.5rem;
   overflow: hidden;
   font-size: 0.85rem
}

.thinking-header {
   background: rgba(255, 255, 255, 0.03);
   padding: 0.5rem 1rem;
   color: var(--text-secondary);
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   user-select: none;
   transition: background 0.2s
}

.thinking-header:hover {
   background: rgba(255, 255, 255, 0.05)
}

.thinking-header::before {
   content: '▶';
   font-size: 0.7rem;
   transition: transform 0.2s;
   display: inline-block
}

.thinking-process.expanded .thinking-header::before {
   transform: rotate(90deg)
}

.thinking-content {
   padding: 1rem;
   font-family: 'Courier New', monospace;
   color: var(--text-muted);
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   display: none;
   white-space: pre-wrap
}

.thinking-process.expanded .thinking-content {
   display: block;
   animation: slideDown 0.3s ease-out
}

@keyframes slideDown {
   from {
      opacity: 0;
      transform: translateY(-10px)
   }

   to {
      opacity: 1;
      transform: translateY(0)
   }
}

.uplink-input-area {
   padding: 1.5rem;
   background: rgba(0, 0, 0, 0.3);
   border-top: 1px solid rgba(255, 255, 255, 0.05)
}

.input-wrapper {
   display: flex;
   gap: 1rem;
   background: rgba(255, 255, 255, 0.05);
   padding: 0.5rem;
   border-radius: 8px;
   border: 1px solid rgba(255, 255, 255, 0.1);
   transition: border-color 0.3s
}

.input-wrapper:focus-within {
   border-color: var(--garnet-main);
   box-shadow: 0 0 15px rgba(255, 45, 85, 0.2)
}

.input-wrapper textarea {
   flex-grow: 1;
   background: transparent;
   border: none;
   color: white;
   font-family: var(--font-body);
   font-size: 1rem;
   resize: none;
   padding: 0.5rem;
   max-height: 150px;
   outline: none
}

.btn-send {
   background: var(--garnet-main);
   border: none;
   color: white;
   width: 40px;
   height: 40px;
   border-radius: 6px;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: background 0.3s, transform 0.2s
}

.btn-send:hover {
   background: #ff2d55;
   transform: translateY(-2px)
}

.btn-send:disabled {
   opacity: 0.5;
   cursor: not-allowed;
   transform: none
}

.uplink-footer {
   display: flex;
   justify-content: space-between;
   margin-top: 0.8rem;
   font-family: 'Courier New', monospace;
   font-size: 0.75rem;
   color: var(--text-muted)
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
#theme-toggle {
   position: fixed;
   bottom: 2rem;
   right: 2rem;
   z-index: 9999;
   width: 48px;
   height: 48px;
   border-radius: 50%;
   border: 1px solid rgba(255, 255, 255, 0.15);
   background: rgba(20, 20, 20, 0.85);
   backdrop-filter: blur(12px);
   color: #f0f0f0;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.25s ease;
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3)
}

#theme-toggle svg {
   width: 20px;
   height: 20px
}

#theme-toggle:hover {
   transform: scale(1.1);
   border-color: hsl(14, 100%, 64%);
   box-shadow: 0 4px 24px hsla(14, 100%, 64%, 0.3)
}

/* ============================================
   LIGHT MODE THEME
   ============================================ */
body.light-mode {
   --bg-primary: hsl(30, 20%, 96%);
   --bg-secondary: hsl(30, 15%, 92%);
   --bg-tertiary: hsl(30, 10%, 88%);
   --text-primary: hsl(0, 0%, 12%);
   --text-secondary: hsla(0, 0%, 12%, 0.75);
   --text-tertiary: hsla(0, 0%, 12%, 0.55);
   --text-muted: hsla(0, 0%, 12%, 0.45);
   --garnet-main: hsl(14, 100%, 50%);
   --glass-bg: rgba(0, 0, 0, 0.03);
   --glass-border: rgba(0, 0, 0, 0.08);
   --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
   --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
   --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
   --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
   background: var(--bg-primary);
   color: var(--text-primary)
}

/* --- Navigation --- */
body.light-mode .main-nav {
   background: rgba(250, 245, 240, 0.95) !important;
   border-bottom-color: rgba(255, 127, 80, 0.25) !important;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08) !important
}

body.light-mode .main-nav .logo span {
   color: var(--text-primary) !important
}

body.light-mode .nav-links a {
   color: hsla(0, 0%, 12%, 0.75) !important
}

body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
   color: hsl(0, 0%, 12%) !important;
   background: rgba(0, 0, 0, 0.05) !important
}

body.light-mode .nav-links .btn-primary {
   color: white !important;
   background: linear-gradient(135deg, hsl(14, 100%, 42%), hsl(351, 83%, 40%)) !important
}

body.light-mode .mobile-nav {
   background: rgba(250, 245, 240, 0.98) !important
}

body.light-mode .mobile-nav a {
   color: hsla(0, 0%, 12%, 0.75) !important
}

body.light-mode .mobile-nav a:hover,
body.light-mode .mobile-nav a.active {
   color: hsl(0, 0%, 12%) !important
}

/* --- Hero & Page Backgrounds --- */
body.light-mode .page-hero {
   background: linear-gradient(135deg, rgba(250, 245, 240, 0.95), rgba(248, 240, 235, 0.90)) !important
}

body.light-mode .aurora-bg {
   background: radial-gradient(ellipse at center, hsla(14, 100%, 64%, 0.06) 0%, transparent 70%) !important;
   opacity: 0.5 !important
}

body.light-mode .gridfield {
   opacity: 0.04 !important
}

body.light-mode .metatron-bg-layer {
   opacity: 0.05 !important
}

body.light-mode .landing {
   background-image: linear-gradient(135deg, rgba(250, 245, 240, 0.92) 0%, rgba(248, 240, 235, 0.88) 50%, rgba(245, 238, 232, 0.90) 100%) !important
}

body.light-mode .landing::after {
   opacity: 0.06 !important
}

/* --- Cards & Glass Elements --- */
body.light-mode .glass-card {
   background: rgba(255, 255, 255, 0.65) !important;
   border-color: rgba(0, 0, 0, 0.08) !important;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important
}

body.light-mode .glass-card:hover {
   background: rgba(255, 255, 255, 0.85) !important;
   border-color: rgba(255, 127, 80, 0.3) !important
}

body.light-mode .glass-card h3 {
   color: var(--text-primary) !important;
   -webkit-text-fill-color: var(--text-primary) !important
}

body.light-mode .glass-card p {
   color: var(--text-secondary) !important
}

body.light-mode .step,
body.light-mode .metric-card,
body.light-mode .approach-card,
body.light-mode .outcome-card,
body.light-mode .showcase-card,
body.light-mode .pillar-card,
body.light-mode .pricing-card,
body.light-mode .cert-card,
body.light-mode .team-card,
body.light-mode .faq-item,
body.light-mode .contact-card {
   background: rgba(255, 255, 255, 0.65) !important;
   border-color: rgba(0, 0, 0, 0.08) !important;
   box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important
}

/* --- Section Backgrounds --- */
body.light-mode section {
   background-color: transparent
}

body.light-mode .how-we-work,
body.light-mode .impact-metrics,
body.light-mode .approach-grid-section,
body.light-mode .outcomes-showcase,
body.light-mode .certifications-section,
body.light-mode .expertise-pillars,
body.light-mode .pricing-section,
body.light-mode .faq-section,
body.light-mode .contact-section,
body.light-mode .expertise-grid,
body.light-mode .toolbelt {
   background: var(--bg-secondary) !important
}

/* --- Section Headers & Typography --- */
body.light-mode .section-header h2,
body.light-mode .dazzle-heading,
body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
   color: var(--text-primary) !important;
   -webkit-text-fill-color: var(--text-primary) !important
}

body.light-mode p,
body.light-mode .hero-subtitle,
body.light-mode .subhead {
   color: var(--text-secondary) !important
}

body.light-mode .hero-label {
   color: hsl(348, 83%, 40%) !important
}

/* --- Deliverables List --- */
body.light-mode .deliverables-list li {
   color: var(--text-secondary) !important
}

/* --- Tool Items --- */
body.light-mode .tool-item {
   background: rgba(255, 255, 255, 0.5) !important;
   border-color: rgba(0, 0, 0, 0.08) !important
}

body.light-mode .tool-item span {
   color: var(--text-secondary) !important
}

body.light-mode .tool-icon {
   color: hsl(14, 100%, 50%) !important
}

/* --- CTA --- */
body.light-mode .cta-slim-container {
   background: rgba(255, 255, 255, 0.7) !important;
   border-color: rgba(0, 0, 0, 0.08) !important
}

body.light-mode .cta-slim-container h2 {
   color: var(--text-primary) !important;
   -webkit-text-fill-color: var(--text-primary) !important
}

body.light-mode .cta-slim-container p {
   color: var(--text-secondary) !important
}

/* --- Buttons --- */
body.light-mode .btn-wow {
   background: linear-gradient(135deg, hsl(14, 100%, 42%), hsl(351, 83%, 40%)) !important;
   color: white !important
}

body.light-mode .btn.ghost {
   background: rgba(0, 0, 0, 0.04) !important;
   border-color: rgba(0, 0, 0, 0.15) !important;
   color: var(--text-primary) !important
}

/* --- Footer (keep dark) --- */
body.light-mode .architect-ribbon {
   background: hsl(0, 0%, 8%) !important;
   color: hsl(0, 0%, 90%) !important
}

/* --- Tag Lists --- */
body.light-mode .tag-list li {
   background: rgba(0, 0, 0, 0.04) !important;
   border-color: rgba(0, 0, 0, 0.1) !important;
   color: var(--text-secondary) !important
}

/* --- Dividers --- */
body.light-mode .divider-wave {
   background: linear-gradient(to bottom, transparent, var(--bg-primary)) !important
}

/* --- Theme Toggle in Light Mode --- */
body.light-mode #theme-toggle {
   background: rgba(255, 255, 255, 0.85);
   border-color: rgba(0, 0, 0, 0.12);
   color: hsl(0, 0%, 12%);
   box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10)
}

body.light-mode #theme-toggle:hover {
   border-color: hsl(14, 100%, 64%);
   box-shadow: 0 4px 24px hsla(14, 100%, 64%, 0.25)
}

/* --- Showcase Copy --- */
body.light-mode .showcase-copy h3 {
   color: var(--text-primary) !important
}

/* --- Status indicators --- */
body.light-mode .ribbon-meta,
body.light-mode .status-code {
   color: hsla(0, 0%, 90%, 0.6) !important
}

/* --- Smooth Transition --- */
body,
body .main-nav,
body .glass-card,
body #theme-toggle {
   transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease
}

/* --- Hero Title Light Mode Fix --- */
body.light-mode .d-row {
   background: linear-gradient(90deg, hsl(0, 0%, 12%) 0%, hsla(0, 0%, 12%, 0.7) 40%, var(--garnet-main) 50%, hsla(0, 0%, 12%, 0.7) 60%, hsl(0, 0%, 12%) 100%) !important;
   background-size: 300% auto !important;
   -webkit-background-clip: text !important;
   background-clip: text !important;
   -webkit-text-fill-color: transparent !important
}

body.light-mode .video-overlay {
   background: linear-gradient(135deg, rgba(250, 245, 240, 0.85) 0%, rgba(248, 240, 235, 0.6) 50%, rgba(250, 245, 240, 0.85) 100%) !important
}

body.light-mode .video-bg-layer video {
   opacity: 0.15 !important
}

/* --- Expertise Tile Cards Light Mode --- */
body.light-mode .tile-bg {
   background: var(--bg-secondary) !important
}

body.light-mode .tile-bg::before {
   opacity: 0.08 !important;
   filter: saturate(0.3) brightness(1.2) !important
}

body.light-mode .tile-bg::after {
   background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(244, 244, 244, 0.85) 40%, var(--bg-secondary) 100%) !important
}

body.light-mode .tile-bg h3 {
   color: var(--text-primary) !important;
   -webkit-text-fill-color: var(--text-primary) !important
}

body.light-mode .tile-bg p {
   color: var(--text-secondary) !important
}

body.light-mode .tile-bg .deliverables-list li {
   color: var(--text-secondary) !important
}

/* --- Pricing Cards Light Mode --- */
body.light-mode .pricing-card {
   background: rgba(255, 255, 255, 0.75) !important;
   border-color: rgba(0, 0, 0, 0.1) !important
}

body.light-mode .pricing-card.featured {
   background: rgba(255, 240, 235, 0.85) !important;
   border-color: hsl(14, 100%, 64%) !important
}

body.light-mode .pricing-card h3 {
   color: var(--text-primary) !important;
   -webkit-text-fill-color: var(--text-primary) !important
}

body.light-mode .pricing-card p {
   color: var(--text-secondary) !important
}

body.light-mode .pricing-card .price {
   color: var(--text-primary) !important
}

body.light-mode .pricing-card .currency {
   color: var(--text-secondary) !important
}

body.light-mode .pricing-card .period {
   color: var(--text-secondary) !important
}

body.light-mode .tier-badge {
   color: var(--text-secondary) !important;
   border-color: rgba(0, 0, 0, 0.15) !important
}

body.light-mode .tier-badge.main {
   color: #fff !important;
   background: hsl(348, 83%, 40%) !important;
   border-color: hsl(348, 83%, 40%) !important
}

body.light-mode .card-features {
   border-top-color: rgba(0, 0, 0, 0.1) !important
}

body.light-mode .card-features li {
   color: var(--text-secondary) !important
}

body.light-mode .card-features .check {
   color: hsl(14, 100%, 50%) !important
}

body.light-mode .pricing-card .btn-secondary {
   color: var(--text-primary) !important;
   border-color: rgba(0, 0, 0, 0.15) !important;
   background: rgba(0, 0, 0, 0.03) !important
}

body.light-mode .pricing-card .btn-secondary:hover {
   border-color: hsl(14, 100%, 64%) !important;
   background: rgba(255, 127, 80, 0.08) !important
}

/* --- On-Demand / Ad-Hoc Engineering Section (Light Mode) --- */
body.light-mode .ondemand-glass {
   background: rgba(255, 255, 255, 0.75) !important;
   border-color: rgba(200, 50, 80, 0.2) !important;
   box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08)
}

body.light-mode .ondemand-glass .price {
   color: var(--text-primary) !important
}

body.light-mode .ondemand-glass .currency,
body.light-mode .ondemand-glass .period {
   color: var(--text-secondary) !important
}

body.light-mode .ondemand-glass .card-glow {
   background: radial-gradient(circle, rgba(220, 20, 60, 0.04) 0%, transparent 70%) !important
}

/* ── Contact Button ── */
.btn-contact {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.7rem 1.6rem;
   background: linear-gradient(135deg, var(--garnet-deep), var(--garnet-main));
   color: #fff;
   text-decoration: none;
   font-weight: 600;
   font-size: 0.85rem;
   border-radius: 4px;
   border: 1px solid rgba(255, 255, 255, 0.15);
   transition: transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
   position: relative;
   overflow: hidden
}

.btn-contact:hover {
   transform: translateY(-2px);
   box-shadow: 0 8px 24px var(--garnet-glow);
   gap: 0.75rem
}

.btn-contact::after {
   content: '→';
   transition: transform 0.3s ease;
   font-size: 1rem
}

.btn-contact:hover::after {
   transform: translateX(3px)
}

/* ── Diagnostic Strip (Quiz CTA) ── */
.diagnostic-strip {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 2rem;
   padding: 2rem 3rem;
   margin: 0 auto 4rem;
   max-width: var(--container-max);
   background: var(--glass-bg);
   border: 1px solid var(--glass-border);
   border-radius: 12px;
   backdrop-filter: blur(12px)
}

.diagnostic-strip .strip-content h3 {
   font-family: var(--font-heading);
   font-size: 1.2rem;
   color: var(--text-primary);
   margin-bottom: 0.25rem
}

.diagnostic-strip .strip-content p {
   font-size: 0.9rem;
   color: var(--text-secondary);
   margin: 0
}

@media (max-width: 768px) {
   .diagnostic-strip {
      flex-direction: column;
      text-align: center;
      padding: 1.5rem;
      gap: 1rem
   }
}

/* light-mode overrides */
body.light-mode .btn-contact {
   border-color: rgba(0, 0, 0, 0.1)
}

body.light-mode .diagnostic-strip {
   background: rgba(255, 255, 255, 0.7);
   border-color: rgba(0, 0, 0, 0.08)
}

/* ============================================
   FIX #1 + #6: Secondary CTAs & Ghost Buttons (Light Mode)
   ============================================ */
body.light-mode .btn-secondary,
body.light-mode .btn.secondary,
body.light-mode .hero-actions .btn:not(.btn-primary):not(.btn-wow),
body.light-mode a.btn.ghost,
body.light-mode .cta-secondary,
body.light-mode .hero-secondary-cta {
   color: var(--text-primary) !important;
   border: 2px solid rgba(0, 0, 0, 0.2) !important;
   background: rgba(255, 255, 255, 0.6) !important;
}

body.light-mode .btn-secondary:hover,
body.light-mode .btn.secondary:hover,
body.light-mode .hero-actions .btn:not(.btn-primary):not(.btn-wow):hover,
body.light-mode a.btn.ghost:hover {
   background: rgba(0, 0, 0, 0.06) !important;
   border-color: var(--coral-400) !important;
   color: var(--text-primary) !important;
}

/* ============================================
   FIX #2: Tools Dropdown (Light Mode)
   ============================================ */
body.light-mode .tools-dropdown,
body.light-mode .nav-dropdown,
body.light-mode [class*="dropdown-menu"],
body.light-mode [class*="dropdown-content"] {
   background: rgba(255, 255, 255, 0.98) !important;
   border: 1px solid rgba(0, 0, 0, 0.1);
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

body.light-mode .tools-dropdown a,
body.light-mode .nav-dropdown a,
body.light-mode [class*="dropdown-menu"] a,
body.light-mode [class*="dropdown-content"] a {
   color: var(--text-primary) !important;
}

body.light-mode .tools-dropdown a:hover,
body.light-mode .nav-dropdown a:hover,
body.light-mode [class*="dropdown-menu"] a:hover,
body.light-mode [class*="dropdown-content"] a:hover {
   background: rgba(0, 0, 0, 0.05);
   color: var(--coral-500) !important;
}

/* ============================================
   FIX #6 EXTENDED: Mobile Nav in Light Mode
   ============================================ */
body.light-mode .mobile-nav {
   background: rgba(255, 255, 255, 0.98) !important;
   border-left: 1px solid rgba(0, 0, 0, 0.08);
   box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
}

body.light-mode .mobile-nav a {
   color: var(--text-primary) !important;
}

body.light-mode .mobile-nav a:hover,
body.light-mode .mobile-nav a.active {
   background: rgba(0, 0, 0, 0.05);
}

body.light-mode .mobile-nav a.btn-primary {
   color: white !important;
}

body.light-mode .mobile-nav-tools-label {
   color: var(--coral-500);
   border-top-color: rgba(0, 0, 0, 0.08);
}

/* ============================================
   FIX #6 EXTENDED: Filter Buttons / Category Tabs
   ============================================ */
body.light-mode .filter-btn,
body.light-mode .category-filter,
body.light-mode [class*="filter"] button,
body.light-mode .insights-filters button,
body.light-mode .tab-btn {
   color: var(--text-primary) !important;
   background: rgba(0, 0, 0, 0.04);
   border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .filter-btn.active,
body.light-mode .category-filter.active,
body.light-mode .tab-btn.active {
   background: var(--gradient-primary) !important;
   color: white !important;
   border-color: transparent;
}

/* ============================================
   FIX #6 EXTENDED: Form Elements
   ============================================ */
body.light-mode input,
body.light-mode select,
body.light-mode textarea,
body.light-mode .form-input-luxury,
body.light-mode .form-select-luxury,
body.light-mode .form-textarea-luxury {
   color: var(--text-primary) !important;
   background: rgba(255, 255, 255, 0.8) !important;
   border-color: rgba(0, 0, 0, 0.15) !important;
}

/* Custom dropdown light-mode overrides */
body.light-mode .custom-select-trigger {
   color: var(--text-primary);
   background: rgba(255, 255, 255, 0.8);
   border-color: rgba(0, 0, 0, 0.15);
}

body.light-mode .custom-select-trigger:hover {
   border-color: rgba(220, 20, 60, 0.35);
   background: rgba(255, 255, 255, 0.9);
}

body.light-mode .custom-select-value.placeholder {
   color: var(--text-tertiary);
}

body.light-mode .custom-select-options {
   background: rgba(255, 255, 255, 0.97);
   border-color: rgba(0, 0, 0, 0.12);
   box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.light-mode .custom-select-option {
   color: var(--text-secondary);
}

body.light-mode .custom-select-option:hover {
   background: rgba(220, 20, 60, 0.08);
   color: var(--text-primary);
}

body.light-mode .custom-select-option.selected {
   background: rgba(220, 20, 60, 0.12);
   color: var(--text-primary);
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
   color: var(--text-tertiary) !important;
}

body.light-mode label,
body.light-mode .form-label,
body.light-mode .form-group label {
   color: var(--text-primary) !important;
}

/* ============================================
   FIX #6 EXTENDED: Tool Pages, Quiz, ROI, etc.
   ============================================ */
body.light-mode .tool-card,
body.light-mode .quiz-option,
body.light-mode .result-card,
body.light-mode .score-card,
body.light-mode .recommendation-card,
body.light-mode .audit-card,
body.light-mode .maturity-card,
body.light-mode .readiness-card,
body.light-mode .estimation-card,
body.light-mode .migration-card,
body.light-mode .scanner-card {
   background: rgba(255, 255, 255, 0.65);
   border-color: rgba(0, 0, 0, 0.08);
   color: var(--text-primary);
}

body.light-mode .tool-card h3,
body.light-mode .tool-card h4,
body.light-mode .tool-card p,
body.light-mode .quiz-option label,
body.light-mode .result-card h3,
body.light-mode .result-card p,
body.light-mode .score-card h3,
body.light-mode .score-card p {
   color: var(--text-primary) !important;
}

/* ============================================
   FIX #6 EXTENDED: Stat Values & Metric Numbers
   ============================================ */
body.light-mode .stat-val,
body.light-mode .metric-value,
body.light-mode .cta-stat-value {
   color: var(--coral-500) !important;
}

body.light-mode .stat-label,
body.light-mode .metric-label {
   color: var(--text-secondary) !important;
}

/* ============================================
   FIX #6 EXTENDED: Insight / Case Study Article Styles
   ============================================ */
body.light-mode .article-content,
body.light-mode .article-body,
body.light-mode .case-study-content,
body.light-mode .insight-content {
   color: var(--text-primary);
}

body.light-mode .article-content h2,
body.light-mode .article-content h3,
body.light-mode .article-content h4,
body.light-mode .case-study-content h2,
body.light-mode .case-study-content h3 {
   color: var(--text-primary) !important;
}

body.light-mode .article-meta,
body.light-mode .article-date,
body.light-mode .article-author,
body.light-mode .case-study-meta {
   color: var(--text-secondary) !important;
}

body.light-mode .article-tag,
body.light-mode .insight-tag {
   background: rgba(0, 0, 0, 0.05);
   color: var(--text-primary);
   border-color: rgba(0, 0, 0, 0.1);
}

/* ============================================
   FIX #6 EXTENDED: Pre-Footer CTA Section
   ============================================ */
body.light-mode .cta-final-section,
body.light-mode .footer-cta,
body.light-mode [class*="cta-section"] {
   background: var(--bg-secondary);
}

body.light-mode .cta-final-section h2,
body.light-mode .cta-final-section p,
body.light-mode .footer-cta h2,
body.light-mode .footer-cta p {
   color: var(--text-primary) !important;
}

/* ============================================
   FIX #6 EXTENDED: Pricing Card Text
   ============================================ */
body.light-mode .pricing-card h3,
body.light-mode .pricing-card .price,
body.light-mode .pricing-card .period,
body.light-mode .pricing-card .currency {
   color: var(--text-primary);
}

body.light-mode .pricing-card ul li {
   color: var(--text-secondary);
}

body.light-mode .pricing-card ul li::before {
   color: var(--coral-400);
}

/* ============================================
   FIX #6 EXTENDED: FAQ Items
   ============================================ */
body.light-mode .faq-item,
body.light-mode .faq-accordion-item {
   background: rgba(255, 255, 255, 0.65);
   border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .faq-accordion-header {
   color: var(--text-primary) !important;
}

body.light-mode .faq-accordion-item .faq-body,
body.light-mode .faq-item p {
   color: var(--text-secondary) !important;
}

/* ============================================
   FIX #6 EXTENDED: Architect Ribbon in Light Mode
   ============================================ */
body.light-mode .architect-ribbon,
body.light-mode .ribbon-footer {
   background: hsl(0, 0%, 10%);
   color: hsl(0, 0%, 85%);
}

body.light-mode .architect-ribbon a,
body.light-mode .ribbon-footer a {
   color: hsl(0, 0%, 75%);
}

body.light-mode .architect-ribbon a:hover,
body.light-mode .ribbon-footer a:hover {
   color: var(--coral-300);
}

/* ============================================
   Mobile Nav Overlay / Backdrop
   ============================================ */
.mobile-nav-overlay {
   position: fixed;
   inset: 0;
   background: rgba(0, 0, 0, 0.5);
   z-index: 998;
   opacity: 0;
   visibility: hidden;
   transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
   opacity: 1;
   visibility: visible;
}

body.light-mode .mobile-nav-overlay {
   background: rgba(0, 0, 0, 0.3);
}

/* --- Transition for Smooth Theme Switch --- */
body,
body .top-nav,
body .landing,
body .step,
body .metric-card,
body .approach-card,
body .outcome-card,
body .showcase-card,
body .pillar-card,
body .pricing-card,
body .btn.ghost,
body .code-console,
body #theme-toggle {
   transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Custom Dropdown & Component Overrides for Light Mode */
body.light-mode .quiz-option,
body.light-mode .be-card,
body.light-mode .roi-checkbox-item,
body.light-mode .roi-slider-group,
body.light-mode .roi-result-card {
   background: #ffffff !important;
   border-color: var(--glass-border) !important;
   color: var(--text-primary) !important;
   box-shadow: var(--shadow-sm) !important;
}

body.light-mode .quiz-option h3,
body.light-mode .be-card h3,
body.light-mode .roi-result-value,
body.light-mode .roi-checkbox-text {
   color: var(--garnet-main) !important;
}

body.light-mode .quiz-option:hover,
body.light-mode .be-card:hover,
body.light-mode .roi-checkbox-item:hover {
   background: #ffffff !important;
   border-color: var(--garnet-main) !important;
   box-shadow: var(--shadow-md) !important;
}

body.light-mode .be-option {
   background: rgba(0, 0, 0, 0.03) !important;
   color: var(--text-primary) !important;
}

body.light-mode .be-option:hover {
   background: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .roi-slider-label span {
   color: var(--text-secondary) !important;
}

body.light-mode .roi-result-label,
body.light-mode .roi-result-note {
   color: var(--text-tertiary) !important;
}

/* ════════════════════════════════════════════════════════════
   ARTICLE TEMPLATE (.ar-*)
   ════════════════════════════════════════════════════════════ */

.ar-progress {
   position: fixed;
   top: 0;
   left: 0;
   width: 0;
   height: 3px;
   background: linear-gradient(90deg, #aa0000, #ff4444);
   z-index: 9999;
   transition: width .1s linear
}

/* ─── Layout: mobile-first single column, grid above 900px ─── */
.ar-layout {
   max-width: 1200px;
   margin: 0 auto;
   padding: 2rem 1rem 4rem;
   display: block;
   width: 100%;
   box-sizing: border-box;
   overflow-x: hidden
}

@media (min-width: 901px) {
   .ar-layout {
      display: grid;
      grid-template-columns: 220px 1fr;
      gap: 3rem;
      padding: 2rem 1.5rem 4rem
   }
}

/* ─── Table of Contents: hidden on mobile ─── */
.ar-toc {
   display: none
}

@media (min-width: 901px) {
   .ar-toc {
      display: block;
      position: sticky;
      top: 80px;
      align-self: start;
      max-height: calc(100vh - 100px);
      overflow-y: auto
   }
}

.ar-toc__label {
   font-family: 'JetBrains Mono', monospace;
   font-size: .65rem;
   color: rgba(170, 0, 0, .6);
   text-transform: uppercase;
   letter-spacing: .1em;
   margin-bottom: 1rem
}

.ar-toc a {
   display: block;
   padding: .4rem 0 .4rem .75rem;
   font-size: .78rem;
   color: rgba(240, 240, 240, .4);
   text-decoration: none;
   border-left: 2px solid rgba(170, 0, 0, .1);
   transition: all .25s;
   line-height: 1.4
}

.ar-toc a:hover {
   color: rgba(240, 240, 240, .7);
   border-color: rgba(170, 0, 0, .3)
}

.ar-toc a.active {
   color: #f0f0f0;
   border-color: #aa0000;
   background: rgba(170, 0, 0, .05)
}

/* ─── Content area: fluid-width ─── */
.ar-content {
   max-width: 100%;
   width: 100%;
   overflow-wrap: break-word;
   word-wrap: break-word;
   word-break: break-word;
   box-sizing: border-box
}

@media (min-width: 901px) {
   .ar-content {
      max-width: 760px
   }
}

/* ─── Hero ─── */
.ar-hero {
   margin-bottom: 2rem
}

@media (min-width: 601px) {
   .ar-hero {
      margin-bottom: 3rem
   }
}

.ar-hero__back {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   font-size: .8rem;
   color: rgba(240, 240, 240, .4);
   text-decoration: none;
   margin-bottom: 1.5rem;
   transition: color .2s
}

@media (min-width: 601px) {
   .ar-hero__back {
      margin-bottom: 2rem
   }
}

.ar-hero__back:hover {
   color: #aa0000
}

.ar-hero__meta {
   display: flex;
   align-items: center;
   gap: .5rem;
   margin-bottom: 1rem;
   flex-wrap: wrap
}

@media (min-width: 601px) {
   .ar-hero__meta {
      gap: .75rem;
      margin-bottom: 1.25rem
   }
}

.ar-hero__cat {
   font-family: 'JetBrains Mono', monospace;
   font-size: .65rem;
   color: #aa0000;
   text-transform: uppercase;
   letter-spacing: .08em;
   padding: .25rem .6rem;
   border-radius: 4px;
   background: rgba(170, 0, 0, .1);
   border: 1px solid rgba(170, 0, 0, .2)
}

.ar-hero__date,
.ar-hero__read {
   font-size: .75rem;
   color: rgba(240, 240, 240, .35)
}

.ar-hero h1 {
   font-family: 'Outfit', sans-serif;
   font-size: clamp(1.5rem, 5vw, 2.8rem);
   font-weight: 800;
   color: #f0f0f0;
   line-height: 1.2;
   margin-bottom: 1rem;
   overflow-wrap: break-word;
   word-wrap: break-word;
   max-width: 100%
}

.ar-hero__subtitle {
   font-size: 1rem;
   color: rgba(240, 240, 240, .55);
   line-height: 1.6;
   max-width: 100%
}

@media (min-width: 601px) {
   .ar-hero__subtitle {
      font-size: 1.1rem;
      max-width: 640px
   }
}

/* ─── Share buttons ─── */
.ar-share {
   display: flex;
   gap: .5rem;
   margin-top: 1.5rem;
   flex-wrap: wrap
}

.ar-share button {
   padding: .4rem .8rem;
   border-radius: 6px;
   background: rgba(170, 0, 0, .06);
   border: 1px solid rgba(170, 0, 0, .12);
   color: rgba(240, 240, 240, .5);
   font-size: .75rem;
   cursor: pointer;
   transition: all .2s;
   font-family: 'Inter', sans-serif
}

.ar-share button:hover {
   border-color: rgba(170, 0, 0, .35);
   color: #f0f0f0
}

/* ─── Body content typography ─── */
.ar-content h2 {
   font-family: 'Outfit', sans-serif;
   font-size: 1.3rem;
   font-weight: 700;
   color: #f0f0f0;
   margin: 2rem 0 .75rem;
   padding-top: .75rem;
   border-top: 1px solid rgba(170, 0, 0, .1)
}

@media (min-width: 601px) {
   .ar-content h2 {
      font-size: 1.5rem;
      margin: 3rem 0 1rem;
      padding-top: 1rem
   }
}

.ar-content h2:first-of-type {
   border-top: none;
   margin-top: 0
}

.ar-content h3 {
   font-family: 'Inter', sans-serif;
   font-size: 1rem;
   font-weight: 600;
   color: rgba(240, 240, 240, .85);
   margin: 1.5rem 0 .5rem
}

@media (min-width: 601px) {
   .ar-content h3 {
      font-size: 1.1rem;
      margin: 2rem 0 .75rem
   }
}

.ar-content p {
   color: rgba(240, 240, 240, .65);
   font-size: .9rem;
   line-height: 1.75;
   margin-bottom: 1rem
}

@media (min-width: 601px) {
   .ar-content p {
      font-size: .95rem;
      line-height: 1.8;
      margin-bottom: 1.25rem
   }
}

.ar-content strong {
   color: rgba(240, 240, 240, .85);
   font-weight: 600
}

.ar-content ul,
.ar-content ol {
   color: rgba(240, 240, 240, .6);
   font-size: .88rem;
   line-height: 1.75;
   margin: 0 0 1rem 1.25rem;
   padding-left: 0
}

@media (min-width: 601px) {

   .ar-content ul,
   .ar-content ol {
      font-size: .92rem;
      line-height: 1.8;
      margin: 0 0 1.25rem 1.5rem
   }
}

.ar-content li {
   margin-bottom: .35rem
}

/* ─── Insight callout box ─── */
.ar-insight {
   margin: 1.5rem 0;
   padding: 1rem 1.25rem;
   border-radius: 12px;
   background: linear-gradient(135deg, rgba(170, 0, 0, .08), rgba(170, 0, 0, .02));
   border-left: 4px solid #aa0000
}

@media (min-width: 601px) {
   .ar-insight {
      margin: 2rem 0;
      padding: 1.25rem 1.5rem
   }
}

.ar-insight__label {
   font-family: 'JetBrains Mono', monospace;
   font-size: .65rem;
   color: #aa0000;
   text-transform: uppercase;
   letter-spacing: .1em;
   margin-bottom: .5rem
}

.ar-insight p {
   color: rgba(240, 240, 240, .7);
   font-size: .88rem;
   margin-bottom: 0
}

@media (min-width: 601px) {
   .ar-insight p {
      font-size: .92rem
   }
}

/* ─── Stat cards: 2-col on mobile, auto-fit on desktop ─── */
.ar-stat-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: .75rem;
   margin: 1.5rem 0
}

@media (min-width: 601px) {
   .ar-stat-row {
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin: 2rem 0
   }
}

.ar-stat-card {
   padding: 1rem;
   border-radius: 12px;
   background: rgba(170, 0, 0, .04);
   border: 1px solid rgba(170, 0, 0, .1);
   text-align: center
}

@media (min-width: 601px) {
   .ar-stat-card {
      padding: 1.25rem
   }
}

.ar-stat-card__num {
   font-family: 'JetBrains Mono', monospace;
   font-size: 1.3rem;
   font-weight: 700;
   color: #aa0000
}

@media (min-width: 601px) {
   .ar-stat-card__num {
      font-size: 1.8rem
   }
}

.ar-stat-card__label {
   font-size: .65rem;
   color: rgba(240, 240, 240, .4);
   text-transform: uppercase;
   letter-spacing: .06em;
   margin-top: .3rem
}

@media (min-width: 601px) {
   .ar-stat-card__label {
      font-size: .72rem
   }
}

/* ─── Data tables ─── */
.ar-matrix {
   margin: 1.5rem 0;
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   border-radius: 12px;
   border: 1px solid rgba(170, 0, 0, .12)
}

@media (min-width: 601px) {
   .ar-matrix {
      margin: 2rem 0
   }
}

.ar-matrix table {
   width: 100%;
   border-collapse: collapse;
   min-width: 400px
}

@media (min-width: 601px) {
   .ar-matrix table {
      min-width: 500px
   }
}

.ar-matrix th {
   padding: .65rem .75rem;
   background: rgba(170, 0, 0, .08);
   font-size: .72rem;
   font-weight: 600;
   color: #f0f0f0;
   text-align: left;
   border-bottom: 1px solid rgba(170, 0, 0, .12)
}

@media (min-width: 601px) {
   .ar-matrix th {
      padding: .85rem 1rem;
      font-size: .78rem
   }
}

.ar-matrix td {
   padding: .6rem .75rem;
   font-size: .78rem;
   color: rgba(240, 240, 240, .6);
   border-bottom: 1px solid rgba(170, 0, 0, .05)
}

@media (min-width: 601px) {
   .ar-matrix td {
      padding: .75rem 1rem;
      font-size: .82rem
   }
}

.ar-matrix td:first-child {
   font-weight: 600;
   color: rgba(240, 240, 240, .75)
}

.ar-matrix tr:hover td {
   background: rgba(170, 0, 0, .03)
}

/* ─── Author box ─── */
.ar-author {
   margin: 2rem 0;
   padding: 1.25rem;
   border-radius: 14px;
   background: rgba(170, 0, 0, .04);
   border: 1px solid rgba(170, 0, 0, .12);
   display: flex;
   gap: 1rem;
   align-items: center
}

@media (min-width: 601px) {
   .ar-author {
      margin: 3rem 0;
      padding: 1.5rem;
      gap: 1.25rem
   }
}

.ar-author__avatar {
   width: 48px;
   height: 48px;
   border-radius: 50%;
   background: linear-gradient(135deg, #aa0000, #880000);
   display: flex;
   align-items: center;
   justify-content: center;
   color: #fff;
   font-family: 'Outfit', sans-serif;
   font-weight: 700;
   font-size: 1rem;
   flex-shrink: 0
}

@media (min-width: 601px) {
   .ar-author__avatar {
      width: 56px;
      height: 56px;
      font-size: 1.2rem
   }
}

.ar-author__name {
   font-weight: 600;
   color: #f0f0f0;
   font-size: .9rem
}

@media (min-width: 601px) {
   .ar-author__name {
      font-size: .95rem
   }
}

.ar-author__role {
   font-size: .75rem;
   color: rgba(240, 240, 240, .4);
   margin-top: .15rem
}

@media (min-width: 601px) {
   .ar-author__role {
      font-size: .78rem
   }
}

/* ─── Related reading ─── */
.ar-related {
   margin: 2rem 0;
   padding: 1.5rem;
   border-radius: 14px;
   background: linear-gradient(135deg, rgba(170, 0, 0, .08), rgba(170, 0, 0, .02));
   border: 1px solid rgba(170, 0, 0, .15)
}

@media (min-width: 601px) {
   .ar-related {
      margin: 3rem 0;
      padding: 2rem
   }
}

.ar-related h3 {
   font-family: 'Outfit', sans-serif;
   font-size: 1.1rem;
   color: #f0f0f0;
   margin-bottom: .5rem
}

@media (min-width: 601px) {
   .ar-related h3 {
      font-size: 1.2rem
   }
}

.ar-related p {
   color: rgba(240, 240, 240, .5);
   font-size: .85rem;
   margin-bottom: 1rem
}

@media (min-width: 601px) {
   .ar-related p {
      font-size: .88rem;
      margin-bottom: 1.25rem
   }
}

.ar-related__links {
   display: flex;
   gap: .5rem;
   flex-wrap: wrap
}

@media (min-width: 601px) {
   .ar-related__links {
      gap: .75rem
   }
}

.ar-related__link {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   padding: .5rem 1rem;
   border-radius: 8px;
   background: rgba(170, 0, 0, .06);
   border: 1px solid rgba(170, 0, 0, .15);
   color: rgba(240, 240, 240, .6);
   font-size: .8rem;
   font-weight: 500;
   text-decoration: none;
   transition: all .25s
}

@media (min-width: 601px) {
   .ar-related__link {
      padding: .6rem 1.2rem;
      font-size: .85rem
   }
}

.ar-related__link:hover {
   border-color: rgba(170, 0, 0, .4);
   color: #f0f0f0
}

/* ─── CTA box ─── */
.ar-cta {
   margin: 2rem 0 0;
   padding: 1.5rem;
   border-radius: 16px;
   background: linear-gradient(135deg, rgba(170, 0, 0, .1), rgba(170, 0, 0, .02));
   border: 1px solid rgba(170, 0, 0, .18);
   text-align: center
}

@media (min-width: 601px) {
   .ar-cta {
      margin: 3rem 0 0;
      padding: 2.5rem
   }
}

.ar-cta h3 {
   font-family: 'Outfit', sans-serif;
   font-size: 1.15rem;
   color: #f0f0f0;
   margin-bottom: .5rem
}

@media (min-width: 601px) {
   .ar-cta h3 {
      font-size: 1.3rem
   }
}

.ar-cta p {
   color: rgba(240, 240, 240, .5);
   font-size: .85rem;
   margin-bottom: 1rem
}

@media (min-width: 601px) {
   .ar-cta p {
      font-size: .9rem;
      margin-bottom: 1.25rem
   }
}

/* ─── Snowflake article extras (code blocks, matrix helpers) ─── */
.ar-code {
   margin: 1.5rem 0;
   padding: 1rem 1.25rem;
   border-radius: 10px;
   background: rgba(0, 0, 0, 0.3);
   border: 1px solid rgba(170, 0, 0, 0.1);
   font-family: 'JetBrains Mono', monospace;
   font-size: 0.75rem;
   color: rgba(240, 240, 240, 0.6);
   overflow-x: auto;
   -webkit-overflow-scrolling: touch;
   line-height: 1.7
}

@media (min-width: 601px) {
   .ar-code {
      font-size: 0.8rem
   }
}

.ar-code .kw {
   color: #aa0000
}

.ar-code .fn {
   color: #ff6b6b
}

.ar-code .cm {
   color: rgba(240, 240, 240, 0.3)
}

.ar-matrix .mx-strong {
   color: #aa0000;
   font-weight: 600
}

.ar-matrix .mx-weak {
   color: rgba(240, 240, 240, 0.35)
}

.ar-matrix .mx-mid {
   color: rgba(240, 240, 240, 0.55)
}

.ar-matrix th:first-child {
   border-right: 1px solid rgba(170, 0, 0, 0.08);
   min-width: 120px
}

@media (min-width: 601px) {
   .ar-matrix th:first-child {
      min-width: 140px
   }
}

.ar-matrix td:first-child {
   border-right: 1px solid rgba(170, 0, 0, 0.05)
}

.ar-cta__buttons {
   display: flex;
   justify-content: center;
   gap: .75rem;
   flex-wrap: wrap
}

@media (min-width: 601px) {
   .ar-cta__buttons {
      gap: 1rem
   }
}

/* ─── Main content overflow protection for articles ─── */
main#main-content {
   overflow-x: hidden;
   max-width: 100vw
}