/* ==========================================================================
   Base Variables & Reset (Next-Gen SaaS Theme: Pure Black & Electric Blue)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
   --bg-pure: #000000;
   --bg-surface: #0a0a0a;
   --bg-elevated: #111111;
   --accent-blue: #0070F3;
   --accent-purple: #7928CA;
   --accent-cyan: #32E6E2;
   --text-main: #EDEDED;
   --text-muted: #888888;
   --border-subtle: #222222;
   --border-glow: rgba(0, 112, 243, 0.3);
   --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
   --transition-snappy: 0.2s cubic-bezier(0, 0, 0, 1);
   --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   background-color: var(--bg-pure);
}

body {
   font-family: var(--font-sans);
   color: var(--text-main);
   line-height: 1.6;
   overflow-x: hidden;
   position: relative;
   -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
   width: 10px;
}

::-webkit-scrollbar-track {
   background: var(--bg-pure);
}

::-webkit-scrollbar-thumb {
   background: var(--border-subtle);
   border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
   background: #444;
}

::selection {
   background: var(--accent-blue);
   color: #fff;
}

/* Subtle Background Mesh & Glows */
body::before {
   content: '';
   position: fixed;
   inset: 0;
   z-index: -2;
   pointer-events: none;
   background-image: radial-gradient(circle at 50% 0%, rgba(121, 40, 202, 0.15), transparent 40%),
      radial-gradient(circle at 80% 80%, rgba(0, 112, 243, 0.1), transparent 40%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
   font-weight: 700;
   line-height: 1.1;
   letter-spacing: -0.04em;
}

a {
   text-decoration: none;
   color: inherit;
   transition: var(--transition-snappy);
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 2rem;
}

.text-center {
   text-align: center;
}

.text-gradient {
   background: linear-gradient(to right, var(--accent-blue), var(--accent-purple), var(--accent-cyan));
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
   background-clip: text;
   background-size: 200% auto;
   animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
   0% {
      background-position: 0% 50%;
   }

   50% {
      background-position: 100% 50%;
   }

   100% {
      background-position: 0% 50%;
   }
}

.title-xl {
   font-size: clamp(3.5rem, 7vw, 6.5rem);
   letter-spacing: -0.05em;
   font-weight: 800;
   line-height: 1;
   margin-bottom: 1.5rem;
}

.title-lg {
   font-size: clamp(2.5rem, 5vw, 4.5rem);
   letter-spacing: -0.04em;
   margin-bottom: 1rem;
}

.subtitle {
   font-size: 1.25rem;
   color: var(--text-muted);
   max-width: 600px;
   font-weight: 400;
   margin-bottom: 2rem;
}

.subtitle.center {
   margin: 0 auto 4rem;
}

/* Minimalist Buttons */
.btn {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0.9rem 2rem;
   font-size: 1rem;
   font-weight: 500;
   border-radius: 6px;
   cursor: pointer;
   transition: var(--transition-snappy);
   position: relative;
   border: 1px solid transparent;
   letter-spacing: -0.01em;
}

.btn-primary {
   background: var(--text-main);
   color: var(--bg-pure);
}

.btn-primary:hover {
   background: #ccc;
   transform: translateY(-1px);
}

.btn-accent {
   background: var(--accent-blue);
   color: #fff;
   box-shadow: 0 4px 14px 0 rgba(0, 118, 255, 0.39);
}

.btn-accent:hover {
   background: rgba(0, 118, 255, 0.9);
   box-shadow: 0 6px 20px rgba(0, 118, 255, 0.23);
   transform: translateY(-1px);
}

.btn-outline {
   background: transparent;
   color: var(--text-main);
   border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
   border-color: var(--text-main);
   background: rgba(255, 255, 255, 0.05);
}

/* Bento Box Container */
.bento-card {
   background: var(--bg-surface);
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   padding: 2.5rem;
   position: relative;
   overflow: hidden;
   transition: var(--transition-smooth);
}

.bento-card:hover {
   border-color: #444;
}

/* ==========================================================================
   STRICT HEADER CONSISTENCY
   ========================================================================== */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 9999;
   padding: 1.2rem 0;
   transition: all 0.3s ease;
   border-bottom: 1px solid transparent;
   background: transparent;
}

