/* Keglio — web (štýl prevzatý z Pinstory landingu, Keglio paleta) */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --violet: #7c3aed;
  --ink: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --line: #eef2f7;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}
html { scroll-behavior: smooth; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 22px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--ink); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 15px;
  cursor: pointer; border: none; transition: transform 0.12s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(37, 99, 235, 0.38); }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--muted-2); }

/* Nav button + lang selector — rovnaká výška */
.nav-inner .btn { height: 46px; padding-top: 0; padding-bottom: 0; }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #eef2ff 100%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 72px 0 84px; }
@media (max-width: 880px) { .hero-inner { grid-template-columns: 1fr; text-align: center; } }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: #eef2ff; color: var(--blue); font-weight: 700; font-size: 13px;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.08; letter-spacing: -0.02em; font-weight: 900; }
.hero h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 18px 0 26px; max-width: 520px; }
@media (max-width: 880px) { .hero p.lead { margin-left: auto; margin-right: auto; } }
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 880px) { .hero-buttons { justify-content: center; } }
.hero-phones { display: flex; justify-content: center; gap: 18px; }
.hero-phones img { width: 230px; border-radius: 30px; box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18); }
.hero-phones img:nth-child(2) { margin-top: 36px; }
@media (max-width: 560px) { .hero-phones img:nth-child(2) { display: none; } }

.hero-inner { position: relative; z-index: 1; }

