@import url('https://fonts.googleapis.com/css2?family=Maven+Pro:wght@400;500;600;700;800;900&display=swap');

/* ── TOKENS ── */
:root {
  /* Brand */
  --brand: #3a7bd5;
  --brand-bright: #4e92f0;
  --brand-blue: #4e92f0;
  --brand-green: #2ec4a0;
  --brand-yellow: #f5c842;
  --brand-dark: #2563c7;

  /* Light mode */
  --bg: #f4f6fb;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f4fc;
  --bg-subtle: #e8edf7;
  --border: rgba(58, 123, 213, 0.15);
  --border-mid: rgba(58, 123, 213, 0.25);
  --text-1: #0f1c33;
  --text-2: #3d5278;
  --text-3: #7a92b5;
  --text-inv: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.92);
  --shadow: 0 2px 16px rgba(30, 45, 74, 0.10);
  --shadow-lg: 0 8px 40px rgba(30, 45, 74, 0.14);

  /* Circuit pattern opacity */
  --circuit-opacity: 0.06;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111827;
    --bg-surface: #162038;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --bg-subtle: rgba(255, 255, 255, 0.03);
    --border: rgba(58, 123, 213, 0.20);
    --border-mid: rgba(58, 123, 213, 0.35);
    --text-1: #e8edf5;
    --text-2: #8fa3c4;
    --text-3: #4d6890;
    --text-inv: #ffffff;
    --nav-bg: rgba(15, 24, 40, 0.92);
    --shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.45);
    --circuit-opacity: 0.12;
  }
}

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

html {
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: 'Maven Pro', sans-serif;
  background: var(--bg);
  color: var(--text-1);
  overflow-x: hidden;
  position: relative;
  transition: background 0.3s, color 0.3s;
  -webkit-font-smoothing: antialiased;
}

/* ── BACKGROUND DECORATION ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@media (prefers-color-scheme: dark) {
  body::before {
    background-image:
      radial-gradient(circle at 20% 20%, rgba(58, 123, 213, 0.07) 0%, transparent 55%),
      radial-gradient(circle at 80% 80%, rgba(46, 196, 160, 0.05) 0%, transparent 55%);
  }
}

@media (prefers-color-scheme: light) {
  body::before {
    background-image:
      radial-gradient(circle at 10% 20%, rgba(58, 123, 213, 0.05) 0%, transparent 50%),
      radial-gradient(circle at 90% 80%, rgba(46, 196, 160, 0.04) 0%, transparent 50%);
  }
}

.circuit-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: var(--circuit-opacity);
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%233a7bd5' stroke-width='0.5'%3E%3Crect x='10' y='10' width='40' height='40' rx='2'/%3E%3Ccircle cx='10' cy='10' r='2' fill='%233a7bd5'/%3E%3Ccircle cx='50' cy='10' r='2' fill='%233a7bd5'/%3E%3Ccircle cx='10' cy='50' r='2' fill='%233a7bd5'/%3E%3Ccircle cx='50' cy='50' r='2' fill='%233a7bd5'/%3E%3C/g%3E%3C/svg%3E");
}

.page-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 18px;
}

.page-breadcrumb a {
  color: var(--brand-bright);
  transition: opacity 0.18s;
}

.page-breadcrumb a:hover {
  opacity: 0.8;
}

.page-breadcrumb-sep {
  opacity: 0.35;
}

/* ── LAYOUT ── */
.page-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.section {
  padding: clamp(60px, 8vw, 96px) 0;
}

.section-sep {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0 clamp(20px, 5vw, 60px);
}

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  height: 64px;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand), var(--brand-green));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -1px;
}

.nav-logo-wordmark {
  font-size: 21px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.5px;
}

.nav-logo-wordmark sup {
  font-size: 12px;
  font-weight: 500;
  color: var(--brand-bright);
  vertical-align: super;
  margin-left: 1px;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 11px;
  border-radius: 7px;
  transition: all 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-1);
  background: rgba(58, 123, 213, 0.10);
}

.nav-links a.active {
  color: var(--brand-bright);
}

.nav-links a.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 700;
  padding: 7px 16px;
}

.nav-links a.nav-cta:hover {
  background: linear-gradient(135deg, var(--brand-bright), var(--brand));
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(58, 123, 213, 0.35);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Maven Pro', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  transition: all 0.22s;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(58, 123, 213, 0.38);
}

.btn-secondary {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  color: var(--text-1);
  border-color: var(--border-mid);
  background: rgba(58, 123, 213, 0.06);
}

.btn-sm {
  font-size: 13px;
  padding: 8px 16px;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.22s;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-mid);
  box-shadow: var(--shadow);
}

.card-accent-top {
  position: relative;
  overflow: hidden;
}

.card-accent-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-green), var(--brand-yellow));
  border-radius: 16px 16px 0 0;
}

/* ── SECTION HEADER ── */
.section-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--brand-bright);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow::after {
  content: '';
  width: 32px;
  height: 1.5px;
  background: var(--brand-bright);
  opacity: 0.6;
  border-radius: 2px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.12;
  color: var(--text-1);
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--brand-bright) 0%, var(--brand-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  border: 1px solid;
}

.tag-blue {
  color: var(--brand-bright);
  border-color: rgba(78, 146, 240, 0.3);
  background: rgba(78, 146, 240, 0.08);
}

.tag-green {
  color: var(--brand-green);
  border-color: rgba(46, 196, 160, 0.3);
  background: rgba(46, 196, 160, 0.08);
}

.tag-yellow {
  color: #d4a80a;
  border-color: rgba(212, 168, 10, 0.3);
  background: rgba(245, 200, 66, 0.08);
}

@media (prefers-color-scheme: dark) {
  .tag-yellow {
    color: var(--brand-yellow);
    border-color: rgba(245, 200, 66, 0.3);
    background: rgba(245, 200, 66, 0.08);
  }
}

/* ── FOOTER ── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding: 28px 0;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

.footer-copy strong {
  color: var(--brand-bright);
  font-weight: 700;
}

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

.footer-nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
  transition: color 0.18s;
}

.footer-nav a:hover {
  color: var(--brand-bright);
}

/* ── UTILITIES ── */
.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-8 {
  gap: 8px;
}

.gap-12 {
  gap: 12px;
}

.gap-16 {
  gap: 16px;
}

.gap-24 {
  gap: 24px;
}

.gap-32 {
  gap: 32px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-48 {
  margin-top: 48px;
}

.text-2 {
  color: var(--text-2);
}

.text-3 {
  color: var(--text-3);
}

.fw-700 {
  font-weight: 700;
}

.fw-800 {
  font-weight: 800;
}

.lh-18 {
  line-height: 1.8;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes wiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-8deg);
  }

  75% {
    transform: rotate(8deg);
  }
}

.anim-fade-up {
  animation: fadeInUp 0.65s ease forwards;
}

.anim-float {
  animation: float 6s ease-in-out infinite;
}

.anim-wiggle {
  animation: wiggle 3s ease-in-out infinite;
  display: inline-block;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border-mid);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand);
}

/* ── MOBILE NAV ── */
.nav-hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-2);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    display: block;       /* důležité pro „nepřekrývání“ + full width */
    width: 100%;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.2;
  }
}