/* ==========================================================================
   HWD BRAND SYSTEM & BASE VARIABLES
   ========================================================================== */

:root {
  /* Brand Color Palette */
  --bg-black: #080808;
  --bg-graphite: #151515;
  --text-white: #F5F5F2;
  --text-grey: #8C8C8C;
  --accent-lime: #00C2FF;
  
  /* Semantic UI Colors */
  --color-border: rgba(245, 245, 242, 0.08);
  --color-border-hover: rgba(245, 245, 242, 0.18);
  --color-overlay: rgba(8, 8, 8, 0.85);
  --color-card-bg: var(--bg-graphite);
  
  /* Typography Systems */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Layout Spacing */
  --section-padding: 8rem 0;
  --container-width: 1280px;

  /* Easing curves */
  --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Browser UI settings */
  color-scheme: dark;
}

/* ==========================================================================
   RESET & FOUNDATIONAL RULES
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-black);
  color: var(--text-white);
}

body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
}

/* Custom Scrollbar */
@supports (scrollbar-color: auto) {
  html {
    scrollbar-color: var(--accent-lime) var(--bg-graphite);
    scrollbar-width: thin;
  }
}

@supports not (scrollbar-color: auto) {
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }
  ::-webkit-scrollbar-track {
    background: var(--bg-graphite);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--accent-lime);
    border-radius: 0px;
  }
}

/* Heading Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-transform: uppercase;
  text-wrap: balance; /* Modern line-balancing */
}

p, li {
  color: var(--text-grey);
  font-weight: 400;
  text-wrap: pretty; /* Modern orphan-prevention */
}

a {
  text-decoration: none;
  color: inherit;
}

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

button, input, textarea, select {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
}

/* Common Layout Components */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.text-center {
  text-align: center;
}

/* Page Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--bg-graphite), var(--accent-lime));
  width: 0%;
  z-index: 10000;
  transition: width 0.08s linear;
}

/* ==========================================================================
   BUTTONS & CTAS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.1rem 2.2rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s var(--ease-out-expo);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.7rem 1.4rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1.4rem 3rem;
  font-size: 0.95rem;
}

.btn-full {
  width: 100%;
}

/* Primary CTA: Lime */
.btn-lime {
  background-color: var(--accent-lime);
  color: var(--bg-black);
}

.btn-lime:hover {
  background-color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 194, 255, 0.25);
}

/* Secondary CTA: Transparent Border */
.btn-secondary {
  background-color: transparent;
  color: var(--text-white);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: rgba(245, 245, 242, 0.05);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

/* Ripple click animation */
.ripple-span {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  width: 60px;
  height: 60px;
  transform: scale(0);
  animation: buttonRipple 0.5s linear;
  pointer-events: none;
}

@keyframes buttonRipple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ==========================================================================
   NAVIGATION (Sticky, Refined, Minimalist)
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-out-expo);
}

/* Compact layout on scroll */
.header.scrolled {
  background-color: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--color-border);
  padding: 0.65rem 0;
}

.header:not(.scrolled) {
  padding: 1.5rem 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.05em;
  color: var(--text-white);
  display: flex;
  align-items: center;
}

.logo-dot {
  color: var(--accent-lime);
}

.nav-desktop {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-grey);
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-lime);
  transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
  color: var(--text-white);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 14px;
  cursor: pointer;
  background: none;
  border: none;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-white);
  transition: all 0.3s var(--ease-out-expo);
}

/* Open states for menu toggle */
.menu-toggle.open .bar-1 {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle.open .bar-2 {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==========================================================================
   MOBILE MENU DRAWER
   ========================================================================== */

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--bg-black);
  z-index: 99;
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease-out-expo);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-drawer.open {
  transform: translateY(0);
  visibility: visible;
}

.drawer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 70%;
  width: 100%;
  padding: 6rem 2rem 2rem;
}

.nav-mobile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text-grey);
  transition: color 0.3s ease;
  text-transform: uppercase;
}

.mobile-nav-link:hover {
  color: var(--accent-lime);
}

