/* CSS Custom Properties - Design Tokens from Figma */
:root {
  /* Colors - Exact Figma values */
  --color-primary: #155DFC;
  --color-primary-light: #6972EC;
  --color-primary-dark: #155DFC;
  --color-text-dark: #090914;
  --color-text-secondary: #45556c;
  --color-text-muted: #6b7a90;
  --color-white: #ffffff;
  --color-bg-light: #fafbff;
  --color-bg-section: #f5f7fa;
  --color-border: #e5e8ed;
  --color-green: #10b981;

  /* Gradients - Exact Figma values */
  --gradient-purple: linear-gradient(59deg, #155DFC 9.21%, #9810FA 93.86%);
  --gradient-dark: linear-gradient(180deg, #090914 0%, #0f0f1a 100%);
  --gradient-light: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);

  /* Typography - Montserrat with exact weights */
  --font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

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

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-purple: 0 8px 32px rgba(120, 59, 252, 0.25);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: var(--font-family);
  font-weight: 400;
  color: var(--color-text-dark);
  background: var(--color-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container - Figma max-width */
.container {
  max-width: 1350px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Typography Utilities */
.gradient-text {
  background: var(--gradient-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-animated {
  background: linear-gradient(90deg, #155DFC, #9810FA, #155DFC, #9810FA);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease infinite;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: var(--space-12);
  color: var(--color-text-dark);
}

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

/* Buttons - Exact Figma specs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-text-dark);
  color: var(--color-white);
  padding: 16px 24px;
  height: 50px;
}

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

.btn-gradient {
  background: var(--gradient-purple);
  color: var(--color-white);
  padding: 16px 24px;
  height: 50px;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

.btn-gradient-small {
  background: var(--gradient-purple);
  color: var(--color-white);
  padding: 12px 20px;
  font-size: 13px;
}

.btn-gradient-small:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-purple);
}

/* ============================================
   HEADER - Figma specs
   ============================================ */
.header {
  position: relative;
  z-index: 1000;
  padding: 20px 0;
}

.header-container {
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 20px 40px 20px 40px;
  border-radius: 100px;
  border: 1px solid #f1f5f9;
  background: linear-gradient(175deg, rgba(248, 250, 252, 0.7) 0%, rgba(255, 255, 255, 0.7) 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.logo {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-text-dark);
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #155DFC, #9810FA, #155DFC, #9810FA);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-flow 4s ease infinite;
}

@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.nav {
  display: flex;
  gap: var(--space-8);
  margin-left: auto;
  margin-right: var(--space-8);
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: -0.8px;
  transition: color var(--transition-fast);
}

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

.header-btn {
  border-radius: 29px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Language Selector - Figma specs */
.language-selector {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 15px 13px 15px 20px;
  background: transparent;
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.language-selector:hover {
  background: rgba(0, 0, 0, 0.02);
}

.lang-flag {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-flag img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.lang-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text-dark);
  letter-spacing: -0.8px;
}

.lang-arrow {
  width: 20px;
  height: 20px;
}

/* ============================================
   HERO SECTION - Figma specs
   ============================================ */
.hero {
  padding: 60px 0 var(--space-20);
  background: var(--gradient-light);
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-content {
  max-width: 480px;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -2.4px;
  line-height: 1.1;
  margin-bottom: var(--space-5);
  color: var(--color-text-dark);
}

.hero-description {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-5);
  letter-spacing: -0.28px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.tag {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 16px;
  font-weight: 400;
  color: var(--color-text-secondary);
  padding: 12px 20px 12px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-white);
}

.tag img {
  width: 16px;
  height: 16px;
}

.hero-cta {
  border-radius: var(--radius-full);
}

/* Dashboard Preview - Figma exact design */
.hero-image {
  position: relative;
  padding: 20px 0 40px 20px;
}

/* Single white card container */
.dashboard-preview {
  display: flex;
  align-items: stretch;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  height: 450px;
  min-width: 700px;
}

/* Left: Property Image Wrapper */
.property-image-wrapper {
  flex: 0 0 450px;
  height: 100%;
  background: #f1f5f9;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Badges - positioned around hero-image */
.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-white);
  border: 1px solid #f1f5f9;
  border-radius: var(--radius-full);
  padding: 8px 16px 8px 8px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  z-index: 20;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-badge:hover {
  transform: translateY(-6px) scale(1.05);
  box-shadow: 0 25px 35px -5px rgba(0, 0, 0, 0.15), 0 12px 15px -6px rgba(0, 0, 0, 0.12);
}

.floating-badge:hover .badge-icon {
  transform: scale(1.1);
}

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

.badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon-fire {
  background: linear-gradient(135deg, #F54900 0%, #FB2C36 100%);
}

.badge-icon-green {
  background: linear-gradient(135deg, #00C950 0%, #00BC7D 100%);
}

.badge-icon-storm {
  background: linear-gradient(135deg, #155DFC 0%, #6972EC 100%);
}

.badge-icon-purple {
  background: linear-gradient(59deg, #155DFC 9.21%, #9810FA 93.86%);
}

.badge-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.badge-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #45556c;
  line-height: 1.2;
}

.badge-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
}

/* Badge Positions - Match Figma exactly */
.badge-fire {
  top: -10px;
  left: 280px;
}

.badge-verified {
  top: 40%;
  left: -35px;
}

.badge-storm {
  bottom: 20px;
  left: 220px;
}

.badge-insights {
  bottom: 20px;
  right: -30px;
}

/* Dashboard Panel */
.dashboard-panel {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

/* Progress bar at bottom of dashboard */
.progress-bar-container {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.progress-bar-fill {
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, #155DFC 0%, #6972EC 100%);
  border-radius: 3px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-2);
}

.panel-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-dark);
}

/* Floating Risk Score Card */
.floating-risk-card {
  position: absolute;
  top: -30px;
  right: -50px;
  background: var(--color-white);
  border: 1.277px solid #f1f5f9;
  border-radius: 13px;
  padding: 15px 26px 15px 15px;
  box-shadow: 0 25px 32px -6px rgba(0, 0, 0, 0.1);
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
}

/* 边框流光效果 - 仅悬停时显示 */
.floating-risk-card::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 15px;
  background: linear-gradient(90deg, #155DFC, #9810FA, #155DFC, #9810FA);
  background-size: 300% 100%;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
  animation: border-flow 3s ease infinite;
}

.floating-risk-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: white;
  border-radius: 11px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.floating-risk-card:hover {
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 30px 40px -6px rgba(0, 0, 0, 0.15);
  border-color: transparent;
}

.floating-risk-card:hover::before,
.floating-risk-card:hover::after {
  opacity: 1;
}

@keyframes border-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.risk-score-box {
  text-align: right;
}

.risk-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #45556c;
  line-height: 1.2;
}

.risk-value-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.risk-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 31px;
  font-weight: 700;
  color: #0f172b;
  line-height: 31px;
}

.risk-max {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #a9a9a9;
  line-height: 1.2;
}

.risk-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--color-green);
}

/* Widget Cards */
.widget-card {
  background: var(--color-bg-light);
  border-radius: var(--radius-md);
  padding: var(--space-3);
}

.widget-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-dark);
  display: block;
  margin-bottom: var(--space-2);
}

/* Confidence Bar */
.confidence-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-2);
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(90deg, #00bc7d 0%, #ad46ff 100%);
  border-radius: var(--radius-full);
}

.confidence-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-green);
}

/* Checklist */
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.checklist li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-dark);
}

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

