/* GOICT web – styly podle design_handoff_goict_web (varianta v2). Hodnoty 1:1 z prototypu „GOICT Web v2.dc.html“. */

:root {
  --bg: #05080F;
  --bg-alt: rgba(9,14,25,0.5);
  --panel: rgba(12,20,34,0.55);
  --panel-stat: rgba(12,20,34,0.4);
  --inset: rgba(4,7,13,0.85);
  --input: rgba(4,7,13,0.8);
  --text: #E6EDF5;
  --white: #FFFFFF;
  --text-2: #AAB8C8;
  --text-3: #7C8BA0;
  --mute-1: #5C6B7E;
  --mute-2: #44536A;
  --mute-3: #3A475C;
  --mute-4: #2A3547;
  --accent: #38E1FF;
  --accent-hover: #8FEFFF;
  --ok: #3DF08C;
  --err: #FF6B81;           /* jen stav chyby formuláře (prototyp chybový stav nemá) */
  --violet-glow: rgba(140,110,255,0.07);
  --font-head: 'Rajdhani', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --chamfer: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  --chamfer-sm: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: rgba(56,225,255,0.25); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
[id] { scroll-margin-top: 70px; }

@keyframes blink { 0%,49% { opacity: 1; } 50%,100% { opacity: 0; } }
@keyframes sweep { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes ringPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes drift { 0% { background-position: 0 0; } 100% { background-position: 0 -600px; } }
@keyframes glowPulse { 0%,100% { box-shadow: 0 0 6px rgba(56,225,255,0.5); } 50% { box-shadow: 0 0 14px rgba(56,225,255,0.9); } }
@keyframes revealUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* reveal: s JS čeká prvek skrytý na vstup do viewportu (IntersectionObserver v site.js), bez JS je vidět hned */
.js [data-reveal] { opacity: 0; }
.js [data-reveal].is-visible { opacity: 1; animation: revealUp 0.45s ease-out both; }

.page { min-height: 100vh; background: var(--bg); overflow-x: clip; }
.wrap { max-width: 1160px; margin: 0 auto; }
.mono { font-family: var(--font-mono); }

/* ---------- společné prvky ---------- */
.section { position: relative; padding: 100px 48px; border-bottom: 1px solid rgba(56,225,255,0.1); }
.section--clip { overflow: hidden; }
.section-label { display: flex; align-items: baseline; gap: 18px; margin-bottom: 14px; }
.section-label__text { font-family: var(--font-mono); font-size: 13px; letter-spacing: 3px; color: var(--accent); }
.section-label__line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(56,225,255,0.4), transparent); }
.h2 { margin: 0; font-family: var(--font-head); font-size: clamp(32px, 4.5vw, 48px); font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; }

.hud { position: absolute; border: 0 solid var(--accent); }
.hud--tl { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.hud--tr { top: -1px; right: -1px; border-top-width: 2px; border-right-width: 2px; }
.hud--bl { bottom: -1px; left: -1px; border-bottom-width: 2px; border-left-width: 2px; }
.hud--br { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.hud--16 { width: 16px; height: 16px; }
.hud--18 { width: 18px; height: 18px; }
.hud--20 { width: 20px; height: 20px; }
.hud--22 { width: 22px; height: 22px; }

.dot-ok { border-radius: 50%; background: var(--ok); animation: glowPulse 2.4s infinite; }

.btn { font-weight: 600; font-size: 16px; padding: 15px 34px; clip-path: var(--chamfer); }
.btn--primary { background: var(--accent); color: var(--bg); box-shadow: 0 0 22px rgba(56,225,255,0.25); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn--outline { border: 1px solid rgba(56,225,255,0.35); color: var(--text); font-weight: 500; }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- navigace ---------- */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 44px; background: rgba(5,8,15,0.72); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(56,225,255,0.14); }
.nav__brand { display: flex; align-items: center; gap: 14px; }
.nav__logo { height: 28px; width: auto; filter: invert(1) drop-shadow(0 0 6px rgba(56,225,255,0.35)); }
.nav__status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--mute-1); border-left: 1px solid rgba(230,237,245,0.12); padding-left: 14px; }
.nav__status .dot-ok { width: 6px; height: 6px; }
.nav__links { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 32px); }
.nav__link { color: var(--text-2); font-size: 14px; font-weight: 500; letter-spacing: 0.4px; white-space: nowrap; }
.nav__link:hover { color: var(--accent); }
.nav__lang { display: flex; font-family: var(--font-mono); font-size: 11.5px; border: 1px solid rgba(56,225,255,0.25); overflow: hidden; }
.nav__lang span { padding: 5px 10px; color: var(--mute-1); cursor: pointer; }
.nav__lang .is-active { background: rgba(56,225,255,0.12); color: var(--accent); cursor: default; }
.nav__cta { position: relative; padding: 9px 22px; color: var(--bg); background: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; clip-path: var(--chamfer-sm); }
.nav__cta:hover { background: var(--accent-hover); color: var(--bg); }