.drawer-footer {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.drawer-tagline {
  font-size: 0.8rem;
  color: var(--text-grey);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.drawer-socials {
  display: flex;
  gap: 2rem;
}

.drawer-socials a {
  font-size: 0.9rem;
  color: var(--text-white);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-black);
  overflow: hidden;
  padding-top: 5rem;
  border-bottom: 1px solid var(--color-border);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
  z-index: 1;
}

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

.hero-content {
  flex: 1;
  max-width: 660px;
}

.tagline-badge {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-lime);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.tagline-badge::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent-lime);
}

.hero-title {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 2.5rem;
}

.word-wrapper {
  display: block;
  overflow: hidden;
}

.word-wrapper span {
  display: block;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  max-width: 580px;
  line-height: 1.6;
  margin-bottom: 3.5rem;
  color: var(--text-grey);
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

/* ==========================================================================
   3D BROWSER MOCKUP (Visual Signature)
   ========================================================================== */

@keyframes float-3d {
  0%, 100% {
    transform: perspective(1000px) rotateY(-12deg) rotateX(4deg) translateY(0);
  }
  50% {
    transform: perspective(1000px) rotateY(-14deg) rotateX(6deg) translateY(-12px);
  }
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.85; }
}

.hero-3d-wrap {
  flex: 1;
  max-width: 500px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 3;
}

.browser-3d {
  width: 100%;
  background: #0d0d0f;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.65), 
    0 0 50px rgba(0, 194, 255, 0.06), 
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: float-3d 6s ease-in-out infinite;
  transform: perspective(1000px) rotateY(-12deg) rotateX(4deg);
  transform-style: preserve-3d;
  overflow: hidden;
}

.b3-bar {
  background: #141416;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.b3-dots {
  display: flex;
  gap: 0.35rem;
}

.b3-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: block;
}

.b3-dots span:nth-child(1) { background: #ff5f57; }
.b3-dots span:nth-child(2) { background: #febc2e; }
.b3-dots span:nth-child(3) { background: #28c840; }

.b3-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.b3-url svg {
  width: 9px;
  height: 9px;
  stroke: rgba(255, 255, 255, 0.2);
  fill: none;
  stroke-width: 2.2;
}

.b3-body {
  position: relative;
}

.b3-nav {
  background: #0a0a0c;
  padding: 0.45rem 0.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.b3-logo {
  width: 44px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-lime), var(--text-white));
}

.b3-navlinks {
  display: flex;
  gap: 0.5rem;
}

.b3-navlinks span {
  width: 18px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}

.b3-cta-sm {
  width: 32px;
  height: 11px;
  border-radius: 4px;
  background: var(--accent-lime);
}

.b3-hero {
  background: linear-gradient(135deg, #050507 0%, #10150c 60%, #050507 100%);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
}

.b3-hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(0, 194, 255, 0.12), transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(245, 245, 242, 0.05), transparent 40%);
}

.b3-h1 {
  width: 70%;
  height: 9px;
  border-radius: 4px;
  background: var(--text-white);
  margin-bottom: 0.4rem;
  position: relative;
  z-index: 1;
}

.b3-h2 {
  width: 50%;
  height: 9px;
  border-radius: 4px;
  background: var(--accent-lime);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.b3-h3 {
  width: 38%;
  height: 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.b3-sub {
  width: 75%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  margin-bottom: 0.25rem;
  position: relative;
  z-index: 1;
}

.b3-sub2 {
  width: 55%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 1;
}

.b3-btns {
  display: flex;
  gap: 0.4rem;
  position: relative;
  z-index: 1;
}

.b3-btn1 {
  width: 54px;
  height: 16px;
  border-radius: 8px;
  background: var(--accent-lime);
}

.b3-btn2 {
  width: 44px;
  height: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.b3-cards {
  background: #0a0a0c;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.b3-card {
  background: #111114;
  border-radius: 5px;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.b3-card-ic {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: rgba(0, 194, 255, 0.15);
  margin-bottom: 0.35rem;
}

.b3-card-t {
  width: 60%;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.25rem;
}

.b3-card-s {
  width: 80%;
  height: 3px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 0.15rem;
}

.b3-card-s2 {
  width: 50%;
  height: 3px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.06);
}

.b3-stats {
  background: #070709;
  padding: 0.65rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.b3-stat {
  text-align: center;
}

.b3-stat-n {
  height: 7px;
  border-radius: 3.5px;
  background: linear-gradient(90deg, var(--accent-lime), rgba(255, 255, 255, 0.6));
  margin-bottom: 0.25rem;
  animation: glow-pulse 2s ease-in-out infinite;
}

.b3-stat-l {
  height: 3px;
  border-radius: 1.5px;
  background: rgba(255, 255, 255, 0.08);
  width: 60%;
  margin: 0 auto;
}

.b3-reflection {
  position: absolute;
  top: -20px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.06), transparent 70%);
  pointer-events: none;
}

.b3-badge {
  position: absolute;
  bottom: -12px;
  left: 15px;
  background: var(--text-white);
  border-radius: 8px;
  padding: 0.55rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.06);
  animation: float-3d 6s ease-in-out infinite;
  animation-delay: -0.5s;
}

.b3-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25d366;
  animation: glow-pulse 1.5s infinite;
  flex-shrink: 0;
}

.b3-badge-text {
  font-size: 0.62rem;
  font-family: var(--font-body);
  color: #111;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.b3-badge-sub {
  font-size: 0.55rem;
  font-family: var(--font-body);
  color: #555;
  white-space: nowrap;
}

/* ==========================================================================
   TICKER BRAND BENEFITS
   ========================================================================== */

.ticker-wrap {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #fff 8%, #fff 92%, transparent);
  background-color: var(--bg-black);
}

.ticker-inner {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: tickerScroll 26s linear infinite;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-grey);
  white-space: nowrap;
}