.site-header.scrolled {
   background: rgba(0, 0, 0, 0.8);
   backdrop-filter: saturate(180%) blur(10px);
   -webkit-backdrop-filter: saturate(180%) blur(10px);
   border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
   display: flex;
   justify-content: space-between;
   align-items: center;
}

.logo-container img {
   height: 55px;
   width: auto;
   filter: brightness(0) invert(1);
}

.nav-links {
   display: flex;
   gap: 2.5rem;
   align-items: center;
}

.nav-links a:not(.btn) {
   font-size: 0.9rem;
   font-weight: 500;
   color: var(--text-muted);
   transition: 0.2s;
}

.nav-links a:not(.btn):hover {
   color: var(--text-main);
}

.mobile-menu-btn {
   display: none;
   background: none;
   border: none;
   color: #fff;
   font-size: 2rem;
   cursor: pointer;
}

/* ==========================================================================
   Global Animations
   ========================================================================== */
.fade-up {
   opacity: 0;
   transform: translateY(20px);
   transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
   opacity: 1;
   transform: translateY(0);
}

.stagger-grid .stagger-item {
   opacity: 0;
   transform: translateY(20px);
   transition: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-grid.visible .stagger-item {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   Index Section 1: Hero & Animated CSS Sphere
   ========================================================================== */
.hero {
   min-height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   padding-top: 100px;
   text-align: center;
   position: relative;
}

.hero-content {
   max-width: 900px;
   position: relative;
   z-index: 2;
   display: flex;
   flex-direction: column;
   align-items: center;
}

.hero-pill {
   display: inline-flex;
   align-items: center;
   gap: 0.5rem;
   padding: 0.4rem 1rem;
   background: rgba(255, 255, 255, 0.05);
   border: 1px solid var(--border-subtle);
   border-radius: 50px;
   font-size: 0.85rem;
   font-weight: 500;
   margin-bottom: 2rem;
   color: var(--text-muted);
}

.hero-pill span {
   display: inline-block;
   width: 8px;
   height: 8px;
   background: var(--accent-blue);
   border-radius: 50%;
   box-shadow: 0 0 10px var(--accent-blue);
}

.hero-actions {
   display: flex;
   justify-content: center;
   gap: 1rem;
   margin-top: 1rem;
}

/* Ambient CSS Glowing Orb */
.hero-orb {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 500px;
   height: 500px;
   z-index: 0;
   pointer-events: none;
}

.orb-core {
   position: absolute;
   inset: 100px;
   background: radial-gradient(circle, var(--accent-purple), var(--accent-blue), transparent 60%);
   border-radius: 50%;
   filter: blur(60px);
   opacity: 0.5;
   animation: pulseOrb 8s infinite alternate;
}

.orb-ring {
   position: absolute;
   inset: 0;
   border-radius: 50%;
   border: 1px dashed rgba(255, 255, 255, 0.1);
   animation: spinRing 20s linear infinite;
}

@keyframes pulseOrb {
   0% {
      transform: scale(0.8);
      opacity: 0.3;
   }

   100% {
      transform: scale(1.2);
      opacity: 0.6;
   }
}

@keyframes spinRing {
   0% {
      transform: rotate(0deg);
   }

   100% {
      transform: rotate(360deg);
   }
}

/* ==========================================================================
   Index Section 2: Logo Marquee (Minimal)
   ========================================================================== */
.client-marquee {
   padding: 4rem 0;
   border-top: 1px solid var(--border-subtle);
   border-bottom: 1px solid var(--border-subtle);
   background: var(--bg-surface);
   overflow: hidden;
   display: flex;
}

.marquee-track {
   display: flex;
   white-space: nowrap;
   animation: scrollLeft 30s linear infinite;
}

.m-logo {
   font-size: 1.5rem;
   font-weight: 800;
   color: #333;
   margin: 0 4rem;
   text-transform: uppercase;
   letter-spacing: -1px;
   transition: 0.3s;
}

.m-logo:hover {
   color: var(--text-main);
}

@keyframes scrollLeft {
   0% {
      transform: translateX(0);
   }

   100% {
      transform: translateX(-50%);
   }
}

/* ==========================================================================
   Index Section 3: Value Prop (Bento Box Grid)
   ========================================================================== */
.value-section {
   padding: 8rem 0;
}

.bento-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   grid-auto-rows: minmax(200px, auto);
   gap: 1.5rem;
}

.bento-card.span-2 {
   grid-column: span 2;
}

.bento-card.span-row-2 {
   grid-row: span 2;
}

.bento-header {
   margin-bottom: 1.5rem;
}

.bento-icon {
   width: 40px;
   height: 40px;
   border-radius: 8px;
   background: rgba(255, 255, 255, 0.1);
   display: flex;
   align-items: center;
   justify-content: center;
   margin-bottom: 1rem;
   color: #fff;
   font-weight: bold;
}

.bento-card h3 {
   font-size: 1.5rem;
   margin-bottom: 0.5rem;
}

.bento-card p {
   color: var(--text-muted);
   font-size: 1rem;
}

.metric-large {
   font-size: 4rem;
   font-weight: 800;
   letter-spacing: -0.05em;
   line-height: 1;
   margin-bottom: 0.5rem;
}

.metric-lbl {
   color: var(--text-muted);
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* ==========================================================================
   Index Section 4: Services (Animated Border Cards)
   ========================================================================== */
.services-section {
   padding: 8rem 0;
   border-top: 1px solid var(--border-subtle);
}

.srv-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
}

/* Spinning Conic Gradient Border */
.anim-card {
   position: relative;
   background: var(--bg-surface);
   border-radius: 12px;
   padding: 1px;
   overflow: hidden;
   transition: 0.3s;
   z-index: 1;
   cursor: pointer;
}

.anim-card::before {
   content: '';
   position: absolute;
   top: -50%;
   left: -50%;
   width: 200%;
   height: 200%;
   background: conic-gradient(transparent, transparent, transparent, var(--accent-blue));
   animation: spin 4s linear infinite;
   z-index: -2;
   opacity: 0;
   transition: 0.3s;
}

.anim-card::after {
   content: '';
   position: absolute;
   inset: 1px;
   background: var(--bg-surface);
   border-radius: 11px;
   z-index: -1;
}

.anim-card:hover::before {
   opacity: 1;
}

.anim-card:hover {
   transform: translateY(-5px);
   box-shadow: 0 10px 30px rgba(0, 112, 243, 0.15);
}

.srv-content {
   padding: 2.5rem;
   position: relative;
   z-index: 2;
}

.srv-content h3 {
   font-size: 1.3rem;
   margin-bottom: 0.8rem;
}

.srv-content p {
   color: var(--text-muted);
   font-size: 0.95rem;
}

@keyframes spin {
   100% {
      transform: rotate(360deg);
   }
}

/* ==========================================================================
   Index Section 5: Process (Horizontal Line)
   ========================================================================== */
.process-section {
   padding: 8rem 0;
   background: var(--bg-surface);
   border-top: 1px solid var(--border-subtle);
   border-bottom: 1px solid var(--border-subtle);
}

.process-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 3rem;
   position: relative;
}

