/* ============================================================
   klukvaCloud — Page sections (marketing pages)
   Hero, logos, features, stats, workflow, pricing, faq,
   testimonials, CTA
   ============================================================ */

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(6rem, 12vw, 12rem) clamp(4rem, 8vw, 8rem);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  animation: pulse-glow 8s ease-in-out infinite;
  inset: -20% 0 auto 0;
  height: 620px;
  background:
    radial-gradient(60% 60% at 30% 20%, color-mix(in srgb, var(--brand-400) 22%, transparent), transparent 70%),
    radial-gradient(50% 50% at 80% 10%, color-mix(in srgb, var(--accent-teal) 16%, transparent), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}
.hero-inner { max-width: 64rem; margin-inline: auto; text-align: left; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(3.5rem, 8vw, 5.5rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin-top: var(--sp-4);
}
.hero h1 em { font-style: italic; color: var(--text-brand); }
.hero .lede { margin-top: var(--sp-5); max-width: 42ch; }
.hero-cta { display: flex; gap: var(--sp-3); margin-top: var(--sp-6); flex-wrap: wrap; justify-content: flex-start; }
.hero-note { margin-top: var(--sp-4); font-size: var(--fs-sm); color: var(--text-subtle); display: flex; align-items: center; justify-content: flex-start; gap: var(--sp-2); }

/* Product mock frame */
.hero-media {
  margin-top: var(--sp-8);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.window-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.window-bar .dot:nth-child(1) { background: #ff5f57; }
.window-bar .dot:nth-child(2) { background: #febc2e; }
.window-bar .dot:nth-child(3) { background: #28c840; }
.window-bar .addr {
  margin-left: var(--sp-3);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  padding: 0.25rem 0.8rem;
}
.hero-shot { display: block; width: 100%; background: var(--bg-subtle); }

/* ---------- Logo strip ---------- */
.logo-strip { padding-block: var(--sp-6); }
.logo-strip p { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: var(--tracking-caps); color: var(--text-subtle); margin-bottom: var(--sp-5); }
.logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  flex-wrap: wrap;
  opacity: 0.7;
}
.logos svg, .logos span {
  height: 26px;
  color: var(--text-muted);
  font-weight: var(--fw-bold);
  font-size: var(--fs-lg);
  letter-spacing: var(--tracking-snug);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Feature bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-5);
}
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.bento .card.tall { grid-column: span 3; grid-row: span 2; }
.bento .card.full { grid-column: span 6; }
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card.wide, .bento .card.tall, .bento .card.full { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card { grid-column: span 1; }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-6);
  text-align: left;
}
.stat .num {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  color: var(--text);
}
.stat .label { display: block; margin-top: var(--sp-3); font-size: var(--fs-sm); color: var(--text-muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; gap: var(--sp-7) var(--sp-4); } }

/* ---------- Workflow / steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--sp-6); }
.step { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start; }
.step .num {
  counter-increment: step;
  width: 38px; height: 38px;
  border-radius: var(--r-full);
  border: 1px solid var(--border-strong);
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  color: var(--text-brand);
}
.step .num::before { content: "0" counter(step); }
.step h3 { font-size: var(--fs-md); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--sp-1); }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.35rem;
  background: var(--surface-2);
  border-radius: var(--r-full);
  margin: var(--sp-5) auto 0;
}
.billing-toggle button {
  padding: 0.45rem 1rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.billing-toggle button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.billing-toggle .save { color: var(--success); font-weight: var(--fw-semibold); font-size: var(--fs-xs); }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  position: relative;
}
.plan.featured {
  border-color: var(--brand-500);
  box-shadow: var(--shadow-lg);
}
.plan.featured::before {
  content: attr(data-badge);
  position: absolute;
  top: 0; right: var(--sp-5);
  transform: translateY(-50%);
  background: var(--brand-600);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
}
.plan h3 { font-size: var(--fs-lg); }
.plan .price { display: flex; align-items: baseline; gap: 0.3rem; margin: var(--sp-4) 0; }
.plan .price .amount { font-family: var(--font-display); font-size: var(--fs-3xl); font-weight: var(--fw-light); letter-spacing: var(--tracking-tight); }
.plan .price .per { color: var(--text-muted); font-size: var(--fs-sm); }
.plan .plan-desc { font-size: var(--fs-sm); color: var(--text-muted); min-height: 3em; }
.plan ul { margin: var(--sp-5) 0; display: grid; gap: var(--sp-3); }
.plan li { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-sm); }
.plan li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
.plan li.muted { color: var(--text-subtle); }
.plan li.muted svg { color: var(--text-subtle); }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 46rem; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  text-align: left;
  padding: var(--sp-5) 0;
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
}
.faq-q .chev { transition: transform var(--dur-base) var(--ease-out); color: var(--text-muted); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-base) var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { padding-bottom: var(--sp-5); color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Testimonials ---------- */
.quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
}
.quote-card blockquote {
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-lg);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-snug);
}
.quote-card .who { display: flex; align-items: center; gap: var(--sp-3); margin-top: var(--sp-5); }
.avatar {
  width: 40px; height: 40px; border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--brand-400), var(--accent-teal));
  display: grid; place-items: center; color: #fff; font-weight: var(--fw-semibold); font-size: var(--fs-sm);
}
.quote-card .who .name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); font-family: var(--font-sans); }
.quote-card .who .role { font-size: var(--fs-xs); color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  padding: clamp(3.5rem, 8vw, 6rem);
  text-align: left;
}
.cta-band h2 { 
  font-family: var(--font-display); 
  font-weight: var(--fw-light); 
  font-size: clamp(2.5rem, 6vw, var(--fs-4xl)); 
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
}
.cta-band p { 
  color: var(--text-muted); 
  margin-top: var(--sp-5); 
  font-size: clamp(1.2rem, 2.5vw, var(--fs-lg));
  max-width: 50ch;
  line-height: var(--lh-snug);
}
.cta-band .hero-cta { 
  justify-content: flex-start; 
  margin-top: var(--sp-7);
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) var(--sp-6); text-align: left; }
.page-hero h1 { font-family: var(--font-display); font-weight: var(--fw-light); font-size: clamp(2.4rem, 5vw, var(--fs-4xl)); letter-spacing: var(--tracking-tight); margin-top: var(--sp-3); }
.page-hero p { margin-top: var(--sp-7); max-width: 46ch; }