.check-green {
  background: var(--color-green);
}

.check-blue {
  background: var(--color-primary);
}

/* Source Chips */
.source-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-secondary);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

/* ============================================
   PROCESS SECTION - Figma specs
   ============================================ */
.process {
  padding: 60px 0;
  background: linear-gradient(90deg, #f7f9fb 0%, #f7f9fb 100%), linear-gradient(151deg, #eff6ff 0%, #faf5ff 100%);
  border-radius: 29px;
}

.process-container {
  display: flex;
  flex-direction: column;
  gap: 100px;
  padding: 60px 40px;
}

.process-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.process-badge {
  background: var(--color-white);
  padding: 8px 16px;
  border-radius: 29px;
}

.process-badge span {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a9a9a9;
  line-height: 1.2;
}

.process-main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #0f172b;
  text-align: center;
  line-height: 1.2;
}

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

.process-card {
  position: relative;
  background: var(--color-white);
  border-radius: 29px;
  padding: 40px 32px;
  transition: all var(--transition-normal);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 432px;
}

.process-card-inner {
  position: relative;
  flex: 1;
}

.process-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.process-icon-img {
  width: 28px;
  height: 28px;
  filter: invert(44%) sepia(6%) saturate(1052%) hue-rotate(182deg) brightness(94%) contrast(90%);
  transition: filter var(--transition-normal);
}

