/* ========================================
   ナースロビー (NURSE ROBBY) - Warm Nostalgic Theme
   Cream+Teal / Mobile-first / Botanical
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-primary: #FAFAF2;
  --bg-secondary: #F2EFE6;
  --bg-card: #FFFFFF;
  --accent: #5B787D;
  --accent-hover: #4A6368;
  --accent-glow: rgba(91, 120, 125, 0.08);
  --accent-secondary: #8FB5A1;
  --accent-warm: #C4956A;
  --gradient-accent: linear-gradient(135deg, #5B787D 0%, #8FB5A1 100%);
  --text-primary: #4A4A4A;
  --text-secondary: #7A7A7A;
  --text-heading: #2D2D2D;
  --border: #D4CFC2;
  --error: #D45B5B;
  --success: #5B9E6F;
  --font-heading: "Noto Serif JP", "Yu Mincho", serif;
  --font-main: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 4px 20px rgba(91, 120, 125, 0.08);
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  /* Fluid type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.15vw, 0.85rem);
  --text-sm: clamp(0.8rem, 0.75rem + 0.2vw, 0.9rem);
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1.05rem);
  --text-lg: clamp(1.05rem, 0.95rem + 0.4vw, 1.2rem);
  --text-xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.6rem);
  --text-2xl: clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem);
  --text-3xl: clamp(2rem, 1.5rem + 2vw, 3rem);
  --text-hero: clamp(2.6rem, 1.8rem + 3.5vw, 4.5rem);
  /* Fluid spacing */
  --space-section: clamp(60px, 8vw, 120px);
  --space-block: clamp(32px, 5vw, 64px);
  --space-element: clamp(16px, 2.5vw, 32px);
  --pad-container: clamp(16px, 4vw, 52px);
  /* Z-index system */
  --z-base: 1;
  --z-header: 100;
  --z-mobile-menu: 200;
  --z-sticky-cta: 300;
  --z-chat: 10000;
  --z-loading: 9000;
  --z-progress: 9500;
  --z-cursor: 9800;
  --z-grain: 9900;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

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

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--pad-container);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
  text-align: center;
  margin-bottom: var(--space-element);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-title .highlight {
  font-weight: 800;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.section-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: var(--space-block);
  font-size: var(--text-base);
}

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

/* ---------- Scroll Progress Bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: var(--z-progress);
  transition: width 0.1s linear;
}

/* ---------- Loading Screen ---------- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-loading);
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

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

.loading-logo .logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: 3px;
  opacity: 0;
  animation: loadingFadeIn 0.8s ease forwards;
}

.loading-logo .logo-text .logo-accent {
  color: var(--accent);
}

/* Old .loading-bar replaced by SVG .loading-circle */

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

