/* ============================================
   SmartClear - AI Customs Clearance Platform
   Modern Emerald/Teal Design System
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-emerald-50: #ECFDF5;
  --color-emerald-100: #D1FAE5;
  --color-emerald-200: #A7F3D0;
  --color-emerald-300: #6EE7B7;
  --color-emerald-400: #34D399;
  --color-emerald-500: #10B981;
  --color-emerald-600: #059669;
  --color-emerald-700: #047857;
  --color-emerald-800: #065F46;
  --color-emerald-900: #064E3B;

  --color-teal-500: #14B8A6;
  --color-teal-600: #0D9488;
  --color-teal-700: #0F766E;
  --color-teal-800: #115E59;
  --color-teal-900: #134E4A;

  --color-amber-400: #FBBF24;
  --color-amber-500: #F59E0B;
  --color-amber-600: #D97706;
  --color-amber-700: #B45309;

  --color-red-500: #EF4444;
  --color-red-600: #DC2626;
  --color-orange-500: #F97316;

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

  --color-mint-bg: #F0FDF4;
  --color-white: #FFFFFF;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Consolas', monospace;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --container-max: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

a {
  color: var(--color-emerald-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-emerald-700);
}

ul, ol {
  list-style: none;
}

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

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-gray-900);
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

.font-mono {
  font-family: var(--font-mono);
}

.section-title {
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--color-gray-500);
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 48px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-gray-200);
  transition: box-shadow var(--transition-base);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-emerald-700);
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-emerald-600), var(--color-teal-600));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-logo .logo-sub {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--color-gray-400);
  display: block;
  line-height: 1;
  margin-top: 2px;
}

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

.nav-links a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--color-gray-600);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-emerald-700);
  background-color: var(--color-emerald-50);
}

.nav-cta {
  background: var(--color-emerald-600) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 8px 20px !important;
}

.nav-cta:hover {
  background: var(--color-emerald-700) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gray-700);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  padding: 160px 0 100px;
  background: linear-gradient(145deg, var(--color-teal-900) 0%, var(--color-emerald-800) 40%, var(--color-emerald-700) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 20% 80%, rgba(16, 185, 129, 0.2), transparent),
    radial-gradient(ellipse 500px 500px at 80% 20%, rgba(13, 148, 136, 0.15), transparent);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--color-white), transparent);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: heroFadeIn 0.8s ease-out;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  color: var(--color-emerald-200);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-emerald-400);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero h1 .text-gradient {
  background: linear-gradient(135deg, var(--color-amber-400), var(--color-amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-amber-600);
  color: white;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

.btn-primary:hover {
  background: var(--color-amber-700);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.4);
}

.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

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

.hero-stats-mini {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-item .stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  font-family: var(--font-mono);
}

.hero-stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
}

/* Hero right - AI Chat Preview */
.hero-chat-preview {
  animation: heroChatIn 1s ease-out 0.3s both;
}

@keyframes heroChatIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-window {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 440px;
  margin-left: auto;
}

.chat-window-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-200);
}

.chat-window-header .ai-avatar {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-teal-500));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
}

.chat-window-header .ai-info .ai-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

.chat-window-header .ai-info .ai-status {
  font-size: 0.72rem;
  color: var(--color-emerald-500);
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-window-header .ai-info .ai-status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--color-emerald-500);
  border-radius: 50%;
}

.chat-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 340px;
  overflow: hidden;
}

.chat-msg {
  display: flex;
  gap: 10px;
  max-width: 90%;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg .msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: white;
}

.chat-msg.ai .msg-avatar {
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-teal-500));
}

.chat-msg.user .msg-avatar {
  background: var(--color-gray-400);
}

.chat-msg .msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.chat-msg.ai .msg-bubble {
  background: var(--color-gray-100);
  color: var(--color-gray-700);
  border-bottom-left-radius: 4px;
}