.process-number {
  position: absolute;
  top: 0;
  right: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 128px;
  font-weight: 600;
  color: #0f172b;
  opacity: 0.04;
  line-height: 1;
  letter-spacing: -4px;
  transition: all var(--transition-normal);
}

.process-text {
  margin-top: auto;
}

.process-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f172b;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
  transition: color var(--transition-normal);
}

.process-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #0f172b;
  line-height: 1.5;
  transition: color var(--transition-normal);
}

/* Active state for cards - controlled by JavaScript */
/* Only one card can be active at a time */
.process-card-active {
  background: var(--gradient-purple);
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(120, 59, 252, 0.25);
}

.process-card-active .process-icon-wrapper {
  background: rgba(255, 255, 255, 0.2);
}

.process-card-active .process-icon-img {
  filter: brightness(0) invert(1);
}

.process-card-active .process-number {
  color: var(--color-white);
  opacity: 0.1;
}

.process-card-active .process-title {
  color: var(--color-white);
}

.process-card-active .process-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ============================================
   FEATURES SECTION - Figma specs
   ============================================ */
.features {
  padding: var(--space-24) 0;
  background: var(--color-bg-section);
}

.features-grid {
  display: flex;
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--color-white);
  border-radius: 29px;
  padding: 40px 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 400px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.feature-card-inner {
  flex: 1;
}

.feature-icon-wrapper {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border-radius: 50%;
  transition: all var(--transition-normal);
}

.feature-icon-img {
  width: 32px;
  height: 32px;
  /* Make all icons consistent blue/purple color (#6972EC) */
  filter: invert(42%) sepia(93%) saturate(1352%) hue-rotate(213deg) brightness(95%) contrast(101%);
  transition: filter var(--transition-normal);
}

/* Inline SVG icons */
.feature-icon-svg {
  width: 32px;
  height: 32px;
  color: #6972EC;
  transition: color var(--transition-normal);
}

.feature-text {
  margin-top: auto;
}

.feature-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
  transition: color var(--transition-normal);
}

.feature-desc {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  margin-top: 10px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

/* Active state for feature cards */
.feature-card-active {
  background: var(--gradient-purple);
  flex: 2;
}

.feature-card-active .feature-icon-wrapper {
  background: rgba(121, 129, 247, 0.5);
}

.feature-card-active .feature-icon-img {
  filter: brightness(0) invert(1);
}

.feature-card-active .feature-icon-svg {
  color: white;
}

.feature-card-active .feature-title {
  color: var(--color-white);
}

.feature-card-active .feature-desc {
  opacity: 1;
  max-height: 100px;
}

/* ============================================
   TESTIMONIALS SECTION - Figma specs
   ============================================ */
.testimonials {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

/* Horizontal layout: left title + right carousel */
.testimonials-layout {
  display: flex !important;
  align-items: flex-start;
  gap: 60px;
}

.testimonials-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 200px;
}

.testimonials-badge {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 29px;
  width: fit-content;
}

.testimonials-badge span {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a9a9a9;
  line-height: 1.2;
}

.testimonials-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
  max-width: 280px;
}

/* Navigation arrows - positioned at outer edges */
.testimonials-nav {
  display: none;
  /* Hide nav in header, we'll use floating buttons */
}

/* Carousel wrapper with floating nav buttons */
.testimonials-carousel {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.testimonials-nav-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

/* Previous button - dark outline style */
.testimonials-nav-prev {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  color: #0f172b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.testimonials-nav-prev:hover {
  background: #f8fafc;
  border-color: #0f172b;
}

/* Next button - same default style, gradient on hover/active */
.testimonials-nav-next {
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  color: #0f172b;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.testimonials-nav-next:hover,
.testimonials-nav-next:active,
.testimonials-nav-next.active {
  background: var(--gradient-purple);
  border: none;
  color: white;
  box-shadow: 0 8px 25px rgba(120, 59, 252, 0.3);
}

.testimonials-nav-prev:hover,
.testimonials-nav-prev:active,
.testimonials-nav-prev.active {
  background: var(--gradient-purple);
  border: none;
  color: white;
  box-shadow: 0 8px 25px rgba(120, 59, 252, 0.3);
}

/* Track container - fixed width to show ~2.5 cards, clips horizontal overflow */
.testimonials-track-wrapper {
  width: 800px;
  /* Show approximately 2.5 cards (340px each + 20px gap) */
  flex-shrink: 0;
  overflow-x: hidden;
  overflow-y: visible;
  padding-top: 50px;
  /* Space for floating quote icons */
  margin-top: -50px;
  /* Compensate for the padding */
}

.testimonials-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
}

.testimonial-card {
  position: relative;
  background: var(--color-white);
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 32px 32px 32px;
  flex-shrink: 0;
  width: 340px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
}

.testimonial-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-light);
  border: 1px solid var(--color-border);
}

