/* ============================================
   KWT Labs — Main Stylesheet
   ============================================ */

:root {
  --primary: #0F6FFF;
  --primary-dark: #0a52cc;
  --primary-light: #e8f1ff;
  --accent: #FF3D3D;
  --accent-hover: #e02828;
  --success: #16C784;
  --success-hover: #12a86d;
  --dark: #0f172a;
  --dark-soft: #1e293b;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #F5F7FB;
  --gray-50: #F5F7FB;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(15, 111, 255, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 24px 60px rgba(15, 111, 255, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
  --container: 1280px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* Unbuilt page links — shows + suffix (coming soon) */
.link-soon::after {
  content: ' +';
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88em;
}

.link-soon {
  cursor: pointer;
}

/* Colorful H1 gradient — wrap key words: <span class="text-gradient">...</span> */
.text-gradient,
.hero-content h1 span,
.about-hero h1 .text-gradient,
.page-hero h1 .text-gradient,
.privacy-hero h1 .text-gradient,
.terms-hero h1 .text-gradient,
.legal-hero h1 .text-gradient,
.sp-hero h1 .text-gradient,
.ms-hero h1 .text-gradient {
  background: linear-gradient(90deg, #0F6FFF 0%, #6366f1 35%, #a855f7 55%, #FF3D3D 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h1 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--dark);
}

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

.section { padding: 80px 0; }
.section--gray { background: var(--gray-50); }
.section--dark { background: var(--dark); color: var(--white); }
.section--primary { background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 100%); }

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

.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-500);
}

.section--dark .section-header h2 { color: var(--white); }
.section--dark .section-header p { color: var(--gray-400); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.btn--primary {
  background: var(--success);
  color: var(--white);
  border-color: var(--success);
}
.btn--primary:hover {
  background: var(--success-hover);
  border-color: var(--success-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

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

.btn--sm { padding: 8px 16px; font-size: 0.875rem; }
.btn--lg { padding: 14px 32px; font-size: 1rem; }

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  height: var(--header-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo:hover { opacity: 0.9; }

.logo-img {
  height: 42px;
  width: auto;
  display: block;
  object-fit: contain;
}

.logo-img--footer {
  height: 48px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), #004080);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 900;
}

.main-nav { display: flex; align-items: center; gap: 4px; }

.nav-item { position: relative; }

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-link svg { width: 14px; height: 14px; transition: transform var(--transition); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

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

.header-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
}
.header-icon-btn:hover { background: var(--gray-100); color: var(--primary); }
.header-icon-btn svg { width: 20px; height: 20px; }

/* Mega Menu */
.mega-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 680px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  pointer-events: none;
}

.nav-item:hover .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.mega-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-light);
}

