@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wdth,wght@6..144,25..151,1..1000&family=DM+Mono:wght@400;500&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
  --font-sans: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
  --font-display: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
  --font-mono: 'DM Mono', monospace;
  
  /* Brand colors from Figma Design System */
  --bg-color-dark-blue-950: #030B14;
  --bg-color-dark-blue-900: #040C15;
  --brand-color-blue-600: #0E3CA0;
  --brand-color-blue-700: #0c3590;
  --border-color-blue-gray-800: #16273A;
  --accent-color-pink-600: #C1104F;
  --accent-color-green-500: #2CCF54;
  --color-slate-gray-500: #7689A0;
  --color-slate-gray-400: #9DAEC2;
  --color-white: #FFFFFF;
  --color-off-white: #FAF9F9;

  /* Light / Brighter gradient colors for improved readability */
  --light-blue-600: #3172FF;
  --light-pink-600: #FC1668;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-color-dark-blue-950);
  color: var(--color-off-white);
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

/* Custom Web Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color-dark-blue-950);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color-blue-gray-800);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-slate-gray-500);
}

/* Glow effects */
.glow-text {
  text-shadow: 0 0 30px rgba(118, 137, 160, 0.2);
}

.glow-btn-blue {
  box-shadow: 0 4px 20px -2px rgba(14, 60, 160, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glow-btn-blue:hover {
  box-shadow: 0 0 30px 4px rgba(14, 60, 160, 0.6);
  transform: translateY(-1px);
}

/* Dashed Button Style */
.btn-dashed-outline {
  position: relative;
  background: rgba(4, 12, 21, 0.3);
  border: 1px dashed var(--color-slate-gray-500);
  color: var(--color-slate-gray-400);
  transition: all 0.3s ease;
}
.btn-dashed-outline:hover {
  border-color: var(--color-white);
  background: rgba(4, 12, 21, 0.6);
  color: var(--color-white);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

/* Underline Gradient decoration */
.gradient-underline {
  position: relative;
  display: inline-block;
}
.gradient-underline::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--color-slate-gray-500), var(--accent-color-pink-600));
  opacity: 0.8;
  border-radius: 2px;
}

/* Pulse animation for grid intersections and subtle details */
@keyframes pulse-slow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.3; }
}
.pulse-detail {
  animation: pulse-slow 4s infinite ease-in-out;
}