/* Quote icon floating at top-right of card */
.testimonial-card .quote-icon {
  position: absolute !important;
  top: -24px !important;
  right: 24px !important;
  left: auto !important;
  transform: none !important;
  width: 48px !important;
  height: 48px !important;
  z-index: 10;
  margin: 0 !important;
  padding: 0 !important;
}

.quote-icon-img,
.testimonial-card .quote-icon svg,
.testimonial-card .quote-icon img {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  display: block;
}

.testimonial-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #45556c;
  line-height: 1.7;
  margin-bottom: auto;
  letter-spacing: -0.28px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.author-avatar-stack {
  position: relative;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-white);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.author-role {
  font-size: 12px;
  font-weight: 400;
  color: var(--color-text-muted);
}

/* CTA Card in Testimonials */
.cta-avatars {
  display: flex;
  margin-bottom: var(--space-4);
}

.cta-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-white);
  margin-left: -8px;
}

.cta-avatar:first-child {
  margin-left: 0;
}

.cta-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-4);
  max-width: 180px;
}

/* ============================================
   PRODUCT PAGE SECTION - Figma specs
   ============================================ */
.product-page {
  position: relative;
  padding: 100px 0 100px;
  background: #fcfdfe;
  overflow: hidden;
}

.product-bg-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(104, 113, 245, 0.2) 0%, rgba(241, 246, 255, 0.2) 100%);
  filter: blur(48px);
  opacity: 0.64;
  pointer-events: none;
}

.product-container {
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.product-container-second {
  margin-top: 100px;
}

.product-badge {
  background: #f6f6f6;
  padding: 8px 16px;
  border-radius: 29px;
}

.product-badge span {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #a9a9a9;
  line-height: 1.2;
}

.product-main-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #0f172b;
  text-align: center;
  line-height: 1.2;
}

.product-section-block {
  width: 100%;
  max-width: 1000px;
  /* 调整宽度 */
  margin-top: 50px;
  /* 调整上下间距 */
}

.explanation-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px 12px 12px;
  border: 1px solid #f1f5f9;
  border-radius: 29px;
  margin-bottom: 16px;
}

.explanation-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #faf5ff 100%);
  border-radius: 29px;
}

.explanation-arrow-icon {
  width: 16px;
  height: 16px;
}

.explanation-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #45556c;
  text-decoration: none;
}

.explanation-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0f172b;
  line-height: 1.7;
  letter-spacing: -0.28px;
  text-align: justify;
  /* 两端对齐 */
  text-align-last: left;
  /* 最后一行靠左 */
}

.product-divider {
  width: 100%;
  height: 1px;
  background: #e2e8f0;
  margin-top: 25px;
}

.product-description {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0f172b;
  line-height: 1.7;
  letter-spacing: -0.28px;
  text-align: justify;
  /* 两端对齐 */
  text-align-last: left;
  /* 最后一行靠左 */
  max-width: 1000px;
  /* 与上面保持一致 */
  margin-top: 50px;
  margin-bottom: 150px;
  /* 上方间距 */
}

