/* ==========================================================================
   CloudApps – hlavný štýl
   ========================================================================== */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #07090d;
  --bg-2: #0c0f15;
  --surface: #11151d;
  --surface-2: #161b25;
  --border: rgb(255 255 255 / .08);
  --border-strong: rgb(255 255 255 / .14);
  --text: #eef1f6;
  --muted: #9aa3b2;
  --faint: #6b7383;
  --brand: #52c8fa;
  --brand-2: #8ee0ff;
  --brand-deep: #1b8fd0;
  --gray: #7e7e7e;
  --danger: #ff7a7a;
  --success: #4fd69c;

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;
  --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 20px 50px -20px rgb(0 0 0 / .6);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgb(82 200 250 / .3); }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--brand); color: #00131d; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --pad-y: .85rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: .975rem; font-weight: 600; line-height: 1.2;
  cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background-color .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --pad-y: .6rem; --pad-x: 1.05rem; font-size: .9rem; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-2), var(--brand));
  color: #00131d;
  box-shadow: 0 0 0 1px rgb(82 200 250 / .4), 0 10px 30px -10px rgb(82 200 250 / .6);
}
.btn-primary:hover { color: #00131d; box-shadow: 0 0 0 1px rgb(82 200 250 / .6), 0 14px 36px -10px rgb(82 200 250 / .8); }

.btn-ghost { background: rgb(255 255 255 / .03); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: rgb(255 255 255 / .07); border-color: rgb(255 255 255 / .25); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgb(7 9 13 / .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); font-size: 1.3rem; font-weight: 300; letter-spacing: -.01em; }
.brand:hover { color: var(--text); }
.brand b { font-weight: 300; color: var(--brand); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; }
.nav ul a { color: var(--muted); font-size: .95rem; font-weight: 500; white-space: nowrap; transition: color .2s; }
.nav ul a:hover, .nav ul a[aria-current="true"] { color: var(--text); }

.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 12px;
  background: rgb(255 255 255 / .04); border: 1px solid var(--border-strong);
  cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--text); border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6.5rem)) 0 clamp(4rem, 9vw, 7rem);
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgb(82 200 250 / .16), transparent 60%),
    radial-gradient(40rem 25rem at -10% 20%, rgb(27 143 208 / .12), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / .035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .4rem .9rem .4rem .75rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: rgb(255 255 255 / .03);
  color: var(--muted); font-size: .85rem; font-weight: 500;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgb(79 214 156 / .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgb(79 214 156 / 0); } 100% { box-shadow: 0 0 0 0 rgb(79 214 156 / 0); } }