/* Prose (about / legal) */
.prose { max-width: 42rem; margin-inline: auto; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--sp-7); }
.prose h3 { font-size: var(--fs-md); margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--text-muted); margin-top: var(--sp-3); line-height: var(--lh-relaxed); }
.prose ul { list-style: disc; padding-left: 1.4rem; }


/* ---------- Pricing page improvements (replaces inline styles) ---------- */
.pricing-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.pricing-card.featured {
  border-color: var(--brand-500) !important;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-price {
  margin-block: var(--sp-6);
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
}
.pricing-price .amount {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-semibold);
}
.pricing-features {
  margin-top: var(--sp-6);
  font-size: var(--fs-sm);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: var(--sp-6);
}

/* ---------- Custom Animations ---------- */
@keyframes float-slow {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, 3%) scale(1.06); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes float-slower {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-3%, -4%) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}
@keyframes card-fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.file-card {
  animation: card-fade-in 0.4s var(--ease-out) both;
}

/* Adaptive dynamic backgrounds */
.hero-glow {
  position: absolute;
  animation: pulse-glow 8s ease-in-out infinite;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.hero-glow::before, .hero-glow::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.16;
}
.hero-glow::before {
  top: -12%;
  left: 20%;
  background: var(--brand-400);
  animation: float-slow 16s infinite ease-in-out;
}
.hero-glow::after {
  top: 4%;
  right: 18%;
  background: var(--accent-teal);
  animation: float-slower 22s infinite ease-in-out;
}

/* CTA Ghost Button visibility fixes inside inverse block */


@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.03); }
}
.stat .num { position: relative; padding-bottom: 0.6rem; display: inline-block; }
.stat .num::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  transform: none;
  width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--brand-500), var(--accent-teal));
  border-radius: 2px;
}

@keyframes heroTitleAnim {
  0% { opacity: 0; transform: translateY(30px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-title-anim {
  animation: heroTitleAnim 2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
