:root {
  --bg: #0b0d12;
  --bg-alt: #11141b;
  --fg: #e7e9ee;
  --fg-dim: #9aa2b1;
  --accent: #6ee7c7;
  --accent-soft: rgba(110, 231, 199, 0.12);
  --border: #20242e;
  --radius: 10px;
  --maxw: 1080px;
  --mono: "IBM Plex Mono", "JetBrains Mono", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.logo {
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.cursor {
  color: var(--accent);
  animation: blink 1.1s steps(2, start) infinite;
}

@keyframes blink { to { opacity: 0; } }

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar { display: none; }

.nav a:hover { color: var(--accent); }

.nav-cta {
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.nav-cta:hover { background: var(--accent-soft); }

@media (max-width: 560px) {
  .logo { font-size: 14px; }
  .nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 6px 14px; }
}

/* Hero */
.hero {
  padding: 120px 0 90px;
}

.hero-kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(32px, 6vw, 56px);
  line-height: 1.15;
  margin: 0 0 24px;
}

.accent { color: var(--accent); }

.hero-sub {
  max-width: 560px;
  color: var(--fg-dim);
  font-size: 18px;
  margin: 0 0 36px;
}

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

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: #08110d;
}

.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  border-color: var(--border);
  color: var(--fg);
}

.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Sections */
.section { padding: 80px 0; }

.section-alt { background: var(--bg-alt); }

.section-kicker {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 13px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.section h2 {
  font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 36px;
}

.section-intro {
  color: var(--fg-dim);
  max-width: 600px;
  margin: -16px 0 36px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 48px;
}

@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 24px; }
}

.prose p { color: var(--fg-dim); margin: 0 0 18px; }
.prose strong { color: var(--fg); }

.quote {
  font-style: italic;
  color: var(--fg);
  border-left: 2px solid var(--accent);
  padding-left: 16px;
  margin-top: 28px;
}

.quote-note { font-size: 14px; color: var(--fg-dim); display: block; margin-top: 4px; }

/* Easter egg — klikatelna bodka + odhalenie povodnej stranky */
.egg-dot {
  cursor: pointer;
  font-style: normal;
  padding: 0 1px;
  border-radius: 2px;
  transition: color .2s ease, text-shadow .2s ease;
}
.egg-dot:hover,
.egg-dot:focus-visible {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent);
  outline: none;
}

.egg-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 6, 9, 0);
  backdrop-filter: blur(0);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease, background .45s ease, backdrop-filter .45s ease;
}
.egg-overlay[hidden] { display: none; }
.egg-overlay.open {
  opacity: 1;
  pointer-events: auto;
  background: rgba(5, 6, 9, .74);
  backdrop-filter: blur(7px);
}

.egg-paper {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 86vh;
  overflow-y: auto;
  padding: 52px 44px 40px;
  border-radius: 6px;
  background: #f3eee2;
  color: #2b2620;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.7;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  transform: scale(.85) translateY(14px) rotate(-1deg);
  filter: grayscale(1) blur(8px);
  opacity: 0;
  transition: transform .55s cubic-bezier(.2, .75, .2, 1),
              filter .8s ease .1s,
              opacity .5s ease;
}
.egg-overlay.open .egg-paper {
  transform: scale(1) translateY(0) rotate(0);
  filter: grayscale(0) blur(0);
  opacity: 1;
}

.egg-paper p { margin: 0 0 18px; }

.egg-h1 {
  font-size: 30px;
  letter-spacing: 1px;
  margin: 0 0 24px;
  font-weight: 400;
}

.egg-mono {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-style: italic;
  font-size: 13px;
  color: #6b6354;
}

.egg-foot {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid #d8cfb8;
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #6b6354;
}
.egg-foot a { color: #2b2620; }

.egg-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 2px solid #a33;
  color: #a33;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  padding: 3px 9px;
  transform: rotate(6deg);
  opacity: .85;
  pointer-events: none;
}

.egg-close {
  position: absolute;
  top: 12px;
  left: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #8a8175;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  transition: color .2s ease, background .2s ease;
}
.egg-close:hover { color: #2b2620; background: rgba(0, 0, 0, .06); }

@media (prefers-reduced-motion: reduce) {
  .egg-overlay, .egg-paper { transition: opacity .2s ease; }
  .egg-paper { filter: none; transform: none; }
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.section-alt .card { background: var(--bg); }

.card-icon { display: block; margin-bottom: 14px; color: var(--accent); }
.card-icon svg { display: block; }

.card h3 { margin: 0 0 10px; font-size: 19px; }

.card p { color: var(--fg-dim); margin: 0; font-size: 15px; }

.tool-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}

/* Projects */
.project {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}

.project-meta { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.tag {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  border: 1px solid var(--accent-soft);
  background: var(--accent-soft);
  padding: 3px 10px;
  border-radius: 999px;
}

.project h3 { margin: 0 0 10px; font-size: 21px; }

.project p { color: var(--fg-dim); margin: 0 0 10px; }

.placeholder-project { opacity: 0.7; border-style: dashed; }

.placeholder {
  color: #6b7280;
  font-size: 13.5px;
  font-style: italic;
}

/* Tech stack chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 12px;
}

/* Pricing */
.hero-compact { padding: 90px 0 30px; }

.pricing-card h3 { font-size: 18px; }

.card .price {
  font-family: var(--mono);
  font-size: 21px;
  color: var(--accent);
  margin: 6px 0 14px;
  white-space: nowrap;
}

.pricing-featured { border-color: var(--accent); }

/* Contact */
.section-contact { text-align: center; }

.section-contact .section-intro { margin-left: auto; margin-right: auto; }

.contact-links {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--fg-dim);
}

.easter-dot {
  color: var(--bg-alt);
  padding: 0 6px;
  font-size: 10px;
}

.easter-dot:hover { color: var(--accent); cursor: pointer; }