@keyframes loadingSlide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ---------- Custom Cursor (Desktop) ---------- */
.custom-cursor {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .custom-cursor {
    display: block;
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: var(--z-cursor);
    transition: transform 0.15s ease, opacity 0.3s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: normal;
  }

  .custom-cursor.cursor-hover {
    transform: translate(-50%, -50%) scale(1.8);
    background: rgba(91, 120, 125, 0.10);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-primary:hover {
  color: #FFFFFF;
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(91, 120, 125, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #FFFFFF;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  background: rgba(250, 250, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.header.scrolled {
  background: rgba(250, 250, 242, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: 1px;
}

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

.nav {
  display: none;
  gap: 28px;
  align-items: center;
}

.nav a {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav a:hover {
  color: var(--accent);
}

.nav a:hover::after {
  width: 100%;
}

.nav .nav-cta {
  background: var(--accent);
  color: #FFFFFF;
  padding: 8px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}

.nav .nav-cta::after {
  display: none;
}

.nav .nav-cta:hover {
  color: #FFFFFF;
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(91, 120, 125, 0.2);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: calc(var(--z-header) + 1);
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

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

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(250, 250, 242, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  padding: 20px;
  gap: 16px;
  z-index: var(--z-mobile-menu);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--text-primary);
  font-size: var(--text-lg);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu .nav-cta {
  text-align: center;
  background: var(--accent);
  color: #FFFFFF;
  padding: 14px;
  border-radius: var(--radius);
  border-bottom: none;
  font-weight: 600;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  position: relative;
  overflow: hidden;
}

/* Animated gradient background - disabled for warm theme */
.hero-gradient-bg {
  display: none;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  25% { background-position: 100% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 0% 100%; }
  100% { background-position: 0% 50%; }
}

/* Particle canvas - hidden for warm theme */
#particleCanvas {
  display: none !important;
}

/* Radial glow overlay - disabled for warm theme */
.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-label {
  display: inline-block;
  background: var(--accent);
  border: none;
  color: #FFFFFF;
  padding: 6px 20px;
  border-radius: 50px;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-element);
  letter-spacing: 0.08em;
  opacity: 0;
  animation: heroElementIn 0.8s var(--ease-out-expo) 0.3s forwards;
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--text-heading);
  line-height: 1.2;
  margin-bottom: var(--space-element);
  letter-spacing: -0.04em;
  opacity: 0;
  animation: heroElementIn 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-title-gradient {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

/* Typing cursor for hero subtitle */
.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-block);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: heroElementIn 1s var(--ease-out-expo) 0.7s forwards;
}

.hero-cta {
  font-size: var(--text-lg);
  padding: 18px 52px;
  opacity: 0;
  animation: heroElementIn 1s var(--ease-out-expo) 0.9s forwards;
}

.hero-note {
  margin-top: var(--space-element);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  opacity: 0;
  animation: heroElementIn 1s var(--ease-out-expo) 1.1s forwards;
}

@keyframes heroElementIn {
  from {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ---------- Hero Slideshow & Media ---------- */
.hero-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-slide-active {
  opacity: 1;
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.hero-media::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250, 250, 242, 0.75);
  z-index: 1;
  pointer-events: none;
}

.hero-botanical {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  opacity: 0.08;
  z-index: 2;
  pointer-events: none;
}

.placeholder-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  opacity: 0;
  position: absolute;
  bottom: 8px;
  pointer-events: none;
  user-select: none;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

/* ---------- Hero Video ---------- */
.hero-video-wrapper {
  max-width: 640px;
  margin: var(--space-block) auto 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  z-index: 3;
}

.hero-video-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  position: relative;
  cursor: pointer;
}

.video-play-btn {
  width: 64px;
  height: 64px;
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 4px 20px rgba(91, 120, 125, 0.2);
}

.video-play-btn:hover {
  background: var(--accent-hover);
  transform: scale(1.08);
}

/* ---------- Botanical Divider ---------- */
.botanical-divider {
  text-align: center;
  padding: 24px 0;
  opacity: 0.15;
  pointer-events: none;
}

.botanical-divider svg {
  max-width: 200px;
  height: auto;
}

/* ---------- Section Image Placeholder ---------- */
.section-image-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin: var(--space-element) 0;
}

/* ---------- Stats Bar ---------- */
.stats-bar {
  padding: 40px 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  text-align: center;
}

.stat-item {
  padding: 16px 8px;
}

.stat-number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  line-height: 1.2;
}

.stat-number small {
  font-size: 1rem;
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
  letter-spacing: 0.08em;
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--space-section) 0;
  position: relative;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: var(--space-block);
}

.testimonial-card {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  position: relative;
  transition: all 0.4s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(91, 120, 125, 0.10);
}

.testimonial-quote {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}

