:root {
  --bg: #0f172a;
  --surface: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f8fafc;
  --muted: #94a3b8;
  --faint: #64748b;
  --accent: #a855f7;
  --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --ok: #34d399;
  --err: #f87171;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Outfit", system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #c4b5fd; }
a:hover { color: #ddd6fe; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }

header.site {
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 23, 42, 0.8);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.1rem; }
.logo span { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
nav a { color: var(--muted); text-decoration: none; margin-left: 18px; font-size: 0.95rem; }
nav a:first-child { margin-left: 0; }
nav a:hover { color: var(--text); }

main { flex: 1; }

.gradient-text { background: var(--gradient); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

.hero { text-align: center; padding: 72px 0 48px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 18px; }
.hero p { color: var(--muted); font-size: 1.15rem; max-width: 620px; margin: 0 auto 32px; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 40px; border: none;
  background: var(--gradient); color: #fff; font-weight: 600; font-size: 1rem;
  font-family: inherit; cursor: pointer; text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}
.btn:hover { color: #fff; opacity: 0.92; transform: scale(1.03); }
.btn[disabled] { opacity: 0.5; cursor: wait; transform: none; }
.btn.ghost { background: transparent; border: 1px solid var(--border); }

section { padding: 40px 0; }
section h2 { font-size: 1.7rem; margin-bottom: 20px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; text-decoration: none; color: var(--text); display: block;
  transition: border-color 0.2s;
}
a.card:hover { border-color: var(--accent); color: var(--text); }
.card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: 0.97rem; }
.tag { display: inline-block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #c4b5fd; margin-bottom: 8px; }

/* Článek */
article { padding: 48px 0; }
article h1 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.15; margin-bottom: 16px; }
article .lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 32px; }
article h2 { font-size: 1.5rem; margin: 40px 0 12px; }
article h3 { font-size: 1.15rem; margin: 26px 0 8px; }
article p, article ul, article ol { margin-bottom: 16px; color: #cbd5e1; }
article ul, article ol { padding-left: 22px; }
article li { margin-bottom: 6px; }
.note { font-size: 0.9rem; color: var(--faint); }

.table-wrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--border); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface); }
tr:last-child td { border-bottom: none; }

.callout { background: var(--surface); border: 1px solid var(--accent); border-radius: 16px; padding: 24px; margin: 32px 0; }
.callout h3 { margin-top: 0; }

/* Formuláře */
form .row { margin-bottom: 16px; }
label { display: block; font-weight: 500; margin-bottom: 6px; }
label small { color: var(--faint); font-weight: 300; }
input[type="text"], input[type="email"], textarea, select {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05); color: var(--text); font-family: inherit; font-size: 1rem;
}
select option { background: var(--bg); }
textarea { min-height: 80px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.newsletter { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; flex-wrap: wrap; }
.newsletter input { flex: 1 1 220px; }
.msg { margin-top: 12px; font-size: 0.95rem; min-height: 1.4em; }
.msg.ok { color: var(--ok); }
.msg.err { color: var(--err); }

/* Výsledky generátoru */
.email { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.email .meta { font-size: 0.85rem; color: #c4b5fd; margin-bottom: 8px; }
.email .subj { font-weight: 600; font-size: 1.1rem; }
.email .pre { color: var(--faint); font-size: 0.9rem; margin-bottom: 12px; }
.email .body { white-space: pre-wrap; color: #cbd5e1; margin-bottom: 12px; }
.email .cta { display: inline-block; padding: 6px 14px; border-radius: 20px; background: rgba(168, 85, 247, 0.2); font-size: 0.9rem; }
.email button.copy { float: right; background: transparent; color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px; font-family: inherit; cursor: pointer; }
.email button.copy:hover { color: var(--text); }

footer.site { border-top: 1px solid var(--border); padding: 28px 0; color: var(--faint); font-size: 0.88rem; }
footer.site a { color: var(--faint); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

@media (max-width: 600px) {
  nav a { margin-left: 12px; font-size: 0.9rem; }
  .hero { padding: 48px 0 32px; }
}
