/* ==========================================================================
   AI FaceIt — Official Website Stylesheet
   Designed directly according to the AI FaceIt Windows Desktop Software
   Tokens, colors, typography, and components derived from templates/index.html
   ========================================================================== */

:root {
  /* Software Native Color Tokens (from desktop-ui.css & index.html) */
  --color-primary: #0078d4;
  --color-primary-dark: #106ebe;
  --color-primary-light: #2899f5;
  --color-primary-hover: #005a9e;

  /* Aliases for theme tokens */
  --primary: var(--color-primary);
  --primary-dark: var(--color-primary-dark);
  --primary-light: var(--color-primary-light);
  --primary-hover: var(--color-primary-hover);
  
  /* Soft Blues & Grays from Software Sidebar & Header */
  --bg-sidebar: #eef3fb;
  --bg-sidebar-hover: #dce8fb;
  --bg-sidebar-active: #bfe1ff;
  --bg-pill: #eaf2ff;
  --bg-pill-hover: #dce8fb;
  --bg-pill-active: #bfe1ff;

  /* Canvas & Card Surfaces */
  --bg-body: #f8f9fa;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;
  
  /* Text Tokens */
  --text-dark: #0d0f1b;
  --text-primary: #212529;
  --text-secondary: #4d5766;
  --text-muted: #6c757d;
  --text-dim: #94a3b8;
  --text-link: #0078d4;

  /* Borders & Dividers */
  --border-light: #dee2e6;
  --border-subtle: #e2e8f0;
  --border-input: #ced4da;
  --border-focus: #0078d4;

  /* Status Indicators from Software */
  --color-sync-blue: #1976D2;
  --color-cloud-green: #2E7D32;
  --color-success: #28a745;
  --color-warning: #ff9800;
  --color-danger: #dc3545;

  /* Typography: System Native Desktop Stack */
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: Consolas, "Courier New", Courier, monospace;

  /* Layout & Spacing */
  --container-max: 1200px;
  --header-height: 60px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  /* Clean Native Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  --shadow-window: 0 16px 40px rgba(13, 15, 27, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
}

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

html {
  font-family: var(--font-system);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--bg-body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

/* ==========================================================================
   Container & Section Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: var(--bg-pill);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 12px;
  border: 1px solid #d0e2ff;
}

.section-title {
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Buttons (Matching Software Buttons)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-system);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn-primary:active {
  background-color: var(--color-primary-hover);
}

.btn-soft {
  background-color: var(--bg-pill);
  color: var(--text-dark);
  border-color: #dce8fb;
}

.btn-soft:hover {
  background-color: var(--bg-pill-hover);
}

.btn-soft:active {
  background-color: var(--bg-pill-active);
}

.btn-outline {
  background-color: #ffffff;
  color: var(--text-dark);
  border-color: var(--border-input);
}

.btn-outline:hover {
  background-color: #f8f9fa;
  border-color: var(--text-muted);
}

.btn-secondary {
  background-color: var(--bg-sidebar);
  color: var(--color-primary);
  border-color: #d0e2ff;
}

.btn-secondary:hover {
  background-color: var(--bg-sidebar-hover);
  color: var(--color-primary-hover);
  border-color: #9ac8fc;
}

.btn-lg {
  font-size: 15px;
  padding: 12px 24px;
}

.btn-md {
  font-size: 14px;
  padding: 9px 18px;
}

.btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  flex-wrap: nowrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  color: var(--text-dark);
  flex-shrink: 0;
}

.logo img {
  height: 36px;
  width: auto;
  max-width: 36px;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.logo span strong {
  font-weight: 700;
}

.logo .version-chip {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-sidebar);
  color: var(--color-primary);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid #d0e2ff;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-shrink: 0;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: var(--text-dark);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-body) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
}

.hero-headline {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.18;
  letter-spacing: -0.02em;
  max-width: 920px;
  margin: 0 auto 1.25rem;
}

.hero-headline .text-blue {
  color: var(--color-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta-points {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.hero-point {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-point svg {
  color: var(--color-primary);
}

/* ==========================================================================
   Software UI Mockup Replica (The Real App Window)
   ========================================================================== */
.software-showcase-container {
  margin-top: 3.5rem;
  position: relative;
}

.software-window {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-window);
  border: 1px solid #cfd7df;
  overflow: hidden;
  text-align: left;
}

/* Simulated Software Titlebar & Header */
.soft-header {
  height: 60px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
}

.soft-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--text-dark);
  font-weight: 700;
  flex-shrink: 0;
}

.soft-logo img {
  height: 32px;
  width: auto;
}

.soft-search-bar {
  position: relative;
  flex-grow: 1;
  max-width: 540px;
}

.soft-search-input {
  width: 100%;
  padding: 8px 16px 8px 40px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--bg-sidebar);
  font-size: 13px;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-system);
}

.soft-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #6b6f7b;
  pointer-events: none;
}

.soft-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.soft-sync-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-sync-blue);
  font-weight: 500;
}

.soft-cloud-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-cloud-green);
  font-weight: 500;
}