.testimonial-rating {
  color: var(--accent-warm);
  font-size: var(--text-base);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-text {
  color: var(--text-primary);
  font-size: var(--text-sm);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.testimonial-info strong {
  color: var(--text-heading);
  font-size: var(--text-sm);
}

.testimonial-info span {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.testimonial-salary {
  color: var(--accent) !important;
  font-weight: 600;
}

.testimonials-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: var(--space-block);
  padding: var(--space-element) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

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

.testimonial-stat-number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  line-height: 1.2;
}

.testimonial-stat-label {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: 4px;
}

.testimonials-disclaimer {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-element);
  opacity: 0.7;
}

/* ---------- Features (Glassmorphism Cards) ---------- */
.features {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: var(--space-block);
}

.feature-card {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.feature-card::before {
  display: none;
}

.feature-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(91, 120, 125, 0.12);
}

.feature-card:hover::before {
  display: none;
}

.feature-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-icon {
  display: inline-block;
  background: rgba(91, 120, 125, 0.08);
  color: var(--accent);
  padding: 8px 20px;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(91, 120, 125, 0.15);
  position: relative;
  z-index: 1;
}

.feature-card h3 {
  font-size: var(--text-xl);
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  position: relative;
  z-index: 1;
}

/* ---------- Hospitals Table ---------- */
.hospitals {
  padding: var(--space-section) 0;
  position: relative;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: var(--space-block);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #FFFFFF;
  backdrop-filter: none;
}

.hospital-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.hospital-table th,
.hospital-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.hospital-table thead {
  background: var(--bg-secondary);
}

.hospital-table th {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hospital-table tbody tr {
  background: #FFFFFF;
  transition: background var(--transition);
}

.hospital-table tbody tr:hover {
  background: var(--bg-secondary);
}

.hospital-table td {
  font-size: var(--text-sm);
}

.hospital-table td small {
  color: var(--text-secondary);
}

.table-note {
  margin-top: var(--space-element);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  text-align: center;
}

/* ---------- Flow Steps ---------- */
.flow {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
  position: relative;
}

.flow-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: var(--space-block);
}

.flow-step {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  width: 100%;
  max-width: 480px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.flow-step:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(91, 120, 125, 0.10);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: var(--text-lg);
  font-weight: 800;
  margin-bottom: 16px;
}

.flow-step h3 {
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-bottom: 8px;
}

.flow-step p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.flow-connector {
  width: 2px;
  height: 32px;
  background: var(--border);
  position: relative;
}

/* ---------- Mission ---------- */
.mission {
  padding: var(--space-section) 0;
  position: relative;
}

.mission-content {
  margin-top: var(--space-block);
}

.cycle-diagram {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: var(--space-block);
}

.cycle-item {
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  backdrop-filter: none;
}

.cycle-bad {
  background: rgba(212, 91, 91, 0.06);
  border: 1px solid rgba(212, 91, 91, 0.2);
}

.cycle-good {
  background: rgba(91, 120, 125, 0.06);
  border: 1px solid rgba(91, 120, 125, 0.2);
}

.cycle-label {
  font-size: var(--text-xs);
  font-weight: 700;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cycle-bad .cycle-label {
  color: var(--error);
}

.cycle-good .cycle-label {
  color: var(--accent);
}

.cycle-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
}

.cycle-flow span {
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 12px;
  border-radius: var(--radius);
}

.cycle-arrow {
  background: none !important;
  padding: 0 !important;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

.mission-statement blockquote {
  font-size: var(--text-xl);
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--text-heading);
  border-left: 4px solid var(--accent);
  padding-left: 20px;
  margin-bottom: 20px;
}

.mission-statement p {
  color: var(--text-secondary);
  line-height: 1.9;
}

/* ---------- Trust Section ---------- */
.trust {
  padding: var(--space-section) 0;
  background: var(--bg-secondary);
}

.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: var(--space-block);
}

.trust-item {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.trust-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(91, 120, 125, 0.10);
}

.trust-item h3 {
  color: var(--accent);
  font-size: var(--text-base);
  margin-bottom: 12px;
}

.trust-item p {
  color: var(--text-primary);
  font-size: var(--text-sm);
  margin-bottom: 8px;
}

.trust-item small {
  color: var(--text-secondary);
  font-size: var(--text-xs);
}

.trust-link {
  display: inline-block;
  margin-top: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
}

/* ---------- Registration Form ---------- */
.register {
  padding: var(--space-section) 0;
  position: relative;
}