.chat-msg.user .msg-bubble {
  background: var(--color-emerald-600);
  color: white;
  border-bottom-right-radius: 4px;
}

.chat-input-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-top: 1px solid var(--color-gray-200);
  background: var(--color-gray-50);
}

.chat-input-preview input {
  flex: 1;
  border: 1px solid var(--color-gray-200);
  background: white;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  outline: none;
  color: var(--color-gray-500);
}

.chat-input-preview .send-btn {
  width: 34px;
  height: 34px;
  background: var(--color-emerald-600);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}

.chat-input-preview .send-btn:hover {
  background: var(--color-emerald-700);
}

/* --- Capabilities Section --- */
.section-capabilities {
  padding: 96px 0;
  background: var(--color-white);
}

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

.capability-card {
  position: relative;
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--transition-base);
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-emerald-500), var(--color-teal-500));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.capability-card:hover {
  border-color: var(--color-emerald-300);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.capability-icon {
  width: 56px;
  height: 56px;
  background: var(--color-emerald-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
  transition: background var(--transition-base);
}

.capability-card:hover .capability-icon {
  background: var(--color-emerald-100);
}

.capability-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.capability-card p {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.capability-card .card-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.capability-card .card-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-gray-600);
}

.capability-card .card-features li::before {
  content: '\2713';
  color: var(--color-emerald-500);
  font-weight: 700;
  font-size: 0.8rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-emerald-600);
  transition: gap var(--transition-fast);
}

.card-link:hover {
  gap: 10px;
  color: var(--color-emerald-700);
}

.card-link .arrow {
  transition: transform var(--transition-fast);
}

.card-link:hover .arrow {
  transform: translateX(3px);
}

/* --- Stats Section --- */
.section-stats {
  padding: 72px 0;
  background: var(--color-mint-bg);
}

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

.stat-card {
  text-align: center;
  padding: 32px 20px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-emerald-100);
  transition: all var(--transition-base);
}

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

.stat-card .stat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.stat-card .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-emerald-700);
  line-height: 1.1;
}

.stat-card .stat-label {
  font-size: 0.88rem;
  color: var(--color-gray-500);
  margin-top: 6px;
}

.stat-card .stat-trend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 100px;
}

.stat-trend.up {
  color: var(--color-emerald-700);
  background: var(--color-emerald-50);
}

.stat-trend.down {
  color: var(--color-red-600);
  background: #FEF2F2;
}

/* --- AI Demo Section --- */
.section-ai-demo {
  padding: 96px 0;
  background: var(--color-gray-50);
}

.ai-demo-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ai-demo-conversation {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.demo-msg {
  display: flex;
  gap: 12px;
  max-width: 100%;
  animation: demoMsgIn 0.5s ease-out both;
}

.demo-msg:nth-child(2) { animation-delay: 0.1s; }
.demo-msg:nth-child(3) { animation-delay: 0.2s; }
.demo-msg:nth-child(4) { animation-delay: 0.3s; }

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

.demo-msg.user {
  flex-direction: row-reverse;
}

.demo-msg .avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
  color: white;
}

.demo-msg.ai .avatar {
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-teal-500));
}

.demo-msg.user .avatar {
  background: var(--color-gray-400);
}

.demo-msg .bubble {
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.demo-msg.ai .bubble {
  background: white;
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-200);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.demo-msg.user .bubble {
  background: var(--color-emerald-600);
  color: white;
  border-bottom-right-radius: 4px;
}

/* Generative UI Cards */
.ai-demo-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gen-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.gen-card:hover {
  box-shadow: var(--shadow-lg);
}

.gen-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-gray-100);
  background: var(--color-gray-50);
}

