/* ==========================================
   Cell Planner Marketing Website Styles
   ========================================== */

/* CSS Variables */
:root {
  /* Primary Colors */
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;

  --yellow-300: #FDE047;
  --yellow-400: #FACC15;
  --yellow-500: #EAB308;
  --yellow-600: #CA8A04;
  --gold: #F5B800;

  /* Neutral Colors */
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  /* Accents */
  --pink: #FF7EB3;
  --purple: #9B51E0;
  --green: #10B981;
  --red: #EF4444;

  /* Typography */
  --font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --container-max: 1200px;
  --section-padding: 80px;
  --hiw-step-row-gap-desktop: 36px;
  --hiw-step-row-gap-mobile: 28px;
  --hiw-step3-row-gap-desktop: 80px;
  --hiw-step3-row-gap-mobile: 40px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition: 200ms ease;
  --transition-slow: 300ms ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background-color: white;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--gold) 0%, var(--yellow-400) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-yellow {
  color: var(--gold);
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-800);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 26px;
  color: #0f2a43;
}

.logo-icon {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  box-sizing: border-box;
  padding: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.logo-text {
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(15, 42, 67, 0.82);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
}

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

.nav-lang-toggle {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--gray-900);
  padding: 10px 20px;
}

.btn-primary:hover {
  background: var(--yellow-400);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-nav {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-yellow {
  background: var(--gold);
  color: var(--gray-900);
  padding: 14px 28px;
}

.btn-yellow:hover {
  background: var(--yellow-400);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(245, 184, 0, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 12px 26px;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-demo-new {
  position: relative;
}

.btn-demo-new::after {
  content: "\2605 NEW";
  position: absolute;
  top: -12px;
  right: -14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: linear-gradient(135deg, #ffe27a 0%, #f5b800 100%);
  color: #4a3700;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  box-shadow: 0 8px 18px -10px rgba(245, 184, 0, 0.95);
  animation: demo-new-float 2.8s ease-in-out infinite;
}

.btn-demo-new:hover::after {
  transform: translateY(-1px);
}

.hero .btn-outline.btn-demo-new {
  border-color: transparent;
  color: #1d467f;
  background: rgba(255, 255, 255, 0.96);
}

.hero .btn-outline.btn-demo-new:hover {
  background: #1d467f;
  border-color: #1d467f;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(20, 46, 92, 0.35);
}

@keyframes demo-new-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

.btn-lg {
  font-size: 16px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #0f2a43;
  border-radius: 2px;
  transition: all var(--transition);
}

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

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

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

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  background: rgba(217, 236, 255, 0.98);
  padding: 20px 24px;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition);
}

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

.mobile-link {
  color: #0f2a43;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(15, 42, 67, 0.15);
}

.mobile-lang-toggle {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  cursor: pointer;
}

.btn-mobile {
  margin-top: 8px;
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(64px + 36px) 24px 56px;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(164deg,
      rgba(245, 184, 0, 0) 0%,
      rgba(245, 184, 0, 0) 57%,
      rgba(96, 165, 250, 0.14) 61%,
      rgba(147, 197, 253, 0.35) 66%,
      rgba(245, 184, 0, 0.92) 75%,
      rgba(250, 211, 73, 0.95) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(164deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 61%,
      rgba(219, 234, 254, 0.22) 67%,
      rgba(255, 255, 255, 0) 75%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 1;
}

.hero-gradient {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 75% 20%, rgba(59, 130, 246, 0.22) 0%, rgba(59, 130, 246, 0.08) 45%, rgba(59, 130, 246, 0) 70%);
  pointer-events: none;
  z-index: 2;
}

.hero-container {
  max-width: var(--container-max);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(14px, 2.2vw, 32px);
  align-items: center;
  position: relative;
  z-index: 3;
}

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

html.hero-preload .hero-content {
  opacity: 0;
}

.hero-content.hero-animate {
  animation: hero-copy-fade-in 1200ms ease-out both;
  animation-delay: 80ms;
}

.hero-title {
  font-size: clamp(42px, 5.4vw, 68px);
  font-weight: 800;
  line-height: 1.1;
  color: white;
  margin-top: 0;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title > span {
  display: block;
}

.hero-subtitle {
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0;
  margin-bottom: 40px;
  max-width: 480px;
  white-space: pre-line;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Image / App Preview */
.hero-image {
  display: flex;
  justify-content: flex-start;
  position: relative;
  z-index: 10;
}

.hero-image-container {
  position: relative;
  width: min(100%, 770px);
  perspective: 1000px;
  backface-visibility: hidden;
  transform-style: preserve-3d;
  will-change: opacity, transform;
  pointer-events: none;
}

html.hero-preload .hero-image-container {
  opacity: 0;
  transform: scale(0.9);
}

/* Only play hero entrance animation on fresh navigations, not refreshes */
.hero-image-container.hero-animate {
  transform-origin: center center;
  animation: hero-scale-in 1200ms ease-out both;
  animation-delay: 140ms;
}

.hero-image-container.animate-on-scroll {
  transform: translateY(30px);
}

.hero-image-container.animate-on-scroll.visible {
  transform: translateY(0);
}

@keyframes hero-scale-in {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes hero-copy-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.app-window {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  transform: rotateY(-5deg) rotateX(2deg) scale(1.2);
  transition: transform var(--transition-slow);
  backface-visibility: hidden;
  transform-style: preserve-3d;
  pointer-events: auto;
}

.app-window:hover {
  transform: rotateY(-2deg) rotateX(1deg) scale(1.2);
}

.window-header {
  background: var(--gray-100);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--gray-200);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.window-title {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
}

.window-content {
  padding: 20px;
  background: white;
}

/* Planner Preview */
.planner-preview {
  display: grid;
  grid-template-columns: 60px 1fr;
  grid-template-rows: 1fr auto;
  gap: 16px;
}

.planner-sidebar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-item {
  width: 48px;
  height: 32px;
  border-radius: var(--radius-sm);
  opacity: 0.9;
  transition: all var(--transition);
}

.task-item:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.task-yellow { background: var(--gold); }
.task-blue { background: var(--blue-500); }
.task-pink { background: var(--pink); }
.task-purple { background: var(--purple); }

.planner-grid {
  grid-column: 2;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.grid-header span {
  font-size: 10px;
  color: var(--gray-500);
  text-align: center;
  font-weight: 500;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.grid-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.grid-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.grid-cell {
  height: 28px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.grid-cell.hoverable:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.cell-yellow { background: rgba(245, 184, 0, 0.4); }
.cell-blue { background: rgba(59, 130, 246, 0.4); }
.cell-pink { background: rgba(255, 126, 179, 0.4); }
.cell-purple { background: rgba(155, 81, 224, 0.4); }

.planner-chart {
  grid-column: 1 / -1;
  padding: 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  margin-top: 8px;
}

.labnotes-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.labnotes-grid {
  display: grid;
  grid-template-columns: 56px 0.42fr 1fr 0.85fr;
  column-gap: 0px;
  row-gap: 8px;
  align-items: center;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.labnotes-header-cell {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ln-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--gray-600);
  backface-visibility: hidden;
  transform: translateZ(0);
}

.ln-date {
  font-weight: 600;
  color: var(--gray-500);
}

.ln-tag {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  flex-shrink: 0;
}

.ln-tag-blue { background: var(--blue-500); }
.ln-tag-yellow { background: var(--blue-500); }
.ln-tag-pink { background: var(--blue-500); }

.ln-text {
  font-weight: 600;
  color: var(--gray-700);
}

.ln-notes {
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-left: -2px;
}

.ln-line {
  height: 4px;
  border-radius: 999px;
  width: 90%;
}

.ln-line-blue { background: rgba(17, 24, 39, 0.6); }
.ln-line-yellow { background: rgba(110, 231, 183, 0.5); }
.ln-line-pink { background: rgba(255, 126, 179, 0.35); }
.ln-line-gray { background: var(--gray-200); }
.ln-line.short { width: 45%; }

.labnotes-outcome-cell {
  grid-column: 4;
  grid-row: 2 / span 3;
  align-self: stretch;
  display: flex;
  align-items: center;
}

.outcome-chart {
  position: relative;
  width: 100%;
  height: 72px;
  border-radius: 6px;
  background: transparent;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.outcome-chart-mixed {
  background: transparent;
}

.chart-axis {
  position: absolute;
  background: rgba(31, 41, 55, 0.25);
}

.chart-axis-y {
  left: 6px;
  top: 5px;
  width: 2px;
  height: calc(100% - 10px);
  border-radius: 2px;
}

.chart-axis-x {
  left: 6px;
  bottom: 6px;
  width: calc(100% - 10px);
  height: 1px;
  border-radius: 2px;
}

.chart-bars-mini {
  position: absolute;
  left: 10px;
  right: 6px;
  bottom: 6px;
  height: 46px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}

.chart-bars-mini .chart-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: rgba(37, 99, 235, 0.7);
}

.outcome-chart-gold .chart-bar {
  background: rgba(217, 119, 6, 0.7);
}

.outcome-chart-mixed .chart-bar:nth-child(odd) {
  background: rgba(37, 99, 235, 0.7);
}

.outcome-chart-mixed .chart-bar:nth-child(even) {
  background: rgba(217, 119, 6, 0.7);
}

.chart-bars-mini .chart-bar:nth-child(1) { height: 45%; }
.chart-bars-mini .chart-bar:nth-child(2) { height: 75%; }
.chart-bars-mini .chart-bar:nth-child(3) { height: 55%; }
.chart-bars-mini .chart-bar:nth-child(4) { height: 85%; }
.chart-bars-mini .chart-bar:nth-child(5) { height: 60%; }


.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 60px;
  margin-bottom: 8px;
}

.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--blue-400) 0%, var(--blue-600) 100%);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  transition: height var(--transition-slow);
}

.bar-1 { height: 40%; }
.bar-2 { height: 70%; }
.bar-3 { height: 55%; }
.bar-4 { height: 85%; }
.bar-5 { height: 60%; }

.chart-line {
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  border-radius: 1px;
}

/* Floating Cards */
.floating-card {
  position: fixed;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid transparent;
  outline: none;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.32);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
  z-index: 3000;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  cursor: pointer;
}

.card-notes {
  right: 36px;
  bottom: 40px;
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  transition: opacity 280ms ease;
}

.card-icon {
  font-size: 24px;
}

.card-label {
  font-size: 16px;
  font-weight: 600;
  color: #1d467f;
}

.floating-card:hover {
  background: #1d467f;
  border-color: #1d467f;
}

.floating-card:hover .card-label {
  color: #ffffff;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.32);
  }
  50% {
    transform: translateY(-10px);
    box-shadow: 0 26px 48px rgba(15, 23, 42, 0.4);
  }
}

/* ==========================================
   Features Section
   ========================================== */
.features {
  padding: var(--section-padding) 24px;
  background: white;
}

.download-hub {
  margin-bottom: 44px;
  padding: 12px 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.download-section-header {
  margin-bottom: 28px;
}

.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 260px));
  gap: 40px;
  justify-content: center;
  justify-items: center;
}

.download-option {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 180px;
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid transparent;
  background: white;
  color: var(--gray-900);
  font-family: var(--font-family);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  z-index: 0;
  box-shadow: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.download-option:hover {
  background: var(--gray-50);
  transform: translateY(-10px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

.download-option::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.download-option:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.download-option-icon {
  width: 48px;
  height: 48px;
  color: var(--blue-700);
  flex-shrink: 0;
}

.download-option-label {
  font-size: 20px;
  line-height: 1.2;
  white-space: nowrap;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.feature-card {
  text-align: center;
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  background: white;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transform-origin: center center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  will-change: transform;
}

.feature-card:hover {
  background: var(--gray-50);
  transform: translateY(-10px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  z-index: 2;
}

.feature-card-inner {
  transform-origin: center center;
  transition: transform var(--transition);
  will-change: transform;
}

.feature-card:hover .feature-card-inner {
  transform: scale(1.06);
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
}

.feature-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.feature-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
  padding: 40px 24px var(--section-padding);
  background: linear-gradient(180deg, var(--gray-50) 0%, white 100%);
}

/* Let HOW IT WORKS use a wider content rail than the global 1200px container. */
.how-it-works > .container {
  max-width: calc(1320px + 48px);
}

.hiw-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.hiw-text {
  width: min(1320px, 100%);
  margin: 0 auto;
}

.hiw-title-like-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 24px;
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
}

.hiw-subtitle-like-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--gray-900);
  margin-top: 0;
  margin-bottom: 252px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

.hiw-divider {
  width: 100%;
  margin: 0 auto 30px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
}

.hiw-main-row {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(560px, 788px);
  justify-content: center;
  gap: 28px;
  align-items: start;
  width: 100%;
  margin: 0 auto 34px;
}

.hiw-image-inline {
  display: flex;
  justify-content: flex-start;
  width: 100%;
}

.hiw-image-inline .hiw-video-shell {
  width: 100%;
  transform: none;
  transition: none;
}

.hiw-main-row .hiw-image-container {
  margin-top: -50px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 18px;
  color: var(--gray-600);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Override shared section spacing for the HOW IT WORKS heading pair */
.section-subtitle.hiw-title-like-subtitle {
  margin-bottom: 24px;
}

.section-title.hiw-subtitle-like-title {
  margin-top: 80px;
  margin-bottom: 80px;
}

.hiw-features {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 500px;
  margin-top: 0;
}

.hiw-feature {
  display: flex;
  gap: 20px;
}

.hiw-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 184, 0, 0.15);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hiw-icon svg {
  width: 24px;
  height: 24px;
}

.hiw-feature-content h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.hiw-step1-title {
  display: block;
  height: 96px;
  width: auto;
  max-width: 100%;
  margin-bottom: 58px;
}

.hiw-feature-content p {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

.hiw-main-row .hiw-feature-content p {
  white-space: pre-line;
}

.hiw-step2-title {
  display: block;
  height: 96px;
  width: auto;
  max-width: 100%;
  margin-bottom: 58px;
}

.hiw-step2-row {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(560px, 788px);
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin: calc(var(--hiw-step-row-gap-desktop) - 80px) auto 0;
}

.hiw-step2-content {
  grid-column: 1;
}

.hiw-step2-content p {
  margin: 0;
}

.hiw-step2-row .hiw-step2-title {
  grid-column: 1;
}

.hiw-step2-demos {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
  align-self: end;
  margin-bottom: 44px;
}

.hiw-step2-demo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 414 / 201;
  object-fit: cover;
  border-radius: 12px;
}

.hiw-step3-title {
  display: block;
  height: 96px;
  width: auto;
  max-width: 100%;
  margin-bottom: 58px;
}

.hiw-step3-row {
  display: grid;
  grid-template-columns: minmax(320px, 500px) minmax(560px, 788px);
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin: calc(var(--hiw-step3-row-gap-desktop) + 30px) auto 0;
}

.hiw-step3-row .hiw-step3-title {
  grid-column: 1;
}

.hiw-step3-content {
  grid-column: 1;
}

.hiw-step3-content p {
  margin: 0;
}

.hiw-step3-demos {
  grid-column: 2;
  display: grid;
  align-items: start;
  align-self: end;
}

.hiw-step3-demo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2096 / 1263;
  object-fit: cover;
  border-radius: 12px;
}

/* How It Works Image */
.hiw-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.hiw-video-shell {
  width: 100%;
  height: 100%;
  transform: none;
}

.hiw-video-shell:hover {
  transform: none;
}

.task-preview {
  padding: 8px;
}

.hiw-video-preview {
  padding: 0;
  width: 100%;
  height: 100%;
}

.hiw-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  background: transparent;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 50px), transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 10px, #000 calc(100% - 10px), transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 50px), transparent 100%);
  mask-composite: intersect;
}

.task-header-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.task-color-bar {
  width: 4px;
  height: 40px;
  background: var(--blue-500);
  border-radius: 2px;
}

.task-title-preview {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  flex: 1;
}

.task-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--blue-100);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.task-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.detail-row {
  display: flex;
  gap: 12px;
}

