/* UI UX Pro Max Design System
   Style: Minimalism & Swiss Style
   Colors: Primary #475569 | Accent #2563EB | Bg #F8FAFC | Text #1E293B
   Typography: Rubik (headings) + Nunito Sans (body)
*/

:root {
  --primary: #475569;
  --primary-dark: #334155;
  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --text: #1E293B;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --muted: #EAEFF3;
  --sidebar-w: 260px;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04);
  --transition: 200ms ease;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Rubik', sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Hero */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 56px 32px 48px;
}

.hero-inner { max-width: 1120px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(28px, 4.5vw, 40px);
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.75;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 36px;
}

.stat-item {
  background: var(--card);
  padding: 20px 24px;
}

.stat-num {
  font-family: 'Rubik', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}

/* Search */
.search-section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
  transform: translateY(-24px);
}

.search-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 18px;
  gap: 12px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.search-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-wrap svg { flex-shrink: 0; color: var(--text-muted); }

.search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
  background: transparent;
  color: var(--text);
}

.search-wrap input::placeholder { color: #94A3B8; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition);
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--muted); color: var(--text); }

.search-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Layout */
.layout {
  max-width: 1120px;
  margin: 8px auto 64px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 28px;
  align-items: start;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

.sidebar-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 12px 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.nav-link svg { flex-shrink: 0; opacity: 0.6; transition: opacity var(--transition); }
.nav-link:hover { background: var(--muted); color: var(--text); }
.nav-link:hover svg { opacity: 1; }
.nav-link.active { background: #EFF6FF; color: var(--accent); font-weight: 600; }
.nav-link.active svg { opacity: 1; color: var(--accent); }
.nav-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sections */
.content section { margin-bottom: 48px; }

.section-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-header h2 {
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
}

.section-header p { font-size: 14px; color: var(--text-muted); }

/* Highlight */
.highlight-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 24px;
}

.highlight-box h3 {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 14px;
}

.highlight-box ul { padding-left: 18px; }
.highlight-box li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}
.highlight-box li strong { color: var(--text); font-weight: 600; }

/* Tech chips */
.tech-list { display: flex; flex-wrap: wrap; gap: 8px; }

.tech-chip {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: var(--muted);
  color: var(--primary);
  border: 1px solid var(--border);
}

/* Platform grid */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 8px;
}

.platform-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

.platform-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.platform-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #EFF6FF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--accent);
}

.platform-card h3 { font-size: 14px; margin-bottom: 6px; }
.platform-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: default;
}

.feature-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-card.hidden { display: none; }

.feature-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.feature-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 6px;
}

.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

.tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 12px;
}

.tag-user { background: #EFF6FF; color: #1D4ED8; }
.tag-admin { background: #FDF2F8; color: #9D174D; }
.tag-marketing { background: #FFFBEB; color: #B45309; }
.tag-system { background: #F1F5F9; color: #475569; }
.tag-plus { background: #ECFDF5; color: #047857; }
.tag-ai { background: #F5F3FF; color: #6D28D9; }

/* No results */
.no-results {
  display: none;
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}

.no-results.show { display: block; }

.no-results svg { color: var(--border); margin-bottom: 16px; }
.no-results h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.no-results p { font-size: 14px; }

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 32px 24px;
  color: var(--text-muted);
  font-size: 13px;
}

.footer strong { color: var(--text); font-weight: 600; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .feature-card:hover, .platform-card:hover { transform: none; }
}

/* Print */
@media print {
  .sidebar, .search-section { display: none; }
  .layout { grid-template-columns: 1fr; }
  .hero { padding: 24px; }
  .feature-card { break-inside: avoid; }
}

/* Responsive */
@media (max-width: 960px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: static;
    max-height: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 12px;
  }
  .sidebar-label { width: 100%; }
  .nav-link { font-size: 12px; padding: 7px 10px; }
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .hero, .search-section, .layout { padding-left: 16px; padding-right: 16px; }
  .hero { padding-top: 40px; }
  .platform-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
}