.soft-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #e0e0e0;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.soft-recognize-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-pill);
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background var(--transition-fast);
}

.soft-recognize-btn:hover {
  background: var(--bg-pill-hover);
}

/* Window Body: Sidebar + Content Area */
.soft-body {
  display: flex;
  min-height: 520px;
  background-color: var(--bg-body);
}

/* Software Sidebar */
.soft-sidebar {
  width: 210px;
  background: var(--bg-sidebar);
  padding: 20px 10px;
  border-right: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.soft-sidebar-list {
  list-style: none;
}

.soft-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  margin-bottom: 4px;
  border-radius: var(--radius-pill);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.soft-sidebar-item:hover {
  background: var(--bg-sidebar-hover);
}

.soft-sidebar-item.active {
  background: var(--bg-sidebar-active);
  font-weight: 600;
}

.soft-sidebar-item svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

.soft-section-heading {
  font-size: 12px;
  margin: 18px 14px 6px;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: none;
}

/* Software Content Area */
.soft-content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

/* People Horizontal Scroll (Exact from software) */
.soft-people-bar {
  display: flex;
  gap: 14px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-light);
  overflow-x: auto;
}

.soft-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  cursor: pointer;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  transition: all var(--transition-fast);
  text-align: center;
}

.soft-person:hover {
  background-color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.soft-person.selected {
  border-color: var(--color-primary);
  background-color: #e7f1ff;
}

.soft-person-thumb {
  width: 54px;
  height: 54px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #ddd;
  margin-bottom: 6px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
}

.soft-person-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 68px;
}

.soft-person-count {
  font-size: 11px;
  color: var(--text-muted);
}

/* Action Bar & Photo Grid */
.soft-grid-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.soft-grid-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.soft-grid-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.soft-tool-btn {
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #ced4da;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all var(--transition-fast);
}

.soft-tool-btn:hover {
  background-color: #f8f9fa;
  border-color: #adb5bd;
}

.soft-tool-btn.primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.soft-tool-btn.primary:hover {
  background-color: var(--color-primary-dark);
}

/* Photo Cards in Grid */
.soft-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.soft-photo-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: #ffffff;
  position: relative;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.soft-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.soft-photo-checkbox {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 16px;
  height: 16px;
  cursor: pointer;
  z-index: 5;
}

.soft-photo-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-color: #eef2f6;
}

.soft-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 6px;
  background: rgba(13, 15, 27, 0.75);
  color: #ffffff;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
}

.soft-face-bounding-box {
  position: absolute;
  border: 2px solid #0078d4;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
}

.soft-face-tag {
  position: absolute;
  top: -18px;
  left: -2px;
  background: #0078d4;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ==========================================================================
   Real Features Section (Mapped to App Modules)
   ========================================================================== */
.features-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #c0d4f5;
}

.feature-box-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-sidebar);
  border: 1px solid #d0e2ff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-box-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.feature-box-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.feature-box-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex-grow: 1;
}

.feature-box-footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Workflow Steps Section (Simple, Real Flow)
   ========================================================================== */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.workflow-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.workflow-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  background: var(--bg-sidebar);
  border: 1px solid #d0e2ff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.workflow-step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.workflow-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Comparison Table (Software vs Cloud vs Explorer)
   ========================================================================== */
.comparison-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 650px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
}

.comparison-table th {
  background-color: var(--bg-sidebar);
  color: var(--text-dark);
  font-weight: 700;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
  background-color: #f4f8ff;
  border-left: 2px solid #bfe1ff;
  border-right: 2px solid #bfe1ff;
  font-weight: 600;
  color: var(--text-dark);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.status-check {
  color: var(--color-success);
  font-weight: 600;
}

.status-cross {
  color: var(--color-danger);
}

/* ==========================================================================
   Pricing & Hardware Specifications
   ========================================================================== */
.specs-pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: stretch;
}

.pricing-panel {
  background: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.pricing-panel-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  background: var(--bg-pill);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

.pricing-panel-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 16px 0;
}