@keyframes headerSlideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Custom Glassmorphism for Header */
.glass-header {
  background-color: rgba(3, 11, 20, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(22, 39, 58, 0);
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease, -webkit-backdrop-filter 0.3s ease, border-color 0.3s ease;
  animation: headerSlideDown 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.glass-header.scrolled {
  background-color: rgba(3, 11, 20, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(22, 39, 58, 0.35);
}

/* Hero Content animation on load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 {
  animation-delay: 0.1s;
}
.delay-200 {
  animation-delay: 0.2s;
}
.delay-300 {
  animation-delay: 0.3s;
}

/* Scroll Reveal & Fade-in Utility classes for future effects */
.reveal {
  opacity: 0;
  will-change: transform, opacity;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fade-in {
  /* Just fade, no transform */
}
.reveal-fade-in.active {
  opacity: 1;
}

.reveal-slide-up {
  transform: translateY(30px);
}
.reveal-slide-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-scale-up {
  transform: scale(0.95);
}
.reveal-scale-up.active {
  opacity: 1;
  transform: scale(1);
}

/* Cards & Headings Scroll Reveal Animations (Excluding Hero Section) */
/* 1. Base selectors persistent transition properties */
.site-section:not(#hero) .insight-card,
.site-section:not(#hero) .service-feature,
.site-section:not(#hero) .service-card-new,
.site-section:not(#hero) .why-us-card,
.site-section:not(#hero) .method-tile,
.site-section:not(#hero) .plan-card,
.site-section:not(#hero) .works-carousel-stage,
.site-section:not(#hero) .section-title,
.site-section:not(#hero) .section-title ~ p,
.site-section:not(#hero) .section-title ~ h4,
.site-section:not(#hero) .section-heading p,
.site-section:not(#hero) .gap-copy p,
.site-section:not(#hero) .start-with-us__center h2,
.site-section:not(#hero) .start-with-us__center h3,
.site-section:not(#hero) .start-with-us__center p {
  transition: opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1), transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* 2. Initial state (hidden) */
.site-section:not(#hero) .insight-card:not(.revealed),
.site-section:not(#hero) .service-feature:not(.revealed),
.site-section:not(#hero) .service-card-new:not(.revealed),
.site-section:not(#hero) .why-us-card:not(.revealed),
.site-section:not(#hero) .method-tile:not(.revealed),
.site-section:not(#hero) .plan-card:not(.revealed),
.site-section:not(#hero) .works-carousel-stage:not(.revealed),
.site-section:not(#hero) .section-title:not(.revealed),
.site-section:not(#hero) .section-title ~ p:not(.revealed),
.site-section:not(#hero) .section-title ~ h4:not(.revealed),
.site-section:not(#hero) .section-heading p:not(.revealed),
.site-section:not(#hero) .gap-copy p:not(.revealed),
.site-section:not(#hero) .start-with-us__center h2:not(.revealed),
.site-section:not(#hero) .start-with-us__center h3:not(.revealed),
.site-section:not(#hero) .start-with-us__center p:not(.revealed) {
  opacity: 0 !important;
  transform: translateY(40px) !important;
}

/* 3. Target state (revealed) */
.site-section:not(#hero) .insight-card.revealed,
.site-section:not(#hero) .service-feature.revealed,
.site-section:not(#hero) .service-card-new.revealed,
.site-section:not(#hero) .why-us-card.revealed,
.site-section:not(#hero) .method-tile.revealed,
.site-section:not(#hero) .plan-card.revealed,
.site-section:not(#hero) .works-carousel-stage.revealed,
.site-section:not(#hero) .section-title.revealed,
.site-section:not(#hero) .section-title ~ p.revealed,
.site-section:not(#hero) .section-title ~ h4.revealed,
.site-section:not(#hero) .section-heading p.revealed,
.site-section:not(#hero) .gap-copy p.revealed,
.site-section:not(#hero) .start-with-us__center h2.revealed,
.site-section:not(#hero) .start-with-us__center h3.revealed,
.site-section:not(#hero) .start-with-us__center p.revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* 4. Reset transform transitions for hover actions on cards once revealed */
.site-section:not(#hero) .insight-card.revealed,
.site-section:not(#hero) .service-feature.revealed,
.site-section:not(#hero) .service-card-new.revealed,
.site-section:not(#hero) .why-us-card.revealed,
.site-section:not(#hero) .method-tile.revealed,
.site-section:not(#hero) .plan-card.revealed,
.site-section:not(#hero) .works-carousel-stage.revealed {
  transition:
    opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1),
    padding 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* 5. Enable card floating hover/active transforms by overriding scroll reveal's translateY(0) !important */
.site-section:not(#hero) .insight-card.revealed:hover,
.site-section:not(#hero) .insight-card.revealed.active {
  transform: translateY(-10px) !important;
}
.site-section:not(#hero) .service-feature.revealed:hover,
.site-section:not(#hero) .service-feature.revealed.active,
.site-section:not(#hero) .service-card-new.revealed:hover,
.site-section:not(#hero) .service-card-new.revealed.active,
.site-section:not(#hero) .why-us-card.revealed:hover,
.site-section:not(#hero) .why-us-card.revealed.active,
.site-section:not(#hero) .method-tile.revealed:hover,
.site-section:not(#hero) .method-tile.revealed.active {
  transform: translateY(-6px) !important;
}
.site-section:not(#hero) .plan-card.revealed:hover {
  transform: translateY(-4px) !important;
}


/* Figma-exact Button Styles */
.btn-primary-figma {
  background-color: var(--brand-color-blue-600);
  border: 1px solid #214DAC;
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px -2px rgba(14, 60, 160, 0.4);
}
.btn-primary-figma:hover {
  background-color: var(--brand-color-blue-700);
  box-shadow: 0 0 30px 4px rgba(14, 60, 160, 0.6);
  transform: translateY(-1px);
}

.btn-secondary-figma {
  background-color: var(--bg-color-dark-blue-950);
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(45, 63, 85, 0.4) 8px,
    rgba(45, 63, 85, 0.4) 9.2px
  );
  border: 1px solid rgba(45, 63, 85, 0.3);
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}
.btn-secondary-figma:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(4, 12, 21, 0.8);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-header-figma {
  background-color: var(--brand-color-blue-600);
  border: 1px solid #214DAC;
  border-radius: 4px;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  padding: 12px 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px -2px rgba(14, 60, 160, 0.4);
}
.btn-header-figma:hover {
  background-color: var(--brand-color-blue-700);
  box-shadow: 0 0 30px 4px rgba(14, 60, 160, 0.6);
  transform: translateY(-1px);
}

/* Nav Links from Figma */
.nav-link-figma {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: var(--color-slate-gray-400);
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.nav-link-figma:hover,
.nav-link-active-figma {
  color: var(--color-white) !important;
  border-color: #4c565e;
  background-color: #030B14;
  background-image: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.1) 8px,
    rgba(255, 255, 255, 0.1) 9.2px
  );
  box-shadow: 0px 0px 30px 10px rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

/* Gap Section Card Styles */
/* Gap Section Card Styles */
.gap-card {
  width: 320px;
  min-height: 400px;
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: visible; /* To allow gradient blur to glow outside card bounds */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  
  /* Normal Stage styles */
  background-color: transparent;
  padding: 56px 24px;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate; /* Create stacking context so z-index: -1 children stay inside card stack */
}

/* Card Background Wrapper to contain the blur bg inside card bounds */
.gap-card-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(199, 206, 222, 0.5);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Diagonal hatch background for Normal Stage */
.gap-card-hatch-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2; /* Sits on top of ::before background */
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 8px,
    rgba(199, 206, 222, 0.25) 8px,
    rgba(199, 206, 222, 0.25) 9.2px
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Diagonal hatch background for Result Page Cards (Figma pattern: #2D3F55 at 0.4 opacity, 10px cell, 1.11px stroke) */
.result-card-hatch-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1; /* Above content bgs so hatch shows through inner sections */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10'%3E%3Cpath d='M 0,10 L 10,0 M -5,5 L 5,-5 M 5,15 L 15,5' stroke='rgba(45, 63, 85, 0.4)' stroke-width='1.1'/%3E%3C/svg%3E");
}

/* Gradient blur background for Hover Stage */
.gap-card-blur-bg {
  position: absolute;
  top: -58px; /* Figma Group 138 offset y: -58 relative to card */
  left: -39px; /* Figma Group 138 offset x: -39 relative to card */
  width: 387px;
  height: 307px;
  pointer-events: none;
  z-index: 0; /* Behind content, in front of parent card base stack */
  filter: blur(50px); /* Softly blur the colored ellipses */
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.blur-ellipse {
  position: absolute;
  border-radius: 50%;
}

.blur-ellipse.blue {
  width: 225px;
  height: 225px;
  left: 0;
  top: 0;
  background-color: #0E3CA0; /* Brand Blue */
  opacity: 0.8;
}

.blur-ellipse.pink {
  width: 230px;
  height: 230px;
  left: 156px;
  top: 7px;
  background-color: #C1104F; /* Brand Pink */
  opacity: 0.8;
}

.blur-ellipse.white-1 {
  width: 139px;
  height: 139px;
  left: 83px;
  top: 151px;
  background-color: #FFFFFF;
  opacity: 0.6;
}

.blur-ellipse.white-2 {
  width: 139px;
  height: 139px;
  left: 211px;
  top: 168px;
  background-color: #FFFFFF;
  opacity: 0.6;
}

.gap-card-content {
  position: relative;
  z-index: 2; /* Sits on top of ::before background */
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.gap-card-icon-container {
  width: 72px;
  height: 72px;
  border-radius: 100px;
  border: 1px solid rgba(199, 206, 222, 0.5);
  background-color: #EAEDF5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #16273A;
  margin-bottom: 24px;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.gap-card-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: #16273A;
  line-height: 1.25;
  transition: color 0.4s ease;
}

.gap-card-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #394553;
  line-height: 1.5;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              margin-top 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Active State (Hovered or explicitly active card) */
.gap-card.active, .gap-card:hover {
  padding: 24px;
  transform: translateY(-8px);
  box-shadow: 0px 0px 24px 0px rgba(192, 200, 218, 0.25);
  border-radius: 8px;
}

.gap-card.active .gap-card-bg-wrapper, .gap-card:hover .gap-card-bg-wrapper {
  background-color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gap-card.active .gap-card-hatch-bg, .gap-card:hover .gap-card-hatch-bg {
  opacity: 0;
}

.gap-card.active .gap-card-blur-bg, .gap-card:hover .gap-card-blur-bg {
  opacity: 0.9;
}

.gap-card.active .gap-card-icon-container, .gap-card:hover .gap-card-icon-container {
  background-color: var(--brand-color-blue-600);
  color: #FFFFFF;
  border-color: var(--brand-color-blue-600);
  box-shadow: 0 4px 12px rgba(14, 60, 160, 0.2);
}

.gap-card.active .gap-card-desc, .gap-card:hover .gap-card-desc {
  opacity: 1;
  max-height: 180px;
  margin-top: 12px;
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Bleed scroll container to the right edge of screen */
.bleed-right {
  margin-right: -24px !important;
  padding-right: 24px !important;
  width: calc(100% + 24px) !important;
}

@media (min-width: 1024px) {
  .bleed-right {
    margin-right: calc(-50vw + 50%) !important;
    padding-right: calc(50vw - 50% + 48px) !important;
    width: calc(50vw + 50%) !important;
  }
}

/* Mouse grab indicators for horizontal scroll */
#gap-cards-container {
  cursor: grab;
  user-select: none;
  
  /* Prevent vertical clipping of the cards' blur glow */
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  margin-top: -100px !important;
  margin-bottom: -100px !important;
}
#gap-cards-container.active-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

/* Mouse grab indicators for horizontal scroll - Method Section */
#method-cards-container {
  cursor: grab;
  user-select: none;
  
  /* Prevent vertical clipping of the cards' blur glow */
  padding-top: 100px !important;
  padding-bottom: 100px !important;
  margin-top: -100px !important;
  margin-bottom: -100px !important;
}
#method-cards-container.active-dragging {
  cursor: grabbing;
  scroll-behavior: auto !important;
}

/* Rypple Method Section Cards */
.method-card {
  width: 320px; /* Mobile width fallback */
  min-height: 250px; /* Mobile height fallback */
  cursor: pointer;
  position: relative;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
  padding: 24px;
  background-color: transparent;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  isolation: isolate;
}

@media (min-width: 1024px) {
  .method-card {
    width: 414px;  /* Exact Figma width */
    min-height: 224px; /* Exact Figma min-height */
    padding: 32px 24px;
  }
}

/* Card Background Wrapper for Rypple Method */
.method-card-bg-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.4); /* Inactive translucency */
  border: 1px solid rgba(199, 206, 222, 0.5);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Hatch Background for inactive cards */
.method-card-hatch-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 2;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 8px,
    rgba(199, 206, 222, 0.2) 8px,
    rgba(199, 206, 222, 0.2) 9.2px
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

/* Gradient blur background for active state */
.method-card-blur-bg {
  position: absolute;
  top: -60px; /* Centered relative to height 224px and blur height 345px */
  left: -1px;  /* Centered relative to width 414px and blur width 416px */
  width: 416px;
  height: 345px;
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Content Container */
.method-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  pointer-events: none;
}

/* Badge for Label (01 Strategy, etc.) */
.method-card-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 4px;
  background-color: #EAEDF5;
  color: var(--accent-color-pink-600); /* #C1104F */
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Title and Description Wrapper */
.method-card-text-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  background-color: #EAEDF5; /* Inactive grey background box */
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.method-card.active .method-card-text-wrapper,
.method-card:hover .method-card-text-wrapper {
  background-color: transparent;
  padding: 8px 0 0 0; /* Align directly to sides when active */
}

/* Card Texts */
.method-card-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: #16273A;
  line-height: 1.3;
  margin-top: 0;
  transition: color 0.4s ease;
}

@media (min-width: 1024px) {
  .method-card-title {
    font-size: 24px;
    margin-top: 0;
  }
}

.method-card-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #394553;
  line-height: 1.5;
  margin-top: 12px;
  transition: color 0.4s ease;
}

@media (min-width: 1024px) {
  .method-card-desc {
    font-size: 16px;
    margin-top: 12px;
  }
}

/* Hover/Active States */
.method-card.active, .method-card:hover {
  box-shadow: 0px 0px 24px 0px rgba(192, 200, 218, 0.25);
  border-radius: 8px;
}

@media (min-width: 1024px) {
  .method-card.active, .method-card:hover {
    transform: translateY(-6px);
  }
}

.method-card.active .method-card-bg-wrapper, .method-card:hover .method-card-bg-wrapper {
  background-color: rgba(255, 255, 255, 1.0);
  border-color: rgba(255, 255, 255, 0.5);
}

.method-card.active .method-card-hatch-bg, .method-card:hover .method-card-hatch-bg {
  opacity: 0;
}

.method-card.active .method-card-blur-bg, .method-card:hover .method-card-blur-bg {
  opacity: 0.9;
}

.method-card.active .method-card-badge, .method-card:hover .method-card-badge {
  background-color: var(--accent-color-pink-600);
  color: #FFFFFF;
}

/* ==========================================
   Rebuild 2026 - Full Page Sections
   ========================================== */

.site-section {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(80px, 9svh, 126px);
}

.site-section > .relative {
  width: 100%;
}

.theme-dark {
  background-color: var(--bg-color-dark-blue-950);
  color: var(--color-off-white);
}

.theme-light {
  background-color: #E8ECF2;
  color: #16273A;
}

.theme-white {
  background-color: #FFFFFF;
  color: #16273A;
}

.gradient-text {
  background: linear-gradient(90deg, var(--light-blue-600) 30%, var(--light-pink-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  padding-top: 0.08em;
  padding-bottom: 0.18em;
  margin-top: -0.08em;
  margin-bottom: -0.18em;
  vertical-align: top;
}

/* ── Typewriter Effect ── */
.typewriter-wrapper {
  display: inline;
}

.typewriter-cursor {
  display: inline-block;
  background: linear-gradient(90deg, var(--light-blue-600) 30%, var(--light-pink-600) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: blink-cursor 0.7s step-end infinite;
  margin-left: 2px;
  font-weight: 400;
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.section-title {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 76px;
  letter-spacing: 0;
}

.section-heading {
  max-width: 1250px;
  margin: 0 auto;
  text-align: center;
}

.section-heading > p {
  max-width: 900px;
  margin: 24px auto 0;
  color: #394553;
  font-size: 32px;
  line-height: 46px;
  font-weight: 400;
}

.section-heading.dark > p {
  color: var(--color-slate-gray-400);
}

.watermark {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  font-family: var(--font-display);
  font-size: clamp(7rem, 16vw, 22rem);
  line-height: 0.82;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(22, 39, 58, 0.1);
  opacity: 0.9;
}

.theme-dark .watermark {
  -webkit-text-stroke-color: rgba(157, 174, 194, 0.08);
}

#services .watermark,
#why-us .watermark,
#work .watermark {
  transform: none;
  transform-origin: left top;
  opacity: 1;
  left: 80px;
  top: 12px;
}

#gap .watermark,
#method .watermark {
  transform: none;
  transform-origin: left top;
  opacity: 1;
  left: 80px;
  top: 60px;
}

#gap .watermark {
  width: min(820px, 42vw);
  aspect-ratio: 820 / 960;
}

#method .watermark {
  width: min(1561px, 81.3vw);
  aspect-ratio: 1561 / 640;
}

#services .watermark {
  width: min(1600px, 80vw);
  aspect-ratio: 1600 / 400;
}

#why-us .watermark {
  width: min(857px, 45vw);
  aspect-ratio: 857 / 640;
}

#work .watermark {
  width: min(1143px, 57vw);
  aspect-ratio: 1143 / 400;
}

#start-with-us .watermark {
  left: 50%;
  top: 75px;
  transform: translateX(-50%);
  transform-origin: center top;
  width: min(1077px, 56vw);
  aspect-ratio: 1077 / 960;
  opacity: 1;
}

#contact .watermark {
  left: 80px;
  top: 60px;
  transform: none;
  transform-origin: left top;
  width: min(1259px, 65vw);
  aspect-ratio: 1259 / 640;
  opacity: 1;
}

#plans .watermark {
  left: auto;
  right: 80px;
  top: 12px;
  transform: none;
  transform-origin: right top;
  opacity: 1;
  width: min(1148px, 60vw);
  aspect-ratio: 1148 / 360;
}

#gap .watermark svg,
#method .watermark svg,
#services .watermark svg,
#why-us .watermark svg,
#work .watermark svg,
#start-with-us .watermark svg,
#contact .watermark svg,
#plans .watermark svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

#gap .watermark .watermark-stroke text,
#method .watermark .watermark-stroke text,
#services .watermark .watermark-stroke text,
#why-us .watermark .watermark-stroke text,
#work .watermark .watermark-stroke text,
#start-with-us .watermark .watermark-stroke text,
#contact .watermark .watermark-stroke text,
#plans .watermark .watermark-stroke text {
  fill: none;
  stroke: rgba(157, 174, 194, 0.25);
  stroke-width: 2px;
  stroke-linejoin: round;
  -webkit-text-stroke: 0px transparent;
  font-family: 'Google Sans Flex', var(--font-display);
  font-size: 360px;
  font-weight: 600;
  font-synthesis: none;
  font-variation-settings: "opsz" 144, "wdth" 100, "wght" 600;
  letter-spacing: 0;
}

#services .watermark .watermark-stroke text,
#why-us .watermark .watermark-stroke text {
  stroke: rgba(199, 206, 222, 0.45);
}

#gap .watermark .watermark-stroke text,
#method .watermark .watermark-stroke text,
#start-with-us .watermark .watermark-stroke text,
#contact .watermark .watermark-stroke text {
  stroke: rgba(157, 174, 194, 0.3);
}

#gap .watermark .watermark-fill text,
#method .watermark .watermark-fill text {
  fill: #E8ECF2;
  stroke: none;
  font-family: 'Google Sans Flex', var(--font-display);
  font-size: 360px;
  font-weight: 600;
  font-synthesis: none;
  font-variation-settings: "opsz" 144, "wdth" 100, "wght" 600;
  letter-spacing: 0;
}

#services .watermark .watermark-fill text,
#why-us .watermark .watermark-fill text,
#start-with-us .watermark .watermark-fill text,
#contact .watermark .watermark-fill text {
  fill: #FFFFFF;
  stroke: none;
  -webkit-text-stroke: 0px transparent;
  font-family: 'Google Sans Flex', var(--font-display);
  font-size: 360px;
  font-weight: 600;
  font-synthesis: none;
  font-variation-settings: "opsz" 144, "wdth" 100, "wght" 600;
  letter-spacing: 0;
}

#work .watermark .watermark-fill text,
#plans .watermark .watermark-fill text {
  fill: #030B14;
  stroke: none;
  font-family: 'Google Sans Flex', var(--font-display);
  font-size: 360px;
  font-weight: 600;
  font-synthesis: none;
  font-variation-settings: "opsz" 144, "wdth" 100, "wght" 600;
  letter-spacing: 0;
}

.gap-layout {
  display: grid;
  align-items: center;
  gap: 48px;
  padding-left: 24px;
  padding-right: 0;
}

.gap-copy {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
  padding-right: 24px; /* Offset the left padding of gap-layout for true centering on mobile */
}

.gap-card-rail {
  min-width: 0;
}

@media (min-width: 1024px) {
  .gap-layout {
    grid-template-columns: minmax(520px, 680px) minmax(0, 1fr);
    gap: clamp(48px, 5vw, 96px);
    padding-left: clamp(80px, 17.5vw, 354px);
  }

  .gap-copy {
    text-align: left;
    margin: 0;
    padding-right: 0;
  }

  .gap-card-rail {
    width: 100%;
    max-width: none;
    justify-self: stretch;
    padding-right: 0;
    padding-left: 0;
  }
}

.horizontal-cards {
  display: flex;
  gap: 8px; /* Adjusted to 8px on mobile */
  overflow-x: auto;
  padding: 42px 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.horizontal-cards::-webkit-scrollbar {
  display: none;
}

.insight-card {
  position: relative;
  isolation: isolate;
  scroll-snap-align: start;
  flex: 0 0 320px; /* Matched to desktop width */
  width: 320px; /* Matched to desktop width */
  min-height: 400px; /* Matched to desktop height */
  padding: 56px 24px; /* Matched to desktop padding */
  border-radius: 8px;
  border: 1px solid rgba(199, 206, 222, 0.5);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #16273A;
  cursor: pointer;
  display: flex; /* Flex layout to align items like desktop */
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0px 0px 24px 0px rgba(164, 177, 207, 0.3); /* Match Method cards shadow */
  transition:
    transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    padding 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -120px;
  width: 120%;
  height: 300px;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 40%, #0E3CA0 45%, rgba(14, 60, 160, 0.1) 50%),
    radial-gradient(circle at 60% 10%, rgba(193, 16, 79, 1) 90%, rgba(193, 16, 79, 1) 100%);
  filter: blur(60px);
  -webkit-filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card > * {
  position: relative;
  z-index: 1;
}

.insight-card.active,
.insight-card:hover,
.insight-card:focus-visible {
  transform: translateY(-10px);
  padding: 24px; /* Shrunk padding to float text and icon upwards */
  background: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0px 0px 24px 0px rgba(192, 200, 218, 0.25);
  outline: none;
}

.insight-card.active::before,
.insight-card:hover::before,
.insight-card:focus-visible::before {
  opacity: 1;
}

/* ==========================================================================
   Rypple Method Section - Method Tiles
   ========================================================================== */

/* Method tiles are styled using shared class patterns under Service & Why Us Cards */

.insight-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  margin: 0 auto 0; /* Changed from 0 auto 96px to prevent squishing and let text float high */
  background: #EAEDF5;
  border: 1px solid rgba(199, 206, 222, 0.6);
  color: var(--brand-color-blue-600);
  font-size: 26px;
  font-weight: 700;
  transition:
    margin 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-icon svg {
  width: 48px;
  height: 48px;
  display: block;
}

.insight-card.active .insight-icon,
.insight-card:hover .insight-icon,
.insight-card:focus-visible .insight-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.52);
  color: #FFFFFF;
  box-shadow: none;
}

.insight-card h3,
.service-feature h3,
.service-card-new h3,
.direction-card h3 {
  color: #16273A;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
}

.insight-card h3 {
  margin-top: auto;
  margin-bottom: 0;
}

.insight-card p,
.service-feature p,
.service-card-new p,
.direction-card p {
  margin-top: 12px;
  color: #394553;
  line-height: 1.55;
  transition:
    opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.insight-card:not(.active):not(:hover):not(:focus-visible) p {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
}

.insight-card.active p,
.insight-card:hover p,
.insight-card:focus-visible p {
  opacity: 1;
  max-height: 96px;
  margin-top: 16px;
}

@media (min-width: 1024px) {
  #gap .horizontal-cards {
    gap: 8px;
    overflow-x: auto;
    padding-top: 42px;
    padding-bottom: 72px;
    padding-left: 24px;
    padding-right: 24px;
  }

  #gap .insight-card {
    flex: 0 0 320px;
    width: 320px;
    min-height: 400px;
    padding: 56px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transform: translateY(0);
  }

  #gap .insight-card.active,
  #gap .insight-card:hover,
  #gap .insight-card:focus-visible {
    transform: translateY(-10px);
    padding: 24px;
    background: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0px 0px 24px 0px rgba(192, 200, 218, 0.25);
  }

  #gap .insight-card.active::before,
  #gap .insight-card:hover::before,
  #gap .insight-card:focus-visible::before {
    opacity: 1;
  }

  #gap .insight-icon {
    margin-bottom: 0;
    flex: 0 0 auto;
  }

  #gap .insight-card.active .insight-icon,
  #gap .insight-card:hover .insight-icon,
  #gap .insight-card:focus-visible .insight-icon {
    margin-bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.52);
    color: #FFFFFF;
    box-shadow: none;
  }

  #gap .insight-card.active .insight-icon svg,
  #gap .insight-card:hover .insight-icon svg,
  #gap .insight-card:focus-visible .insight-icon svg {
    width: 48px;
    height: 48px;
  }

  #gap .insight-card h3 {
    width: 100%;
    margin-top: auto;
    margin-bottom: 0;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    text-align: center;
  }

  #gap .insight-card p {
    width: 100%;
    margin-top: 16px;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: center;
  }

  #gap .insight-card:not(.active):not(:hover):not(:focus-visible) p {
    margin-top: 0;
  }

  #gap .insight-card.active p,
  #gap .insight-card:hover p,
  #gap .insight-card:focus-visible p {
    opacity: 1;
    max-height: 96px;
  }
}

.stacked-proof article,
.process-list article {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(199, 206, 222, 0.55);
  background:
    repeating-linear-gradient(135deg, transparent, transparent 8px, rgba(199, 206, 222, 0.2) 8px, rgba(199, 206, 222, 0.2) 9px),
    rgba(255, 255, 255, 0.55);
  padding: 24px;
  box-shadow: 0 0 24px rgba(164, 177, 207, 0.18);
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

/* ── Service & Why Us Cards (matching method-card pattern approach) ── */
.service-feature,
.service-card-new,
.why-us-card,
.method-tile {
  position: relative;
  isolation: isolate;
  border-radius: 8px;
  border: 1px solid rgba(199, 206, 222, 0.5);
  background-color: rgba(255, 255, 255, 0.4);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 8px,
      rgba(199, 206, 222, 0.2) 8px,
      rgba(199, 206, 222, 0.2) 9.2px
    );
  padding: 24px;
  box-shadow: 0px 0px 24px 0px rgba(164, 177, 207, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  color: #16273A;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-image 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient blur pseudo-element for active/hover state */
.service-feature::before,
.service-card-new::before,
.why-us-card::before,
.method-tile::before {
  content: "";
  position: absolute;
  left: -10%;
  top: -120px;
  width: 120%;
  height: 300px;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 20% 40%, #0E3CA0 45%, rgba(14, 60, 160, 0.1) 50%),
    radial-gradient(circle at 60% 10%, rgba(193, 16, 79, 1) 90%, rgba(193, 16, 79, 1) 100%);
  filter: blur(60px);
  -webkit-filter: blur(60px);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-feature > *,
.service-card-new > *,
.why-us-card > *,
.method-tile > * {
  position: relative;
  z-index: 1;
}

/* Active / Hover states */
.service-feature.active,
.service-feature:hover,
.service-feature:focus-visible,
.service-card-new.active,
.service-card-new:hover,
.service-card-new:focus-visible,
.why-us-card.active,
.why-us-card:hover,
.why-us-card:focus-visible,
.method-tile.active,
.method-tile:hover,
.method-tile:focus-visible {
  transform: translateY(-6px);
  background-color: rgba(255, 255, 255, 1.0);
  background-image: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0px 0px 24px 0px rgba(192, 200, 218, 0.25);
  color: #16273A;
  outline: none;
}

.service-feature.active::before,
.service-feature:hover::before,
.service-feature:focus-visible::before,
.service-card-new.active::before,
.service-card-new:hover::before,
.service-card-new:focus-visible::before,
.why-us-card.active::before,
.why-us-card:hover::before,
.why-us-card:focus-visible::before,
.method-tile.active::before,
.method-tile:hover::before,
.method-tile:focus-visible::before {
  opacity: 0;
}

/* Layout: main card centered, sub cards left-aligned */
.service-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
}

.service-card-new,
.why-us-card,
.method-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  justify-content: flex-start;
}

.why-us-cards {
  display: flex;
  flex-direction: column;
  gap: 8px; /* 8px gap between cards */
  width: 100%;
}

/* Inner white content wrapper (Figma: fills #FFFFFF, padding 8px, gap 16px) */
.service-card-body,
.method-tile__content {
  position: relative;
  z-index: 1;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  margin-top: 12px; /* 12px gap between Badge and Content Box */
}

/* Typography */
.service-feature h3,
.service-card-new h3,
.why-us-card h3,
.method-tile h3 {
  color: #16273A;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  transition: color 0.4s ease;
}

.service-feature p,
.service-card-new p,
.why-us-card p,
.method-tile p {
  margin-top: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
  color: #394553;
  transition: color 0.4s ease;
}

/* Label badge transitions on hover/active */
.service-feature.active .card-label,
.service-feature:hover .card-label,
.service-card-new.active .card-label,
.service-card-new:hover .card-label,
.why-us-card.active .card-label,
.why-us-card:hover .card-label {
  background: #0E3CA0;
  color: #FFFFFF;
}

.method-tile.active .card-label,
.method-tile:hover .card-label {
  background: #C1104F;
  color: #FFFFFF;
}

/* Service & Why Us card labels: white bg and blue text per Figma */
.service-feature .card-label,
.service-card-new .card-label,
.why-us-card .card-label {
  background: #FFFFFF;
  color: #0E3CA0;
}

.card-label,
.stacked-proof span,
.process-list span,
.direction-card span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 4px;
  background: #EAEDF5;
  color: var(--accent-color-pink-600);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-feature h3,
.service-card-new h3,
.stacked-proof h3,
.process-list h3,
.direction-card h3,
.method-tile h3 {
  margin-top: 16px;
}

.service-shell {
  display: grid;
  gap: 8px;
}

/* Method card body specific gaps and section bg color matches */
.method-tile__content {
  background-color: #E8ECF2 !important;
  transition: background-color 0.4s ease;
}

.method-tile:hover .method-tile__content,
.method-tile.active .method-tile__content {
  background-color: transparent !important;
}

.service-feature {
  min-height: 180px;
}

.stacked-proof {
  display: grid;
  gap: 12px;
}

.stacked-proof article {
  background: rgba(255, 255, 255, 0.7);
}

.stacked-proof h3,
.process-list h3 {
  color: #16273A;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.stacked-proof p,
.process-list p {
  margin-top: 10px;
  color: #394553;
  line-height: 1.55;
}

.section-gate {
  position: relative;
  z-index: 30;
  height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-gate::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 7px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, #0E3CA0, #C1104F);
  z-index: 1;
}

.section-gate__button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 44px;
  padding: 6px 20px;
  border-radius: 999px;
  border: 2px solid transparent;
  background:
    linear-gradient(#FFFFFF, #FFFFFF) padding-box,
    linear-gradient(90deg, #0E3CA0, #C1104F) border-box;
  color: #16273A;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(22, 39, 58, 0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-gate__button:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(22, 39, 58, 0.2);
}

.section-gate__button:focus-visible {
  outline: 3px solid rgba(14, 60, 160, 0.35);
  outline-offset: 4px;
}

.section-gate__icon {
  font-size: 20px;
  line-height: 1;
  font-weight: 600;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-expand {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: 
    grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  overflow: hidden;
}

.section-expand.is-expanded {
  grid-template-rows: 1fr;
  visibility: visible;
}

.section-expand__inner {
  min-height: 0;
  overflow: hidden;
}

.expand-cta {
  margin: 0 auto;
  width: 100%;
  min-height: 277px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: #FFFFFF;
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    linear-gradient(90deg, #0E3CA0 0%, #C1104F 100%);
}

.expand-cta h2 {
  max-width: 1050px;
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  margin: 0;
}

.expand-cta p {
  max-width: 920px;
  margin-top: 16px;
  margin-bottom: 0;
  font-size: 21px;
  line-height: 30px;
  font-weight: 400;
  color: #FFFFFF;
}


/* Works Carousel Styles */
#work .section-heading > p {
  font-size: 21px !important;
  line-height: 30px !important;
  color: rgba(255, 255, 255, 0.85);
  max-width: 900px;
  margin: 24px auto 0;
}

.works-carousel-stage {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 640px;
  margin-top: 48px;
  overflow: hidden;
  padding: 30px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.works-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}

.works-card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 640px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(45, 63, 85, 0.3);
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    #030B14;
  box-shadow: 0px 0px 64px 0px rgba(3, 11, 20, 1);
  overflow: hidden;
  user-select: none;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), z-index 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.works-card-content {
  display: flex;
  gap: 4px;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Left main vertical image column */
.work-img-col-left {
  width: 386px;
  height: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #030B14;
}

.work-img-col-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right split-half stacked images column */
.work-img-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.work-img-top,
.work-img-bottom {
  flex: 1;
  height: calc(50% - 2px);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #030B14;
}

.work-img-top img,
.work-img-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Normal State Action Bar */
.btn-view-details {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  height: 48px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    rgba(3, 11, 20, 0.75);
  border: 1px solid rgba(45, 63, 85, 0.35);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}

.works-card.card-center .btn-view-details {
  opacity: 1;
  pointer-events: auto;
}

.btn-view-details:hover {
  background: rgba(14, 60, 160, 0.3);
  border-color: rgba(14, 60, 160, 0.7);
  box-shadow: 0 0 15px rgba(14, 60, 160, 0.4);
}

/* Hover/Active Details Panel Overlay */
.work-detail-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 406px;
  background: rgba(3, 11, 20, 0.93);
  border-radius: 4px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
  transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  border-left: 1px solid rgba(45, 63, 85, 0.2);
}

.work-detail-panel.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.work-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.work-detail-header h3 {
  color: #FFFFFF;
  font-size: 21px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

.btn-close-details {
  background: transparent;
  border: none;
  color: #9DAEC2;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
}

.btn-close-details:hover {
  color: #FFFFFF;
}

.work-detail-body {
  flex: 1;
  margin-top: 16px;
  overflow-y: auto;
  padding-right: 4px;
}

.work-detail-body::-webkit-scrollbar {
  width: 4px;
}

.work-detail-body::-webkit-scrollbar-thumb {
  background: rgba(157, 174, 194, 0.2);
  border-radius: 2px;
}

.work-desc {
  color: #9DAEC2;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 16px;
  text-align: left;
}

.work-meta-item {
  margin-bottom: 14px;
  text-align: left;
}

.work-meta-item h4 {
  color: #FFFFFF;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 4px;
}

.work-meta-item p {
  color: #9DAEC2;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.btn-close-panel {
  width: 100%;
  height: 44px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    rgba(3, 11, 20, 0.7);
  border: 1px solid rgba(45, 63, 85, 0.3);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.btn-close-panel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Progressive Darkness Overlays */
.works-card-overlay {
  position: absolute;
  inset: 0;
  background: #040C15;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

/* Card Distance Classes managed by JS */
.works-card.card-center {
  z-index: 10;
  opacity: 1;
  pointer-events: auto;
}

.works-card.card-center .works-card-overlay {
  opacity: 0;
}

.works-card.card-side-1 {
  z-index: 5;
  opacity: 0.9;
  cursor: pointer;
}

.works-card.card-side-1 .works-card-overlay {
  opacity: 0.7;
}

.works-card.card-side-2 {
  z-index: 3;
  opacity: 0.7;
  cursor: pointer;
}

.works-card.card-side-2 .works-card-overlay {
  opacity: 0.85;
}

.works-card.card-side-3 {
  z-index: 2;
  opacity: 0.5;
  cursor: pointer;
}

.works-card.card-side-3 .works-card-overlay {
  opacity: 0.9;
}

.works-card.card-hidden {
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

.works-card.card-hidden .works-card-overlay {
  opacity: 0.95;
}

/* Navigation Arrow Container */
.carousel-nav-container {
  display: flex;
  justify-content: space-between;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 940px;
  z-index: 30;
  pointer-events: none;
  padding: 0 20px;
}

.carousel-nav-btn {
  pointer-events: auto;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    #030B14;
  border: 1px solid #101B28;
  color: #9DAEC2;
  box-shadow: 0px 0px 24px 0px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.carousel-nav-btn:hover {
  color: #FFFFFF;
  border-color: #4c565e;
  box-shadow: 0px 0px 50px 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.plan-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  min-height: 600px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(45, 63, 85, 0.3);
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    #030B14;
  box-shadow: 0px 0px 64px 0px rgba(3, 11, 20, 1);
  transition: border-color 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.plan-card:hover {
  border-color: rgba(49, 114, 255, 0.55);
  box-shadow: 0px 0px 50px 15px rgba(49, 114, 255, 0.3);
  transform: translateY(-4px);
}

.plan-badge {
  display: inline-flex;
  padding: 6px 12px;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background: #030B14;
  border: 1px solid rgba(45, 63, 85, 0.35);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  margin: 4px 0 0 0;
  text-align: left;
}

.plan-card-body {
  width: 100%;
  background: #030B14;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
}

.plan-suitability {
  color: #9DAEC2;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  margin: 0;
  text-align: left;
}

.plan-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-section h4 {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  text-align: left;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #9DAEC2;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.45;
  text-align: left;
}

.plan-plus {
  color: #9DAEC2;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  flex-shrink: 0;
}

.btn-plan-cta {
  width: 100%;
  height: 48px;
  border-radius: 4px;
  background: #030B14;
  border: 1px solid rgba(45, 63, 85, 0.35);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-plan-cta:hover {
  background: rgba(14, 60, 160, 0.3);
  border-color: rgba(14, 60, 160, 0.7);
  box-shadow: 0 0 15px rgba(14, 60, 160, 0.4);
}

/* Plans Section Typography */
#plans .plans-subtitle {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  margin-top: 16px;
  margin-bottom: 0;
}

#plans .plans-desc {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
  margin-top: 16px;
  margin-bottom: 0;
}

#plans .plans-note {
  color: #9DAEC2;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-top: 24px;
  margin-bottom: 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.start-with-us__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: stretch;
}

@media (min-width: 1200px) {
  .start-with-us__grid {
    grid-template-columns: 560px 1fr 560px;
    gap: 56px;
  }
}

.process-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.process-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(199, 206, 222, 0.5);
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.15) 1px, transparent 1px, transparent 8px),
    rgba(255, 255, 255, 0.2);
  box-shadow: 0px 0px 24px 0px rgba(164, 177, 207, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-align: left;
}

.process-badge {
  align-self: flex-start;
  padding: 6px 12px;
  background: #FFFFFF;
  border-radius: 4px;
  color: #0E3CA0;
  font-family: "DM Mono", monospace;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
}

.process-card h3 {
  color: #16273A;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.process-card p {
  color: #394553;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}

.start-with-us__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 24px;
}

.start-with-us__center h2 {
  color: #16273A;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  line-height: 76px;
  margin: 0;
}

.start-subtitle {
  color: #16273A;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 48px;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 448px;
}

.start-desc {
  color: #394553;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  line-height: 30px;
  margin-top: 16px;
  margin-bottom: 0;
  max-width: 448px;
}

.start-note {
  color: #394553;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 24px;
  margin-top: 24px;
  margin-bottom: 0;
  max-width: 448px;
}

.btn-secondary-light {
  border-radius: 4px;
  border: 1px solid rgba(45, 63, 85, 0.2);
  background:
    repeating-linear-gradient(135deg, rgba(3, 11, 20, 0.05), rgba(3, 11, 20, 0.05) 1px, transparent 1px, transparent 8px),
    #FFFFFF;
  color: #16273A;
  padding: 12px 16px;
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 30px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.btn-secondary-light:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 60, 160, 0.4);
  box-shadow: 0 0 15px rgba(164, 177, 207, 0.4);
}

.faq-wrapper {
  position: relative;
  width: 100%;
}

.faq-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: 8px;
  border: 1px solid rgba(199, 206, 222, 0.5);
  background-color: rgba(255, 255, 255, 0.4);
  background-image:
    repeating-linear-gradient(
      135deg,
      transparent,
      transparent 8px,
      rgba(199, 206, 222, 0.2) 8px,
      rgba(199, 206, 222, 0.2) 9.2px
    );
  box-shadow: 0px 0px 24px 0px rgba(164, 177, 207, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: 840px;
  text-align: left;
}

@media (min-width: 1200px) {
  .faq-wrapper {
    height: 100%;
  }
  .faq-card {
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

.faq-badge {
  align-self: flex-start;
  padding: 6px 12px;
  background: #FFFFFF;
  border-radius: 4px;
  color: #0E3CA0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}

.faq-panel {
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-right: 12px;
}

.faq-panel::-webkit-scrollbar {
  width: 6px;
}
.faq-panel::-webkit-scrollbar-track {
  background: #EBECF3;
  border-radius: 3px;
}
.faq-panel::-webkit-scrollbar-thumb {
  background: #394553;
  border-radius: 3px;
}

.faq-item {
  border: none;
  padding: 8px;
  border-radius: 6px;
  background: #FFFFFF;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 4px 12px rgba(164, 177, 207, 0.15);
}

.faq-item button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  color: #16273A;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
  line-height: 1.45;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.25s ease;
}

.faq-item button::after {
  content: "+";
  color: #C1104F;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq-item.active button::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-item__content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.faq-item.active .faq-item__content {
  grid-template-rows: 1fr;
  padding-bottom: 16px;
}

.faq-item__inner {
  min-height: 0;
  color: #394553;
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.55;
  text-align: left;
}

.link-quote {
  display: inline-block;
  color: #0E3CA0;
  font-weight: 700;
  text-decoration: none;
  position: relative;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-quote::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #0E3CA0;
  transform-origin: left center;
  transition: background-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.link-quote:hover {
  color: #C1104F;
  transform: translateY(-2px);
}

.link-quote:hover::after {
  background-color: #C1104F;
  transform: translateY(2px);
}

.site-footer {
  background: #030B14;
  border-top: 1px solid rgba(157, 174, 194, 0.12);
  color: #FFFFFF;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1250px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1.2fr 1fr;
    gap: 80px;
  }
}

/* Column 1: Navigation */
.footer-nav-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.footer-nav-link:hover {
  color: #C1104F;
  background-color: rgba(255, 255, 255, 0.05);
}

.footer-nav-link .indicator {
  color: #ABB9C8;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-nav-link:hover .indicator {
  color: #C1104F;
  transform: rotate(90deg);
}

/* Column 2: Contact */
.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.footer-contact-title {
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 21px;
  line-height: 30px;
  margin: 0;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
}

.footer-contact-item img {
  flex-shrink: 0;
}

/* Column 3: QR Code */
.footer-qr-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.qr-white-card {
  width: 166px;
  height: 166px;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 0px 24px 0px rgba(164, 177, 207, 0.3);
  flex-shrink: 0;
}

.qr-white-card img {
  display: block;
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.qr-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #FFFFFF;
}

/* Legal footer row */
.footer-legal-bar {
  border-top: 1px solid;
  border-image: linear-gradient(90deg, rgba(14, 60, 160, 1) 0%, rgba(193, 16, 79, 1) 100%) 1;
}

.footer-legal-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 1250px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .footer-legal-content {
    flex-direction: row;
    gap: 16px;
  }
}

.footer-brand-info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.footer-brand-info .brand-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  line-height: 30px;
  color: #FFFFFF;
}

.footer-brand-info .brand-subtitle {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  line-height: 18px;
  color: #9DAEC2;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  text-align: center;
}

.footer-privacy-link {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #9DAEC2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-privacy-link:hover {
  color: #FFFFFF;
}

/* Scroll To Top Button (matching Work section slide button style) */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(135deg, rgba(45, 63, 85, 0.4), rgba(45, 63, 85, 0.4) 1px, transparent 1px, transparent 7px),
    #030B14;
  border: 1px solid #101B28;
  color: #9DAEC2;
  box-shadow: 0px 0px 24px 0px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.scroll-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.scroll-to-top:hover {
  color: #FFFFFF;
  border-color: #4c565e;
  box-shadow: 0px 0px 50px 15px rgba(255, 255, 255, 0.4);
  transform: scale(1.05) translateY(-2px);
}

@media (max-width: 1023px) {
  .works-carousel-stage {
    height: 520px;
  }
  .works-card {
    width: 600px;
    height: 478px;
  }
  .work-img-col-left {
    width: 288px;
  }
  .work-detail-panel {
    width: 320px;
  }
}

@media (max-width: 768px) {
  .works-carousel-stage {
    height: 400px;
  }
  .works-card {
    width: 460px;
    height: 366px;
    padding: 8px;
  }
  .work-img-col-left {
    width: 220px;
  }
  .work-detail-panel {
    width: 220px;
    padding: 12px;
  }
  .work-detail-header h3 {
    font-size: 14px;
  }
  .work-desc, .work-meta-item p {
    font-size: 11px;
  }
  .work-meta-item h4 {
    font-size: 12px;
    margin-bottom: 2px;
  }
  .carousel-nav-container {
    padding: 0 16px;
    top: 50%;
  }

  #plans .plans-subtitle {
    font-size: 24px;
    line-height: 34px;
  }

  #plans .plans-desc {
    font-size: 16px;
    line-height: 24px;
  }

  #plans .plans-note {
    font-size: 13px;
    line-height: 20px;
    margin-top: 16px;
  }
}

@media (max-width: 576px) {
  .works-carousel-stage {
    height: 560px;
  }
  .works-card {
    width: 328px;
    height: 500px;
    padding: 6px;
    border-radius: 8px;
  }
  .works-card-content {
    flex-direction: column;
    gap: 4px;
  }
  .work-img-col-left {
    width: 100%;
    height: 310px; /* Top image height */
  }
  .work-img-col-right {
    display: flex !important; /* Ensure it is visible */
    width: 100%;
    height: 174px; /* Bottom images height */
    flex-direction: row;
    gap: 4px;
  }
  .work-img-top,
  .work-img-bottom {
    width: calc(50% - 2px);
    height: 100%;
  }
  .work-detail-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    transform: translateY(20px);
    border-left: none;
    background: rgba(3, 11, 20, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .work-detail-panel.active {
    transform: translateY(0);
  }
  .work-detail-header h3 {
    font-size: 16px;
  }
  .work-desc,
  .work-meta-item p {
    font-size: 13px;
    line-height: 1.45;
  }
  .work-meta-item h4 {
    font-size: 13px;
    margin-bottom: 2px;
  }
  .btn-view-details {
    height: 44px;
    font-size: 14px;
    bottom: 12px;
    left: 12px;
    right: 12px;
  }
}

@media (max-width: 1023px) {

  .watermark {
    opacity: 0.45;
  }

  /* Make watermark text SVGs display as wide as the mobile viewport in all sections */
  #gap .watermark,
  #method .watermark,
  #services .watermark,
  #why-us .watermark,
  #work .watermark,
  #contact .watermark {
    left: 16px !important;
    top: 24px !important;
    width: calc(100% - 32px) !important;
  }

  #plans .watermark {
    left: auto !important;
    right: 16px !important;
    top: 24px !important;
    width: calc(100% - 32px) !important;
  }

  #start-with-us .watermark {
    left: 50% !important;
    top: 24px !important;
    width: calc(100% - 32px) !important;
    transform: translateX(-50%) !important;
  }
}

@media (max-width: 640px) {
  .site-section {
    min-height: 100svh;
    padding-block: 72px;
  }

  .section-gate__button {
    max-width: calc(100vw - 32px);
    font-size: 15px;
    line-height: 22px;
    gap: 10px;
  }

  .footer-legal {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 767px) {
  /* ==========================================
     Global Mobile Typography Overrides
     ========================================== */
  .section-title {
    font-size: 40px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  .text-lead {
    font-size: 24px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }

  .text-desc {
    font-size: 18px !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    color: #394553 !important;
  }

  .text-note {
    font-size: 14px !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
    color: #394553 !important;
  }

  /* Theme Dark Overrides for Text Descriptions and Notes */
  .theme-dark .text-desc,
  .theme-dark .text-note {
    color: #fff !important;
  }

  /* ==========================================
     Card Content Overrides
     ========================================== */
  .insight-card h3,
  .method-tile h3,
  .service-feature h3,
  .service-card-new h3,
  #why-us .why-us-card h3 {
    font-weight: 600 !important;
  }

  /* Works Section Card Modal */
  .works-carousel-stage {
    height: 700px !important;
  }
  .works-card {
    height: 640px !important;
  }
  .work-img-col-left {
    height: 412px !important;
  }
  .work-img-col-right {
    height: 212px !important;
  }
  .work-detail-panel {
    height: 100% !important;
  }
  .work-detail-header h3 {
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }
  .work-meta-item h4 {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }
  .work-desc,
  .work-meta-item p {
    font-size: 15px !important;
    font-weight: 300 !important;
    line-height: 1.5 !important;
  }

  /* Plans Section Card Content */
  .plan-title {
    font-weight: 600 !important;
  }
  .plan-card {
    gap: 16px !important;
  }
  .plan-section h4 {
    font-size: 16px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }
  .plan-suitability,
  .plan-list li,
  .plan-plus {
    font-weight: 300 !important;
  }
  .plan-list {
    gap: 6px !important;
  }

  /* Start With Us Section Card Content */
  #start-with-us .why-us-card h3 {
    font-size: 21px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
  }
  #start-with-us .why-us-card p {
    font-size: 16px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

/* ==========================================
   Services Section (Section 5)
   ========================================== */

#services {
  z-index: 10;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  gap: 12px;
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(199, 206, 222, 0.5);
  border-radius: 8px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0px 0px 24px 0px rgba(164, 177, 207, 0.3);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, box-shadow, background-color, border-color;
  cursor: pointer;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .service-card:hover {
    transform: translateY(-6px);
  }
}

.service-card:hover, .service-card.active {
  background-color: rgba(255, 255, 255, 1.0);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0px 0px 32px 0px rgba(164, 177, 207, 0.45);
}

/* Service Card Hatch Background */
.service-card-hatch-bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  pointer-events: none;
  z-index: 1;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 8px,
    rgba(199, 206, 222, 0.25) 8px,
    rgba(199, 206, 222, 0.25) 9.2px
  );
  opacity: 1;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-card-hatch-bg,
.service-card.active .service-card-hatch-bg {
  opacity: 0;
}

/* Badge inside the service card */
.service-card-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 4px;
  background-color: #FFFFFF;
  color: var(--brand-color-blue-600); /* #0E3CA0 */
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: fit-content;
  box-shadow: 0px 2px 8px 0px rgba(164, 177, 207, 0.15);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-badge,
.service-card.active .service-card-badge {
  background-color: var(--brand-color-blue-600);
  color: #FFFFFF;
  box-shadow: none;
}

/* Inner Content Box of the card */
.service-card-content-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 8px;
  background-color: #FFFFFF;
  box-shadow: 0px 4px 16px 0px rgba(164, 177, 207, 0.15);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}

@media (min-width: 1024px) {
  .service-card-content-box {
    padding: 24px;
  }
}

.service-card:hover .service-card-content-box,
.service-card.active .service-card-content-box {
  background-color: transparent;
  box-shadow: none;
}

/* Specific Card Layout alignments */
.service-card.main-service-card {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card.main-service-card .service-card-content-box {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.service-card.secondary-service-card {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

.service-card.secondary-service-card .service-card-content-box {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* Text styles inside cards */
.service-card-title {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 700;
  color: #16273A;
  margin: 0 0 16px 0;
  line-height: 1.3;
}

.service-card-desc {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  color: #394553;
  margin: 0;
  line-height: 1.5;
}

/* ==========================================
   Hero Animated Glow Background & Ribs
   ========================================== */
#hero .hero-glow-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  background-color: var(--bg-color-dark-blue-950); /* Lock base color */
}

#hero svg {
  z-index: 5; /* Ensure tech grid SVG sits on top of all glow layers */
}

#hero h1 {
  text-shadow: 0 4px 16px rgba(3, 11, 20, 0.45), 0 2px 4px rgba(3, 11, 20, 0.3);
}

#hero h1 .gradient-text {
  text-shadow: none; /* Prevents text-shadow from muddying the gradient-text background clip */
}

#hero p {
  text-shadow: 0 2px 8px rgba(3, 11, 20, 0.4);
}

#hero .hero-glow-blob-wrapper {
  position: absolute;
  inset: 0;
  filter: blur(40px); /* Reduced blur to 40px for more defined glow boundaries */
  opacity: 0.35; /* Adjusted opacity to 35% for a refined glowing visual presence */
  z-index: 1;
}

#hero .hero-glow-blob {
  position: absolute;
  height: 160%; /* Stretch vertically to match mockup lines */
  border-radius: 50%;
  mix-blend-mode: screen;
  will-change: transform;
}

#hero .blob-1 {
  top: -20%;
  left: -5%;
  width: 40%;
  background: radial-gradient(ellipse at center, rgba(193, 16, 79, 0.75) 0%, rgba(193, 16, 79, 0.35) 45%, rgba(0,0,0,0) 80%); /* Brand Red #C1104F */
  animation: blob1-move 10s infinite alternate ease-in-out;
}

#hero .blob-2 {
  bottom: -30%;
  right: -5%;
  width: 45%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.7) 0%, rgba(14, 60, 160, 0.35) 45%, rgba(0,0,0,0) 80%);
  animation: blob2-move 13s infinite alternate ease-in-out;
}

#hero .blob-3 {
  top: 10%;
  left: 25%;
  width: 35%;
  background: radial-gradient(ellipse at center, rgba(147, 51, 234, 0.55) 0%, rgba(90, 10, 120, 0.25) 50%, rgba(0,0,0,0) 80%);
  animation: blob3-move 11s infinite alternate ease-in-out;
}

#hero .blob-4 {
  bottom: 0%;
  left: -10%;
  width: 38%;
  background: radial-gradient(ellipse at center, rgba(193, 16, 79, 0.6) 0%, rgba(14, 51, 234, 0.2) 50%, rgba(0,0,0,0) 80%); /* Brand Red #C1104F overlay */
  animation: blob4-move 9s infinite alternate ease-in-out;
}

#hero .blob-5 {
  top: 15%;
  left: 45%; /* Shift to right-center starting point */
  width: 35%;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(0,0,0,0) 75%); /* Dynamic White Light Overlay */
  animation: blob5-move 8s infinite alternate ease-in-out;
}

@keyframes blob1-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(32vw, 15vh) scale(1.2); } /* Sweeps rightwards across center */
  100% { transform: translate(-8vw, 25vh) scale(0.9); }
}

@keyframes blob2-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-32vw, -12vh) scale(0.85); } /* Sweeps leftwards across center */
  100% { transform: translate(12vw, -20vh) scale(1.1); }
}

@keyframes blob3-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25vw, 18vh) scale(1.25); } /* Crosses center diagonally */
  100% { transform: translate(-12vw, -10vh) scale(0.85); }
}

@keyframes blob4-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(18vw, -15vh) scale(0.9); }
  100% { transform: translate(5vw, 10vh) scale(1.05); }
}

@keyframes blob5-move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-28vw, 10vh) scale(1.15); } /* White light sweeps leftwards across center */
  100% { transform: translate(15vw, -8vh) scale(0.9); }
}

/* ==========================================
   Mobile Menu Overlay & Hamburger Animations
   ========================================== */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background-color: rgba(3, 11, 20, 0.75); /* Reduced opacity to reveal blurred background content */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%); /* Slide in from the left */
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out; /* Premium expo curve for ultra-smooth transition */
  pointer-events: none;
}

#mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#menu-toggle.open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#menu-toggle.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

#menu-toggle.open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================
   Hero Works Background Layer
   ========================================== */

.hero-works-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero-work-card {
  position: absolute;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.65),
    0 4px 12px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  will-change: transform, opacity, filter;

  /* Intro state: scale(5.0) + blur(60px) + saturate(0.2) + invisible */
  opacity: 0;
  filter: blur(60px) saturate(0.2);

  /* Transition for initial scale-down & fade-in */
  transition:
    opacity 2.4s cubic-bezier(0.22, 1, 0.36, 1),
    filter 2.2s cubic-bezier(0.22, 1, 0.36, 1),
    transform 2.8s cubic-bezier(0.16, 1, 0.3, 1);

  transform-origin: center center;
}

.hero-work-card.hw-revealed {
  opacity: 1;
  filter: blur(0px) saturate(1);
}

/* Drifting state — DISABLE transform transitions so it is smooth and doesn't flicker! */
.hero-work-card.hw-drifting {
  transition: opacity 0.5s ease-in, filter 0.5s ease-in !important;
}

/* Swap image crossfade */
.hero-work-card.hw-swapping {
  opacity: 0 !important;
  filter: blur(12px) !important;
  transition: opacity 0.5s ease-in, filter 0.5s ease-in !important;
}

.hero-work-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  filter: brightness(0.62) contrast(1.03) saturate(0.9); /* Balanced brightness at 0.62 (middle-ground) */
}

.hero-work-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(3, 11, 20, 0.52) 0%,
    rgba(3, 11, 20, 0.25) 50%,
    rgba(3, 11, 20, 0.58) 100%
  ); /* Balanced dark mask to allow better visibility of the portfolio works */
  border-radius: inherit;
}

/* GPU-accelerated smooth slide-up + fade-in for Hero Text */
.hero-content-reveal {
  opacity: 0;
  filter: blur(16px);
  transform: translate3d(0, 18px, 0); /* Luxury slide-up start */
  will-change: opacity, filter, transform;
  backface-visibility: hidden;
  perspective: 1000px;
}

.hero-content-reveal.hw-text-revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translate3d(0, 0, 0);
}

/* Mobile layout styling */
@media (max-width: 767px) {
  .hero-work-card.hw-hide-mobile {
    display: none;
  }
  .hero-work-card.hw-revealed {
    opacity: 0.4; /* lower opacity on mobile to protect text */
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-work-card,
  .hero-content-reveal {
    transition: none !important;
  }
  .hero-work-card { opacity: 0.65 !important; filter: blur(0) !important; }
  .hero-content-reveal { opacity: 1 !important; filter: blur(0) !important; }
}


/* Mobile-specific adjustments to prevent overlapping and text obstruction */
@media (max-width: 767px) {
  .hero-work-card {
    width: 135px !important; /* Cap card widths on mobile */
  }
  .hero-work-card.hw-revealed {
    opacity: 0.28 !important; /* Dim background cards more on mobile for text legibility */
  }
}

/* ==========================================
   Web Checkup Page Styles
   ========================================== */

/* Reusing existing .plan-card and .plan-card-body for form card containers */

/* URL Input Group — Container for icon + input */
.checkup-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: #030B14;
  border: 1px solid #394553;
  border-radius: 8px;
  transition: border-color 0.25s ease;
}

.checkup-input-group:focus-within {
  border-color: #3172FF;
  box-shadow: 0 0 0 2px rgba(49, 114, 255, 0.15);
}

.checkup-input-icon {
  flex-shrink: 0;
  color: #515E6D;
}

.checkup-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #FFFFFF;
  font-family: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
  font-size: 21px;
  line-height: 30px;
}