/* ---------- hero ---------- */
/* odsazení a velikost nadpisu podle výšky okna – na nižších monitorech (1080p) hero začíná hned pod navigací */
.hero { position: relative; overflow: hidden; padding: clamp(32px, 6vh, 110px) 48px clamp(56px, 9vh, 90px); border-bottom: 1px solid rgba(56,225,255,0.1); }
.hero__dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(56,225,255,0.09) 1px, transparent 1px); background-size: 34px 34px; animation: drift 60s linear infinite; -webkit-mask-image: radial-gradient(ellipse 85% 75% at 45% 10%, black 25%, transparent 85%); mask-image: radial-gradient(ellipse 85% 75% at 45% 10%, black 25%, transparent 85%); pointer-events: none; }
.hero__glow1 { position: absolute; top: -220px; left: -140px; width: 640px; height: 640px; background: radial-gradient(circle, rgba(56,225,255,0.10), transparent 62%); pointer-events: none; }
.hero__glow2 { position: absolute; bottom: -180px; right: 10%; width: 500px; height: 400px; background: radial-gradient(ellipse, var(--violet-glow), transparent 65%); pointer-events: none; }
.hero__grid { position: relative; max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.hero__typing { font-family: var(--font-mono); font-size: 13px; color: var(--accent); margin-bottom: 26px; min-height: 20px; }
.hero__cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: text-bottom; margin-left: 3px; animation: blink 1.1s step-end infinite; }
.hero__title { margin: 0 0 26px; font-family: var(--font-head); font-size: clamp(44px, min(7.5vw, 9.5vh), 82px); line-height: 0.98; font-weight: 700; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--accent); text-shadow: 0 0 24px rgba(56,225,255,0.45); }
.hero__lead { margin: 0 0 40px; font-size: 18px; line-height: 1.65; color: var(--text-2); max-width: 560px; text-wrap: pretty; }
.hero__cta { display: flex; gap: 16px; align-items: center; }
.hero__tags { margin-top: clamp(32px, 6vh, 64px); display: flex; gap: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--mute-2); }
.sep { color: var(--mute-4); }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.hero__art svg { width: 360px; height: 360px; }
.spin-40 { animation: sweep 40s linear infinite; transform-origin: 160px 160px; }
.spin-12 { animation: sweep 12s linear infinite; transform-origin: 160px 160px; }
.pulse-3 { animation: ringPulse 3s ease-in-out infinite; }