.ticker-item svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-lime);
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   SERVICES SECTION (WHAT WE BUILD)
   ========================================================================== */

.services-section {
  background-color: var(--bg-black);
  padding: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
}

.section-header {
  margin-bottom: 5rem;
}

.section-num {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-lime);
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-grey);
  max-width: 650px;
}

.svc-list {
  display: flex;
  flex-direction: column;
}

.svc-row {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  align-items: center;
  gap: 3rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s var(--ease-out-expo);
  border-radius: 0;
}

.svc-row:first-child {
  border-top: 1px solid var(--color-border);
}

.svc-row:hover {
  background: rgba(245, 245, 242, 0.012);
  padding-left: 1rem;
  border-bottom-color: rgba(245, 245, 242, 0.15);
}

.svc-n {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-grey);
  transition: color 0.3s ease;
}

.svc-row:hover .svc-n {
  color: var(--accent-lime);
}

.svc-ttl {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.svc-dsc {
  font-size: 1rem;
  color: var(--text-grey);
  line-height: 1.65;
  max-width: 60ch;
  transition: color 0.3s ease;
}

.svc-row:hover .svc-dsc {
  color: var(--text-white);
}

.svc-meta-chips {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
}

.svc-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.svc-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-grey);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.svc-row:hover .svc-chip {
  border-color: rgba(0, 194, 255, 0.2);
  color: var(--accent-lime);
}

.svc-arr {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out-expo);
  opacity: 0;
  transform: translateX(-8px);
}

.svc-row:hover .svc-arr {
  opacity: 1;
  transform: none;
  border-color: var(--accent-lime);
  background-color: rgba(0, 194, 255, 0.05);
}

.svc-arr svg {
  width: 15px;
  height: 15px;
  stroke: var(--accent-lime);
  fill: none;
  stroke-width: 2.5;
}

/* ==========================================================================
   PROCESS Timeline Grid
   ========================================================================== */

.process-section {
  background-color: var(--bg-black);
  padding: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
}

.proc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 5rem;
}

.proc-cell {
  background: var(--bg-black);
  padding: 3rem 2.5rem;
  position: relative;
  transition: background 0.3s ease;
}

.proc-cell:hover {
  background: var(--bg-graphite);
}

.proc-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  color: rgba(245, 245, 242, 0.03);
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  transition: color 0.3s ease;
}

.proc-cell:hover .proc-num {
  color: rgba(0, 194, 255, 0.04);
}

.proc-ico {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(0, 194, 255, 0.03);
  border: 1px solid rgba(0, 194, 255, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

.proc-cell:hover .proc-ico {
  background: rgba(0, 194, 255, 0.08);
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.1);
}

.proc-ico svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-lime);
  fill: none;
  stroke-width: 1.8;
}