.mega-col a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  color: var(--gray-700);
}
.mega-col a:hover { color: var(--primary); padding-left: 4px; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  padding-top: calc(var(--header-h) + 60px);
  padding-bottom: 0;
  background: linear-gradient(160deg, #f0f7ff 0%, var(--white) 50%, #fef7f7 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: 520px;
}

.hero-content h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-dashboard {
  position: relative;
  width: 100%;
  max-width: 480px;
  perspective: 1000px;
}

.software-box {
  position: absolute;
  width: 140px;
  height: 180px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: white;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  padding: 16px;
  animation: float 6s ease-in-out infinite;
}

.software-box--1 {
  background: linear-gradient(145deg, #0066cc, #004080);
  top: 20px;
  left: 10%;
  transform: rotateY(-15deg) rotateX(5deg);
  animation-delay: 0s;
  z-index: 3;
}

.software-box--2 {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  top: 60px;
  right: 5%;
  transform: rotateY(15deg) rotateX(-5deg);
  animation-delay: -2s;
  z-index: 2;
}

.software-box--3 {
  background: linear-gradient(145deg, #059669, #047857);
  bottom: 40px;
  left: 25%;
  transform: rotateY(-8deg);
  animation-delay: -4s;
  z-index: 1;
}

.software-box-icon {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.dashboard-screen {
  position: relative;
  z-index: 4;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  margin: 0 auto;
  max-width: 380px;
}

.dashboard-header {
  background: var(--dark);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.dashboard-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dashboard-dot--red { background: #ef4444; }
.dashboard-dot--yellow { background: #f59e0b; }
.dashboard-dot--green { background: #10b981; }

.dashboard-body { padding: 20px; }

.dashboard-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dashboard-stat {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 10px;
  text-align: center;
}

.dashboard-stat-num {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.dashboard-stat-label {
  font-size: 0.65rem;
  color: var(--gray-500);
}

.dashboard-chart {
  height: 80px;
  background: linear-gradient(to top, var(--primary-light), transparent);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.dashboard-chart::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 80'%3E%3Cpath d='M0,60 Q50,20 100,40 T200,25 T300,10' fill='none' stroke='%230066cc' stroke-width='2'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(-15deg) rotateX(5deg); }
  50% { transform: translateY(-12px) rotateY(-15deg) rotateX(5deg); }
}

.hero-stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 28px 0;
  margin-top: 60px;
}

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

.hero-stat-num {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.2;
}

.hero-stat-num span { color: var(--primary); }

.hero-stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ============================================
   Product Categories
   ============================================ */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

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

.category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cat-color, var(--primary));
  transform: scaleX(0);
  transition: transform var(--transition);
}

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

.category-card:hover::before { transform: scaleX(1); }

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: var(--cat-bg, var(--primary-light));
}

.category-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.category-card ul li {
  font-size: 0.8rem;
  color: var(--gray-500);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-card ul li::before {
  content: '›';
  color: var(--cat-color, var(--primary));
  font-weight: 700;
}

.category-card ul li a { color: var(--gray-600); font-size: inherit; }
.category-card ul li a:hover { color: var(--primary); }

/* ============================================
   Featured Products
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--primary-light);
}

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.product-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: var(--primary-light);
}

.product-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--gray-100);
  color: var(--gray-600);
}

.product-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.product-stars {
  color: #f59e0b;
  font-size: 0.875rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.product-type {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

/* ============================================
   Why KWT Labs
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.why-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.why-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.why-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.8rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ============================================
   Demo Section
   ============================================ */
.demo-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 24px;
  max-width: calc(var(--container) - 48px);
  margin-left: auto;
  margin-right: auto;
}

.demo-content {
  padding: 60px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.demo-content h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-content p {
  color: var(--gray-400);
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  margin-bottom: 20px;
  width: fit-content;
}

.demo-video {
  position: relative;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 360px;
}

.demo-video-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, #1a1a2e, #16213e);
  opacity: 0.8;
}

.play-btn {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  box-shadow: 0 0 0 12px rgba(230, 57, 70, 0.3);
}
.play-btn:hover {
  transform: scale(1.1);
  background: var(--accent-hover);
}
.play-btn svg { width: 28px; height: 28px; fill: white; margin-left: 4px; }

/* ============================================
   Solutions
   ============================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.solution-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.solution-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--sol-color, var(--primary));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.solution-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.solution-card:hover::after { transform: scaleX(1); }

.solution-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.solution-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.solution-tools {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  padding: 12px;
  background: var(--gray-50);
  border-radius: var(--radius-sm);
}

.solution-tools strong { color: var(--dark); display: block; margin-bottom: 4px; }

.solution-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.solution-link .icon {
  width: 16px;
  height: 16px;
}

/* ============================================
   Comparison Table
   ============================================ */
.compare-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.compare-tab {
  padding: 10px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
  color: var(--gray-600);
}

.compare-tab.active, .compare-tab:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.compare-table thead {
  background: var(--dark);
  color: var(--white);
}

.compare-table th {
  padding: 16px 20px;
  text-align: left;
  font-weight: 600;
}

.compare-table th.highlight {
  background: var(--primary);
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.compare-table tbody tr:hover { background: var(--gray-50); }

.compare-table .check { color: var(--success); font-weight: 700; }
.compare-table .cross { color: var(--gray-400); }

.compare-panel { display: none; }
.compare-panel.active { display: block; }

/* ============================================
   Free Online Tools
   ============================================ */
.tools-search {
  max-width: 560px;
  margin: 0 auto 40px;
  position: relative;
}

.tools-search input {
  width: 100%;
  padding: 14px 20px 14px 48px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color var(--transition);
}

.tools-search input:focus {
  outline: none;
  border-color: var(--primary);
}

.tools-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--gray-400);
}

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

.tool-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: all var(--transition);
}

.tool-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.tool-card h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.tool-card span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.tools-count {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.tools-count a { font-weight: 600; }

/* ============================================
   Collections
   ============================================ */
.collections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.collection-card {
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  color: var(--white);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.collection-card:hover { transform: translateY(-4px); }

.collection-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.collection-card > * { position: relative; z-index: 1; }

.collection-count {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.collection-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.collection-card a {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.collection-card a:hover { color: white; }

.collection-card--seo { background: linear-gradient(135deg, #0066cc, #004080); }
.collection-card--business { background: linear-gradient(135deg, #059669, #047857); }
.collection-card--ai { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.collection-card--pdf { background: linear-gradient(135deg, #e63946, #c62828); }

/* ============================================
   Reviews
   ============================================ */
.reviews-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.reviews-video {
  background: var(--dark);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.reviews-list { display: flex; flex-direction: column; gap: 16px; }

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.875rem;
}

.review-meta h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--dark);
}

.review-meta span {
  font-size: 0.75rem;
  color: var(--gray-400);
}

.review-stars { color: #f59e0b; font-size: 0.8rem; margin-bottom: 8px; }

.review-text {
  font-size: 0.875rem;
  color: var(--gray-600);
  font-style: italic;
  line-height: 1.6;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  color: var(--success);
  font-weight: 600;
  margin-top: 8px;
}

/* ============================================
   Statistics
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 32px 16px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-num span { color: #60a5fa; }

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-400);
}

/* ============================================
   Latest Releases
   ============================================ */
.releases-timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.releases-timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gray-200);
}

.release-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
  padding-left: 56px;
}

.release-dot {
  position: absolute;
  left: 12px;
  top: 4px;
  width: 18px;
  height: 18px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

.release-content {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 24px;
  flex: 1;
}

.release-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.release-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.release-tag {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.release-tag--fix { background: #fef3c7; color: #d97706; }

/* ============================================
   Learning Center
   ============================================ */
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.learning-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

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

.learning-thumb {
  height: 140px;
  background: linear-gradient(135deg, var(--primary-light), var(--gray-100));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.learning-body { padding: 20px; }

.learning-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.learning-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 12px;
}

.learning-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary);
}

/* ============================================
   Blog & Resources
   ============================================ */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.resource-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.resource-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.resource-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  margin-bottom: 12px;
}

.resource-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.resource-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.resource-meta {
  font-size: 0.75rem;
  color: var(--gray-400);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ============================================
   Trusted By
   ============================================ */
.trusted-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  opacity: 0.6;
}

.trusted-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-500);
  letter-spacing: -0.02em;
}

/* ============================================
   What's New / Labs / Integrations
   ============================================ */
.extras-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.extra-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.extra-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.extra-card ul li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
}

.extra-card ul li:last-child { border-bottom: none; }
.extra-card ul li a { color: var(--gray-600); }
.extra-card ul li a:hover { color: var(--primary); }

.integrations-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

.integration-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: all var(--transition);
}

.integration-badge:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

/* ============================================
   Newsletter
   ============================================ */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary) 0%, #004080 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  color: var(--white);
  max-width: calc(var(--container) - 48px);
  margin: 0 auto;
}

.newsletter-section h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.newsletter-section p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1rem;
}

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  gap: 8px;
}

.newsletter-form input {
  flex: 1;
  padding: 14px 20px;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
}

.newsletter-form input:focus { outline: 2px solid rgba(255,255,255,0.5); }

.newsletter-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.75;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: 32px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--primary); color: white; }

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--gray-400);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal a { color: var(--gray-400); font-size: 0.8rem; }
.footer-legal a:hover { color: var(--white); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
  .collections-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .learning-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(3, 1fr); }
  .demo-section { grid-template-columns: 1fr; }
  .mega-menu { width: 90vw; left: 0; transform: translateX(0) translateY(8px); }
  .nav-item:hover .mega-menu { transform: translateX(0) translateY(0); }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }

  .main-nav, .header-actions .btn--outline { display: none; }
  .menu-toggle { display: flex; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; min-height: auto; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { min-height: 300px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }

  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .collections-grid { grid-template-columns: 1fr; }
  .reviews-layout { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .resources-grid { grid-template-columns: 1fr; }
  .learning-grid { grid-template-columns: 1fr; }
  .extras-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }

  .newsletter-section { padding: 40px 24px; }
  .newsletter-form { flex-direction: column; }

  .mobile-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .mobile-nav.open { transform: translateX(0); }

  .mobile-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
  }
}