/* Navigation active state */
.nav-link-active {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ============================================
   FAQ SECTION - Figma specs
   ============================================ */
.faq {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: left;
  transition: color var(--transition-fast);
  letter-spacing: -0.3px;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  color: var(--color-text-muted);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer p {
  padding-bottom: var(--space-5);
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   FOOTER CTA SECTION - Figma specs
   ============================================ */
.footer-cta,
.footer {
  background: #000000;
  color: var(--color-white);
  padding: 100px 40px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 29px 29px 0 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.footer-container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.footer-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-align: center;
}

.footer-form {
  display: flex;
  justify-content: center;
}

.footer-input-wrapper {
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 10px 15px 10px 30px;
  background: linear-gradient(171.45deg, #f8fafc 0%, #ffffff 100%);
  border: 1px solid #ffffff;
  border-radius: 29px;
}

.footer-email-input {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #a9a9a9;
  background: transparent;
  border: none;
  outline: none;
  min-width: 280px;
  /* 增加宽度以显示完整邮箱 */
}

.footer-email-input::placeholder {
  color: #a9a9a9;
}

.footer-submit-btn {
  width: 40px;
  height: 40px;
  background: linear-gradient(59.74deg, #155dfc 9.21%, #9810fa 93.86%);
  border: 1.3px solid #155dfc;
  border-radius: 29px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.footer-submit-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(21, 93, 252, 0.3);
}

.footer-submit-btn svg {
  width: 16px;
  height: 16px;
  color: white;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-divider {
  width: 100%;
  max-width: 1400px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 30px;
}

.footer-legal {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
}

.footer-brand {
  font-family: 'Montserrat', sans-serif;
  font-size: 250px;
  font-weight: 700;
  line-height: 1.2;
  color: rgba(53, 53, 53, 0.4);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  position: relative;
  z-index: 1;
  margin-top: 50px;
}

/* Legacy footer styles for backwards compatibility */
.input-wrapper {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px;
}

.email-input {
  flex: 1;
  padding: 14px 20px;
  background: transparent;
  border: none;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 400;
  outline: none;
}

.email-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.submit-btn {
  width: 48px;
  height: 48px;
  background: var(--gradient-purple);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  transition: all var(--transition-normal);
  flex-shrink: 0;
}

.submit-btn:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-purple);
}

/* ============================================
   CONTACT PAGE - Figma specs
   ============================================ */
.contact-section {
  padding: 170px 0 200px 0;
  background: #fcfdfe;
  position: relative;
}

.contact-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(104, 113, 245, 0.2) 0%, rgba(241, 246, 255, 0.2) 100%);
  filter: blur(48px);
  opacity: 0.64;
  pointer-events: none;
}

.contact-wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.contact-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  margin-bottom: 60px;
}

.contact-badge {
  background: #f6f6f6;
  padding: 8px 16px;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #a9a9a9;
  line-height: 1.2;
}

.contact-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 40px;
  font-weight: 600;
  color: #0f172b;
  text-align: center;
  line-height: 1.2;
  letter-spacing: -1.2px;
}

.contact-content {
  display: flex;
  gap: 40px;
  align-items: stretch;
}

/* Email Info Card */
.contact-info-card {
  flex: 0 0 400px;
  border-radius: 29px;
  background: linear-gradient(180deg, #f6f8ff 0%, #e8ecfe 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}

.contact-info-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.contact-info-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
  letter-spacing: -0.72px;
  margin-bottom: 5px;
}

.contact-info-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #45556c;
  line-height: 1.2;
}

.contact-info-email {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #155dfc;
  line-height: 1.2;
  text-decoration: underline;
  transition: opacity var(--transition-fast);
}

.contact-info-email:hover {
  opacity: 0.8;
}

/* Contact Form */
.contact-form-wrapper {
  flex: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-input-group {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  border: 2px solid #f1f5f9;
  border-radius: 29px;
  background: transparent;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.contact-input-group:focus-within {
  border-color: #6871f5;
  background: #ffffff;
}

.contact-input-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: color var(--transition-fast);
}

.contact-input-icon path {
  transition: stroke var(--transition-fast);
}

.contact-input-group:focus-within .contact-input-icon path {
  stroke: #6871f5;
}

.contact-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0f172b;
  line-height: 1.2;
}

.contact-input:focus {
  font-weight: 500;
}

.contact-input::placeholder {
  color: #a9a9a9;
}