.register-form {
  max-width: 640px;
  margin: 0 auto;
  margin-top: 32px;
}

.form-section {
  margin-bottom: 40px;
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.form-section-title {
  font-size: var(--text-lg);
  font-family: var(--font-heading);
  color: var(--text-heading);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.required-badge {
  background: var(--accent);
  color: #FFFFFF;
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
  vertical-align: middle;
}

.optional-badge {
  background: var(--border);
  color: var(--text-secondary);
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 50px;
  font-weight: 600;
  vertical-align: middle;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
  transition: color var(--transition);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-main);
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 120, 125, 0.10), 0 0 12px rgba(91, 120, 125, 0.06);
}

.form-group input:focus + label,
.form-group:focus-within label {
  color: var(--accent);
}

.form-group input.error,
.form-group select.error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(212, 91, 91, 0.1);
}

.error-msg {
  display: block;
  color: var(--error);
  font-size: var(--text-xs);
  margin-top: 4px;
  min-height: 20px;
}

.consent-group {
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: var(--text-sm);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.btn-submit {
  width: 100%;
  font-size: var(--text-lg);
  padding: 16px;
  margin-top: 8px;
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  text-align: center;
  margin-top: var(--space-element);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ---------- Thanks Section ---------- */
.thanks {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-section) 20px;
}

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

.thanks-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 2.5rem;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(91, 120, 125, 0.2);
}

.thanks-content h2 {
  font-size: var(--text-2xl);
  color: var(--text-heading);
  margin-bottom: var(--space-element);
}

.thanks-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.thanks-content .btn {
  margin-top: 24px;
}

/* ---------- Match Results ---------- */
.match-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  text-align: left;
}

.match-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-heading);
  text-align: center;
  margin-bottom: 8px;
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
}

.match-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-block);
}

.match-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.match-card {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(30px);
  animation: matchCardIn 0.6s var(--ease-out-expo) forwards;
}

.match-card:nth-child(1) {
  border-left-color: var(--accent);
  animation-delay: 0.1s;
}

.match-card:nth-child(2) {
  border-left-color: var(--accent-secondary);
  animation-delay: 0.25s;
}

.match-card:nth-child(3) {
  border-left-color: var(--accent-warm);
  animation-delay: 0.4s;
}

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

.match-card::after {
  display: none;
}

.match-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.match-card-rank {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.match-card-score {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.match-card-score-bar {
  width: 80px;
  height: 6px;
  background: var(--bg-secondary);
  border-radius: 3px;
  overflow: hidden;
}

.match-card-score-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s var(--ease-out-expo);
}

.match-card:nth-child(1) .match-card-score-fill {
  background: var(--accent);
}

.match-card:nth-child(2) .match-card-score-fill {
  background: var(--accent-secondary);
}

.match-card:nth-child(3) .match-card-score-fill {
  background: var(--accent-warm);
}

.match-card-score-value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-heading);
  min-width: 36px;
  text-align: right;
}

.match-card-name {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 16px;
}

.match-card-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.match-card-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.match-card-detail-label {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.match-card-detail-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.match-card-comment {
  background: rgba(91, 120, 125, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.match-card-comment::before {
  content: "AI推薦: ";
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
}

.match-note {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-element);
  opacity: 0.8;
}

.match-cta {
  text-align: center;
  margin-top: var(--space-element);
}

/* ---------- Footer ---------- */
.footer {
  padding: 60px 0 32px;
  background: #264653;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer .logo {
  color: #FFFFFF;
}

.footer .logo-accent {
  color: #8FB5A1;
}

.footer-brand p {
  color: #B0B0B0;
  font-size: var(--text-sm);
  margin-top: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: var(--text-sm);
  margin-bottom: 12px;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #B0B0B0;
  font-size: var(--text-xs);
  margin-bottom: 8px;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: #B0B0B0;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(4px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  filter: blur(3px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  filter: blur(3px);
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo), filter 0.9s var(--ease-out-expo);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.85);
  filter: blur(3px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-spring), filter 0.8s var(--ease-out-expo);
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}

