/* ==========================================================================
   ajtaktonda.cz — v1
   Brand: navy #0f172a · cyan #22d3ee · slate #e2e8f0
   Chakra Petch (display) · Space Grotesk (tělo) · Space Mono (tech)
   ========================================================================== */

:root {
  --navy:      #0f172a;
  --navy-2:    #16213b;
  --navy-3:    #1e293b;
  --cyan:      #22d3ee;
  --cyan-dark: #0e7490;
  --slate:     #e2e8f0;
  --ink:       #0f172a;
  --muted:     #475569;
  --line:      #cbd5e1;
  --bg:        #ffffff;
  --bg-alt:    #f1f5f9;

  --wrap: 1080px;
  --r: 12px;

  --f-display: "Chakra Petch", "Segoe UI", sans-serif;
  --f-body: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Space Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; margin: 0 0 .6rem; }
h1 { font-size: clamp(2.1rem, 5.5vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; }

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--cyan); color: var(--navy); padding: .6rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  padding: .8rem 1.4rem;
  border-radius: var(--r);
  background: var(--cyan);
  color: var(--navy);
  border: 2px solid var(--cyan);
  transition: transform .12s ease, background .15s ease, color .15s ease;
}
.btn:hover { background: #67e8f9; border-color: #67e8f9; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--slate); border-color: rgba(226,232,240,.45); }
.btn-ghost:hover { background: rgba(226,232,240,.12); border-color: var(--slate); color: #fff; }
.btn-sm { padding: .45rem .9rem; font-size: .92rem; }
.btn-lg { padding: .95rem 1.7rem; font-size: 1.05rem; }

/* ===== NAV ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,23,42,.95);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid rgba(226,232,240,.12);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 62px; }
.nav-brand {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 600;
  color: var(--slate); text-decoration: none;
}
.nav-brand strong { color: var(--cyan); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--slate); text-decoration: none; font-size: .95rem; }
.nav-links a:not(.btn):hover { color: var(--cyan); }
@media (max-width: 780px) {
  .nav-links a:not(.btn) { display: none; }
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  color: var(--slate);
  padding: 3.5rem 0 4.5rem;
  border-bottom: 3px solid var(--cyan);
}
.hero-in { max-width: 860px; text-align: center; }
.hero h1 { color: #fff; margin-top: 2.2rem; }
.hero .lead { font-size: 1.15rem; color: #cbd5e1; max-width: 620px; margin: 0 auto 1.8rem; }
.hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.hero-note { font-family: var(--f-mono); font-size: .85rem; color: #94a3b8; margin-top: 1.4rem; }

/* terminálové okno */
.term {
  max-width: 620px; margin: 0 auto;
  background: var(--navy-2);
  border: 1px solid rgba(226,232,240,.18);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.term-bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .8rem;
  background: var(--navy-3);
  border-bottom: 1px solid rgba(226,232,240,.12);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #475569; }
.term-bar span:first-child { background: #f87171; }
.term-bar span:nth-child(2) { background: #fbbf24; }
.term-bar span:nth-child(3) { background: #34d399; }
.term-bar p {
  margin: 0 0 0 .6rem; font-family: var(--f-mono); font-size: .78rem; color: #94a3b8;
}
.term-body { background: var(--navy); }
.term-anim { display: block; width: 100%; aspect-ratio: 1920 / 864; object-fit: cover; }
.term-static { display: none; width: 100%; height: auto; padding: 1.4rem 2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .term-anim { display: none; }
  .term-static { display: block; }
}

/* ===== SEKCE ===== */
.sec { padding: 4.5rem 0; }
.sec-alt { background: var(--bg-alt); }
.kicker {
  font-family: var(--f-mono); font-size: .8rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--cyan-dark); margin: 0 0 .4rem;
}
.sec h2 { margin-bottom: 2.2rem; }

.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.6rem 1.5rem 1.2rem;
}
.card .num {
  font-family: var(--f-mono); font-size: .8rem; font-weight: 700;
  color: var(--cyan-dark); display: block; margin-bottom: .5rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; color: var(--muted); }
.card strong { color: var(--ink); }
.card-flag { border-color: var(--navy); border-top: 4px solid var(--cyan); }

.who h3 { margin-bottom: .3rem; }
.who p { color: var(--muted); margin: 0; }
.who { border-left: 3px solid var(--cyan); padding-left: 1rem; }

.nope {
  margin-top: 2.5rem;
  background: var(--navy);
  color: var(--slate);
  border-radius: var(--r);
  padding: 1.6rem 1.8rem;
}
.nope h3 { color: #fff; }
.nope ul { margin: 0; padding-left: 1.1rem; }
.nope li { margin-bottom: .5rem; color: #cbd5e1; }
.nope strong { color: var(--cyan); font-weight: 700; }

/* kroky */
.steps { list-style: none; counter-reset: k; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li {
  counter-increment: k;
  display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start;
  border-top: 1px solid var(--line); padding-top: 1.1rem;
}
.steps li::before {
  content: counter(k, decimal-leading-zero);
  font-family: var(--f-mono); font-size: 1.1rem; font-weight: 700; color: var(--cyan-dark);
}
.steps h3 { grid-column: 2; margin: 0 0 .2rem; }
.steps p { grid-column: 2; margin: 0; color: var(--muted); max-width: 62ch; }

/* o mně */
.about { display: grid; grid-template-columns: 72px 1fr; gap: 1.8rem; align-items: start; }
.about-mark { opacity: .9; }
.about p { color: var(--muted); max-width: 62ch; }
@media (max-width: 620px) { .about { grid-template-columns: 1fr; gap: 1rem; } }

/* FAQ */
details {
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
}
summary {
  font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--f-mono); color: var(--cyan-dark); font-size: 1.3rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: .8rem 0 0; color: var(--muted); }

/* kontakt */
.contact {
  background: var(--navy);
  color: var(--slate);
  padding: 4.5rem 0;
  text-align: center;
  border-top: 3px solid var(--cyan);
}
.contact h2 { color: #fff; }
.contact .lead { color: #cbd5e1; max-width: 520px; margin: 0 auto 2rem; }
.contact-links { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.contact .btn-lg { font-family: var(--f-mono); font-weight: 700; }

/* patička */
.footer { background: #0b1220; color: #94a3b8; padding: 1.6rem 0; font-size: .88rem; }
.footer-in { display: flex; justify-content: space-between; gap: .6rem; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer .mono { font-family: var(--f-mono); font-size: .8rem; }