.contact-textarea-group {
  padding: 16px 20px;
  border: 2px solid #f1f5f9;
  border-radius: 20px;
  background: transparent;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.contact-textarea-group:focus-within {
  border-color: #6871f5;
  background: #ffffff;
}

.contact-textarea {
  width: 100%;
  min-height: 100px;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #0f172b;
  line-height: 1.5;
  resize: vertical;
}

.contact-textarea:focus {
  font-weight: 500;
}

.contact-textarea::placeholder {
  color: #a9a9a9;
}

.contact-submit-btn {
  align-self: center;
  padding: 16px 40px;
  background: #090914;
  color: #ffffff;
  border: none;
  border-radius: 29px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
  margin-top: 10px;
}

.contact-submit-btn:hover {
  background: #1a1a2e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Contact Success Modal */
.contact-success-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.contact-success-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-success-modal-content {
  background: #ffffff;
  border-radius: 24px;
  padding: 50px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
  max-width: 520px;
  text-align: center;
}

.contact-success-modal.active .contact-success-modal-content {
  transform: scale(1) translateY(0);
}

.contact-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(59.74deg, #155dfc 9.21%, #9810fa 93.86%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-success-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
  text-align: center;
  margin: 0;
}

.contact-success-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #a9a9a9;
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* ============================================
   RESPONSIVE STYLES
   ============================================ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .hero-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
  }

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

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-image {
    max-width: 560px;
    margin: 0 auto;
  }

  .process-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

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

  .feature-card-main {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 280px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .testimonials-layout {
    flex-direction: column !important;
    gap: 40px;
  }

  .testimonials-header {
    align-items: center;
    text-align: center;
  }

  .testimonials-title {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 768px) {

  .nav,
  .header .header-btn {
    display: none;
  }

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

  .hero {
    padding: 120px 0 var(--space-16);
    min-height: auto;
  }

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

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

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

  .feature-card-main {
    grid-column: span 1;
    min-height: 240px;
  }

  .dashboard-main {
    grid-template-columns: 1fr;
  }

  .dashboard-panel {
    display: none;
  }

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

  .footer-brand {
    font-size: 80px;
  }

  .footer-cta,
  .footer {
    padding: 60px 20px 0;
  }

  .footer-input-wrapper {
    gap: 20px;
    padding: 8px 12px 8px 20px;
  }

  .footer-email-input {
    min-width: 150px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

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

  .process {
    padding: var(--space-16) 0;
  }

  .features,
  .testimonials,
  .faq {
    padding: var(--space-16) 0;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

.hero-content {
  animation: fadeInUp 0.6s ease forwards;
}

.hero-image {
  animation: fadeInUp 0.6s ease 0.15s forwards;
  opacity: 0;
}

/* ============================================
   SAMPLE DASHBOARD MODAL
   ============================================ */

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Modal Container */
.modal-container {
  background: #fcfdfe;
  border-radius: 29px;
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.95) translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

/* Modal Header */
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  background: #fcfdfe;
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(59deg, #155DFC 9.21%, #9810FA 93.86%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0f172b;
  letter-spacing: -0.5px;
}

.modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.modal-close-btn:hover {
  background: #e2e8f0;
}

.modal-close-btn svg {
  color: #64748b;
}

/* Modal Content */
.modal-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Property Section */
.modal-property-section {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  min-height: 600px;
  border: 1px solid #e2e8f0;
}

.modal-property-image-wrapper {
  position: relative;
  flex: 0 0 50%;
  min-height: 600px;
  background: #f1f5f9;
  overflow: hidden;
}

.modal-property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-listing-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #10b981;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-listing-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.modal-property-details {
  flex: 1;
  padding: 16px 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

/* Verdict Card */
.modal-verdict-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
}

.verdict-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.verdict-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172b;
}

.verdict-score {
  display: flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.verdict-text {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 12px;
}

.confidence-bar-modal {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}

.confidence-fill-modal {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #8b5cf6 100%);
  border-radius: 3px;
}

.confidence-text-modal {
  font-size: 12px;
  font-weight: 500;
  color: #10b981;
}

/* Address Info */
.modal-address-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.address-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

.address-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #45556c;
  line-height: normal;
}

.address-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #a9a9a9;
  letter-spacing: -0.15px;
  line-height: 1.2;
  margin-top: 4px;
}

/* Price & Offer Info Container */
.modal-price-offer-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 60px;
}

/* Price & Offer Info */
.modal-price-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modal-offer-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
}

.price-label,
.offer-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #45556c;
  line-height: normal;
}

.price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #7c5cfc;
  line-height: normal;
}

.offer-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

/* Unified Caution Card - Matching Figma Design */
.modal-caution-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #fef2f2;
  border-radius: 29px;
  padding: 30px 20px 40px;
}

