/* ColdHost AI – úvodní stránka (minimalistický styl, scrollované animace) */
.section { padding-top: 140px; scroll-margin-top: 56px; }
.center { text-align: center; margin-top: 36px; }
.sec-title { text-align: center; margin-bottom: 56px; }
.sec-title h2 { font-size: clamp(36px, 5.6vw, 64px); margin: 0 0 10px; line-height: 1.05; }
.sec-title p { color: var(--ink-2); font-size: clamp(18px, 2.2vw, 24px); margin: 0; }
.grad { background: linear-gradient(90deg, #7df9ff, #6aa8ff 45%, #a98bff); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero */
.hero { position: relative; padding-top: 110px; overflow: hidden; }
.hero-glow { position: absolute; left: 50%; top: -260px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(106, 168, 255, .22), rgba(155, 107, 255, .08) 55%, transparent); pointer-events: none; }
.hero-copy { position: relative; text-align: center; }
.eyebrow { color: var(--ink-2); font-size: 19px; font-weight: 600; margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 { font-size: clamp(46px, 8.4vw, 104px); line-height: 1.02; letter-spacing: -.05em; margin: 0 auto 26px; max-width: 980px; font-weight: 700; }
.hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(12px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.hero h1.go .w { opacity: 1; transform: none; filter: none; }
.hero h1 .w.hl { background: linear-gradient(90deg, #7df9ff, #6aa8ff 50%, #a98bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { color: var(--ink-2); font-size: clamp(18px, 2.3vw, 23px); line-height: 1.45; max-width: 660px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 1s var(--ease) forwards; animation-delay: .1s; }
.fade-up.d2 { animation-delay: .75s; } .fade-up.d3 { animation-delay: .95s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* produktová ukázka – na scroll se „položí“ a zvětší */
.device-stage { perspective: 1600px; padding: 80px 22px 0; }
.device { max-width: 1040px; margin: 0 auto; border-radius: 22px; overflow: hidden; background: #0b0c10; border: 1px solid var(--hair-2); box-shadow: 0 60px 140px -40px rgba(106, 168, 255, .35), 0 0 0 1px rgba(255, 255, 255, .03) inset; transform-origin: 50% 0%; transform: rotateX(var(--rx, 24deg)) scale(var(--sc, .9)); opacity: var(--op, .5); will-change: transform; }
.device-bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--hair); background: #101116; }
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3b40; }
.device-bar span { margin: 0 auto; font-size: 12px; color: var(--ink-3); padding-right: 50px; }
.device-body { display: grid; grid-template-columns: 220px 1fr; min-height: 420px; }
.d-side { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; border-right: 1px solid var(--hair); font-size: 13px; color: var(--ink-3); }
.d-side b { color: var(--ink); background: rgba(255, 255, 255, .08); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; font-weight: 600; }
.d-side span { padding: 8px 12px; border-radius: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-side span.on { background: rgba(106, 168, 255, .14); color: var(--ink); }
.d-chat { min-width: 0; padding: 30px 36px; display: flex; flex-direction: column; gap: 22px; font-size: 15px; }
.d-user { align-self: flex-end; max-width: 75%; background: #1d1e24; padding: 12px 16px; border-radius: 18px 18px 4px 18px; color: var(--ink); font-size: 15px; }
.d-ai { display: flex; gap: 14px; color: #d2d2d7; }
.d-ai p { margin: 0 0 10px; }
.d-ai pre { margin: 0 0 10px; padding: 14px 16px; border-radius: 12px; background: #050608; border: 1px solid var(--hair); font-size: 12.5px; line-height: 1.65; overflow: hidden; }
.d-ai .t { color: #ff7ab2; } .d-ai .a { color: #a98bff; } .d-ai .s { color: #7df9ff; }
.d-dim { color: var(--ink-3); font-size: 13px; }

/* statement – slova se rozsvěcují scrollem */
.statement { padding-top: 160px; }
.scrub { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.18; font-weight: 650; letter-spacing: -.035em; margin: 0; }
.scrub .w { color: rgba(245, 245, 247, .16); transition: color .25s linear; }
.scrub .w.lit { color: var(--ink); }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { position: relative; overflow: hidden; border-radius: 28px; background: var(--card); border: 1px solid var(--hair); padding: 34px; display: flex; flex-direction: column; gap: 10px; min-height: 300px; transition: border-color .3s, transform .6s var(--ease); }
.tile:hover { border-color: var(--hair-2); }
.tile .tag { font-size: 14px; font-weight: 600; color: var(--accent); }
.tile h3 { font-size: clamp(24px, 2.6vw, 32px); margin: 0; line-height: 1.12; }
.tile p { color: var(--ink-2); margin: 0; font-size: 16px; max-width: 460px; }
.t-code { grid-column: span 4; background: radial-gradient(90% 120% at 100% 0%, rgba(106, 168, 255, .16), transparent 60%), var(--card); }
.t-think { grid-column: span 2; }
.t-mem { grid-column: span 2; }
.t-learn { grid-column: span 2; background: radial-gradient(100% 100% at 0% 100%, rgba(169, 139, 255, .18), transparent 60%), var(--card); }
.t-save { grid-column: span 2; }
.t-api { grid-column: span 6; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.t-api .tag { width: 100%; }
.t-api h3 { flex: none; }
.t-api p { flex: 1; min-width: 220px; }
.langs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.langs span { padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 14px; color: var(--ink-2); }
.think-viz { display: flex; gap: 8px; align-items: flex-end; height: 70px; margin-top: auto; }
.think-viz i { flex: 1; border-radius: 6px; background: linear-gradient(180deg, #a98bff, rgba(106, 168, 255, .3)); animation: think 2.4s var(--ease) infinite; }
.think-viz i:nth-child(1) { height: 30%; } .think-viz i:nth-child(2) { height: 60%; animation-delay: .15s; } .think-viz i:nth-child(3) { height: 90%; animation-delay: .3s; } .think-viz i:nth-child(4) { height: 55%; animation-delay: .45s; } .think-viz i:nth-child(5) { height: 75%; animation-delay: .6s; }
@keyframes think { 50% { transform: scaleY(.45); opacity: .6; } }
.think-viz i { transform-origin: bottom; }
.mem-demo { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 8px; padding-top: 18px; }
.mem-demo li { font-size: 14px; padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); color: var(--ink-2); }
.mem-demo li::before { content: "✦ "; color: #a98bff; }
.api-line { font: 14px var(--mono); padding: 12px 18px; border-radius: 14px; background: #050608; border: 1px solid var(--hair); color: #7df9ff; white-space: nowrap; overflow-x: auto; max-width: 100%; }

/* sticky showcase */
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.sc-sticky { position: sticky; top: 120px; height: fit-content; }
.sc-screen { position: relative; min-height: 360px; border-radius: 28px; background: var(--card); border: 1px solid var(--hair); overflow: hidden; }
.sc-panel { position: absolute; inset: 0; padding: 34px; display: flex; flex-direction: column; gap: 18px; justify-content: center; opacity: 0; transform: scale(.96); filter: blur(8px); transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.sc-panel.on { opacity: 1; transform: none; filter: none; }
.sc-panel .d-user { max-width: 90%; }
.sc-typing { display: flex; gap: 6px; }
.sc-typing i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: bounce 1.2s infinite; }
.sc-typing i:nth-child(2) { animation-delay: .15s; } .sc-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
.sc-think { padding: 18px 20px; border-radius: 16px; background: rgba(169, 139, 255, .1); border: 1px solid rgba(169, 139, 255, .3); color: #d8ccff; font-size: 16px; line-height: 1.6; }
.sc-answer { color: #d2d2d7; font-size: 16px; line-height: 1.6; }
.sc-answer pre { margin: 12px 0; padding: 14px 16px; border-radius: 12px; background: #050608; border: 1px solid var(--hair); font-size: 14px; color: #7df9ff; }
.sc-panel code { font-family: var(--mono); font-size: .9em; }
.sc-steps { display: flex; flex-direction: column; }
.sc-step { min-height: 60vh; display: flex; flex-direction: column; justify-content: center; opacity: .25; transition: opacity .6s var(--ease); }
.sc-step.on { opacity: 1; }
.sc-step span { font: 600 15px var(--mono); color: var(--accent); }
.sc-step h3 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 12px; }
.sc-step p { color: var(--ink-2); font-size: 19px; margin: 0; max-width: 440px; }

/* ceník */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 38px 32px 32px; border-radius: 28px; background: var(--card); border: 1px solid var(--hair); }
.plan.hot { background: linear-gradient(180deg, rgba(106, 168, 255, .1), transparent 40%), var(--card); border-color: rgba(106, 168, 255, .45); }
.plan h3 { font-size: 22px; margin: 0; }
.plan .price { font-size: 52px; font-weight: 700; letter-spacing: -.045em; margin: 18px 0 0; line-height: 1; }
.plan .per { color: var(--ink-3); margin: 6px 0 24px; font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; flex: 1; font-size: 16px; color: #d2d2d7; }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.plan .pill-btn { justify-content: center; }
.badge-pop { position: absolute; top: 18px; right: 18px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #000; font-size: 12px; font-weight: 700; }
.pay-note { text-align: center; color: var(--ink-3); font-size: 15px; margin-top: 28px; }

/* FAQ */
.faq { border-top: 1px solid var(--hair-2); }
.faq details { border-bottom: 1px solid var(--hair-2); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 4px; font-size: 20px; font-weight: 600; letter-spacing: -.02em; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 28px; line-height: .8; color: var(--ink-2); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0; padding: 0 4px 24px; font-size: 17px; max-width: 640px; }

.final { text-align: center; padding-top: 160px; }
.final h2 { font-size: clamp(40px, 6.4vw, 76px); line-height: 1.04; margin: 0 0 34px; }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .t-code, .t-api { grid-column: span 2; }
  .t-think, .t-mem, .t-learn, .t-save { grid-column: span 1; }
  .showcase { grid-template-columns: 1fr; gap: 0; }
  .sc-sticky { top: 72px; z-index: 2; }
  .sc-screen { min-height: 260px; }
  .sc-step { min-height: 55vh; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .device-body { grid-template-columns: minmax(0, 1fr); }
  .d-side { display: none; }
}
@media (max-width: 600px) {
  .section { padding-top: 100px; }
  .hero { padding-top: 70px; }
  .bento { grid-template-columns: 1fr; }
  .t-code, .t-api, .t-think, .t-mem, .t-learn, .t-save { grid-column: auto; }
  .tile { padding: 26px; min-height: 0; }
  .d-chat { padding: 20px; }
  .device-stage { padding-top: 56px; }
  .statement { padding-top: 110px; }
  .sc-panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1 .w, .fade-up { opacity: 1; transform: none; filter: none; animation: none; transition: none; }
  .device { transform: none; opacity: 1; }
  .think-viz i, .sc-typing i { animation: none; }
  .scrub .w { color: var(--ink); }
}