/* jemné rozmazané orby (hĺbka) */
.orb { position: absolute; border-radius: 50%; filter: blur(14px); z-index: 0; will-change: transform; pointer-events: none; }
.orb.o1 { width: 210px; height: 210px; background: #c7d2fe; top: -40px; right: 9%; opacity: 0.5; animation: drift1 14s ease-in-out infinite; }
.orb.o2 { width: 150px; height: 150px; background: #ddd6fe; bottom: -30px; left: 6%; opacity: 0.5; animation: drift2 18s ease-in-out infinite; }
.orb.o3 { width: 100px; height: 100px; background: #bfdbfe; top: 28%; left: 40%; opacity: 0.45; animation: drift3 12s ease-in-out infinite; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, 40px) scale(1.12); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(45px, -45px) scale(1.15); } }
@keyframes drift3 { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(40px, -26px); } 66% { transform: translate(-26px, 18px); } }

/* výrazné geometrické tvary (spin + bob), ako v Pinstory */
.shape { position: absolute; z-index: 0; pointer-events: none; opacity: 0.22; will-change: transform; }
.shape.ring { border-radius: 50%; }
.shape.ring.r1 { width: 120px; height: 120px; top: 18%; left: 9%; border: 3px solid #2563eb; animation: spinbob 14s ease-in-out infinite; }
.shape.ring.r2 { width: 72px; height: 72px; top: 68%; right: 13%; border: 3px solid #2563eb; animation: spinbob 12s ease-in-out infinite reverse; }
.shape.ring.r3 { width: 50px; height: 50px; top: 46%; left: 60%; border: 2px solid #7c3aed; animation: spinbob 16s ease-in-out infinite; }
.shape.sq { border-radius: 12px; }
.shape.sq.s1 { width: 58px; height: 58px; top: 64%; left: 30%; border: 3px solid #7c3aed; animation: spinbob 15s ease-in-out infinite reverse; }
.shape.sq.s2 { width: 40px; height: 40px; top: 14%; right: 20%; border: 3px solid #2563eb; border-radius: 8px; animation: spinbob 11s ease-in-out infinite; }
.shape.sq.s3 { width: 26px; height: 26px; bottom: 22%; left: 14%; border: 3px solid #7c3aed; border-radius: 6px; animation: spinbob 18s ease-in-out infinite reverse; }
.shape.tri { width: 0; height: 0; border-left: 26px solid transparent; border-right: 26px solid transparent; border-bottom: 46px solid #2563eb; }
.shape.tri.t1 { top: 52%; left: 72%; animation: spinbob 16s ease-in-out infinite; }
.shape.tri.t2 { border-left-width: 16px; border-right-width: 16px; border-bottom-width: 28px; border-bottom-color: #7c3aed; top: 10%; left: 44%; animation: spinbob 13s ease-in-out infinite reverse; }
.shape.dot { width: 14px; height: 14px; border-radius: 50%; background: #2563eb; animation: bob 5s ease-in-out infinite; }
.shape.dot.d1 { top: 12%; left: 54%; animation-delay: 0s; }
.shape.dot.d2 { top: 76%; left: 24%; animation-delay: -2s; }
.shape.dot.d3 { top: 40%; right: 7%; background: #7c3aed; animation-delay: -4s; }
.shape.dot.d4 { top: 30%; left: 4%; animation-delay: -1s; }
.shape.dot.d5 { bottom: 14%; right: 16%; width: 10px; height: 10px; animation-delay: -3s; }
.shape.cross { width: 28px; height: 28px; }
.shape.cross::before, .shape.cross::after { content: ""; position: absolute; background: #2563eb; border-radius: 2px; }
.shape.cross::before { width: 100%; height: 3px; top: 50%; transform: translateY(-50%); }
.shape.cross::after { height: 100%; width: 3px; left: 50%; transform: translateX(-50%); }
.shape.cross.c1 { top: 34%; left: 6%; animation: spinbob 15s ease-in-out infinite; }
.shape.cross.c2 { top: 80%; right: 9%; width: 20px; height: 20px; animation: spinbob 18s ease-in-out infinite reverse; }
@keyframes spinbob { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }
@media (max-width: 760px) { .shape { display: none; } }

/* Stats */
.stats { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; padding: 30px 0; text-align: center; }
.stat .num { font-size: 28px; font-weight: 900; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Sections */
section.block { padding: 78px 0; }
section.block.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; letter-spacing: -0.02em; }
.section-head p { color: var(--muted); font-size: 17px; margin-top: 12px; }

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.feature-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 24px; margin-bottom: 16px; }
.fi-blue { background: #eff6ff; } .fi-violet { background: #f5f3ff; } .fi-green { background: #ecfdf5; }
.fi-amber { background: #fffbeb; } .fi-teal { background: #f0fdfa; } .fi-rose { background: #fff1f2; }
.feature-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: 15px; }

/* Showcase */
.shots { display: flex; gap: 18px; overflow-x: auto; padding: 6px 2px 14px; scroll-snap-type: x mandatory; }
.shots img { width: 240px; flex-shrink: 0; border-radius: 26px; box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14); scroll-snap-align: center; }

/* Pricing */
.price-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 760px; margin: 0 auto; }
@media (max-width: 720px) { .price-wrap { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.price-card.pro { border: 2px solid var(--blue); position: relative; }
.price-card.pro .tag { position: absolute; top: -12px; right: 22px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 20px; font-weight: 900; }
.price-card .amt { font-size: 34px; font-weight: 900; margin: 8px 0 4px; }
.price-card .amt small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card ul { list-style: none; margin-top: 16px; }
.price-card li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }

/* CTA */
.cta { background: var(--grad); color: #fff; text-align: center; padding: 70px 0; }
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 900; }
.cta p { opacity: 0.92; margin: 12px 0 24px; font-size: 17px; }
.cta .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18); }

/* Footer */
.footer { background: #0b1220; color: #cbd5e1; padding: 44px 0 30px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer .brand { color: #fff; }
.footer a { color: #cbd5e1; display: block; margin: 6px 0; font-size: 14px; }
.footer a:hover { color: #fff; }
.footer .col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 8px; }
.footer .copyright { border-top: 1px solid #1e293b; margin-top: 28px; padding-top: 20px; font-size: 13px; color: var(--muted-2); }

/* Language switcher */
.lang-switcher { position: relative; cursor: pointer; user-select: none; margin-left: 14px; }
.lang-current {
  display: inline-flex; align-items: center; gap: 8px;
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  font-weight: 700; font-size: 14px; color: var(--ink); background: #fff;
}
.lang-current img { width: 18px; height: 18px; border-radius: 50%; }
.lang-current .chev { width: 14px; height: 14px; display: inline-flex; align-items: center; color: var(--muted); transition: transform 0.2s ease; }
.lang-current .chev svg { width: 100%; height: 100%; display: block; }
.lang-switcher.open .chev { transform: rotate(180deg); }

/* Apple ikona v „App Store" tlačidlách */
.btn .apple { width: 17px; height: 17px; display: inline-block; }
.btn .apple svg { width: 100%; height: 100%; display: block; fill: currentColor; }
.lang-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14); padding: 6px; min-width: 184px; z-index: 60;
}
.lang-switcher.open .lang-dropdown { display: block; }
.lang-option {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--ink);
}
.lang-option:hover { background: var(--bg-soft); }
.lang-option.active { color: var(--blue); }
.lang-option img { width: 20px; height: 20px; border-radius: 50%; }

/* Phone frame (hero + showcase) */
.phone-frame {
  background: #1a1a1a; border-radius: 38px; padding: 5px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22), inset 0 0 0 1px #333;
  transition: transform 0.3s ease;
}
.phone-frame img { width: 100%; display: block; border-radius: 33px; }
.hero-phones { align-items: flex-start; }
.hero-phones .phone-frame { width: 218px; }
.hero-phones .phone-frame:nth-child(2) { transform: translateY(-28px); }
@media (max-width: 560px) { .hero-phones .phone-frame:nth-child(2) { display: none; } }

/* Screenshots showcase — full width, snap */
.screenshots-scroll {
  display: flex; gap: 22px; overflow-x: auto; padding: 26px 0 48px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item { flex-shrink: 0; width: 240px; scroll-snap-align: center; transition: transform 0.3s ease; }
.screenshot-item:hover { transform: translateY(-4px); }
.screenshot-item .phone-frame { box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16), inset 0 0 0 1px #333; }
.shot-edge { flex: 0 0 24px; }

/* Contact form */
.contact-form { max-width: 600px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 15px 18px; border: 2px solid var(--line); border-radius: 14px;
  font-family: inherit; font-size: 16px; color: var(--ink); background: #fff; outline: none;
  transition: border-color 0.2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); }
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .btn { align-self: flex-start; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 54px 22px 80px; }
.legal h1 { font-size: 32px; font-weight: 900; }
.legal .muted { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.legal h2 { font-size: 19px; margin-top: 30px; }
.legal p, .legal li { color: #334155; margin-top: 10px; }
.legal ul { padding-left: 22px; }