/* Horizontal Line behind nodes */
.process-grid::before {
   content: '';
   position: absolute;
   top: 24px;
   left: 0;
   width: 100%;
   height: 1px;
   background: var(--border-subtle);
   z-index: 0;
}

@media (max-width: 768px) {
   .process-grid::before {
      display: none;
   }
}

.process-node {
   position: relative;
   z-index: 1;
}

.p-dot {
   width: 48px;
   height: 48px;
   background: var(--bg-pure);
   border: 1px solid var(--border-subtle);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   margin-bottom: 2rem;
   transition: 0.3s;
}

.process-node:hover .p-dot {
   border-color: var(--accent-blue);
   color: var(--accent-blue);
   box-shadow: 0 0 15px var(--border-glow);
}

.process-node h3 {
   font-size: 1.4rem;
   margin-bottom: 1rem;
}

.process-node p {
   color: var(--text-muted);
   font-size: 1rem;
}

/* ==========================================================================
   Index Section 6: ROI Calculator
   ========================================================================== */
.calculator-section {
   padding: 8rem 0;
}

.calc-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   background: var(--bg-surface);
   border: 1px solid var(--border-subtle);
   border-radius: 16px;
   overflow: hidden;
}

.calc-inputs {
   padding: 4rem;
}

.calc-outputs {
   padding: 4rem;
   background: #050505;
   border-left: 1px solid var(--border-subtle);
   display: flex;
   flex-direction: column;
   justify-content: center;
}