.gen-card-header .card-type {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.gen-card-header .card-type .type-icon {
  font-size: 1rem;
}

.gen-card-body {
  padding: 20px;
}

/* HS Code Card */
.hs-code-result {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hs-primary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.hs-code-display {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-emerald-700);
  letter-spacing: 0.02em;
}

.hs-code-name {
  font-size: 0.9rem;
  color: var(--color-gray-500);
  margin-top: 2px;
}

.confidence-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.confidence-badge .conf-value {
  font-size: 1.3rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-emerald-600);
}

.confidence-badge .conf-label {
  font-size: 0.7rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.confidence-bar {
  width: 100%;
  height: 6px;
  background: var(--color-gray-100);
  border-radius: 100px;
  overflow: hidden;
}

.confidence-bar .bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-emerald-500), var(--color-teal-500));
  border-radius: 100px;
  transition: width 1s ease-out;
}

.hs-alternatives {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--color-gray-100);
}

.hs-alternatives .alt-label {
  font-size: 0.78rem;
  color: var(--color-gray-400);
  font-weight: 500;
  margin-bottom: 2px;
}

.hs-alt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.hs-alt-item .alt-code {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-gray-700);
}

.hs-alt-item .alt-conf {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

/* Regulation Card */
.reg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.reg-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--color-gray-50);
  border-radius: var(--radius-md);
  border-left: 3px solid;
}

.reg-item.critical {
  border-color: var(--color-red-500);
  background: #FEF2F2;
}

.reg-item.warning {
  border-color: var(--color-orange-500);
  background: #FFF7ED;
}

.reg-item.info {
  border-color: var(--color-teal-500);
  background: var(--color-emerald-50);
}

.reg-item .reg-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.reg-item .reg-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-gray-700);
}

.reg-item .reg-text strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-gray-800);
}

/* Duty Card */
.duty-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.duty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.92rem;
}

.duty-row:not(:last-child) {
  border-bottom: 1px solid var(--color-gray-100);
}

.duty-row .duty-label {
  color: var(--color-gray-600);
}

.duty-row .duty-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-gray-800);
}

.duty-row.total {
  padding-top: 12px;
  border-top: 2px solid var(--color-gray-200);
  border-bottom: none;
}

.duty-row.total .duty-label {
  font-weight: 700;
  color: var(--color-gray-800);
}

.duty-row.total .duty-value {
  font-size: 1.2rem;
  color: var(--color-amber-600);
}

.duty-note {
  font-size: 0.78rem;
  color: var(--color-gray-400);
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--color-gray-50);
  border-radius: var(--radius-sm);
}

/* --- Trust Section --- */
.section-trust {
  padding: 80px 0;
  background: var(--color-white);
}

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.trust-badge .badge-icon {
  width: 72px;
  height: 72px;
  background: var(--color-emerald-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 2px solid var(--color-emerald-200);
  transition: all var(--transition-base);
}

.trust-badge:hover .badge-icon {
  background: var(--color-emerald-100);
  border-color: var(--color-emerald-300);
  transform: scale(1.05);
}

.trust-badge .badge-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-gray-700);
}

.trust-badge .badge-desc {
  font-size: 0.8rem;
  color: var(--color-gray-400);
  max-width: 140px;
}

.partner-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid var(--color-gray-200);
}

.partner-logo {
  width: 120px;
  height: 48px;
  background: var(--color-gray-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--color-gray-400);
  font-weight: 500;
  transition: all var(--transition-base);
}

.partner-logo:hover {
  background: var(--color-gray-200);
  color: var(--color-gray-500);
}

/* --- Footer --- */
.footer {
  padding: 64px 0 0;
  background: var(--color-gray-900);
  color: var(--color-gray-300);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--color-gray-700);
}

.footer-brand .footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand .footer-logo .logo-icon-sm {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--color-emerald-500), var(--color-teal-500));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--color-gray-400);
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--color-gray-400);
  margin-bottom: 8px;
}

.footer-column h4 {
  color: white;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: var(--color-gray-400);
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-column ul li a:hover {
  color: var(--color-emerald-400);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--color-gray-500);
}

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