.detail-label {
  font-size: 13px;
  color: var(--gray-500);
  width: 80px;
  flex-shrink: 0;
}

.detail-value {
  font-size: 13px;
  color: var(--gray-800);
}

.notes-preview {
  color: var(--gray-600);
  font-style: italic;
}

.task-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.progress-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue-500) 0%, var(--blue-400) 100%);
  border-radius: var(--radius-full);
  transition: width var(--transition-slow);
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
}

/* ==========================================
   Tools Section
   ========================================== */
.tools {
  padding: var(--section-padding) 24px;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .section-title {
  margin-bottom: 12px;
}

.section-header .section-subtitle {
  margin-bottom: 0;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.tool-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  z-index: 0;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 1px solid transparent;
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tool-card:hover {
  background: var(--gray-50);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
  transform: translateY(-10px) scale(1.5);
  z-index: 5;
}

.tool-card::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 4px;
  background: var(--gold);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 4;
}

.tool-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.tool-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
}

.tool-icon svg {
  width: 100%;
  height: 100%;
}

.tool-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.tool-card-solution-prep .tool-hover-video,
.tool-card-solution-conv .tool-hover-video,
.tool-card-pcr-setup .tool-hover-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: 1;
  pointer-events: none;
}

.tool-card-solution-prep:hover .tool-hover-video,
.tool-card-solution-conv:hover .tool-hover-video,
.tool-card-pcr-setup:hover .tool-hover-video {
  opacity: 1;
}