.range-box {
   margin-bottom: 3rem;
}

.range-header {
   display: flex;
   justify-content: space-between;
   margin-bottom: 1rem;
   font-weight: 600;
}

.range-val {
   color: var(--text-main);
   font-variant-numeric: tabular-nums;
}

input[type=range] {
   -webkit-appearance: none;
   width: 100%;
   background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
   width: 100%;
   height: 4px;
   background: var(--border-subtle);
   border-radius: 2px;
}

input[type=range]::-webkit-slider-thumb {
   -webkit-appearance: none;
   height: 20px;
   width: 20px;
   background: var(--text-main);
   border-radius: 50%;
   cursor: pointer;
   margin-top: -8px;
   transition: 0.2s;
   box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

input[type=range]:hover::-webkit-slider-thumb {
   transform: scale(1.2);
   background: var(--accent-blue);
   box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.2);
}

.out-item {
   margin-bottom: 3rem;
}

.out-item:last-child {
   margin-bottom: 0;
}

.out-lbl {
   font-size: 0.9rem;
   color: var(--text-muted);
   margin-bottom: 0.5rem;
   display: block;
}

.out-val {
   font-size: 3.5rem;
   font-weight: 800;
   letter-spacing: -0.05em;
   line-height: 1;
   font-variant-numeric: tabular-nums;
}

.out-val.blue {
   color: var(--accent-blue);
   text-shadow: 0 0 20px rgba(0, 112, 243, 0.3);
}

/* ==========================================================================
   Index Section 7: Live Reports (CSS Bar Chart)
   ========================================================================== */
.reports-section {
   padding: 8rem 0;
   border-top: 1px solid var(--border-subtle);
}

.chart-container {
   background: var(--bg-surface);
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   padding: 3rem;
   margin-top: 3rem;
}

.css-chart {
   display: flex;
   align-items: flex-end;
   justify-content: space-between;
   height: 250px;
   border-bottom: 1px solid var(--border-subtle);
   padding-bottom: 1rem;
}

.bar-col {
   display: flex;
   flex-direction: column;
   align-items: center;
   width: 40px;
   height: 100%;
   justify-content: flex-end;
}

.bar {
   width: 100%;
   background: var(--text-main);
   border-radius: 4px 4px 0 0;
   transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
   position: relative;
}

.bar.accent {
   background: var(--accent-blue);
   box-shadow: 0 0 15px var(--border-glow);
}

.bar::before {
   content: attr(data-val);
   position: absolute;
   top: -30px;
   left: 50%;
   transform: translateX(-50%);
   font-size: 0.8rem;
   font-weight: 600;
   color: var(--text-muted);
}

.bar-lbl {
   margin-top: 1rem;
   font-size: 0.85rem;
   color: var(--text-muted);
}

