:root {
  --brand: #1f6feb;
  --brand-600: #1a60d1;
  --brand-700: #164ea8;
  --accent: #10b981;
  --ink: #0f172a;
  --ink-600: #334155;
  --muted: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e5e7eb;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 8px 24px rgba(2,6,23,.08);
  --shadow-lg: 0 18px 48px rgba(2,6,23,.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Noto Sans, Ubuntu, Cantarell, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--ink-600);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .04s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  box-shadow: var(--shadow-sm);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-600); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; border-color: var(--border); }
.btn-outline:hover { background: var(--bg-alt); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 72px;
  background: radial-gradient(1200px 600px at 90% -10%, rgba(31,111,235,.18), transparent 60%),
              radial-gradient(900px 450px at -10% 10%, rgba(16,185,129,.16), transparent 60%),
              linear-gradient(180deg, #fff, #fafcff);
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  margin: 0 0 14px;
}
.hero p {
  font-size: 18px;
  color: var(--ink-600);
  margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.section { padding: 72px 0; }
.section-header { margin-bottom: 28px; }
.section-header h2 { margin: 0 0 10px; font-size: 32px; }
.section-header p { margin: 0; color: var(--muted); }

.grid {
  display: grid;
  gap: 18px;
}
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-cols-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .nav-links { display: none; }
  .grid-cols-3, .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 56px; }
  .hero h1 { font-size: 34px; }
}
@media (max-width: 520px) {
  .grid, .grid-cols-3, .grid-cols-4, .grid-cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 8px 0 6px; font-size: 18px; }
.muted { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--border);
  background: #fff;
}
.site-footer .inner { padding: 36px 0; display: grid; gap: 18px; grid-template-columns: 2fr 1fr 1fr; }
.site-footer small { color: var(--muted); }
@media (max-width: 768px) { .site-footer .inner { grid-template-columns: 1fr; } }

/* Forms */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  outline: none;
}
label { font-weight: 600; display: block; margin-bottom: 8px; }
.field { margin-bottom: 14px; }
.help { color: var(--muted); font-size: 12px; }

.badge { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; font-weight: 600; color: var(--ink-600); background: var(--bg-alt); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis .kpi { border: 1px solid var(--border); border-radius: 14px; padding: 16px; background: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 120px; }
.kpis .kpi h3 { margin: 8px 0 0; font-size: 34px; white-space: nowrap; }
.kpis .kpi small { text-transform: uppercase; letter-spacing: .4px; font-weight: 600; font-size: 12px; }
@media (max-width: 768px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* Utilities */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.center { text-align: center; }
.sp-0 { height: 0; }
.sp-1 { height: 6px; }
.sp-2 { height: 12px; }
.sp-3 { height: 20px; }
.sp-4 { height: 28px; }
.sp-6 { height: 40px; }
.sp-8 { height: 56px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--border); padding: 12px; text-align: left; }
.table th { color: var(--muted); font-weight: 600; }

/* Page-specific helpers */
.product-card img { border-radius: 12px; border: 1px solid var(--border); }
.category-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.category-filter .btn { padding: 8px 12px; }

.note { background: #f0fdf4; border: 1px solid #86efac; border-radius: 12px; padding: 12px 14px; color: #14532d; }

/* Effects */
.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


