/* ==========================================================================
   statisztika.eu â€” design system
   Pure CSS, no framework. All styling via class selectors.
   ========================================================================== */

:root {
  --background: #fdfdfb;
  --foreground: #1b2330;
  --card: #ffffff;
  --muted: #f1f3f7;
  --muted-foreground: #5a6473;
  --border: #e3e7ee;
  --primary: #224250;          /* deep teal-navy */
  --primary-dark: #14283f;
  --primary-foreground: #fdfdfb;
  --accent: #c8362d;            /* crimson */
  --accent-hover: #a82a23;
  --accent-foreground: #fdfdfb;
  --chart-1: #c8362d;
  --chart-2: #1f3a5f;
  --chart-3: #3b8aa8;
  --chart-4: #d9a441;
  --chart-5: #5b6fbf;
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px rgba(20, 40, 63, 0.06);
  --shadow-md: 0 6px 18px rgba(20, 40, 63, 0.10);
  --container: 1200px;
}

/* ---------- reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  letter-spacing: -0.015em;
  color: var(--primary);
  margin: 0;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- layout helpers ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 5rem 0; }
.section-tight { padding: 2rem 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 2.5vw, 2.25rem);
  font-weight: 700;
}

.section-lede {
  margin-top: 1rem;
  color: var(--muted-foreground);
  max-width: 42rem;
}

.section-head { text-align: center; max-width: 42rem; margin: 0 auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.0rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background-color .18s, color .18s, border-color .18s, transform .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-foreground);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

.btn-block { width: 100%; justify-content: center; }
.arrow { display: inline-block; transform: translateY(-1px); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 2rem; height: 2rem; }
.brand .dot-eu { color: var(--accent); }

.main-nav { display: none; gap: 0.25rem; }
.main-nav a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(253,253,251,0.85);
  transition: background-color .18s, color .18s;
}
.main-nav a:hover { background: rgba(255,255,255,0.10); color: #fff; }

.header-cta { display: none; }

@media (min-width: 768px) {
  .main-nav { display: inline-flex; }
  .header-cta { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--primary);
  color: var(--primary-foreground);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, currentColor 1px, transparent 0);
  background-size: 28px 28px;
  opacity: 0.07;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; align-items: center; padding: 6.5rem 0 7rem; }
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(253,253,251,0.85);
}
.tagline-dot {
  width: 0.4rem; height: 0.4rem; border-radius: 999px; background: var(--accent);
}

.hero-title {
  margin-top: 1.5rem;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary-foreground);
}
.accent-text { color: var(--accent); }

.hero-lede {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: 1.075rem;
  color: rgba(253,253,251,0.82);
}

.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-bullets {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 0.75rem;
  font-size: 0.9rem;
  color: rgba(253,253,251,0.88);
}
@media (min-width: 640px) { .hero-bullets { grid-template-columns: repeat(4, 1fr); } }
.hero-bullets li { display: flex; align-items: center; gap: 0.5rem; }
.check { color: var(--accent); width: 1rem; height: 1rem; }

/* ---------- poll panel ---------- */
.panel {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem;
  padding: 1.75rem;
  backdrop-filter: blur(4px);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; }
.panel-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(253,253,251,0.6);
}
.panel-title { margin-top: 0.25rem; font-size: 1.075rem; font-weight: 600; color: var(--primary-foreground); }
.panel-icon { width: 2rem; height: 2rem; color: var(--accent); }

.poll-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.poll-row .poll-row-head {
  display: flex; justify-content: space-between; font-size: 0.9rem;
  color: rgba(253,253,251,0.85);
}
.poll-row .poll-pct { font-weight: 600; font-variant-numeric: tabular-nums; }
.poll-bar {
  margin-top: 0.4rem;
  height: 0.5rem; border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}
.poll-fill { height: 100%; border-radius: 999px; }
.poll-fill.c-a { background: var(--chart-1); width: 45.2%; }
.poll-fill.c-b { background: var(--chart-2); width: 38.6%; }
.poll-fill.c-c { background: var(--chart-3); width: 12.1%; }
.poll-fill.c-d { background: var(--chart-4); width: 2%; }
.poll-fill.c-e { background: var(--chart-5); width: 2.1%; }