.tool-card-solution-prep:hover .tool-title,
.tool-card-solution-prep:hover .tool-desc,
.tool-card-solution-prep:hover .tool-icon,
.tool-card-solution-conv:hover .tool-title,
.tool-card-solution-conv:hover .tool-desc,
.tool-card-solution-conv:hover .tool-icon,
.tool-card-pcr-setup:hover .tool-title,
.tool-card-pcr-setup:hover .tool-desc,
.tool-card-pcr-setup:hover .tool-icon {
  opacity: 0;
}

.tool-card-solution-prep > *,
.tool-card-solution-conv > *:not(.tool-hover-video),
.tool-card-pcr-setup > *:not(.tool-hover-video) {
  position: relative;
  z-index: 2;
}

.tool-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.tool-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.tool-desc-handwritten {
  font-family: "Comic Sans MS", "Chalkboard SE", "Bradley Hand", cursive;
  font-size: 16px;
  line-height: 1.55;
  color: #475569;
}

html[lang="zh-CN"] .tool-desc-handwritten {
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #334155;
}

/* Chinese uses the same hero geometry as English to keep vertical centering consistent */
html[lang="zh-CN"] .hero-title,
html[lang="zh-CN"] .hero-subtitle,
html[lang="zh-CN"] .hero-buttons {
  min-height: 0;
  margin-top: 0;
}