.checkup-input::placeholder {
  color: #515E6D;
}

.checkup-input-group.checkup-error {
  border-color: #C1104F !important;
  box-shadow: 0 0 0 2px rgba(193, 16, 79, 0.15) !important;
  animation: checkup-shake 0.4s ease;
}

@keyframes checkup-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* Custom Select Wrapper */
.checkup-select-wrapper {
  position: relative;
}

.checkup-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  background: #030B14;
  border: 1px solid #394553;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.25s ease;
  font-family: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
}

.checkup-select-trigger:hover {
  border-color: #515E6D;
}

.checkup-select-wrapper.is-open .checkup-select-trigger {
  border-color: #3172FF;
  box-shadow: 0 0 0 2px rgba(49, 114, 255, 0.15);
}

.checkup-select-value {
  color: #515E6D;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkup-select-value.has-value {
  color: #FFFFFF;
}

.checkup-select-arrow {
  flex-shrink: 0;
  color: #515E6D;
  transition: transform 0.25s ease;
}

.checkup-select-wrapper.is-open .checkup-select-arrow {
  transform: rotate(180deg);
}

/* Dropdown List — Dark theme (ตามที่ user ต้องการ) */
.checkup-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: 320px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px;
  background: #0A1628;
  border: 1px solid #394553;
  border-radius: 8px;
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3);

  /* Hidden by default */
  display: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.checkup-select-wrapper.is-open .checkup-dropdown {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.checkup-dropdown li {
  padding: 10px 16px;
  font-family: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  color: #9DAEC2;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.checkup-dropdown li:hover {
  background: rgba(49, 114, 255, 0.12);
  color: #FFFFFF;
}

.checkup-dropdown li.is-selected {
  background: rgba(49, 114, 255, 0.18);
  color: #3172FF;
  font-weight: 500;
}

/* Dropdown scrollbar */
.checkup-dropdown::-webkit-scrollbar {
  width: 6px;
}
.checkup-dropdown::-webkit-scrollbar-track {
  background: transparent;
}
.checkup-dropdown::-webkit-scrollbar-thumb {
  background: #394553;
  border-radius: 3px;
}

/* Submit Button */
.checkup-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #0E3CA0;
  border: 1px solid #214DAD;
  border-radius: 4px;
  color: #FFFFFF;
  font-family: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
}