/* ==========================================================================
   Index Section 8: Industries Matrix
   ========================================================================== */
.industries-section {
   padding: 8rem 0;
   background: var(--bg-surface);
   border-top: 1px solid var(--border-subtle);
   border-bottom: 1px solid var(--border-subtle);
}

.ind-grid {
   display: grid;
   grid-template-columns: repeat(4, 1fr);
   gap: 1px;
   background: var(--border-subtle);
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   overflow: hidden;
}

.ind-item {
   background: var(--bg-surface);
   padding: 4rem 2rem;
   text-align: center;
   transition: 0.3s;
}

.ind-item:hover {
   background: #111;
}

.ind-icon {
   font-size: 2rem;
   margin-bottom: 1rem;
   filter: grayscale(1);
   transition: 0.3s;
}

.ind-item:hover .ind-icon {
   filter: grayscale(0);
   transform: scale(1.1);
}

.ind-item h4 {
   font-size: 1rem;
   font-weight: 600;
}

/* ==========================================================================
   Index Section 9: Minimalist Testimonials
   ========================================================================== */
.testi-section {
   padding: 8rem 0;
}

.testi-grid {
   display: grid;
   grid-template-columns: repeat(3, 1fr);
   gap: 2rem;
   margin-top: 4rem;
}

.testi-card {
   padding: 2.5rem;
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   background: var(--bg-surface);
   display: flex;
   flex-direction: column;
   justify-content: space-between;
}

.testi-quote {
   font-size: 1.1rem;
   color: var(--text-muted);
   margin-bottom: 2rem;
   line-height: 1.6;
}

.testi-author {
   display: flex;
   align-items: center;
   gap: 1rem;
}

.t-avatar {
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: #333;
}

.t-info h5 {
   font-size: 0.95rem;
   margin-bottom: 0.1rem;
}

.t-info span {
   font-size: 0.85rem;
   color: var(--text-muted);
}

/* ==========================================================================
   Index Section 10: Final CTA
   ========================================================================== */
.cta-section {
   padding: 10rem 0;
   text-align: center;
   position: relative;
   overflow: hidden;
   border-top: 1px solid var(--border-subtle);
}

.cta-section::before {
   content: '';
   position: absolute;
   inset: 0;
   background: radial-gradient(circle at center, rgba(0, 112, 243, 0.1), transparent 60%);
   pointer-events: none;
}

.cta-content {
   position: relative;
   z-index: 2;
   max-width: 600px;
   margin: 0 auto;
}

.cta-content h2 {
   font-size: clamp(2.5rem, 5vw, 4rem);
   margin-bottom: 1.5rem;
}

.cta-form {
   display: flex;
   gap: 0.5rem;
   margin-top: 3rem;
}

.cta-input {
   flex: 1;
   padding: 0.9rem 1.5rem;
   border: 1px solid var(--border-subtle);
   border-radius: 6px;
   background: var(--bg-surface);
   color: var(--text-main);
   font-family: var(--font-sans);
   font-size: 1rem;
   outline: none;
   transition: 0.3s;
}

.cta-input:focus {
   border-color: var(--accent-blue);
   box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
}

/* ==========================================================================
   STRICT FOOTER CONSISTENCY
   ========================================================================== */
.site-footer {
   background: var(--bg-pure);
   padding: 5rem 0 2rem;
   border-top: 1px solid var(--border-subtle);
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1.5fr;
   gap: 4rem;
   margin-bottom: 4rem;
}

.footer-brand img {
   height: 35px;
   margin-bottom: 1.5rem;
   filter: brightness(0) invert(1);
}

.footer-brand p {
   color: var(--text-muted);
   font-size: 0.9rem;
   max-width: 300px;
}

.footer-title {
   font-size: 0.95rem;
   font-weight: 600;
   color: var(--text-main);
   margin-bottom: 1.5rem;
}