/* Chinese hero typography/button scale tuned to 110% of baseline */
html[lang="zh-CN"] .hero-title {
  font-size: clamp(46px, 5.94vw, 75px);
}

html[lang="zh-CN"] .hero-subtitle {
  font-size: clamp(18px, 1.76vw, 22px);
}

html[lang="zh-CN"] .hero-buttons .btn-lg {
  font-size: 18px;
  padding: 18px 35px;
}

html[lang="zh-CN"] .hero-image {
  transform: none;
}

/* ==========================================
   Trust Section
   ========================================== */
.trust {
  padding: 60px 24px;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.trust-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 40px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 80px;
  flex-wrap: wrap;
}

.trust-logo {
  opacity: 0.7;
  transition: opacity var(--transition);
}

.trust-logo:hover {
  opacity: 1;
}

.trust-logo svg {
  height: 40px;
  width: auto;
}

/* ==========================================
   CTA Section
   ========================================== */
.cta {
  padding: 100px 24px;
  background: linear-gradient(135deg, var(--blue-800) 0%, var(--blue-900) 100%);
}

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

.cta-title {
  font-size: 40px;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 40px;
}

.btn-cta {
  font-size: 18px;
  padding: 18px 40px;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--gray-900);
  padding: 40px 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-800);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-link {
  font-size: 14px;
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-link:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-800);
  border-radius: var(--radius);
  color: var(--gray-400);
  transition: all var(--transition);
}