/* Stagger delay classes */
.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; }
.delay-6 { transition-delay: 0.6s; }

/* ---------- Parallax Section Overlays ---------- */
.parallax-section {
  position: relative;
}

/* Removed dated parallax gradient overlay - sections already have different backgrounds */

/* ---------- Count-up Number Style ---------- */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ---------- Mobile Hospital Cards ---------- */
.hospital-mobile {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: var(--space-block);
}

.hospital-desktop {
  display: none;
}

.hospital-card {
  background: #FFFFFF;
  backdrop-filter: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  transition: all 0.4s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.hospital-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(91, 120, 125, 0.10);
}

.hospital-card h3 {
  font-size: var(--text-lg);
  color: var(--text-heading);
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hospital-card h3 span {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-secondary);
}

.hospital-card-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hospital-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
}

.hospital-card-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hospital-card-label {
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- Sticky Mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 20px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(250, 250, 242, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: var(--z-sticky-cta);
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-cta.visible {
  transform: translateY(0);
}

.sticky-cta-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
  font-size: var(--text-base);
}

/* ---------- Form Error Banner ---------- */
.form-error-banner {
  background: rgba(212, 91, 91, 0.06);
  border: 1px solid rgba(212, 91, 91, 0.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 24px;
  text-align: center;
  color: var(--error);
  font-size: var(--text-sm);
  display: none;
}

.form-error-banner.visible {
  display: block;
}

.form-error-banner button {
  background: var(--accent);
  color: #FFFFFF;
  border: none;
  padding: 8px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  margin-top: 12px;
  font-size: var(--text-sm);
  transition: all var(--transition);
}

.form-error-banner button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 120, 125, 0.2);
}

/* ========== Responsive ========== */

