:root {
  --bg: #0b1220;
  --bg-alt: #111a2e;
  --surface: rgba(255,255,255,.04);
  --surface-border: rgba(255,255,255,.08);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #3b82f6;
  --accent-strong: #2563eb;
  --accent-soft: rgba(59,130,246,.14);
  --success: #4ade80;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; min-height: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, rgba(59,130,246,.10) 0%, transparent 45%),
                     radial-gradient(circle at 85% 15%, rgba(99,102,241,.08) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; overflow: hidden; }

a { color: var(--accent); transition: color .15s ease; }
a:hover { color: #60a5fa; }

h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.2; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header --- */
.site-header {
  border-bottom: 1px solid var(--surface-border);
  background: rgba(11,18,32,.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  will-change: transform;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 14px 24px;
}

.logo {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
.logo:hover { color: var(--text); }

.nav-links {
  display: flex;
  gap: 28px;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--surface-border);
  border-radius: 999px;
  padding: 4px 10px;
}

.lang-switch a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: .78rem;
  font-weight: 700;
  padding: 2px 4px;
  letter-spacing: .03em;
}

.lang-switch a.active { color: var(--text); }

/* --- Buttons --- */
.btn-primary, .btn-outline {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .15s ease;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,99,235,.35);
}
.btn-primary:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--surface-border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,.35);
  color: var(--text);
  transform: translateY(-1px);
}

/* --- Hero --- */
.hero {
  padding: 96px 0 88px;
  text-align: center;
}

.badge {
  display: inline-block;
  background: var(--accent-soft);
  border: 1px solid rgba(59,130,246,.35);
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  margin: 0 0 18px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 800;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-actions .btn-primary, .hero-actions .btn-outline {
  padding: 15px 30px;
  font-size: 1rem;
}

/* --- Sections --- */
section { padding: 64px 0; }

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.02rem;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.feature-card:hover {
  border-color: rgba(59,130,246,.35);
  background: rgba(255,255,255,.05);
  transform: translateY(-2px);
}

.feature-card .icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .92rem;
}

/* --- How it works --- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.step h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.step p { margin: 0; color: var(--text-muted); font-size: .92rem; }

/* --- CTA banner --- */
.cta-banner {
  background: linear-gradient(135deg, rgba(37,99,235,.16) 0%, rgba(99,102,241,.10) 100%);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 20px;
  padding: 56px 32px;
  text-align: center;
}

.cta-banner h2 { margin: 0 0 10px; font-size: 1.7rem; font-weight: 800; }
.cta-banner p { color: var(--text-muted); margin: 0 0 28px; }

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.price-card.highlight {
  border-color: var(--accent);
  background: rgba(59,130,246,.06);
  box-shadow: 0 0 0 1px rgba(59,130,246,.15), 0 12px 32px rgba(37,99,235,.18);
}

.price-card h3 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; }

.price-card .price {
  font-size: 2.1rem;
  font-weight: 800;
  margin: 10px 0 18px;
  background: linear-gradient(135deg, #f8fafc, #93c5fd);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.price-card li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  font-size: .92rem;
  color: #cbd5e1;
}
.price-card li:last-child { border-bottom: none; }

.price-card li:before { content: "✓ "; color: var(--success); font-weight: 700; }

.price-note {
  font-size: .8rem;
  color: var(--text-faint);
  margin-top: 14px;
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--surface-border);
  padding: 20px 0;
}
.faq-item:last-child { border-bottom: none; }

.faq-item h3 { margin: 0 0 6px; font-size: 1.05rem; font-weight: 700; }
.faq-item p { margin: 0; color: var(--text-muted); }

/* --- Forms (contact) --- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 18px;
  padding: 36px;
  max-width: 560px;
  margin: 0 auto;
}

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--surface-border);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: .95rem;
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease;
}

.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255,255,255,.05);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: .9rem;
  margin-bottom: 18px;
}

.alert-error {
  background: rgba(239,68,68,.12);
  border: 1px solid rgba(239,68,68,.35);
  color: #fca5a5;
}

.alert-success {
  background: rgba(34,197,94,.12);
  border: 1px solid rgba(34,197,94,.35);
  color: #86efac;
}

/* --- GDPR / static content page --- */
.content-page {
  max-width: 760px;
  margin: 0 auto;
}

.content-page h1 { margin-bottom: 24px; font-size: 1.9rem; font-weight: 800; }
.content-page p { color: var(--text-muted); }

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--surface-border);
  padding: 28px 0;
  margin-top: 48px;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-faint);
  font-size: .85rem;
}

.site-footer a {
  color: var(--text-muted);
  text-decoration: none;
  margin-left: 18px;
  font-weight: 500;
}

.site-footer a:hover { color: var(--text); }