.proc-ttl {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.proc-dsc {
  font-size: 0.98rem;
  color: var(--text-grey);
  line-height: 1.65;
}

/* ==========================================================================
   WHY HWD SECTION (Guarantees & Pillars)
   ========================================================================== */

.about-section {
  background-color: var(--bg-black);
  padding: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
}

.why-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.why-feats {
  display: flex;
  flex-direction: column;
}

.why-feat {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.8rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: padding-left 0.3s ease;
}

.why-feat:hover {
  padding-left: 0.75rem;
  border-bottom-color: var(--color-border-hover);
}

.why-ico {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: rgba(0, 194, 255, 0.02);
  border: 1px solid rgba(0, 194, 255, 0.1);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.3s ease;
}

.why-feat:hover .why-ico {
  background: rgba(0, 194, 255, 0.08);
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.08);
}

.why-ico svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-lime);
  fill: none;
  stroke-width: 2;
}

.why-ttl {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.35rem;
}

.why-dsc {
  font-size: 0.98rem;
  color: var(--text-grey);
  line-height: 1.6;
}

/* Side guarantees card */
.why-right-sticky-card {
  position: sticky;
  top: 90px;
}

.why-sticky-card {
  background: var(--bg-graphite);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 3rem;
}

.why-card-ttl {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  line-height: 1.25;
}

.why-card-desc {
  font-size: 0.95rem;
  color: var(--text-grey);
  line-height: 1.75;
  margin-bottom: 2rem;
}

.why-guar {
  background: rgba(0, 194, 255, 0.02);
  border: 1px solid rgba(0, 194, 255, 0.1);
  border-radius: 4px;
  padding: 1.2rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.why-guar svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-lime);
  fill: none;
  stroke-width: 2.2;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-guar-t {
  font-size: 0.85rem;
  color: var(--text-grey);
  line-height: 1.6;
}

.why-guar-t strong {
  color: var(--text-white);
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

/* ==========================================================================
   PORTFOLIO / WORK SHOWCASE
   ========================================================================== */

.portfolio-section {
  padding: var(--section-padding);
  border-bottom: 1px solid var(--color-border);
}

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

.portfolio-card {
  display: block;
  background: var(--bg-graphite);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s ease, transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
}

.portfolio-card:hover {
  border-color: rgba(0, 194, 255, 0.3);
  transform: translateY(-6px);
  box-shadow: 0 10px 40px rgba(0, 194, 255, 0.08);
}

.portfolio-shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--color-border);
  background: var(--bg-black);
}

.portfolio-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 400%;
  height: 400%;
  transform: scale(0.25);
  transform-origin: 0 0;
  border: none;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-frame {
  transform: scale(0.26);
}

.portfolio-hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 8, 8, 0.55);
  backdrop-filter: blur(2px);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-hover {
  opacity: 1;
}

.portfolio-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--accent-lime);
  border: none;
  color: var(--bg-black);
  border-radius: 2px;
  padding: 0.3rem 0.7rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.portfolio-body {
  padding: 1.6rem 1.8rem 1.8rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.portfolio-cat {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-lime);
  margin-bottom: 0.4rem;
  display: block;
}

.portfolio-ttl {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 0.4rem;
}

.portfolio-dsc {
  font-size: 0.88rem;
  color: var(--text-grey);
  line-height: 1.5;
}

.portfolio-arr {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--text-grey);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out-expo);
}

.portfolio-card:hover .portfolio-arr {
  border-color: var(--accent-lime);
  background-color: rgba(0, 194, 255, 0.08);
  color: var(--accent-lime);
}

/* ==========================================================================
   PRICING SYSTEM (HWD Minimalist Cards & Highlight Effects)
   ========================================================================== */

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

.price-card {
  background: var(--bg-graphite);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 3rem 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease, background-color 0.3s, border-color 0.3s, box-shadow 0.3s;
}

/* Popular Pro Card default highlight */
.price-card.hot {
  border-color: rgba(0, 194, 255, 0.3);
  box-shadow: 0 4px 30px rgba(0, 194, 255, 0.02);
}