.social-link:hover {
  background: var(--gray-700);
  color: white;
}

.social-link svg {
  width: 18px;
  height: 18px;
}

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

.copyright {
  font-size: 13px;
  color: var(--gray-500);
}

/* ==========================================
   Feature Page
   ========================================== */
.feature-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3ff 0%, #f7f9fc 260px);
}

.feature-main {
  padding: 92px 22px 56px;
}

.feature-free-hero {
  max-width: 1080px;
  margin: 0 auto 16px;
  background: #ffffff;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  padding: 32px 24px 28px;
  text-align: center;
}

.feature-free-hero h2 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 800;
  color: #172033;
  line-height: 1.3;
}

.feature-free-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-free-points li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  color: #374151;
  line-height: 1.5;
}

.feature-free-points .fp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f5b800;
  color: #193f9a;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.feature-free-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.feature-free-actions .btn {
  min-width: 170px;
  padding: 10px 20px;
}

.feature-free-actions .btn-secondary {
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #cbd5e1;
}

.feature-free-actions .btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-1px);
}

.feature-shell {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
}

.feature-shell::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 88px;
  bottom: 0;
  width: 28px;
  border-radius: 14px 0 0 14px;
  border: 1px solid #d5cec2;
  background:
    radial-gradient(circle, #ded8cd 0 5px, transparent 6px) center 22px / 100% 54px repeat-y,
    #ffffff;
  z-index: 1;
}