/* --- Hero mockup --- */
.hero-mockup {
  padding-top: 64px;
  padding-bottom: 0;
}

.mockup-wrapper {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 32px 80px rgba(0,0,0,.6),
    0 0 80px rgba(59,130,246,.08);
  max-width: 1100px;
  margin: 0 auto;
}

.mockup-wrapper::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(transparent, var(--bg));
  pointer-events: none;
}

.mockup-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

.mockup-img-sm {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 20px 60px rgba(0,0,0,.5),
    0 0 40px rgba(59,130,246,.07);
}

/* --- Section tag (small label above heading) --- */
.section-tag {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* --- Check list --- */
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 24px;
}

.check-list li {
  padding: 5px 0 5px 24px;
  position: relative;
  color: var(--text-muted);
  font-size: .95rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.check-list-spaced li { padding: 7px 0 7px 28px; border-bottom: 1px solid rgba(255,255,255,.04); }
.check-list-spaced li:last-child { border-bottom: none; }

/* --- Bank highlight section --- */
.section-bank-highlight,
.section-stats-highlight { padding: 80px 0; }

.bank-feature-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 56px;
  align-items: center;
}

.bank-feature-row-reverse { grid-template-columns: 1.3fr 1fr; }
.bank-feature-row-reverse .bank-feature-text { order: 2; }
.bank-feature-row-reverse .bank-feature-mockup { order: 1; }

.bank-feature-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.bank-feature-text p {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 4px;
}

/* --- Feature section (funkcie.php) --- */
.feature-section { padding: 80px 0; }
.feature-section-alt { background: rgba(255,255,255,.015); }

.feat-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.feat-row-reverse { grid-template-columns: 1.2fr 1fr; }
.feat-row-reverse .feat-text { order: 2; }
.feat-row-reverse .feat-mockup { order: 1; }

.feat-text h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 800;
  margin: 0 0 14px;
}

.feat-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 4px;
}

/* --- Top 4 highlights --- */
.top-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 16px;
}

.highlight-card {
  background: var(--surface);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.highlight-icon {
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.highlight-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
}

.highlight-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
}

/* --- Feature card highlight variant --- */
.feature-card-highlight {
  border-color: rgba(59,130,246,.25);
  background: rgba(59,130,246,.04);
}

.feature-card-highlight .icon { background: rgba(59,130,246,.18); }

/* --- Peppol visual --- */
.feat-mockup-peppol { display: flex; align-items: center; justify-content: center; }

.peppol-visual {
  background: var(--surface);
  border: 1px solid rgba(59,130,246,.2);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  max-width: 380px;
}

.peppol-logo { font-size: 3rem; margin-bottom: 8px; }
.peppol-title { font-size: 1.1rem; font-weight: 700; color: #93c5fd; margin-bottom: 16px; }
.peppol-arrow { font-size: 2rem; color: var(--text-faint); margin: 8px 0; }
.peppol-app { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.peppol-sub { font-size: .85rem; color: var(--text-faint); margin-bottom: 20px; }

.peppol-connects {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.peppol-connects span {
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  color: #a5b4fc;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.peppol-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.peppol-badge {
  background: rgba(59,130,246,.12);
  border: 1px solid rgba(59,130,246,.25);
  color: #93c5fd;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

/* --- Feature checklist grid --- */
.feat-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.feat-checklist-col {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 28px;
}

.feat-checklist-heading {
  font-size: .78rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.feat-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feat-checklist li {
  padding: 7px 0 7px 22px;
  position: relative;
  color: #cbd5e1;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}

.feat-checklist li:last-child { border-bottom: none; }

.feat-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: .85rem;
}

@media (max-width: 900px) {
  .bank-feature-row,
  .bank-feature-row-reverse,
  .feat-row,
  .feat-row-reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .bank-feature-row-reverse .bank-feature-text,
  .bank-feature-row-reverse .bank-feature-mockup,
  .feat-row-reverse .feat-text,
  .feat-row-reverse .feat-mockup { order: unset; }
}

@media (max-width: 720px) {
  .nav { flex-wrap: wrap; padding: 12px 24px; }
  .nav-links { order: 3; width: 100%; justify-content: center; gap: 18px; overflow-x: auto; }
  .nav-actions { gap: 10px; }
  .hero-mockup { padding-top: 40px; }
  .section-bank-highlight, .section-stats-highlight, .feature-section { padding: 52px 0; }
}

@media (max-width: 600px) {
  .hero { padding: 64px 0 40px; }
  section { padding: 40px 0; }
  .top-highlights { grid-template-columns: 1fr; }
  .feat-checklist-grid { grid-template-columns: 1fr; }
  .peppol-visual { padding: 32px 24px; }
}