/* ---------- 01 služby ---------- */
.services__title { margin-bottom: 60px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.service { position: relative; padding: 34px 28px; background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(56,225,255,0.14); display: flex; flex-direction: column; gap: 16px; transition: border-color 0.25s, box-shadow 0.25s; }
.service:hover { border-color: rgba(56,225,255,0.55); box-shadow: 0 0 26px rgba(56,225,255,0.12); }
.service--o2 { margin-top: 36px; }
.service--o3 { margin-top: 72px; }
.service__top { display: flex; align-items: center; justify-content: space-between; }
.service__icon { width: 46px; height: 46px; border: 1px solid rgba(56,225,255,0.4); background: rgba(56,225,255,0.06); display: flex; align-items: center; justify-content: center; }
.service__num { font-family: var(--font-mono); font-size: 12px; color: var(--mute-2); }
.service__title { margin: 0; font-family: var(--font-head); font-size: 24px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.service__desc { margin: 0; font-size: 15px; line-height: 1.62; color: var(--text-2); text-wrap: pretty; }
.service__items { margin: auto 0 0; padding: 10px 0 0; list-style: none; border-top: 1px dashed rgba(56,225,255,0.15); font-family: var(--font-mono); font-size: 12.5px; line-height: 2.1; color: var(--mute-1); }

/* ---------- 02 produkty ---------- */
.products-sec { background: var(--bg-alt); }
.products-sec__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(56,225,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(56,225,255,0.035) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 75% 65% at 75% 25%, black, transparent 82%); mask-image: radial-gradient(ellipse 75% 65% at 75% 25%, black, transparent 82%); pointer-events: none; }
.products-sec .wrap { position: relative; }
.products-head { display: flex; align-items: baseline; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 56px; }
.products-head .h2 { max-width: 640px; }
.products-head p { margin: 0; max-width: 340px; font-size: 15.5px; line-height: 1.6; color: var(--text-3); text-wrap: pretty; }
.products { display: flex; flex-direction: column; gap: 26px; }
.product { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; padding: 44px; background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(56,225,255,0.14); transition: border-color 0.25s, box-shadow 0.25s; }
.product:hover { border-color: rgba(56,225,255,0.5); box-shadow: 0 0 34px rgba(56,225,255,0.1); }
.product__body { display: flex; flex-direction: column; gap: 18px; }
.product__head { display: flex; align-items: center; gap: 14px; }
.product__name { margin: 0; font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: 0.04em; color: var(--white); white-space: nowrap; }
.product__badge { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 1.4px; line-height: 1.5; color: var(--accent); border: 1px solid rgba(56,225,255,0.35); padding: 5px 11px; }
.product__desc { margin: 0; font-size: 16.5px; line-height: 1.68; color: var(--text-2); text-wrap: pretty; }
.product__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.product__tags li { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); background: rgba(56,225,255,0.05); border: 1px solid rgba(56,225,255,0.12); padding: 6px 11px; }
.product__more { margin-top: 10px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 1.5px; color: var(--accent); }
.product__more:hover { color: var(--accent-hover); }
.term { border: 1px solid rgba(56,225,255,0.18); background: var(--inset); overflow: hidden; }
.term__head { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid rgba(56,225,255,0.12); }
.term__head .dot-ok { width: 7px; height: 7px; }
.term__window { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1px; color: var(--mute-1); }
.term__note { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--mute-3); }
.term__rows { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.term__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(56,225,255,0.07); }
.term__label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.term__label::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); box-shadow: 0 0 6px rgba(56,225,255,0.7); }
.term__value { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }

/* ---------- 03 zkušenosti ---------- */
.stats-sec__deco { position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: var(--font-mono); font-size: 230px; color: rgba(56,225,255,0.045); pointer-events: none; user-select: none; line-height: 1; }
.stats-sec .wrap { position: relative; }
.stats-sec .section-label { margin-bottom: 48px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.stat { position: relative; padding: 34px 30px; background: var(--panel-stat); border: 1px solid rgba(56,225,255,0.12); }
.stat__num { font-family: var(--font-head); font-size: 68px; font-weight: 700; line-height: 1; color: var(--white); text-shadow: 0 0 30px rgba(56,225,255,0.3); }
.stat__num span { color: var(--accent); }
.stat__label { margin-top: 12px; font-size: 15.5px; color: var(--text-2); }

/* ---------- 04 o nás ---------- */
.split { position: relative; max-width: 1160px; margin: 0 auto; display: grid; gap: 64px; align-items: start; }
.split--about { grid-template-columns: 1fr 1.4fr; }
.split--contact { grid-template-columns: 1fr 1fr; }
.about__title { text-wrap: balance; }
.about__hud { margin-top: 28px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; color: var(--mute-3); line-height: 2.2; }
.about__text { display: flex; flex-direction: column; gap: 20px; font-size: 16.5px; line-height: 1.75; color: var(--text-2); border-left: 1px solid rgba(56,225,255,0.25); padding-left: 36px; }
.about__text p { margin: 0; text-wrap: pretty; }

/* ---------- 05 kontakt ---------- */
.contact-sec { border-bottom: 0; }
.contact-sec__glow { position: absolute; left: 50%; bottom: -280px; transform: translateX(-50%); width: 760px; height: 520px; background: radial-gradient(ellipse, rgba(56,225,255,0.09), transparent 65%); pointer-events: none; }
.contact__title { margin-bottom: 20px; letter-spacing: normal; }
.contact__lead { margin: 0 0 40px; font-size: 16.5px; line-height: 1.7; color: var(--text-2); text-wrap: pretty; }
.contact__list { display: flex; flex-direction: column; gap: 14px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-2); }
.contact__key { color: var(--mute-3); }
.contact__tel { color: var(--text-2); }
.contact__tel:hover { color: var(--accent); }