.price-badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background-color: var(--accent-lime);
  color: var(--bg-black);
  border-radius: 2px;
  padding: 0.25rem 0.6rem;
}

.price-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.price-type {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-grey);
}

.price-card.hot .price-type {
  color: var(--accent-lime);
}

.price-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  color: var(--text-grey);
}

.price-card.hot .price-card-icon {
  color: var(--accent-lime);
  background: rgba(0, 194, 255, 0.05);
  border-color: rgba(0, 194, 255, 0.25);
}

.price-number {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 5vw, 4.2rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.price-number .currency {
  font-size: 1.8rem;
  vertical-align: super;
  margin-right: 0.15rem;
}

.price-title-text {
  font-size: 1.25rem;
  text-transform: none;
  font-family: var(--font-body);
  margin-bottom: 0.5rem;
  color: var(--text-white);
}

.price-sub {
  font-size: 0.9rem;
  color: var(--text-grey);
  line-height: 1.6;
  margin-bottom: 2.2rem;
  min-height: 52px;
}

.price-feats {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.price-feat-info {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-grey);
  font-style: italic;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(245, 245, 242, 0.03);
  margin-bottom: 0.35rem;
}

.price-feat {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text-grey);
}

.price-feat svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-lime);
  fill: none;
  stroke-width: 2.5;
  flex-shrink: 0;
}

/* Plan Button default styling */
.btn-price {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

.price-card:hover .btn-price {
  background-color: var(--accent-lime);
  color: var(--bg-black);
  border-color: transparent;
  box-shadow: 0 6px 20px rgba(0, 194, 255, 0.2);
}

/* Multi-card Hover highlight effects */
.price-grid:has(.price-card:hover) .price-card:not(:hover) {
  opacity: 0.5;
  transform: scale(0.97) translateY(0);
  filter: brightness(0.7);
  border-color: var(--color-border);
  box-shadow: none;
  background-color: var(--bg-graphite);
}

.price-grid:has(.price-card:hover) .price-card:not(:hover) .btn-price {
  background: rgba(255, 255, 255, 0.02) !important;
  color: rgba(255, 255, 255, 0.3) !important;
  border-color: rgba(255, 255, 255, 0.03) !important;
  box-shadow: none !important;
}

.price-card:hover {
  background-color: #080c14;
  border-color: var(--accent-lime);
  opacity: 1;
  filter: brightness(1);
}

.price-card.hot:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(0, 194, 255, 0.08);
}

.price-card:not(.hot):hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0, 194, 255, 0.06);
}

/* ==========================================================================
   SECTION BACKGROUND VARIANTS
   Cada sección redefine las variables de color, así las tarjetas y textos
   (que usan var(--bg-graphite), var(--text-white), etc.) se adaptan solos.
   ========================================================================== */

#servicios {
  background: #f2ead9;
  color: #1d1710;
  --bg-graphite: #ffffff;
  --text-white: #1d1710;
  --text-grey: #6b5d47;
  --color-border: rgba(29, 23, 16, 0.12);
  --color-border-hover: rgba(29, 23, 16, 0.22);
}

#nosotros {
  background: #ffffff;
  color: #141414;
  --bg-graphite: #f4f4f2;
  --text-white: #141414;
  --text-grey: #5c5c5c;
  --color-border: rgba(20, 20, 20, 0.1);
  --color-border-hover: rgba(20, 20, 20, 0.2);
}

#portafolio {
  background: var(--bg-black);
}

#portafolio .portfolio-card {
  background: #dceefc;
  border-color: rgba(10, 30, 46, 0.12);
}

#portafolio .portfolio-card:hover {
  border-color: rgba(0, 119, 179, 0.4);
}

#portafolio .portfolio-ttl {
  color: #0a1e2e;
}

#portafolio .portfolio-dsc {
  color: #3d5871;
}

#portafolio .portfolio-cat {
  color: #0077b3;
}

#portafolio .portfolio-arr {
  border-color: rgba(10, 30, 46, 0.2);
  color: #3d5871;
}

#portafolio .portfolio-card:hover .portfolio-arr {
  border-color: #0077b3;
  background-color: rgba(0, 119, 179, 0.1);
  color: #0077b3;
}