.checkup-submit-btn:hover {
  background: #0c3590;
  box-shadow: 0 0 20px rgba(14, 60, 160, 0.4);
  transform: translateY(-1px);
}

.checkup-submit-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.checkup-submit-btn:disabled {
  cursor: not-allowed;
}

/* Category Pills */
.checkup-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #16273A;
  border: 1px solid #394553;
  border-radius: 40px;
  color: rgba(255, 255, 255, 0.5);
  font-family: 'Google Sans Flex', 'Noto Sans Thai', sans-serif;
  font-size: 12px;
  line-height: 16px;
  user-select: none;
}

.checkup-pill svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Responsive ── */
@media (max-width: 767px) {
  .checkup-form-card {
    padding: 16px;
  }

  .checkup-input {
    font-size: 16px;
    line-height: 24px;
  }

  .checkup-form-inner {
    padding: 6px;
  }

  #checkup-hero h1 {
    font-size: 32px !important;
    line-height: 1.45 !important;
  }

  #checkup-hero .gradient-text {
    font-size: 28px !important;
    line-height: 1.45 !important;
  }
}

/* ==========================================
   Web Checkup Progress/Loading Page Styles
   ========================================== */

/* Globe & Dots Animations */
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

.animate-pulse-scale {
  animation: pulse-scale 2.2s infinite ease-in-out;
}

