/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: hidden;
}

::selection {
  background-color: rgba(12, 142, 235, 0.15);
  color: inherit;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --gradient-primary: linear-gradient(135deg, #0c8eeb 0%, #053f6f 100%);
  --gradient-accent: linear-gradient(135deg, #ff8411 0%, #c74f08 100%);
  --gradient-night: linear-gradient(135deg, #032848 0%, #053f6f 50%, #054b86 100%);
  --gradient-cream: linear-gradient(180deg, #fdf8f3 0%, #faf3ea 100%);
  --gradient-mesh: radial-gradient(at 20% 10%, rgba(12, 142, 235, 0.08) 0px, transparent 50%),
                   radial-gradient(at 80% 80%, rgba(255, 132, 17, 0.06) 0px, transparent 50%),
                   radial-gradient(at 90% 30%, rgba(124, 197, 253, 0.05) 0px, transparent 50%);
  --shadow-elevated: 0 20px 50px -12px rgba(5, 63, 111, 0.18), 0 8px 16px -8px rgba(5, 63, 111, 0.08);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(5, 63, 111, 0.06);
  --shadow-cta: 0 10px 30px -8px rgba(255, 132, 17, 0.5), 0 4px 12px -4px rgba(199, 79, 8, 0.3);
}

.bg-mesh { background: var(--gradient-mesh), #fff; }
.bg-cream { background: var(--gradient-cream); }
.bg-night { background: var(--gradient-night); }

/* ===== SECTION DIVIDERS ===== */
.section-divider {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
  z-index: 2;
  margin-top: -1px;
  margin-bottom: -1px;
  overflow: hidden;
  pointer-events: none;
}

.section-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Subtle blur transition between sections */
.section-blend-top {
  position: relative;
}

.section-blend-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04) 0%, transparent 100%);
  pointer-events: none;
}

/* ===== SECTION TAG (eyebrow) ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

/* ===== DISPLAY TYPOGRAPHY ===== */
.display-xl {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 700;
}

/* ===== NUMBER DISPLAY ===== */
.number-hero {
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  background: linear-gradient(135deg, #0c8eeb 0%, #ff8411 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
}

/* ===== HEADER ===== */
#header {
  background: transparent;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
}

.header-logo-text {
  color: #fff;
  transition: color 0.5s;
}

#header.scrolled .header-logo-text {
  color: #212529;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ff8411;
  transition: width 0.3s;
}

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

#header.scrolled .nav-link {
  color: #495057;
}

#header.scrolled .nav-link:hover {
  color: #0c8eeb;
}

.mobile-nav-link {
  display: block;
  padding: 0.5rem 0;
  color: #343a40;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: #0c8eeb;
}

/* ===== FULL SCREEN MOBILE MENU ===== */
#mobile-menu.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: linear-gradient(135deg, #032848 0%, #053f6f 50%, #054b86 100%);
  border: none;
  display: flex !important;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

#mobile-menu.fullscreen.show {
  opacity: 1;
  pointer-events: auto;
}

/* When desktop, hide completely */
@media (min-width: 768px) {
  #mobile-menu.fullscreen {
    display: none !important;
  }
}

#mobile-menu.fullscreen::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

#mobile-menu.fullscreen::after {
  content: '';
  position: absolute;
  top: -150px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: rgba(255, 132, 17, 0.15);
  filter: blur(80px);
  border-radius: 50%;
  pointer-events: none;
}

.mobile-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: padding-left 0.3s, background 0.3s;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  animation-fill-mode: forwards;
}

#mobile-menu.fullscreen.show .mobile-menu-item {
  animation: menuItemIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#mobile-menu.fullscreen.show .mobile-menu-item:nth-child(1) { animation-delay: 0.15s; }
#mobile-menu.fullscreen.show .mobile-menu-item:nth-child(2) { animation-delay: 0.22s; }
#mobile-menu.fullscreen.show .mobile-menu-item:nth-child(3) { animation-delay: 0.29s; }
#mobile-menu.fullscreen.show .mobile-menu-item:nth-child(4) { animation-delay: 0.36s; }
#mobile-menu.fullscreen.show .mobile-menu-item:nth-child(5) { animation-delay: 0.43s; }

@keyframes menuItemIn {
  to { opacity: 1; transform: translateX(0); }
}

.mobile-menu-item:hover {
  padding-left: 0.75rem;
}

.mobile-menu-item:hover .mobile-menu-arrow {
  transform: translateX(8px);
  color: #ffa038;
}

.mobile-menu-num {
  flex-shrink: 0;
  width: 32px;
  font-family: 'Noto Serif JP', serif;
  font-weight: 900;
  font-size: 0.875rem;
  color: rgba(255, 132, 17, 0.6);
  letter-spacing: 0.05em;
  padding-top: 0.5rem;
}