.caution-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.caution-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f54900 0%, #fb2c36 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.caution-header-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.caution-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
}

.caution-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #45556c;
  line-height: 1.2;
}

.caution-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.caution-price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border-radius: 16px;
  padding: 20px;
}

.caution-price-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #45556c;
  line-height: normal;
}

.caution-price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

.caution-price-red {
  color: #e7000b;
}

.caution-strategy {
  padding: 0 10px;
}

.caution-strategy-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(231, 0, 11, 0.5);
  line-height: normal;
}

/* Section Cards */
.modal-section-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
}

.section-purple {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #f5f3ff 0%, #faf5ff 100%);
}

.section-blue {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #eff6ff 0%, #f0f9ff 100%);
}

.section-dark {
  background: #1e293b;
  border-color: #334155;
}

.section-dark .section-title {
  color: white;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.section-icon {
  font-size: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172b;
}

/* Pricing Row */
.section-price-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-block-label {
  font-size: 12px;
  color: #94a3b8;
}

.price-block-value {
  font-size: 18px;
  font-weight: 700;
  color: #0f172b;
}

.price-highlight {
  color: #155DFC;
}

.section-strategy-text {
  font-size: 12px;
  color: #64748b;
  font-style: italic;
}

/* Hidden Value Potential Card - Matching Figma Design */
.modal-value-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #eff4ff;
  border-radius: 29px;
  padding: 30px 20px 40px;
}

.value-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.value-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2b7fff 0%, #4f39f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
}

.value-garden-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.value-garden-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

.value-garden-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #45556c;
  line-height: normal;
}

.value-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-stat-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border-radius: 16px;
  padding: 20px;
}

.value-stat-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #45556c;
  line-height: normal;
}

.value-stat-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

.value-stat-blue {
  color: #155DFC;
}

.value-stat-green {
  color: #10b981;
}

.value-stat-suffix {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #a9a9a9;
}

/* Risk Assessment Card - Matching Figma Design */
.modal-risk-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: #fffbeb;
  border-radius: 29px;
  padding: 30px 20px 40px;
}

.risk-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.risk-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fe9a00;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.risk-header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
}

.risk-items-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.risk-item-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: white;
  border-radius: 16px;
  padding: 20px;
}

.risk-item-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

.risk-item-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #45556c;
  line-height: normal;
}

/* Investment Reality Card - Matching Figma Design */
.modal-investment-card {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: white;
  border: 1px solid #f1f5f9;
  border-radius: 29px;
  padding: 30px 20px 40px;
}

.investment-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.investment-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.investment-header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
}

.investment-table-container {
  display: flex;
  flex-direction: column;
}

.investment-table-header,
.investment-table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
}

.investment-table-header {
  border-bottom: 1px solid #e2e8f0;
}

.investment-col-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
}

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

.investment-metric {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #45556c;
  line-height: normal;
}

.investment-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #45556c;
  line-height: normal;
}

.investment-positive {
  color: #10b981;
}

.investment-note {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #a9a9a9;
}

.investment-average {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #45556c;
  line-height: normal;
}

/* Sources & Citations Card - Matching Figma Design */
.modal-sources-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: #f1f5f9;
  border: 1px solid #f1f5f9;
  border-radius: 29px;
  padding: 30px 20px 40px;
}

.sources-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sources-icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #62748e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sources-header-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0f172b;
  line-height: 1.2;
}

.sources-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.source-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: white;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

.source-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.source-card-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.source-card-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172b;
  line-height: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.source-card-type {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #90a1b9;
  line-height: normal;
}

.source-card-link {
  flex-shrink: 0;
  color: #90a1b9;
}

.sources-footer-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #90a1b9;
  line-height: normal;
  padding: 0 10px;
}

/* Modal Footer */
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
  margin-top: 10px;
}

.modal-footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #64748b;
}

.modal-footer-left strong {
  color: #0f172b;
}

.footer-separator {
  color: #cbd5e1;
}

.modal-footer-right {
  font-size: 12px;
  color: #64748b;
}

/* Modal Responsive */
@media (max-width: 560px) {
  .modal-container {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-property-section {
    flex-direction: column;
  }

  .modal-property-image-wrapper {
    min-height: 200px;
  }

  .modal-property-details {
    padding: 20px;
  }

  .section-price-row,
  .value-stats-grid {
    grid-template-columns: 1fr;
  }

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