@keyframes dots-fade {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 1; }
}

.left-dots {
  animation: dots-fade 1.6s infinite ease-in-out;
}

.right-dots {
  animation: dots-fade 1.6s infinite ease-in-out 0.8s;
}

/* Checklist Steps styling */
.checkup-step-item {
  border: 1px solid transparent;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

/* Active Step — Blue gradient text, glowing border, pulsing icon */
.checkup-step-item.active-step {
  background: rgba(14, 60, 160, 0.08);
  border: 1px solid rgba(49, 114, 255, 0.25);
  box-shadow: 0 4px 20px rgba(14, 60, 160, 0.1);
}

/* Active Step — Background gradient progress sweep */
.checkup-step-item.active-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(
    90deg,
    rgba(49, 114, 255, 0.15) 0%,
    rgba(100, 140, 200, 0.12) 60%,
    rgba(150, 170, 210, 0.06) 85%,
    transparent 100%
  );
  border-radius: 14px;
  z-index: 0;
  animation: step-progress-sweep var(--step-duration, 2s) ease-out forwards;
}

/* Ensure content sits above the sweep */
.checkup-step-item.active-step > * {
  position: relative;
  z-index: 1;
}

@keyframes step-progress-sweep {
  0% { width: 0%; }
  100% { width: 100%; }
}