.hero h1 { font-size: clamp(2.4rem, 4.9vw, 3.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.grad {
  background: linear-gradient(100deg, var(--brand-2) 0%, var(--brand) 45%, #3aa0ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin-top: 1.5rem; max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 2.25rem; }

.hero-points { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 2.5rem; color: var(--muted); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%2352C8FA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Hero visual */
.hero-visual { display: grid; place-items: center; }
.orbit { position: relative; width: min(100%, 440px); aspect-ratio: 1; }
.orbit-svg { width: 100%; height: 100%; overflow: visible; }
.orbit .track { fill: none; stroke: rgb(255 255 255 / .07); stroke-width: 1; stroke-dasharray: 3 6; }
.orbit .rings { fill: rgb(7 9 13 / .6); stroke: var(--gray); stroke-width: 10; transform-origin: 200px 200px; animation: spin 60s linear infinite; }
.orbit .dots { fill: var(--brand); transform-origin: 200px 200px; animation: spin 30s linear infinite reverse; }
.orbit .dots circle { filter: drop-shadow(0 0 8px rgb(82 200 250 / .8)); animation: blink 3s ease-in-out infinite; }
.orbit .dots circle:nth-child(2) { animation-delay: .5s; }
.orbit .dots circle:nth-child(3) { animation-delay: 1s; }
.orbit .dots circle:nth-child(4) { animation-delay: 1.5s; }
.orbit .dots circle:nth-child(5) { animation-delay: 2s; }
.orbit .dots circle:nth-child(6) { animation-delay: 2.5s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink { 50% { opacity: .45; } }

.chip {
  position: absolute; display: inline-flex; align-items: center; gap: .55rem;
  padding: .55rem .9rem; border-radius: 12px;
  background: rgb(17 21 29 / .8); border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  font-size: .85rem; font-weight: 550; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip .ico { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgb(82 200 250 / .15); color: var(--brand); font-size: .75rem; font-weight: 700; }
.chip-1 { top: 10%; left: -6%; }
.chip-2 { top: 46%; right: -8%; animation-delay: -2s; }
.chip-3 { bottom: 6%; left: 4%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.kicker { color: var(--brand); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.section h2 { font-size: clamp(2rem, 3.8vw, 3rem); letter-spacing: -.03em; }
.section-lead { margin-top: 1.25rem; color: var(--muted); font-size: 1.1rem; max-width: 42rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card {
  position: relative; padding: 2rem;
  background: linear-gradient(180deg, var(--surface), rgb(17 21 29 / .5));
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color .3s, transform .3s var(--ease), background-color .3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgb(82 200 250 / .09), transparent 50%);
}
.card:hover { border-color: rgb(82 200 250 / .3); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }
.card-accent { border-color: rgb(82 200 250 / .28); background: linear-gradient(180deg, rgb(82 200 250 / .08), var(--surface) 60%); }
.card-icon {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 1.5rem;
  border-radius: 12px; background: rgb(82 200 250 / .1); border: 1px solid rgb(82 200 250 / .22);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.25rem; margin-bottom: .65rem; }
.card p { color: var(--muted); font-size: .98rem; }

.ticks { margin-top: 1.25rem; display: grid; gap: .5rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.ticks li { display: flex; gap: .6rem; color: var(--text); font-size: .92rem; }
.ticks li::before {
  content: ""; width: 16px; height: 16px; flex: none; margin-top: .25rem;
  background: no-repeat center / 16px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%2352C8FA' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* AI split */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.split > div:first-child { position: sticky; top: calc(var(--header-h) + 2rem); }
.split .btn { margin-top: 2rem; }
.usecases { display: grid; gap: 1rem; }
.usecase {
  display: flex; gap: 1.25rem; padding: 1.6rem 1.75rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color .3s;
}
.usecase:hover { border-color: rgb(82 200 250 / .3); }
.uc-num { font-size: .85rem; font-weight: 650; color: var(--brand); font-variant-numeric: tabular-nums; padding-top: .2rem; }
.usecase h3 { font-size: 1.12rem; margin-bottom: .35rem; }
.usecase p { color: var(--muted); font-size: .97rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; counter-reset: step; position: relative; }
.step { position: relative; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.25rem;
  border-radius: 50%; border: 1px solid rgb(82 200 250 / .4); color: var(--brand); font-weight: 650;
  background: rgb(82 200 250 / .08);
}
.step h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.step p { color: var(--muted); font-size: .96rem; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: calc(1.75rem + 20px); left: calc(1.75rem + 48px); right: -1.25rem; height: 1px;
  background: linear-gradient(90deg, rgb(82 200 250 / .4), transparent);
}

/* Tech */
.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tech-group { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.tech-group h3 { font-size: .82rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: 1rem; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.tags li { padding: .35rem .75rem; border-radius: 999px; border: 1px solid var(--border-strong); background: rgb(255 255 255 / .02); font-size: .88rem; color: var(--text); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2.5rem, 5vw, 4rem); border-top: 1px solid var(--border); }
.why-item h3 { font-size: 1.15rem; margin-bottom: .6rem; display: flex; align-items: center; gap: .6rem; }
.why-item h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.why-item p { color: var(--muted); }

/* FAQ */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.4rem 0; cursor: pointer; list-style: none;
  font-size: 1.1rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1px solid var(--border-strong);
  background: no-repeat center / 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%2352C8FA' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--brand-2); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--muted); }

/* ---------- Contact ---------- */
.section-contact { background: radial-gradient(50rem 30rem at 10% 100%, rgb(82 200 250 / .08), transparent 60%), var(--bg); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact-list { margin-top: 2.25rem; display: grid; gap: 1rem; }
.contact-list li { display: flex; align-items: center; gap: .85rem; color: var(--muted); }
.contact-list svg { width: 40px; height: 40px; padding: 9px; flex: none; border-radius: 10px; background: rgb(82 200 250 / .1); fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-list a { color: var(--text); font-weight: 550; }
.contact-list a:hover { color: var(--brand); }

.contact-form {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border-strong); border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
  display: grid; gap: 1.75rem;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 1.25rem; align-items: start; }
.field { position: relative; display: grid; align-content: start; gap: .45rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field legend { font-size: .9rem; font-weight: 550; color: var(--text); padding: 0; }
.field legend { margin-bottom: .45rem; }
.field label > span[aria-hidden], .field legend > span[aria-hidden] { color: var(--brand); }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .8rem 1rem;
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgb(7 9 13 / .7); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 140px; line-height: 1.55; }
::placeholder { color: var(--faint); }
select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%239aa3b2' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px;
}
select option { background: var(--surface); color: var(--text); }
input:hover, select:hover, textarea:hover { border-color: rgb(255 255 255 / .22); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(82 200 250 / .15); background-color: rgb(7 9 13 / .9); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus, .field.has-error textarea:focus { box-shadow: 0 0 0 4px rgb(255 122 122 / .15); }
.field-error {
  /* mimo toku dokumentu – hláška sa zobrazí v medzere pod poľom a neposúva formulár */
  position: absolute; left: 0; right: 0; top: calc(100% + .2rem);
  color: var(--danger); font-size: .8rem; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.field-error:empty { display: none; }

.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: inline-block; padding: .5rem .95rem; border-radius: 999px;
  border: 1px solid var(--border-strong); background: rgb(7 9 13 / .5);
  font-size: .9rem; font-weight: 500; color: var(--muted); transition: all .2s;
  user-select: none;
}
.choice:hover span { border-color: rgb(255 255 255 / .25); color: var(--text); }
.choice input:checked + span { background: rgb(82 200 250 / .14); border-color: var(--brand); color: var(--text); }
.choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-weight: 400 !important; color: var(--muted) !important; font-size: .9rem !important; line-height: 1.5; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: .1rem 0 0; border-radius: 6px; border: 1px solid var(--border-strong); background: rgb(7 9 13 / .7); cursor: pointer; display: grid; place-items: center; transition: all .2s; }
.consent input:checked { background: var(--brand) no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m3.5 8.5 3 3 6-7' fill='none' stroke='%2300131d' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); border-color: var(--brand); }
.field.has-error .consent input { border-color: var(--danger); }

.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: .25rem; }
.form-note { color: var(--faint); font-size: .85rem; }
.spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgb(0 19 29 / .25); border-top-color: #00131d; animation: spin .7s linear infinite; }
.is-loading .spinner { display: inline-block; }
.is-loading { pointer-events: none; opacity: .85; }

.form-status:empty { display: none; }
.form-status { padding: 1rem 1.15rem; border-radius: var(--radius-sm); font-size: .95rem; display: flex; gap: .7rem; align-items: flex-start; }
.form-status.ok { background: rgb(79 214 156 / .1); border: 1px solid rgb(79 214 156 / .35); color: #c9f5e2; }
.form-status.err { background: rgb(255 122 122 / .08); border: 1px solid rgb(255 122 122 / .35); color: #ffd6d6; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; background: var(--bg); }
.footer-inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.footer-brand p { margin-top: .9rem; color: var(--muted); font-size: .95rem; max-width: 22rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: flex-start; }
.footer-nav a { color: var(--muted); font-size: .95rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: var(--faint); font-size: .875rem; }

/* ---------- Legal / simple pages ---------- */
.page { padding: calc(var(--header-h) + 4rem) 0 6rem; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 4vw, 2.75rem); letter-spacing: -.03em; margin-bottom: 1rem; }
.prose h2 { font-size: 1.35rem; margin: 2.5rem 0 .75rem; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; margin-top: .75rem; }
.prose .meta { color: var(--faint); font-size: .9rem; }
.prose mark { background: rgb(255 200 80 / .15); color: #ffd98a; padding: 0 .25em; border-radius: 4px; }

.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 2rem; }
.notfound .code { font-size: clamp(5rem, 18vw, 10rem); font-weight: 750; letter-spacing: -.05em; line-height: 1; }
.notfound p { color: var(--muted); margin: 1rem 0 2rem; }

/* ---------- Reveal animation ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) { .chip-2 { right: -1%; } .chip-1 { left: -2%; } }

@media (max-width: 1080px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 64px; }
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem 1.25rem 2rem;
    background: rgb(7 9 13 / .97); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .25s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav ul a { display: block; padding: .9rem .25rem; font-size: 1.1rem; border-bottom: 1px solid var(--border); color: var(--text); }
  .nav .btn { width: 100%; --pad-y: .9rem; }
  .site-header:has(.nav.is-open) { background: rgb(7 9 13 / .97); }

}

@media (max-width: 920px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split > div:first-child { position: static; }
  .hero-visual { margin-top: 1rem; }
  .orbit { width: min(78vw, 340px); }
  .chip-1 { left: -4%; }
  .chip-2 { right: -4%; }
  .why { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .cards, .tech, .steps, .field-row { grid-template-columns: 1fr; }
  .card { padding: 1.6rem; }
  .hero-cta .btn { flex: 1 1 100%; }
  .chip { font-size: .78rem; padding: .45rem .7rem; }
  .faq details p { padding-right: 0; }
  .form-footer .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.nf-mark { margin: 0 auto 1.5rem; }
.footer-bottom-solo { margin-top: 0; border-top: 0; padding-top: 0; }
.footer-bottom .company { flex-basis: 100%; order: 2; line-height: 1.6; }
.consent + .field-error { left: 2rem; }

/* ---------- Odosielanie formulára ---------- */
.contact-form { position: relative; }
.contact-form > * { transition: opacity .35s var(--ease), transform .35s var(--ease), filter .35s; }
.contact-form[aria-busy="true"] > :not(.form-footer):not(.form-success) { opacity: .55; filter: saturate(.6); pointer-events: none; }

.btn-primary.is-loading { position: relative; overflow: hidden; opacity: 1; }
.btn-primary.is-loading::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 20%, rgb(255 255 255 / .55) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.1s ease-in-out infinite;
}
.btn:disabled { cursor: progress; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* ---------- Potvrdenie ---------- */
.form-success[hidden] { display: none; }
.form-success {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 2rem; border-radius: inherit;
  background:
    radial-gradient(28rem 20rem at 50% 38%, rgb(82 200 250 / .12), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  opacity: 0; transform: scale(.98);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.form-success.is-visible { opacity: 1; transform: none; }
.contact-form.is-success > :not(.form-success) { opacity: 0; transform: translateY(6px); visibility: hidden; }

.success-anim { position: relative; width: 120px; height: 120px; margin-bottom: 1.75rem; display: grid; place-items: center; }
.success-anim svg { position: relative; width: 96px; height: 96px; overflow: visible; }
.success-anim .s-track { fill: rgb(82 200 250 / .08); stroke: rgb(82 200 250 / .15); stroke-width: 3; }
.success-anim .s-circle {
  fill: none; stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round;
  stroke-dasharray: 277; stroke-dashoffset: 277;
  transform: rotate(-90deg); transform-origin: 48px 48px;
  filter: drop-shadow(0 0 6px rgb(82 200 250 / .7));
}
.success-anim .s-check {
  fill: none; stroke: var(--brand-2); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
}
.success-glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgb(82 200 250 / .45), transparent 65%);
  opacity: 0; transform: scale(.4);
}
.burst { position: absolute; inset: 0; }
.burst i {
  position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 10px rgb(82 200 250 / .9);
  opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4);
}
.burst i:nth-child(even) { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; background: var(--brand-2); }
.burst i:nth-child(1)  { --a: 0deg; }   .burst i:nth-child(2)  { --a: 30deg; }
.burst i:nth-child(3)  { --a: 60deg; }  .burst i:nth-child(4)  { --a: 90deg; }
.burst i:nth-child(5)  { --a: 120deg; } .burst i:nth-child(6)  { --a: 150deg; }
.burst i:nth-child(7)  { --a: 180deg; } .burst i:nth-child(8)  { --a: 210deg; }
.burst i:nth-child(9)  { --a: 240deg; } .burst i:nth-child(10) { --a: 270deg; }
.burst i:nth-child(11) { --a: 300deg; } .burst i:nth-child(12) { --a: 330deg; }

.success-title { font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -.02em; outline: none; }
.success-text { margin-top: .75rem; color: var(--muted); max-width: 26rem; }
.success-reset { margin-top: 2rem; }
.success-title, .success-text, .success-reset { opacity: 0; transform: translateY(10px); }

.form-success.is-visible .s-circle { animation: draw .8s .15s var(--ease) forwards; }
.form-success.is-visible .s-check { animation: draw .45s .8s cubic-bezier(.65, 0, .35, 1) forwards; }
.form-success.is-visible .success-glow { animation: glow 1.4s .75s ease-out forwards; }
.form-success.is-visible .burst i { animation: burst .9s .85s cubic-bezier(.2, .8, .3, 1) forwards; }
.form-success.is-visible .burst i:nth-child(even) { animation-duration: 1.1s; }
.form-success.is-visible .success-anim svg { animation: pop .5s .75s cubic-bezier(.3, 1.6, .5, 1) both; }
.form-success.is-visible .success-title { animation: rise .6s 1s var(--ease) forwards; }
.form-success.is-visible .success-text  { animation: rise .6s 1.12s var(--ease) forwards; }
.form-success.is-visible .success-reset { animation: rise .6s 1.3s var(--ease) forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes glow { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: .35; transform: scale(1.5); } }
@keyframes burst {
  0%   { opacity: 0; transform: rotate(var(--a)) translateY(0) scale(.4); }
  20%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(-78px) scale(1); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .success-anim .s-circle, .success-anim .s-check { stroke-dashoffset: 0; }
  .success-title, .success-text, .success-reset { opacity: 1; transform: none; }
  .burst { display: none; }
}

/* ---------- Prepínač jazyka ---------- */
.lang-switch { display: inline-flex; padding: 3px; border: 1px solid var(--border-strong); border-radius: 999px; background: rgb(255 255 255 / .03); }
.lang-switch a { padding: .3rem .65rem; border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--muted); transition: color .2s, background-color .2s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: rgb(82 200 250 / .15); color: var(--text); }
@media (max-width: 1024px) {
  .nav .lang-switch { align-self: flex-start; }
  .nav .lang-switch a { padding: .45rem 1rem; font-size: .9rem; }
}
.header-actions { display: flex; align-items: center; gap: .75rem; }
.nf-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .header-actions .btn { display: none; } }