.mobile-menu-text {
  flex: 1;
}

.mobile-menu-title {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.mobile-menu-desc {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.mobile-menu-arrow {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s, color 0.3s;
  align-self: center;
}

.mobile-menu-cta-block {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s, transform 0.5s;
  transition-delay: 0.55s;
}

#mobile-menu.fullscreen.show .mobile-menu-cta-block {
  opacity: 1;
  transform: translateY(0);
}

/* Hamburger close (X) state */
.hamburger-icon.active span {
  background: #fff !important;
}

/* ===== HAMBURGER ===== */
.hamburger-icon {
  width: 22px;
  height: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

#header.scrolled .hamburger-icon span {
  background: #343a40;
}

.hamburger-icon.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-icon.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== HERO ===== */
.hero-grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* Hero grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Glowing orb */
.glow-orb {
  filter: blur(80px);
  pointer-events: none;
}

/* Hero section height control */
.hero-section {
  min-height: 100svh;
  min-height: 100vh; /* fallback */
}

@media (min-width: 1024px) {
  .hero-section {
    min-height: 100vh;
  }
}

@media (max-width: 767px) {
  .hero-section {
    min-height: auto;
  }
}

/* Hero number plate */
.hero-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s;
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

/* Animated underline for hero highlight */
.hero-highlight {
  position: relative;
  display: inline-block;
  background-image: linear-gradient(180deg, transparent 65%, rgba(255, 132, 17, 0.45) 65%, rgba(255, 132, 17, 0.45) 100%);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  padding: 0 0.05em;
  animation: highlight-grow 1.2s 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes highlight-grow {
  to { background-size: 100% 100%; }
}

/* ===== SCROLL LINE ANIMATION ===== */
.scroll-line {
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50% { opacity: 0.8; transform: scaleY(1); transform-origin: top; }
}

/* ===== FLOATING ANIMATIONS ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

@keyframes floatDelay {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-15px) scale(1.03); }
}

.animate-float {
  animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
  animation: floatDelay 10s ease-in-out infinite;
  animation-delay: 2s;
}

/* ===== SLOW SPIN ===== */
.animate-spin-slow {
  animation: spin 8s linear infinite;
}

.animate-spin-very-slow {
  animation: spin 30s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.revealed,
.reveal-left.revealed,
.reveal-right.revealed {
  opacity: 1;
  transform: translate(0, 0);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== COUNTER ANIMATION ===== */
.counter-animate {
  display: inline-block;
}

/* ===== FAQ ACCORDION ===== */
.faq-item {
  transition: box-shadow 0.3s;
}

.faq-item.active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.faq-trigger {
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s;
}

.faq-content.show {
  max-height: 300px;
}

/* ===== LOOP ITEMS ===== */
.loop-item {
  position: relative;
}

/* ===== PROBLEM CARD ===== */
.problem-card {
  position: relative;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s, border-color 0.4s;
}

.problem-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, transparent 30%, rgba(12, 142, 235, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

.problem-card:hover::before {
  opacity: 1;
}

/* ===== ENHANCED CTA BUTTON ===== */
.btn-primary-cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ff8411 0%, #f06a07 50%, #c74f08 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  transition: background-position 0.6s, transform 0.3s, box-shadow 0.3s;
  box-shadow: var(--shadow-cta);
}

.btn-primary-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
  transition: left 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary-cta:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -8px rgba(255, 132, 17, 0.6), 0 6px 16px -4px rgba(199, 79, 8, 0.4);
}

.btn-primary-cta:hover::before {
  left: 100%;
}

/* ===== LOOP DIAGRAM (CIRCULAR) ===== */
.loop-circle {
  position: relative;
  aspect-ratio: 1;
  max-width: 720px;
  margin: 0 auto;
}

.loop-node {
  position: absolute;
  width: 28%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.loop-node-inner {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1rem 0.75rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.4s, background 0.4s, border-color 0.4s;
}

.loop-node-inner:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 132, 17, 0.4);
  transform: scale(1.05);
}

.loop-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff8411, #c74f08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  box-shadow: 0 0 60px rgba(255, 132, 17, 0.3), 0 0 120px rgba(255, 132, 17, 0.15);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 60px rgba(255, 132, 17, 0.3), 0 0 120px rgba(255, 132, 17, 0.15); }
  50% { box-shadow: 0 0 80px rgba(255, 132, 17, 0.45), 0 0 160px rgba(255, 132, 17, 0.25); }
}

.loop-arrow {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  pointer-events: none;
  opacity: 0.4;
  transform-origin: center center;
}

@media (max-width: 768px) {
  .loop-circle { display: none; }
  .loop-grid-mobile { display: grid !important; }
}

.loop-grid-mobile { display: none; }

/* ===== BAR CHART ===== */
.bar-chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bar-chart-label {
  flex: 0 0 30%;
  font-size: 0.875rem;
  color: #495057;
}

.bar-chart-track {
  flex: 1;
  height: 28px;
  background: rgba(12, 142, 235, 0.06);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.bar-chart-fill {
  height: 100%;
  background: linear-gradient(90deg, #36a9fa, #0c8eeb);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.75rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.8125rem;
  transition: width 1.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 0;
}

.bar-chart-row.in-view .bar-chart-fill {
  width: var(--bar-width, 50%);
}

.bar-chart-fill.accent {
  background: linear-gradient(90deg, #ffa038, #f06a07);
}

.bar-chart-fill.danger {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

/* ===== STAT BIG NUMBER ===== */
.stat-block {
  position: relative;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
  border: 1px solid rgba(12, 142, 235, 0.08);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}

.stat-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(12, 142, 235, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stat-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* ===== SECTION OFFSET BADGE ===== */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: linear-gradient(135deg, rgba(12, 142, 235, 0.08), rgba(12, 142, 235, 0.02));
  border: 1px solid rgba(12, 142, 235, 0.15);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: #0070c9;
}

.section-badge.dark {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border-color: rgba(255, 132, 17, 0.4);
  color: #ffa038;
}

.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: currentColor;
  border-radius: 50%;
  box-shadow: 0 0 8px currentColor;
}

/* ===== MID-PAGE CTA ===== */
.mid-cta-banner {
  position: relative;
  margin-top: 3rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(255, 132, 17, 0.08), rgba(12, 142, 235, 0.05));
  border: 1px solid rgba(255, 132, 17, 0.2);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.mid-cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 132, 17, 0.1), transparent 60%);
  pointer-events: none;
}

.mid-cta-banner:hover {
  border-color: rgba(255, 132, 17, 0.4);
  box-shadow: 0 10px 30px -10px rgba(255, 132, 17, 0.2);
}

.mid-cta-banner.dark {
  background: linear-gradient(135deg, rgba(255, 132, 17, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(255, 132, 17, 0.3);
}

.mid-cta-text {
  flex: 1;
  min-width: 200px;
  position: relative;
  z-index: 1;
}

.mid-cta-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: #f06a07;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mid-cta-eyebrow::before {
  content: '';
  width: 16px;
  height: 1px;
  background: #f06a07;
}

.mid-cta-eyebrow.dark { color: #ffa038; }
.mid-cta-eyebrow.dark::before { background: #ffa038; }

.mid-cta-headline {
  font-family: 'Noto Serif JP', serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #212529;
  line-height: 1.4;
}

.mid-cta-headline.dark { color: #fff; }

@media (min-width: 640px) {
  .mid-cta-headline { font-size: 1.25rem; }
}

/* Inline soft CTA (subtle text link version) */
.mid-cta-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(12, 142, 235, 0.08);
  border: 1px solid rgba(12, 142, 235, 0.2);
  border-radius: 999px;
  color: #0070c9;
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s;
}

.mid-cta-soft:hover {
  background: rgba(12, 142, 235, 0.12);
  border-color: rgba(12, 142, 235, 0.4);
  transform: translateX(4px);
}

.mid-cta-soft .arrow {
  transition: transform 0.3s;
}

.mid-cta-soft:hover .arrow {
  transform: translateX(4px);
}

/* ===== SCROLL PROGRESS BAR ===== */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff8411, #f06a07);
  width: 0%;
  z-index: 100;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(255, 132, 17, 0.5);
}

/* ===== ENHANCED REVEAL VARIATIONS ===== */
.reveal-scale {
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* ===== SECTION TRANSITION DECORATIONS ===== */
.section-decor-tl,
.section-decor-br {
  position: absolute;
  pointer-events: none;
  opacity: 0.6;
}

.section-decor-tl {
  top: -1px;
  left: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at top left, rgba(12, 142, 235, 0.08), transparent 60%);
}

.section-decor-br {
  bottom: -1px;
  right: 0;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle at bottom right, rgba(255, 132, 17, 0.06), transparent 60%);
}

/* ===== TABLE STYLES ===== */
table {
  border-collapse: separate;
  border-spacing: 0;
}

/* ===== FORM STYLES ===== */
input::placeholder,
textarea::placeholder {
  opacity: 0.5;
}

select option {
  background: #fff;
  color: #343a40;
}

:focus-visible {
  outline: 2px solid #0c8eeb;
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #ff8411;
  outline-offset: 2px;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f3f5;
}

::-webkit-scrollbar-thumb {
  background: #ced4da;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #adb5bd;
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .reveal-left,
  .reveal-right {
    transform: translateY(30px);
  }

  #hero {
    min-height: 100svh;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  #header,
  #floating-cta,
  .scroll-line {
    display: none !important;
  }

  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1 !important;
    transform: none !important;
  }
}