.form { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 34px; background: var(--panel); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border: 1px solid rgba(56,225,255,0.16); }
.form__field { display: flex; flex-direction: column; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px; color: var(--text-3); }
.form__input { padding: 13px 16px; background: var(--input); border: 1px solid rgba(56,225,255,0.18); color: var(--text); font-size: 15px; font-family: var(--font-body); outline: none; border-radius: 0; }
textarea.form__input { resize: vertical; }
.form__input:focus { border-color: var(--accent); box-shadow: 0 0 12px rgba(56,225,255,0.2); }
.form__input[aria-invalid="true"] { border-color: var(--err); }
.form__error { font-size: 11.5px; letter-spacing: 0.5px; color: var(--err); }
.form__error:empty { display: none; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* Turnstile (interaction-only): neviditelný → nezabírá místo ani mezeru flexu; viditelný jen při výzvě */
.form__turnstile { margin-top: -16px; overflow: hidden; max-height: 0; }
.form__turnstile.is-visible { margin-top: 0; max-height: none; }
.form__submit { margin-top: 8px; padding: 15px; background: var(--accent); color: var(--bg); font-weight: 600; font-size: 16px; border: none; cursor: pointer; font-family: var(--font-body); clip-path: var(--chamfer); }
.form__submit:hover { background: var(--accent-hover); }
.form__submit:disabled { cursor: wait; opacity: 0.6; }
.form__status { font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; color: var(--text-3); }
.form__status:empty { display: none; }
.form__status::before { content: "> "; color: var(--accent); }
.form__status.is-ok { color: var(--ok); }
.form__status.is-err { color: var(--err); }

/* ---------- patička ---------- */
.footer { padding: 28px 48px; border-top: 1px solid rgba(56,225,255,0.12); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__logo { height: 20px; width: auto; filter: invert(1); opacity: 0.65; }
.footer__text { font-family: var(--font-mono); font-size: 12px; color: var(--mute-2); }
.nowrap { white-space: nowrap; }

/* ---------- responsivita (1100 / 900 / 600 px) ---------- */
@media (max-width: 1100px) {
  .hero__art { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .section, .hero { padding: 64px 22px; }
  .nav { padding: 10px 18px; gap: 12px; }
  .nav__links { gap: 16px; overflow-x: auto; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__link, .nav__cta { font-size: 13.5px; }
  .nav__lang, .nav__status { display: none; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .product { grid-template-columns: 1fr; gap: 26px; padding: 26px 20px; }
  .services { grid-template-columns: 1fr; }
  .service--o2, .service--o3 { margin-top: 0; }
  .stat__num { font-size: 52px; }
  .stats { grid-template-columns: 1fr; }
  .footer { padding: 22px 20px; }
}
@media (max-width: 600px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta a { text-align: center; }
  .product__head { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal], .js [data-reveal].is-visible { opacity: 1; animation: none; }
  .hero__dots, .spin-40, .spin-12, .pulse-3, .dot-ok, .hero__cursor { animation: none; }
}