@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================
   Launch Version — Honest Homepage Styles
   ============================================ */

.hero-trust-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 28px 0;
  margin-top: 60px;
}

.hero-trust-items {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 48px;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
}

.hero-trust-icon .icon,
.hero-trust-icon.icon {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.dashboard-screen--hero {
  position: relative;
  z-index: 1;
  max-width: 460px;
  margin: 0 auto;
}

.dashboard-title {
  margin-left: 12px;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.dashboard-caption {
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--gray-500);
  text-align: center;
}

/* Availability Table */
.availability-table-wrap {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.availability-table thead {
  background: var(--gray-50);
}

.availability-table th {
  padding: 14px 24px;
  text-align: left;
  font-weight: 600;
  color: var(--dark);
  border-bottom: 1px solid var(--gray-200);
}

.availability-table td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

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

.availability-table tbody tr:hover {
  background: var(--gray-50);
}

.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.status-badge--live {
  background: #d1fae5;
  color: #047857;
}

.status-badge--dev {
  background: #fef3c7;
  color: #b45309;
}

.status-badge--soon {
  background: #e6f2ff;
  color: #0066cc;
}

.status-badge--planned {
  background: var(--gray-100);
  color: var(--gray-600);
}

/* Products — 2 column launch layout */
.products-grid--2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin: 0 auto;
}

.product-card--featured {
  padding: 32px;
}

.product-badge--live {
  background: #d1fae5;
  color: #047857;
}

.version-tag {
  font-weight: 600;
  color: var(--primary);
}

.section-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.95rem;
  color: var(--gray-500);
}