.panel-stats {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 1.25rem;
}
.panel-stat .k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(253,253,251,0.6); }
.panel-stat .v { margin-top: 0.2rem; font-size: 1.05rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- trust bar ---------- */
.trust {
  background: var(--muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
  padding: 2rem 0; text-align: center;
}
@media (min-width: 640px) { .trust-grid { grid-template-columns: repeat(4, 1fr); } }
.trust-k { font-size: 1.75rem; font-weight: 700; color: var(--primary); }
.trust-v { font-size: 0.9rem; color: var(--muted-foreground); }

/* ---------- services ---------- */
.cards-4 {
  margin-top: 3rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 640px) { .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200,54,45,0.4);
}
.icon-badge {
  width: 3rem; height: 3rem;
  border-radius: 0.6rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(200,54,45,0.10);
  color: var(--accent);
  transition: background-color .18s, color .18s;
}
.card:hover .icon-badge { background: var(--accent); color: var(--accent-foreground); }
.card-title { margin-top: 1.1rem; font-size: 1.075rem; font-weight: 600; }
.card-desc { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); line-height: 1.55; }

/* ---------- values / about ---------- */
.about { background: rgba(241,243,247,0.6); }
.about-grid {
  display: grid; gap: 3rem;
}
@media (min-width: 960px) { .about-grid { grid-template-columns: 1fr 1fr; } }
.about-text p { margin-top: 1.25rem; color: var(--muted-foreground); }
.about-link {
  margin-top: 1.5rem;
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
}
.about-link:hover { color: var(--accent-hover); }

.value-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .value-grid { grid-template-columns: 1fr 1fr; } }
.value { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; padding: 1.25rem; box-shadow: var(--shadow-sm); }
.value-icon { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.value-title { margin-top: 0.75rem; font-weight: 600; }
.value-desc { margin-top: 0.25rem; font-size: 0.9rem; color: var(--muted-foreground); }

/* ---------- references ---------- */
.ref-head {
  display: flex; flex-direction: column; gap: 1rem;
  align-items: flex-start; justify-content: space-between;
}
@media (min-width: 640px) { .ref-head { flex-direction: row; align-items: flex-end; } }
.ref-head .lede { color: var(--muted-foreground); max-width: 28rem; }

.cards-3 {
  margin-top: 2.5rem;
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }

.ref-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: box-shadow .18s;
}
.ref-card:hover { box-shadow: var(--shadow-md); }
.ref-stripe { height: 0.5rem; background: var(--accent); }
.ref-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ref-tag {
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-foreground);
}
.ref-title { margin-top: 0.5rem; font-size: 1.05rem; font-weight: 600; }
.ref-desc { margin-top: 0.5rem; font-size: 0.9rem; color: var(--muted-foreground); flex: 1; }
.ref-link {
  margin-top: 1rem;
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--accent); font-weight: 600; font-size: 0.9rem;
}
.ref-link:hover { color: var(--accent-hover); }

/* ---------- contact / CTA ---------- */
.contact { background: var(--primary); color: var(--primary-foreground); }
.contact-grid {
  display: grid; gap: 2.5rem;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-title { color: var(--primary-foreground); font-size: clamp(1.75rem, 2.5vw, 2.25rem); font-weight: 700; }
.contact-lede { margin-top: 1rem; max-width: 32rem; color: rgba(253,253,251,0.8); }

.contact-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; font-size: 0.95rem; }
.contact-list li { display: flex; align-items: center; gap: 0.75rem; }
.contact-list .ic {
  width: 2.5rem; height: 2.5rem; border-radius: var(--radius);
  background: rgba(255,255,255,0.10);
  display: inline-flex; align-items: center; justify-content: center;
}
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 1rem;
  padding: 1.75rem;
}
.form-row {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } }

.form-field { margin-top: 1rem; }
.form-field:first-child { margin-top: 0; }
.form-field label {
  display: block; margin-bottom: 0.4rem;
  font-size: 0.85rem; font-weight: 500;
  color: rgba(253,253,251,0.9);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: var(--primary-foreground);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color .18s, box-shadow .18s;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(253,253,251,0.4); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200,54,45,0.35);
}
.form-submit { margin-top: 1.25rem; }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
}
.footer-inner {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 2rem 0; text-align: center;
}
@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--primary); font-weight: 600; }
.footer-copy { font-size: 0.875rem; color: var(--muted-foreground); }
.footer-links { display: flex; gap: 1.25rem; font-size: 0.875rem; color: var(--muted-foreground); }
.footer-links a:hover { color: var(--accent); }