.feature-shell::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 12px;
  height: 12px;
  background: repeating-linear-gradient(
    90deg,
    rgba(208, 198, 179, 0.85) 0 1px,
    transparent 1px 20px
  );
  pointer-events: none;
  z-index: 2;
}

.feature-tabs {
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 640px;
  margin-left: 30px;
  position: relative;
  z-index: 4;
}

.feature-tab {
  position: relative;
  border: 1px solid #d9d2c6;
  border-bottom: none;
  background: #ffffff;
  color: #3f5e8f;
  border-radius: 14px 14px 0 0;
  padding: 12px 14px 11px;
  min-height: 48px;
  font-size: 26px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 160ms ease;
  box-shadow: 0 6px 10px rgba(43, 48, 58, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-tab:hover {
  border-color: #cbc2b2;
  transform: translateY(-1px);
  background: #ffffff;
}

.feature-tab__text {
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.feature-tab.is-active {
  background: var(--gold);
  border-color: #c7b07a;
  border-top: 3px solid #17356f;
  color: #17356f;
  transform: translateY(0);
  z-index: 2;
  box-shadow: 0 10px 16px rgba(58, 52, 34, 0.18);
}

.feature-panels {
  margin-top: 0;
  position: relative;
  z-index: 3;
}

.feature-panel {
  border: 1px solid #d8d0c4;
  border-radius: 0 16px 16px 16px;
  background: #ffffff;
  padding: 38px 40px 54px;
  box-shadow: 0 14px 28px rgba(46, 48, 55, 0.09);
  opacity: 1;
  transform: none;
  transition: none;
}

.feature-panel__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 34px;
  align-items: start;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 380ms ease, transform 380ms ease;
}

.feature-panel.is-entering .feature-panel__inner {
  opacity: 0;
  transform: translateY(16px);
}

.feature-panel.is-active .feature-panel__inner {
  opacity: 1;
  transform: translateY(0);
}

.feature-panel[data-feature-panel="planner"] .feature-panel__inner,
.feature-panel[data-feature-panel="labnotes"] .feature-panel__inner,
.feature-panel[data-feature-panel="calculators"] .feature-panel__inner {
  grid-template-columns: minmax(0, 1fr);
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2457f2;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #2457f2;
  margin-bottom: 16px;
}

.feature-panel h1 {
  margin: 0;
  font-family: "Roboto Slab", "Noto Sans SC", serif;
  font-size: 44px;
  line-height: 1.08;
  color: #1b2439;
}

.feature-lead {
  margin: 14px 0 0;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 700;
  color: #2457f2;
}

.feature-body {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.72;
  color: #4e6180;
}

.feature-workflow-copy {
  margin-top: 14px;
  color: #1f2937;
}

.feature-workflow-copy p {
  margin: 0 0 14px;
  line-height: 1.6;
}

.feature-workflow-copy p:last-child {
  margin-bottom: 0;
}

.feature-workflow-copy strong {
  color: #111827;
}

.feature-inline-image {
  display: block;
  width: 100%;
  margin-top: 16px;
  border-radius: 14px;
  border: 1px solid #d8d0c4;
  background: #ffffff;
}

/* Calculators tab: keep small screenshots at intrinsic width; still cap width on narrow viewports */
.feature-panel[data-feature-panel="calculators"] .feature-inline-image {
  width: auto;
  max-width: 100%;
  height: auto;
}

.feature-panel[data-feature-panel="calculators"] .feature-inline-image--center {
  margin-left: auto;
  margin-right: auto;
}

.feature-split-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
  margin-top: 16px;
}

.feature-split-block__copy {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-split-block__copy p {
  margin: 0 0 12px;
}

.feature-split-block__copy p:last-child {
  margin-bottom: 0;
}

.feature-split-block__image {
  margin-top: 0;
  height: 100%;
  object-fit: cover;
}

/* Lab Notes: equal-height columns; copy centered above labnotes4; images share baseline */
.feature-split-block--labnotes {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
}

.feature-split-block--labnotes .feature-split-block__copy {
  justify-content: flex-start;
}

/* Fills space above labnotes4; centers copy vertically in that band */
.feature-split-block--labnotes .feature-split-block__copy-region {
  flex: 1 1 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-split-block__stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}

.feature-split-block--labnotes .feature-split-block__stack > .feature-inline-image {
  flex-shrink: 0;
}

.feature-split-block__stack > .feature-inline-image {
  margin-top: 0;
}

.feature-split-block--labnotes .feature-split-block__image {
  flex: 1 1 0;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
}

.feature-list-card {
  margin-top: 20px;
  border: 1px solid #d8d0c4;
  border-radius: 14px;
  overflow: hidden;
  background: #f4f4f4;
}

.feature-list-card__title {
  padding: 12px 16px 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #57698c;
  border-bottom: 1px solid #ddd4c9;
}

.feature-list-card ul {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

.feature-list-card li {
  padding: 9px 16px 9px 46px;
  font-size: 16px;
  color: #233046;
  position: relative;
  border-bottom: 1px solid #e2dad0;
}

.feature-list-card li:last-child {
  border-bottom: none;
}

.feature-list-card li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #f5b800;
  color: #193f9a;
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-list-card--planner {
  background: transparent;
}

.feature-list-card--planner .feature-list-card__title {
  text-align: center;
  background: var(--gold);
  color: #17356f;
  border-bottom: 1px solid #d8c177;
}

.feature-list-card--planner li {
  background: #ffffff;
  text-align: center;
  padding: 9px 16px;
}

.feature-list-card--planner li::before {
  display: none;
}

.feature-stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.feature-stat {
  border: 1px solid #d3c7b5;
  border-radius: 12px;
  background: #f8f2e8;
  padding: 12px 8px;
  text-align: center;
}

.feature-stat strong {
  display: block;
  color: #2457f2;
  font-size: 24px;
  line-height: 1.1;
  font-family: "Roboto Slab", "Noto Sans SC", serif;
}

.feature-stat span {
  display: block;
  margin-top: 2px;
  color: #4c607f;
  font-size: 14px;
  font-weight: 600;
}

.feature-calculator-grid {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-calculator-card {
  border: 1px solid #d3c7b5;
  border-radius: 10px;
  background: #fff8ee;
  padding: 8px 10px;
}

.feature-calculator-card h3 {
  margin: 0;
  font-size: 13px;
  color: #5a6884;
  font-weight: 700;
}

.feature-panel__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.feature-visual-card {
  border: 1px solid #d8ccb8;
  border-radius: 18px;
  background: #eee2cf;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.feature-visual-emoji {
  font-size: 84px;
  line-height: 1;
  margin-bottom: 10px;
}

.feature-visual-card p {
  margin: 0;
  color: #667894;
  font-size: 15px;
  font-weight: 600;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 14px;
  padding: 14px 18px;
  text-decoration: none;
  background: linear-gradient(135deg, #2457f2 0%, #1d4ed8 100%);
  color: #f7faff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(122, 80, 27, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.feature-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.28);
  background: linear-gradient(135deg, #1f4ee4 0%, #1945c2 100%);
}

.feature-panel > .feature-cta {
  margin-top: 18px;
}

.feature-cta-group {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature-cta-group .feature-cta {
  width: 100%;
}

.feature-cta--secondary {
  background: #ffffff;
  color: #17356f;
  border: 1px solid #bfcce8;
  box-shadow: 0 6px 14px rgba(23, 53, 111, 0.1);
}

.feature-cta--secondary:hover {
  background: #f7faff;
  border-color: #a6b9e0;
}
/* ==========================================
   Responsive Styles
   ========================================== */
@media (max-width: 1024px) {
  .hero-image-container {
    width: min(100%, 682px);
  }

  .hiw-content {
    gap: 0;
  }

  .hiw-main-row {
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 1fr);
    gap: 28px;
  }
  .hiw-step2-row {
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 1fr);
    gap: 28px;
  }
  .hiw-step3-row {
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 1fr);
    gap: 28px;
  }
  .hiw-divider {
    margin-bottom: 24px;
  }

  .hiw-subtitle-like-title {
    font-size: 32px;
  }

  .hiw-title-like-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 32px;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-calculator-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .how-it-works {
    padding-top: 28px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu.active {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: calc(64px + 28px) 24px 56px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-title {
    font-size: clamp(34px, 9vw, 42px);
  }

  .hero-subtitle {
    font-size: 16px;
    max-width: 100%;
  }

  .hero-buttons {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero-buttons .btn-lg {
    padding: 12px 18px;
    font-size: 14px;
    white-space: nowrap;
  }

  html[lang="zh-CN"] .hero-title {
    font-size: clamp(37px, 9.9vw, 46px);
  }

  html[lang="zh-CN"] .hero-subtitle {
    font-size: 18px;
  }

  html[lang="zh-CN"] .hero-buttons .btn-lg {
    padding: 13px 20px;
    font-size: 15px;
  }

  .btn-demo-new::after {
    right: -10px;
  }

  .hero-image {
    justify-content: center;
    order: 0;
  }

  .app-window {
    transform: none;
  }

  .app-window:hover {
    transform: none;
  }

  .hero-image-container {
    width: min(100%, 616px);
  }

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

  .download-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    justify-items: stretch;
  }


  .feature-card {
    padding: 32px 24px;
  }

  .hiw-content {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .hiw-main-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
  }
  .hiw-step2-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
  }
  .hiw-step3-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: var(--hiw-step3-row-gap-mobile);
  }

  .hiw-main-row .hiw-feature,
  .hiw-main-row .hiw-feature-content,
  .hiw-step2-content,
  .hiw-step3-content {
    display: contents;
  }

  .hiw-main-row .hiw-step1-title {
    order: 1;
    margin-bottom: 6px;
  }
  .hiw-step2-demos {
    order: 2;
    margin-top: 12px;
    margin-bottom: 0;
  }
  .hiw-step3-demos {
    order: 2;
    margin-top: 12px;
  }
  .hiw-main-row .hiw-image-inline {
    order: 2;
    justify-content: flex-start;
  }

  .hiw-step2-title {
    order: 1;
  }

  .hiw-step3-title {
    order: 1;
  }

  .hiw-main-row .hiw-feature-content p,
  .hiw-step2-content p,
  .hiw-step3-content p {
    order: 3;
    margin-top: 14px;
  }

  .hiw-main-row .hiw-image-container {
    margin-top: 0;
  }

  .hiw-subtitle-like-title {
    font-size: 26px;
  }

  .hiw-title-like-subtitle {
    font-size: 14px;
  }

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

  .feature-main {
    padding: 88px 14px 40px;
  }

  .feature-free-hero {
    padding: 24px 16px 20px;
  }

  .feature-free-hero h2 {
    font-size: 22px;
  }

  .feature-free-points {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .feature-free-actions {
    flex-direction: column;
    align-items: center;
  }

  .feature-free-actions .btn {
    width: 100%;
    max-width: 260px;
  }

  .feature-shell::before,
  .feature-shell::after {
    display: none;
  }

  .feature-tabs {
    margin-left: 0;
    max-width: none;
    gap: 6px;
  }

  .feature-tab {
    min-height: 42px;
    padding: 10px 8px;
    gap: 8px;
  }

  .feature-tab__text {
    font-size: 14px;
  }

  .feature-panel {
    border-radius: 0 12px 12px 12px;
    padding: 20px 16px 24px;
  }

  .feature-panel__inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .feature-split-block {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .feature-split-block--labnotes {
    flex-direction: column;
    align-items: stretch;
  }

  .feature-split-block--labnotes .feature-split-block__image {
    flex: none;
    width: 100%;
    height: auto;
    align-self: auto;
    object-position: center;
  }

  .feature-cta-group {
    grid-template-columns: 1fr;
  }

  .feature-panel h1 {
    font-size: 30px;
  }

  .feature-lead {
    font-size: 16px;
  }

  .feature-body {
    font-size: 14px;
  }

  .feature-list-card li {
    font-size: 14px;
    padding-left: 42px;
  }

  .feature-stat strong {
    font-size: 22px;
  }

  .feature-stat span {
    font-size: 13px;
  }

  .feature-visual-card {
    min-height: 200px;
  }

  .feature-visual-emoji {
    font-size: 62px;
  }

  .feature-cta {
    font-size: 15px;
  }


  .trust-logos {
    gap: 40px;
  }

  .cta-title {
    font-size: 28px;
  }

  .footer-content {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .nav-logo {
    font-size: 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .btn-lg {
    width: 100%;
    justify-content: center;
  }

  .btn-demo-new::after {
    top: -10px;
    right: 10px;
  }

  .section-title {
    font-size: 26px;
  }

  .trust-logos {
    flex-direction: column;
    gap: 24px;
  }
}