/* Tablet */
@media (min-width: 640px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

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

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

  .footer-links {
    grid-template-columns: repeat(4, 1fr);
  }

  .hospital-mobile {
    display: none;
  }

  .hospital-desktop {
    display: block;
  }

  .match-results {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Mobile only: sticky CTA, chat toggle offset, cycle diagram */
@media (max-width: 639px) {
  .sticky-cta {
    display: block;
  }

  .chat-toggle {
    bottom: 80px;
  }

  .cycle-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .cycle-arrow {
    transform: rotate(90deg);
    align-self: center;
    font-size: 1rem;
  }

  .cycle-flow span:not(.cycle-arrow) {
    text-align: center;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-brand {
    flex: 0 0 240px;
  }

  .footer-links {
    flex: 1;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }

  .form-section {
    padding: 40px 36px;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in, .fade-in-left, .fade-in-right, .scale-in,
  .stagger-fade-up, .stagger-scale-rotate,
  .testimonial-slide-left, .testimonial-slide-right,
  .stat-item, .reveal-clip {
    opacity: 1;
    transform: none;
    filter: none;
    clip-path: none;
  }

  html {
    scroll-behavior: auto;
  }

  .hero-gradient-bg,
  .hero-mesh-gradient {
    animation: none;
  }
}

/* ---------- Skip Link (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #FFFFFF;
  padding: 12px 24px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-weight: 600;
  z-index: 100000;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.mt-section { margin-top: 2rem; }
.hidden { display: none !important; }

/* ========================================
   CUTTING-EDGE DESIGN UPGRADES 2026
   Phase 1: Maximum visual impact
   ======================================== */

/* ---------- 1. Aurora Effect (Hero Background) - disabled for warm theme ---------- */
.hero::after {
  display: none;
}

@keyframes auroraRotate {
  to { transform: rotate(360deg); }
}

/* ---------- 2. Grain / Noise Texture Overlay ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: var(--z-grain);
  mix-blend-mode: multiply;
}

/* ---------- 3. Glassmorphism - disabled for warm theme ---------- */

/* Feature cards - no glassmorphism */
.feature-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-radius: var(--radius-xl);
}

/* Top highlight line - disabled */
.feature-card::after {
  display: none;
}

/* Trust items and flow steps - no glassmorphism */
.trust-item,
.flow-step {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  position: relative;
  overflow: hidden;
}

.trust-item::after,
.flow-step::after {
  display: none;
}

/* ---------- 4. @property Gradient Animation - disabled ---------- */
@property --gradient-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Gradient spin disabled for warm theme */
.btn-primary {
  background: var(--accent);
  animation: none;
}

@keyframes gradientSpin {
  /* empty - disabled */
}

/* ---------- 5. Enhanced Button Glow Effect - disabled ---------- */
.btn-primary {
  position: relative;
  z-index: 1;
  isolation: isolate;
}

.btn-glow {
  display: none;
}

.btn-primary:hover .btn-glow {
  display: none;
}

/* Warm theme hover */
.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(91, 120, 125, 0.25);
}

/* ---------- 6. Magnetic Button Transition ---------- */
.magnetic-btn {
  transition: transform 0.25s cubic-bezier(0.33, 1, 0.68, 1), box-shadow var(--transition);
}

.magnetic-btn.magnetic-reset {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--transition);
}

/* ========================================
   AWARD-LEVEL ANIMATIONS
   Clip-path / Marquee / Loading Circle / Reveal
   ======================================== */

/* ---------- 7. Animated Border Button (Secondary CTAs) ---------- */
.btn-animated-border {
  position: relative;
  background: transparent;
  color: var(--accent);
  border: none;
  padding: 14px 36px;
  font-size: var(--text-base, 1rem);
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s ease;
  display: inline-block;
  text-align: center;
  border-radius: var(--radius);
}
.btn-animated-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  clip-path: inset(0 0 calc(100% - 2px) 0);
  animation: clipBorder 5s linear infinite;
}
.btn-animated-border:hover {
  color: var(--text-heading);
  background: rgba(91, 120, 125, 0.06);
}
@keyframes clipBorder {
  0%, 100% { clip-path: inset(0 0 calc(100% - 2px) 0); }
  25% { clip-path: inset(0 0 0 calc(100% - 2px)); }
  50% { clip-path: inset(calc(100% - 2px) 0 0 0); }
  75% { clip-path: inset(0 calc(100% - 2px) 0 0); }
}

/* ---------- 8. Section Title Clip-Path Reveal ---------- */
.reveal-clip {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out-expo);
}
.reveal-clip.visible {
  clip-path: inset(0 0 0 0);
}

/* ---------- 9. Marquee / Ticker Strip ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  opacity: 0.35;
}
.marquee-inner {
  display: inline-flex;
  gap: 24px;
  animation: marqueeScroll 25s linear infinite;
}
.marquee-inner span {
  font-size: var(--text-sm, 0.85rem);
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marquee-dot {
  color: var(--accent);
}
@keyframes marqueeScroll {
  to { transform: translateX(-50%); }
}

/* ---------- 10. Loading Circle (SVG) ---------- */
.loading-circle {
  width: 48px;
  height: 48px;
  margin: 20px auto 0;
}
.loading-circle-progress {
  animation: loadCircle 1.2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes loadCircle {
  0% { stroke-dasharray: 0 126; transform: rotate(0deg); }
  50% { stroke-dasharray: 80 126; }
  100% { stroke-dasharray: 0 126; transform: rotate(360deg); }
}

/* ---------- 11. Section Divider ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 auto;
  max-width: 600px;
}

/* ========================================
   AWARD-LEVEL REFINEMENTS
   Ripple / Stagger / Parallax / Mobile UX
   ======================================== */

/* ---------- 12. Button Ripple Effect ---------- */
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: scale(0);
  animation: rippleExpand 0.6s ease-out forwards;
  pointer-events: none;
}

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

/* ---------- 13. Enhanced Stagger Animations ---------- */
.stagger-fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.stagger-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-scale-rotate {
  opacity: 0;
  transform: scale(0.85) rotate(-2deg);
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-spring);
}

