/* ===== Osnove & teme ===== */
:root {
  --bg: #0c1014;
  --bg-alt: #11161c;
  --surface: #161d25;
  --border: #232d38;
  --text: #e8edf2;
  --text-dim: #9aa7b4;
  --accent: #d97757;
  --accent-strong: #e89273;
  --accent-contrast: #0c1014;
  --terminal-bg: #0a0e12;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

[data-theme="light"] {
  --bg: #f7f9f8;
  --bg-alt: #eef2ee;
  --surface: #ffffff;
  --border: #dde4dd;
  --text: #1b2430;
  --text-dim: #5b6875;
  --accent: #bf5f3d;
  --accent-strong: #a44f30;
  --accent-contrast: #ffffff;
  --terminal-bg: #10151a;
  --shadow: 0 12px 32px rgba(27, 36, 48, .10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background .3s ease, color .3s ease;
  -webkit-font-smoothing: antialiased;
}

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

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

h1 {
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 26px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  letter-spacing: -.015em;
  margin-bottom: 10px;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.logo { font-weight: 700; font-size: .95rem; letter-spacing: .01em; }

.header-right { display: flex; align-items: center; gap: 12px; }

.chip {
  font-size: .75rem; color: var(--text-dim);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 4px 12px; white-space: nowrap;
}

#theme-toggle {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); cursor: pointer;
  transition: border-color .2s;
}
#theme-toggle:hover { border-color: var(--accent); }
[data-theme="light"] .icon-moon { display: none; }
:not([data-theme="light"]) .icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }

/* ===== Pismo ===== */
.letter { padding: clamp(72px, 12vw, 130px) 0 clamp(36px, 5vw, 56px); }

.letter-inner { display: flex; align-items: center; gap: 48px; }
.letter-text { flex: 1; }

.portrait {
  width: clamp(170px, 24vw, 225px); height: auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.eyebrow {
  font-size: .8rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent); margin-bottom: 18px;
}

.letter p:not(.eyebrow) {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-dim);
  margin-bottom: 18px;
  max-width: 58ch;
}

.letter strong { color: var(--text); }

/* ===== Terminal ===== */
.terminal-section { padding: clamp(24px, 4vw, 44px) 0 clamp(48px, 7vw, 80px); }

.terminal {
  background: var(--terminal-bg); border: 1px solid var(--border);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow);
}

.terminal-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }

.terminal-title {
  margin-left: 10px; font-size: .78rem; color: #7d8896;
  font-family: Consolas, "Cascadia Code", monospace;
}

.terminal-body {
  padding: 20px 22px 26px; min-height: 320px;
  font-family: Consolas, "Cascadia Code", "Courier New", monospace;
  font-size: .88rem; line-height: 1.75; color: #cdd6de;
  white-space: pre-wrap; word-break: break-word;
}

.terminal-body .t-user { color: #f0a284; font-weight: 600; }
.terminal-body .t-claude { color: #8ab4f8; }
.terminal-body .t-dim { color: #66717d; }

.cursor {
  display: inline-block; width: 8px; height: 1.05em;
  background: #f0a284; vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== Gumbi ===== */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600;
  padding: 13px 26px; border-radius: 12px; font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease, background .2s;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--accent); color: var(--accent-contrast);
  box-shadow: 0 6px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); }

.btn-ghost {
  color: var(--text); border: 1px solid var(--border); background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); }

.btn-lg { padding: 16px 30px; font-size: 1.05rem; }

/* ===== Odločitev ===== */
.cta-section {
  text-align: center;
  padding: clamp(40px, 6vw, 70px) 0 clamp(56px, 8vw, 90px);
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.decision {
  position: relative;
  display: flex; gap: 16px; justify-content: center; align-items: center;
  flex-wrap: wrap;
  padding: 56px 0 48px;
}

#btn-ne {
  font-family: inherit; cursor: pointer;
  transition: transform .18s ease-out, border-color .2s;
  will-change: transform;
  touch-action: none;
}

.cta-contacts { margin-bottom: 22px; font-size: 1.02rem; }
.cta-contacts a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--accent); }
.cta-contacts a:hover { color: var(--accent); }
.cta-contacts .sep { color: var(--text-dim); margin: 0 10px; }

.cta-sign { color: var(--text-dim); font-style: italic; }

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0; text-align: center;
  font-size: .85rem; color: var(--text-dim);
}

/* ===== Reveal animacije ===== */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .chip { display: none; }
  .letter-inner { flex-direction: column-reverse; align-items: flex-start; gap: 28px; }
  .portrait { width: 138px; border-radius: 16px; }
  .terminal-body { font-size: .78rem; padding: 16px; }
  .btn-lg { width: 100%; text-align: center; }
}