.section-note a {
  font-weight: 600;
}

/* Why — 6 cards */
.why-grid--6 {
  grid-template-columns: repeat(3, 1fr);
}

/* Solutions — 3 cards */
.solutions-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.solution-list {
  margin-bottom: 16px;
}

.solution-list li {
  font-size: 0.875rem;
  color: var(--gray-600);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.solution-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--sol-color, var(--primary));
  border-radius: 50%;
}

.solution-tool {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-top: auto;
}

/* Roadmap */
.roadmap-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.roadmap-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.roadmap-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
}

.roadmap-card--info p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.7;
}

.roadmap-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--gray-700);
  border-bottom: 1px solid var(--gray-100);
}

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

.roadmap-check {
  width: 18px;
  height: 18px;
  border: 2px solid var(--gray-300);
  border-radius: 4px;
  flex-shrink: 0;
}

/* Latest Updates */
.updates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.update-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition);
}

.update-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.update-type {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.update-type--new {
  color: #047857;
  background: #d1fae5;
}

.update-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.update-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 16px;
  line-height: 1.6;
}

.update-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.update-meta a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Learning — 5 cards */
.learning-grid--5 {
  grid-template-columns: repeat(5, 1fr);
}

.learning-card--link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.learning-card--link:hover {
  color: inherit;
}

.learning-card--link .learning-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Footer — 4 columns */
.footer-top--4 {
  grid-template-columns: 1.5fr repeat(4, 1fr);
}

@media (max-width: 1024px) {
  .products-grid--2 { grid-template-columns: 1fr; max-width: 480px; }
  .why-grid--6 { grid-template-columns: repeat(2, 1fr); }
  .solutions-grid--3 { grid-template-columns: 1fr; }
  .roadmap-grid { grid-template-columns: 1fr; }
  .updates-grid { grid-template-columns: 1fr; }
  .learning-grid--5 { grid-template-columns: repeat(2, 1fr); }
  .footer-top--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-trust-items { flex-direction: column; align-items: center; gap: 16px; }
  .why-grid--6 { grid-template-columns: 1fr; }
  .learning-grid--5 { grid-template-columns: 1fr; }
  .footer-top--4 { grid-template-columns: 1fr; }
}