.stagger-scale-rotate.visible {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* ---------- 14. Section Gradient Transitions ---------- */
.section-gradient-top {
  position: relative;
}

.section-gradient-top::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.section-gradient-bottom::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(0deg, var(--bg-primary) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ---------- 15. Floating Label Animation for Forms ---------- */
.form-group-floating {
  position: relative;
  margin-bottom: 24px;
}

.form-group-floating input,
.form-group-floating select,
.form-group-floating textarea {
  width: 100%;
  padding: 18px 16px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-main);
  transition: all var(--transition);
}

.form-group-floating label {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  font-size: var(--text-base);
  color: var(--text-secondary);
  pointer-events: none;
  transition: all 0.25s var(--ease-out-expo);
}

.form-group-floating input:focus + label,
.form-group-floating input:not(:placeholder-shown) + label,
.form-group-floating select:focus + label,
.form-group-floating select:not([value=""]) + label,
.form-group-floating textarea:focus + label,
.form-group-floating textarea:not(:placeholder-shown) + label {
  top: 8px;
  transform: translateY(0);
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
}

/* ---------- 16. Enhanced Hero Mesh Gradient - disabled ---------- */
.hero-mesh-gradient {
  display: none;
}

@keyframes meshShift {
  /* disabled for warm theme */
}

/* ---------- 17. Testimonial Card Slide-In ---------- */
.testimonial-card {
  will-change: transform, opacity;
}

.testimonial-slide-left {
  opacity: 0;
  transform: translateX(-60px) rotate(-1deg);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.testimonial-slide-left.visible {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

.testimonial-slide-right {
  opacity: 0;
  transform: translateX(60px) rotate(1deg);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.testimonial-slide-right.visible {
  opacity: 1;
  transform: translateX(0) rotate(0deg);
}

/* ---------- 18. Flow Step Connector Animation ---------- */
.flow-connector {
  overflow: hidden;
  position: relative;
}

.flow-connector::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--accent), var(--accent-secondary));
  transform: translateY(-100%);
  transition: transform 1s var(--ease-out-expo);
}

.flow-connector.visible::after {
  transform: translateY(0);
}

/* ---------- 19. Enhanced Mobile Touch Targets ---------- */
@media (max-width: 639px) {
  .btn,
  .btn-primary,
  .btn-outline,
  .btn-animated-border,
  .nav-cta,
  .chat-consent-btn,
  .chat-phone-btn,
  .chat-send-btn {
    min-height: 48px;
    min-width: 48px;
  }

  .mobile-menu a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .hamburger {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }

  .checkbox-label input[type="checkbox"] {
    width: 24px;
    height: 24px;
  }
}

/* ---------- 20. Smooth Section Entry with Parallax Depth ---------- */
.parallax-depth-1 {
  will-change: transform;
}

.parallax-depth-2 {
  will-change: transform;
}

/* ---------- 21. Enhanced Stats Bar Animation ---------- */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.stat-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 22. Hero CTA Pulse - disabled ---------- */
.hero-cta {
  position: relative;
}

.hero-cta::before {
  display: none;
}

@keyframes ctaPulse {
  /* disabled for warm theme */
}

/* ---------- 23. Feature Card Shimmer - disabled ---------- */
.feature-card .feature-shimmer {
  display: none;
}

.feature-card:hover .feature-shimmer {
  display: none;
}

@keyframes shimmerSlide {
  to { left: 100%; }
}

/* ---------- 24. Testimonial Stats Counter Glow ---------- */
.testimonial-stat-number {
  position: relative;
}

.testimonial-stat-number::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  opacity: 0;
  transition: opacity 0.6s ease, width 0.6s ease;
}

.testimonial-stat-number.visible::after {
  opacity: 1;
  width: 60px;
}

/* ---------- 25. Flow Step Hover Glow - disabled ---------- */
.flow-step::before {
  display: none;
}

.flow-step:hover::before {
  display: none;
}