.pricing-dollar {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.pricing-number {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
}

.pricing-cycle {
  font-size: 1rem;
  color: var(--text-muted);
}

.pricing-list {
  list-style: none;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.pricing-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pricing-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.specs-panel {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.specs-panel-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.specs-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 13.5px;
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-key {
  color: var(--text-secondary);
}

.specs-val {
  color: var(--text-dark);
  font-weight: 600;
  text-align: right;
}

/* ==========================================================================
   FAQ Accordion
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-card:hover {
  border-color: #b0c4de;
}

.faq-btn {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  font-family: var(--font-system);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
}

.faq-icon-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.faq-card.open .faq-icon-arrow {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-card.open .faq-body {
  max-height: 250px;
  padding-bottom: 16px;
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.download-card {
  background: linear-gradient(135deg, #eef3fb 0%, #dce8fb 100%);
  border: 1px solid #cbdbee;
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.download-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.download-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 3rem;
}

.footer-brand-p {
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 300px;
  line-height: 1.6;
}

.footer-col-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-bottom-bar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */
@media (max-width: 1080px) {
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .btn-header-claim {
    display: none;
  }
}

@media (max-width: 1024px) {
  .features-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .specs-pricing-grid {
    grid-template-columns: 1fr;
  }
  .footer-columns {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .btn-header-download {
    display: none;
  }
  .features-container {
    grid-template-columns: 1fr;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .soft-sidebar {
    display: none;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .logo .version-chip {
    display: none;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  z-index: 2000;
  padding: 24px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-drawer.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-drawer-links a,
.mobile-nav-link {
  display: block;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition-fast);
}

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

/* ==========================================================================
   1-Year Free License Claim Form & UI Styles
   ========================================================================== */

.nav-link-special {
  color: var(--color-primary) !important;
  font-weight: 700 !important;
  position: relative;
}

.nav-link-special::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

.btn-header-claim {
  background: #eef3fb;
  color: var(--color-primary);
  border: 1px solid #bfe1ff;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-header-claim:hover {
  background: #dceafc;
  color: var(--color-primary-dark);
  border-color: #9ac8fc;
  transform: translateY(-1px);
}

.claim-section {
  background: linear-gradient(180deg, #f8fafd 0%, #edf3fb 100%);
  padding: 72px 0;
  border-top: 1px solid #e2ecf8;
  border-bottom: 1px solid #e2ecf8;
}

.claim-wrapper {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: flex-start;
}

.claim-info {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.claim-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e6f4ea;
  color: #137333;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 18px;
  border: 1px solid #ceead6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.claim-badge-pulse {
  width: 8px;
  height: 8px;
  background: #1e8e3e;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 142, 62, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(30, 142, 62, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(30, 142, 62, 0); }
}

.claim-title {
  font-size: clamp(1.85rem, 3.2vw, 2.4rem);
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.claim-desc {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 28px;
}

.claim-benefits {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.claim-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.claim-benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #e1effe;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.claim-benefit-item strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.claim-benefit-item p {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

/* Claim Card & Form */
.claim-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 10px 35px rgba(0, 50, 120, 0.08), 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #dbe6f5;
  position: relative;
}

.claim-form {
  display: block;
  width: 100%;
}

.claim-form-header {
  margin-bottom: 22px;
}

.claim-form-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
}

.claim-form-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 12px 14px 12px 42px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--text-dark);
  background: #fafbfc;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.15);
}

.claim-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.claim-alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.btn-claim {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 8px;
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 120, 212, 0.3);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.btn-claim:hover {
  background-color: var(--color-primary-dark);
}

.btn-claim:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner-svg {
  animation: spin-kf 1s linear infinite;
}

@keyframes spin-kf {
  100% { transform: rotate(360deg); }
}

.claim-privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 14px;
  text-align: center;
}

/* Success Box */
.claim-success-box {
  text-align: center;
  padding: 10px 0;
}

.success-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #e6f4ea;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  border: 2px solid #a8dab5;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 8px 0;
}

.success-msg {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  line-height: 1.5;
}

.key-display-card {
  background: #f0f7ff;
  border: 2px dashed #0078d4;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.key-display-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #005a9e;
}

.key-display-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: #004578;
  letter-spacing: 2px;
  word-break: break-all;
  user-select: all;
  max-width: 100%;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #bfe1ff;
  color: var(--color-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: #eaf2ff;
  border-color: var(--color-primary);
}

.btn-copy.copied {
  background: #e6f4ea;
  color: #137333;
  border-color: #a8dab5;
}

.success-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 22px;
  border: 1px solid #edf2f7;
}

.success-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #374151;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.section-download {
  padding-top: 3.5rem;
  padding-bottom: 5rem;
}

.download-card {
  background: linear-gradient(135deg, #0078d4 0%, #005a9e 100%);
  color: #ffffff;
  border-radius: 20px;
  padding: 64px 36px;
  text-align: center;
  box-shadow: 0 20px 48px rgba(0, 120, 212, 0.22), 0 4px 12px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.download-card::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.download-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.5px;
}

.download-title {
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.download-desc {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 620px;
  margin: 0 auto 32px auto;
  line-height: 1.6;
}

.download-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.btn-download-primary {
  background-color: #ffffff;
  color: var(--color-primary);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: 1px solid #ffffff;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.btn-download-primary:hover {
  background-color: #f0f7ff;
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.btn-download-secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.btn-download-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-1px);
}

.btn-download-outline {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.25);
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

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

.download-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  .claim-wrapper {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .claim-title {
    font-size: 28px;
  }
  .claim-card {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .hero-actions .btn {
    width: 100%;
    max-width: 360px;
  }
  .download-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }
  .download-actions .btn {
    width: 100%;
    max-width: 360px;
  }
  .success-actions {
    flex-direction: column;
    width: 100%;
  }
  .success-actions .btn {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .claim-card {
    padding: 24px 18px;
  }
  .key-display-value {
    font-size: 16px;
    letter-spacing: 1px;
  }
  .download-card {
    padding: 36px 18px;
  }
  .download-title {
    font-size: 24px;
  }
}