.checkup-step-item.active-step .step-icon {
  color: #3172FF;
  animation: pulse-scale 1.5s infinite ease-in-out;
}

.checkup-step-item.active-step .step-text {
  color: #FFFFFF;
}

.checkup-step-item.active-step .step-status {
  color: #3172FF;
  animation: dots-fade 1.2s infinite ease-in-out;
}

/* Completed Step — Green icon, text and status */
.checkup-step-item.completed-step .step-icon {
  color: #05DF72 !important;
}

.checkup-step-item.completed-step .step-text {
  color: #FFFFFF !important;
}

.checkup-step-item.completed-step .step-status {
  color: #05DF72 !important;
}

/* Scan Cards Marquee sliding in background */
.checkup-scan-wrapper {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  
  /* Fade out at screen edges using gradients mask */
  mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25%, black 75%, transparent);
}

.checkup-scan-wrapper.scan-active {
  opacity: 0.4 !important;
}

.checkup-scan-track {
  display: flex;
  gap: 48px;
  width: max-content;
  align-items: center;
}

/* Keyframes for seamless infinite scrolling loop from right to left */
@keyframes marquee-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 4 cards * 451px + 4 gaps * 48px = 1804px + 192px = 1996px */
    transform: translateX(-1996px);
  }
}

.checkup-scan-wrapper.scan-active .checkup-scan-track {
  animation: marquee-left 25s linear infinite;
}

