/* ============================================================
   KRASIVO AI — Landing styles
   ============================================================ */

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: var(--glass); border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.hdr.scrolled { border-bottom-color: var(--glass-brd); }
.hdr-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.hdr-nav a {
  padding: 8px 14px; border-radius: 9px; font-size: 14.5px; color: var(--muted);
  font-weight: 500; transition: color .2s, background .2s;
}
.hdr-nav a:hover { color: var(--text); background: var(--raised); }
.hdr-right { display: flex; align-items: center; gap: 10px; }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo .spark { color: var(--gold); }

/* toggles */
.toggle-group { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: var(--surface); }
.toggle-group button { padding: 7px 11px; font-size: 13px; font-weight: 600; color: var(--muted); display:flex; align-items:center; }
.toggle-group button.active { background: var(--raised); color: var(--text); }
.icon-btn { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); display: inline-flex; align-items:center; justify-content:center; transition: all .2s; }
.icon-btn:hover { color: var(--text); border-color: var(--gold-line); }

.burger { display: none; }
.mobile-menu { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 116px 0 96px; overflow: hidden; }
.hero-graph { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .9; }
.hero-graph::after {
  content:""; position:absolute; inset:0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--bg) 86%);
}
.hero-inner { position: relative; z-index: 2; max-width: 880px; }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px); letter-spacing: -.035em; margin: 22px 0 26px;
  line-height: .98;
}
.hero h1 .grad {
  background: linear-gradient(120deg, var(--gold-hover), var(--gold) 60%, #C98B16);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 2vw, 21px); color: var(--muted); max-width: 600px; line-height: 1.5; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

/* floating decorative node chips in hero */
.float-node {
  position: absolute; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 11px; background: var(--glass);
  border: 1px solid var(--glass-brd); box-shadow: var(--shadow-md);
  font-size: 12.5px; font-weight: 600; backdrop-filter: blur(8px); color: var(--text);
  animation: floaty 7s ease-in-out infinite;
}
.float-node .dot { width: 8px; height: 8px; border-radius: 50%; }
@keyframes floaty { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-14px);} }