#precios {
  background: #eaf5fb;
  color: #0d1b22;
  --bg-graphite: #ffffff;
  --text-white: #0d1b22;
  --text-grey: #4a6470;
  --color-border: rgba(13, 27, 34, 0.12);
  --color-border-hover: rgba(13, 27, 34, 0.22);
}

#precios .price-card:hover {
  background-color: #f3fafd;
}

#precios .price-grid:has(.price-card:hover) .price-card:not(:hover) {
  filter: none;
  opacity: 0.55;
}

#faq {
  background: #efece7;
  color: #1a1815;
  --bg-graphite: #ffffff;
  --text-white: #1a1815;
  --text-grey: #63594d;
  --color-border: rgba(26, 24, 21, 0.12);
  --color-border-hover: rgba(26, 24, 21, 0.22);
}

/* ==========================================================================
   FAQ ACCORDIONS
   ========================================================================== */

.faq-wrap {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.8rem 0;
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-grey);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 1.5rem;
  transition: color 0.3s ease;
  min-height: 60px;
}

.faq-q:hover {
  color: var(--text-white);
}

.faq-ic {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out-expo);
}

.faq-ic svg {
  width: 11px;
  height: 11px;
  stroke: var(--text-grey);
  fill: none;
  stroke-width: 2.8;
  transition: transform 0.3s var(--ease-out-expo);
}

.faq-item.open .faq-ic {
  background: rgba(0, 194, 255, 0.08);
  border-color: var(--accent-lime);
}

.faq-item.open .faq-ic svg {
  stroke: var(--accent-lime);
  transform: rotate(45deg);
}

.faq-item.open .faq-q {
  color: var(--text-white);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-in-out-cubic), padding 0.3s ease;
  font-size: 1.05rem;
  color: var(--text-grey);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 300px;
  padding-bottom: 1.8rem;
}

/* ==========================================================================
   FINAL CTA BOX (Full width impactful block)
   ========================================================================== */

.cta-section {
  background-color: var(--bg-black);
  padding: 10rem 0;
  border-bottom: 1px solid var(--color-border);
}

.cta-box {
  background-color: var(--bg-graphite);
  border: 1px solid var(--color-border);
  text-align: center;
  padding: 8rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-title {
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.highlight-lime {
  color: var(--accent-lime);
}

.cta-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-grey);
  margin-bottom: 3.5rem;
}

/* ==========================================================================
   FOOTER (Clean, Corporate, Solid)
   ========================================================================== */

.footer-section {
  background-color: var(--bg-black);
  padding: 6rem 0 3rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 5rem;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  display: block;
  margin-bottom: 1rem;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--text-grey);
}

.footer-links-grid {
  display: flex;
  gap: 8rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-grey);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.footer-group a {
  font-size: 0.95rem;
  color: var(--text-grey);
  transition: color 0.3s ease;
}

.footer-group a:hover {
  color: var(--accent-lime);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-grey);
}

.footer-statement {
  font-size: 0.85rem;
  color: var(--text-grey);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   INTERACTIVE NATIVE DIALOG (Modal)
   ========================================================================== */

.contact-modal {
  border: none;
  background: transparent;
  width: 100%;
  max-width: 600px;
  padding: 0;
  margin: auto;
  z-index: 101;
}

.contact-modal::backdrop {
  background-color: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-card {
  background-color: var(--bg-graphite);
  border: 1px solid var(--color-border);
  padding: 4rem;
  position: relative;
  width: 100%;
  animation: modalSlideUp 0.4s var(--ease-out-expo) forwards;
}

@keyframes modalSlideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 1.2rem;
  color: var(--text-grey);
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--accent-lime);
}

.modal-header {
  margin-bottom: 2.5rem;
}

.modal-title {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.modal-subtitle {
  font-size: 0.95rem;
  color: var(--text-grey);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-grey);
}

.form-group input, 
.form-group select, 
.form-group textarea {
  background-color: var(--bg-black);
  border: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  color: var(--text-white);
  font-size: 0.95rem;
  width: 100%;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-lime);
  box-shadow: 0 0 10px rgba(0, 194, 255, 0.05);
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C8C8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  background-size: 1rem;
}

/* Success State Panel */
.success-message {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 2rem 0;
}