.footer-bottom-links a {
  color: var(--color-gray-500);
  font-size: 0.82rem;
}

.footer-bottom-links a:hover {
  color: var(--color-gray-300);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: white;
  border-top: 1px solid var(--color-gray-200);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  padding: 20px 0;
  transform: translateY(0);
  transition: transform var(--transition-slow);
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner .cookie-text {
  font-size: 0.88rem;
  color: var(--color-gray-600);
  line-height: 1.6;
}

.cookie-banner .cookie-text a {
  color: var(--color-emerald-600);
  text-decoration: underline;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-accept {
  padding: 10px 24px;
  background: var(--color-emerald-600);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.btn-cookie-accept:hover {
  background: var(--color-emerald-700);
}

.btn-cookie-settings {
  padding: 10px 20px;
  background: transparent;
  color: var(--color-gray-600);
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-cookie-settings:hover {
  background: var(--color-gray-50);
  border-color: var(--color-gray-400);
}

/* --- Cookie Policy Page --- */
.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(145deg, var(--color-teal-900), var(--color-emerald-800));
  color: white;
}

.page-header h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.page-header .breadcrumb {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb a:hover {
  color: white;
}

.policy-content {
  padding: 64px 0;
  background: var(--color-white);
}

.policy-content .container {
  max-width: 860px;
}

.policy-section {
  margin-bottom: 48px;
}

.policy-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-emerald-100);
}

.policy-section h3 {
  font-size: 1.15rem;
  margin: 24px 0 12px;
  color: var(--color-gray-700);
}

.policy-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: 16px;
}

.policy-section ul,
.policy-section ol {
  padding-left: 24px;
  margin-bottom: 16px;
}

.policy-section ul li,
.policy-section ol li {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-gray-600);
  margin-bottom: 8px;
  list-style: disc;
}

.policy-section ol li {
  list-style: decimal;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.88rem;
}

.cookie-table th,
.cookie-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.cookie-table th {
  background: var(--color-gray-50);
  font-weight: 600;
  color: var(--color-gray-700);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cookie-table td {
  color: var(--color-gray-600);
}

.cookie-table .cookie-name {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--color-emerald-700);
  font-weight: 500;
}

.cookie-type-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.cookie-type-tag.necessary {
  background: var(--color-emerald-50);
  color: var(--color-emerald-700);
}

.cookie-type-tag.functional {
  background: #EFF6FF;
  color: #1D4ED8;
}

.cookie-type-tag.analytics {
  background: #FFF7ED;
  color: var(--color-amber-700);
}

.cookie-type-tag.marketing {
  background: #FDF2F8;
  color: #BE185D;
}

.contact-box {
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-top: 12px;
}

.contact-box p {
  margin-bottom: 8px;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  font-style: italic;
  margin-bottom: 32px;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content { text-align: center; }
  .hero-description { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats-mini { justify-content: center; }

  .chat-window { margin: 0 auto; }

  .ai-demo-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 130px 0 80px; }
  .hero h1 { font-size: 2.2rem; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

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

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

  .trust-badges {
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .section-capabilities,
  .section-ai-demo {
    padding: 64px 0;
  }

  .cookie-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero { padding: 120px 0 60px; }

  .hero-stats-mini {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

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

  .partner-logos {
    gap: 16px;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* --- Print Styles --- */
@media print {
  .navbar,
  .cookie-banner,
  .hero-chat-preview,
  .chat-input-preview {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: black;
    background: white;
  }

  .hero {
    background: none !important;
    color: black;
    padding: 20px 0;
  }

  .hero h1,
  .hero-description {
    color: black !important;
  }

  .hero-badge { display: none; }

  a { color: black; text-decoration: underline; }

  .capability-card,
  .stat-card,
  .gen-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .footer {
    background: none;
    color: black;
    border-top: 2px solid black;
  }

  .footer a { color: black; }
}

/* --- Utility / Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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