/* logos / stat strip */
.logostrip { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 26px 0; }
.logostrip-models { display:flex; align-items:center; gap: 26px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.logostrip-models b { color: var(--text); font-weight: 600; }
.stat-row { display: flex; gap: 40px; }
.stat .n { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; }

/* ---------- Products grid ---------- */
.products { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.product-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; grid-column: span 2; }
.product-card.flagship { grid-column: span 6; flex-direction: row; gap: 36px; align-items: center; padding: 0; overflow: hidden; }
.product-card.flagship .flag-body { padding: 40px; flex: 1; }
.product-card.flagship .flag-visual { flex: 1; align-self: stretch; min-height: 320px; position: relative; }
.prod-icon { width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.prod-icon.teal { background: var(--teal-soft); color: var(--teal); border-color: var(--teal-soft); }
.product-card h3 { font-size: 19px; }
.flagship h3 { font-size: clamp(26px, 3vw, 36px); }
.product-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.flagship p { font-size: 17px; max-width: 460px; }
.prod-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.prod-link { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 600; font-size: 14px; margin-top: 2px; transition: gap .2s; }
.product-card:hover .prod-link { gap: 10px; }
.prod-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.prod-link-secondary { color: var(--teal); }
.prod-link-button { padding: 0; border: 0; background: transparent; font: inherit; cursor: pointer; text-align: left; }

/* ---------- Canvas preview section ---------- */
.cpreview { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.cpreview-bullets { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 28px 0 32px; }
.cpreview-bullets li { display: flex; gap: 14px; align-items: flex-start; }
.cpreview-bullets .bi { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--gold-soft); color: var(--gold); display: inline-flex; align-items: center; justify-content: center; }
.cpreview-bullets b { display: block; font-weight: 600; margin-bottom: 1px; }
.cpreview-bullets span { color: var(--muted); font-size: 14px; }
.mock-canvas {
  position: relative; border-radius: 18px; border: 1px solid var(--border); overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, var(--border) 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface);
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3;
}
.mock-canvas .mc-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border); background: var(--glass); backdrop-filter: blur(8px); position: relative; z-index: 3; }
.mc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 30px; position: relative; }
.step-n { font-family: var(--font-mono); font-size: 13px; color: var(--gold); margin-bottom: 18px; }
.step .si { width: 50px; height: 50px; border-radius: 13px; background: var(--raised); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--gold); margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- Models ---------- */
.models-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.model-card { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.model-card .mc-ic { width: 42px; height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; }
.model-card h4 { font-size: 15.5px; font-family: var(--font-body); font-weight: 600; }
.model-card p { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Credits flow ---------- */
.credits-flow { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.credit-diagram { display: flex; align-items: center; justify-content: center; gap: 0; flex-wrap: wrap; }
.credit-balance {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 36px;
  border-radius: 18px; background: linear-gradient(180deg, var(--gold-soft), transparent);
  border: 1px solid var(--gold-line); box-shadow: var(--shadow-gold);
}
.credit-balance .cb-n { font-family: var(--font-display); font-size: 40px; font-weight: 600; color: var(--gold); }
.credit-spokes { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.credit-spoke { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14.5px; }
.credit-spoke svg { color: var(--teal); }
.credit-connector { width: 2px; height: 40px; background: linear-gradient(var(--gold-line), transparent); margin: 0 auto; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { padding: 32px; display: flex; flex-direction: column; gap: 18px; position: relative; }
.price-card.featured { border-color: var(--gold-line); box-shadow: var(--shadow-gold); }
.price-amt { font-family: var(--font-display); font-size: 44px; font-weight: 600; letter-spacing: -.03em; }
.price-amt small { font-size: 17px; color: var(--muted); font-weight: 500; }
.price-credits { font-size: 15px; color: var(--muted); }
.price-card .badge-top { position: absolute; top: -12px; right: 24px; }
.pay-methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 10px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.testi-card .quote { font-size: 16px; line-height: 1.55; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-family: var(--font-display); background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold-line); }
.testi-author b { font-size: 14.5px; } .testi-author span { color: var(--muted); font-size: 13px; display: block; }

/* ---------- Security ---------- */
.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sec-item { display: flex; flex-direction: column; gap: 12px; padding: 26px; }
.sec-item .si-ic { width: 44px; height: 44px; border-radius: 11px; background: var(--teal-soft); color: var(--teal); display: inline-flex; align-items: center; justify-content: center; }
.sec-item p { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px; text-align: left; font-size: 17px; font-weight: 600; font-family: var(--font-display); }
.faq-q .chev { color: var(--gold); transition: transform .3s var(--ease); flex: none; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; opacity: 0; }
.faq-item.open .faq-a { max-height: 320px; opacity: 1; }
.faq-a p { color: var(--muted); padding: 0 4px 24px; font-size: 15.5px; line-height: 1.6; }

/* ---------- CTA + Footer ---------- */
.cta-band { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(36px, 5.5vw, 68px); letter-spacing: -.03em; margin-bottom: 30px; }
.cta-glow { position: absolute; inset: 0; background: radial-gradient(60% 80% at 50% 50%, var(--gold-soft), transparent 70%); z-index:0; }
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; margin-bottom: 48px; }
.footer-col h5 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; transition: color .2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 28px; border-top: 1px solid var(--border); color: var(--faint); font-size: 13.5px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hdr-nav, .hdr-right .desktop-only { display: none !important; }
  .hdr-inner { gap: 12px; }
  .hdr-right { margin-left: auto; gap: 8px; min-width: 0; }
  .burger { display: inline-flex; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .product-card { grid-column: span 1; }
  .product-card.flagship { grid-column: span 2; flex-direction: column; }
  .product-card.flagship .flag-visual { width: 100%; min-height: 240px; }
  .cpreview { grid-template-columns: 1fr; gap: 36px; }
  .steps, .pricing-grid, .testi-grid, .security-grid { grid-template-columns: 1fr; }
  .models-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mobile-menu.open { display: block; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .hdr-inner { height: 64px; }
  .hdr .logo { gap: 8px; font-size: 17px; }
  .hdr .logo-mark { width: 28px; height: 28px; }
  .hdr-right > .btn { padding: 8px 12px; font-size: 13px; }
  .hero { padding: 88px 0 64px; }
  .hero h1 { font-size: 48px; letter-spacing: 0; }
  .hero-sub { font-size: 16px; max-width: none; }
  .hero-cta .btn { width: 100%; white-space: normal; }
  .hero-graph { opacity: .32; transform: translateY(-80px); }
  .float-node { display: none; }
  .products, .models-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat-row { gap: 24px; }
  .section { padding: 70px 0; }
}