.success-message.active {
  display: flex;
}

.success-icon {
  width: 4rem;
  height: 4rem;
  background-color: rgba(0, 194, 255, 0.1);
  color: var(--accent-lime);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.8rem;
  font-weight: bold;
}

.success-message h4 {
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.success-message p {
  font-size: 0.95rem;
  color: var(--text-grey);
  max-width: 320px;
}

/* ==========================================================================
   WHATSAPP FLOATING WIDGET & BACK TO TOP BUTTON
   ========================================================================== */

.wa-fl {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.35);
  animation: pulseWhatsApp 2.5s infinite;
  transition: transform 0.2s ease;
  cursor: pointer;
}

.wa-fl:hover {
  transform: scale(1.06);
}

.wa-fl svg {
  width: 26px;
  height: 26px;
  fill: #fff;
}

.wa-tip {
  position: absolute;
  right: 66px;
  background: #111;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(5px);
  transition: all 0.25s ease;
  pointer-events: none;
  border: 1px solid var(--color-border);
}

.wa-fl:hover .wa-tip {
  opacity: 1;
  transform: none;
}

@keyframes pulseWhatsApp {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(37, 211, 102, 0); }
}

#btt {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 500;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(21, 21, 21, 0.6);
  border: 1px solid var(--color-border);
  display: grid;
  place-items: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#btt.show {
  opacity: 1;
  pointer-events: all;
}

#btt:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
  border-color: var(--accent-lime);
}

#btt svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-white);
  fill: none;
  stroke-width: 2.8;
}

/* ==========================================================================
   SCROLL-DRIVEN ENTRY/EXIT REVEAL EFFECTS (Progressive Enhancement)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    
    @keyframes revealFadeIn {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .anim-scroll-fade {
      animation: revealFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
      animation-timeline: view();
      animation-range: entry 10% entry 80%;
    }
  }
}

/* Fallback class driven by main.js IntersectionObserver */
.js-reveal {
  opacity: var(--scroll-reveal-opacity, 0);
  transform: translateY(var(--scroll-reveal-y, 50px));
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.js-reveal.revealed {
  --scroll-reveal-opacity: 1;
  --scroll-reveal-y: 0px;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Laptops, Tablets, Mobiles)
   ========================================================================== */

/* Laptops & Wide Tablets (1024px) */
@media (max-width: 1100px) {
  .hero-section {
    min-height: auto;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    padding-top: 4rem;
    padding-bottom: 3rem;
  }
  
  .hero-content {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-3d-wrap {
    display: none !important; /* Hide 3D mockup on tablet/mobile */
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }

  .why-right-sticky-card {
    position: static;
  }

  .price-grid,
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .price-card.hot {
    transform: none !important;
  }
  
  .price-card:hover {
    transform: translateY(-4px) !important;
  }
}

@media (max-width: 900px) {
  :root {
    --section-padding: 6rem 0;
  }
  
  .svc-row {
    grid-template-columns: 50px 1fr;
    gap: 1.5rem;
  }

  .svc-meta-chips {
    align-items: flex-start;
    grid-column: 2;
    margin-top: 0.5rem;
  }
  
  .svc-chips {
    justify-content: flex-start;
  }

  .svc-arr {
    display: none !important; /* Hide arrows on small screens */
  }

  .proc-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Devices (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 5rem 0;
  }

  .desktop-only {
    display: none !important;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-desktop {
    display: none;
  }

  .hero-section {
    min-height: auto;
    padding-top: 6.5rem;
    padding-bottom: 5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .price-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-box {
    padding: 5rem 1.5rem;
  }

  .cta-box .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .footer-top {
    flex-direction: column;
    gap: 4rem;
  }

  .footer-links-grid {
    width: 100%;
    justify-content: space-between;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .modal-card {
    padding: 3rem 1.5rem;
  }
  
  .modal-title {
    font-size: 1.8rem;
  }

  .wa-fl {
    width: 48px;
    height: 48px;
    bottom: 1.25rem;
    right: 1.25rem;
  }

  .wa-fl svg {
    width: 22px;
    height: 22px;
  }

  #btt {
    width: 36px;
    height: 36px;
    bottom: 1.25rem;
    left: 1.25rem;
  }
}