.footer-links li {
   margin-bottom: 0.8rem;
}

.footer-links a,
.footer-links span {
   color: var(--text-muted);
   font-size: 0.9rem;
   transition: 0.2s;
}

.footer-links a:hover {
   color: var(--text-main);
}

.footer-bottom {
   text-align: center;
   padding-top: 2rem;
   border-top: 1px solid var(--border-subtle);
   color: var(--text-muted);
   font-size: 0.85rem;
}

/* ==========================================================================
   Inner Pages (Contact, Legal)
   ========================================================================== */
.page-hero {
   padding: 12rem 0 5rem;
   text-align: center;
   border-bottom: 1px solid var(--border-subtle);
   background: var(--bg-surface);
}

/* Contact Form */
.contact-section {
   padding: 8rem 0;
}

.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1.5fr;
   gap: 5rem;
}

.c-info-block {
   margin-bottom: 3rem;
}

.c-info-block h4 {
   font-size: 1rem;
   color: var(--text-muted);
   margin-bottom: 0.5rem;
   font-weight: 500;
}

.c-info-block p {
   font-size: 1.1rem;
   font-weight: 500;
}

.modern-form {
   background: var(--bg-surface);
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   padding: 4rem;
}

.form-group {
   margin-bottom: 2rem;
}

.form-label {
   display: block;
   font-size: 0.9rem;
   font-weight: 500;
   color: var(--text-muted);
   margin-bottom: 0.5rem;
}

.form-control {
   width: 100%;
   background: var(--bg-pure);
   border: 1px solid var(--border-subtle);
   border-radius: 6px;
   padding: 1rem;
   color: var(--text-main);
   font-family: var(--font-sans);
   font-size: 1rem;
   outline: none;
   transition: 0.2s;
}

.form-control:focus {
   border-color: var(--accent-blue);
   box-shadow: 0 0 0 2px rgba(0, 112, 243, 0.2);
}

textarea.form-control {
   resize: vertical;
   min-height: 120px;
}

/* Legal Content */
.legal-wrapper {
   padding: 6rem 0;
}

.legal-content {
   max-width: 800px;
   margin: 0 auto;
   color: var(--text-muted);
   font-size: 1.05rem;
}

.legal-content h2 {
   color: var(--text-main);
   font-size: 1.8rem;
   font-weight: 700;
   margin: 3rem 0 1.5rem;
   letter-spacing: -0.02em;
}

.legal-content p {
   margin-bottom: 1.5rem;
   line-height: 1.8;
}

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
   .bento-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .hero-orb {
      display: none;
   }

   .srv-grid,
   .process-grid,
   .testi-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .calc-wrapper,
   .contact-grid {
      grid-template-columns: 1fr;
      gap: 3rem;
   }

   .calc-outputs {
      border-left: none;
      border-top: 1px solid var(--border-subtle);
   }

   .ind-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .footer-grid {
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
   }
}

@media (max-width: 768px) {
   .nav-links {
      position: fixed;
      top: 0;
      right: -100%;
      width: 100%;
      height: 100vh;
      background: var(--bg-pure);
      flex-direction: column;
      justify-content: center;
      transition: 0.3s ease;
      z-index: 999;
      border-left: 1px solid var(--border-subtle);
   }

   .nav-links.active {
      right: 0;
   }

   .mobile-menu-btn {
      display: block;
      z-index: 1001;
      position: relative;
   }

   .bento-card.span-2 {
      grid-column: span 1;
   }

   .bento-grid,
   .srv-grid,
   .process-grid,
   .testi-grid,
   .footer-grid {
      grid-template-columns: 1fr;
   }

   .calc-inputs,
   .calc-outputs,
   .modern-form,
   .chart-container {
      padding: 2rem;
   }

   .cta-form {
      flex-direction: column;
   }

   .css-chart {
      overflow-x: auto;
      gap: 1.5rem;
      justify-content: flex-start;
   }
}