.checkup-scan-card {
  width: 451px;
  height: 640px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 8px),
    #030B14;
  border: 1px solid rgba(45, 63, 85, 0.22);
  border-radius: 8px;
  box-shadow: 0px 0px 64px 0px rgba(3, 11, 20, 1);
  opacity: 1 !important;
  transform: none !important;
}

/* Cancel scroll reveal overrides specifically for Web Checkup cards to avoid invisibility */
#checkup-hero .plan-card {
  opacity: 1 !important;
  transform: none !important;
  min-height: auto !important;
}


/* --- Accordion & Sub-Accordion UX Interactions --- */
.result-accordion-trigger {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.result-accordion-trigger:hover {
  background-color: rgba(22, 39, 58, 0.3);
}

.result-accordion-panel > div:has(.sub-accordion-trigger) {
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.result-accordion-panel > div:has(.sub-accordion-trigger):hover {
  border-color: rgba(49, 114, 255, 0.5) !important;
  background-color: rgba(22, 39, 58, 0.2);
}
.sub-accordion-trigger {
  cursor: pointer;
}

/* --- Device Toggle Buttons (Result page) --- */
.device-toggle-btn {
  border-color: #394553;
  color: #394553;
}
.device-toggle-btn:hover {
  border-color: #9DAEC2;
  color: #9DAEC2;
}
.device-toggle-btn.active {
  border-color: #9DAEC2;
  color: #9DAEC2;
}

/* --- Unlock Toast Notification --- */
.unlock-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 9999;
  max-width: 440px;
  width: calc(100% - 64px);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid #05DF72;
  background: rgba(5, 223, 114, 0.20);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  animation: toast-slide-in 300ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.unlock-toast.toast-dismiss {
  animation: toast-float-out 600ms cubic-bezier(0.55, 0, 1, 0.45) forwards;
}
.unlock-toast.toast-dismiss-fast {
  animation: toast-float-out 200ms ease-out forwards;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes toast-float-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}

/* --- Unlock Progress Bar --- */
.unlock-progress-bar-track {
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
}
.unlock-progress-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(49,114,255,1) 30%, rgba(252,22,104,1) 100%);
  border-radius: 9999px;
  transition: width 50ms linear;
}
.unlock-progress-bar-text {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
