/* ============================================
   KLAASH — CSS PRINCIPAL
   Mobile-first · Responsive · Dark/Light
   ============================================ */

:root {
  --electric: #7C5CFC; --electric-light: #A78BFA;
  --cyan: #06D6A0; --cyan-light: #34EBC0;
  --fire: #FF6B35; --fire-light: #FF8F65;
  --party: #FF2D87; --party-light: #FF5FA3;
  --gold: #FFD166; --gold-light: #FFE0A0;
}
[data-theme="dark"] {
  --bg: #0B0E17; --bg-card: #141826; --bg-elevated: #1C2035; --bg-surface: #232842;
  --text: #F0F0F5; --text-secondary: #9CA3B8; --text-muted: #5E6478;
  --border: rgba(255,255,255,0.06); --border-light: rgba(255,255,255,0.1);
  --nav-bg: rgba(11,14,23,0.92);
  --store-bg: #000; --store-border: rgba(255,255,255,0.15); --store-text: #fff;
}
[data-theme="light"] {
  --bg: #F5F5FA; --bg-card: #FFFFFF; --bg-elevated: #EEEEF5; --bg-surface: #E4E4EE;
  --text: #1A1A2E; --text-secondary: #555570; --text-muted: #8888A0;
  --border: rgba(0,0,0,0.07); --border-light: rgba(0,0,0,0.1);
  --nav-bg: rgba(245,245,250,0.92);
  --store-bg: #111; --store-border: rgba(0,0,0,0.2); --store-text: #fff;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg); color: var(--text);
  font-size: 17px; line-height: 1.7;
  transition: background 0.35s ease, color 0.35s ease;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ============ NAVIGATION ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 20px; height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-emoji { font-size: 26px; }
.nav-logo-text { font-weight: 900; font-size: 19px; color: var(--text); }
.nav-logo-text .amp { color: var(--party); }
.nav-right { display: flex; align-items: center; gap: 6px; }
.nav-link {
  background: none; border: none; padding: 10px 16px; border-radius: 10px;
  font-size: 15px; font-weight: 600; color: var(--text-secondary); transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--electric); }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px; border: none;
  background: var(--bg-surface); font-size: 20px;
  display: flex; align-items: center; justify-content: center; margin-left: 4px;
}
.nav-cta {
  display: inline-flex; padding: 11px 22px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, var(--electric), #9B7DFC);
  color: #fff; font-size: 14px; font-weight: 700; margin-left: 8px;
  box-shadow: 0 4px 16px rgba(124,92,252,0.3); transition: transform 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); }
.nav-hamburger {
  display: none; background: none; border: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; }

@media (max-width: 860px) {
  .nav-hamburger { display: flex; }
  .nav-right {
    display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--nav-bg); backdrop-filter: blur(24px); padding: 12px 20px 24px;
    border-bottom: 1px solid var(--border); gap: 4px;
  }
  .nav-right.open { display: flex; }
  .nav-right .nav-link { width: 100%; text-align: left; padding: 14px 0; font-size: 18px; }
  .nav-right .nav-cta { width: 100%; text-align: center; margin: 12px 0 0; padding: 16px; font-size: 17px; }
  .nav-right .theme-toggle { margin: 8px 0 0; align-self: flex-start; }
}

/* ============ STORE BUTTONS ============ */
.store-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.store-buttons.centered { justify-content: center; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 26px; height: 56px; border-radius: 14px;
  background: var(--store-bg); color: var(--store-text);
  border: 1px solid var(--store-border); transition: transform 0.2s;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn-icon { font-size: 26px; }
.store-btn-sub { font-size: 11px; opacity: 0.7; line-height: 1; }
.store-btn-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
@media (max-width: 480px) {
  .store-buttons { flex-direction: column; align-items: stretch; }
  .store-btn { justify-content: center; }
}

/* ============ SECTIONS ============ */
.section { padding: 100px 20px; }
.section-alt { background: var(--bg-card); }
.section-label {
  font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(30px, 5vw, 48px); font-weight: 900;
  line-height: 1.12; margin-bottom: 18px; color: var(--text); letter-spacing: -0.5px;
}
.section-desc {
  font-size: 19px; color: var(--text-secondary); max-width: 580px; line-height: 1.75; margin-bottom: 48px;
}
.section-desc.centered { margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }
@media (max-width: 600px) { .section { padding: 64px 20px; } }

/* ============ HERO ============ */
.hero {
  min-height: 92vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 100px 20px 60px; position: relative; overflow: hidden;
}
.hero-glow-1 {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.15) 0%, transparent 70%);
  pointer-events: none; animation: glow-pulse 5s ease-in-out infinite;
}
.hero-glow-2 {
  position: absolute; bottom: -200px; right: -100px;
  width: 500px; height: 500px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,45,135,0.08) 0%, transparent 70%);
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.9; transform: translateX(-50%) scale(1.08); }
}
.hero-content { position: relative; z-index: 1; max-width: 720px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px;
  border-radius: 100px; background: var(--bg-card); border: 1px solid var(--border);
  font-size: 15px; color: var(--text-secondary); margin-bottom: 32px;
}
.hero-badge strong { color: var(--cyan); }
.hero h1 { font-size: clamp(36px, 7vw, 72px); font-weight: 900; line-height: 1.05; letter-spacing: -2px; margin-bottom: 24px; }
.gradient-text {
  background: linear-gradient(135deg, var(--electric), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero p { font-size: 20px; color: var(--text-secondary); line-height: 1.7; max-width: 540px; margin: 0 auto 40px; }
.hero-stats { display: flex; justify-content: center; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.hero-stat-value { font-family: 'Sora', sans-serif; font-size: 32px; font-weight: 900; color: var(--electric); }
.hero-stat-label { font-size: 14px; color: var(--text-muted); font-weight: 600; margin-top: 2px; }
@media (max-width: 600px) {
  .hero { min-height: auto; padding: 110px 20px 50px; }
  .hero p { font-size: 18px; }
  .hero-stats { gap: 24px; }
  .hero-stat-value { font-size: 26px; }
}

/* ============ CARDS ============ */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card {
  padding: 32px; border-radius: 20px; background: var(--bg-card);
  border: 1px solid var(--border); position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,0.12); }
.section-alt .card { background: var(--bg); }
.card-glow {
  position: absolute; top: -30px; right: -30px; width: 110px; height: 110px;
  border-radius: 50%; filter: blur(35px); pointer-events: none; opacity: 0.5;
}
.card-icon { font-size: 40px; position: relative; z-index: 1; margin-bottom: 14px; }
.card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; position: relative; z-index: 1; }
.card p { font-size: 17px; color: var(--text-secondary); line-height: 1.7; position: relative; z-index: 1; }

/* ============ PROBLEM ============ */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.problem-card { padding: 28px; border-radius: 18px; background: var(--bg-elevated); border: 1px solid var(--border); }
.problem-card-icon { font-size: 32px; margin-bottom: 12px; }
.problem-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.problem-card p { font-size: 16px; color: var(--text-secondary); line-height: 1.65; }
.problem-answer {
  margin-top: 40px; padding: 22px 32px; border-radius: 18px;
  background: rgba(124,92,252,0.08); border: 1px solid rgba(124,92,252,0.2); display: inline-block;
}
.problem-answer p { font-size: 19px; font-weight: 700; color: var(--electric-light); margin: 0; }

/* ============ STEPS ============ */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card { padding: 40px 28px; border-radius: 20px; background: var(--bg); border: 1px solid var(--border); text-align: center; }
.step-number { font-family: 'Sora', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: 3px; margin-bottom: 18px; }
.step-icon { font-size: 44px; margin-bottom: 14px; }
.step-card h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.step-card p { font-size: 17px; color: var(--text-secondary); line-height: 1.7; }
@media (max-width: 768px) { .steps-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; } }

/* ============ PRICING ============ */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 740px; margin: 0 auto; }
.pricing-card { padding: 40px; border-radius: 24px; background: var(--bg-card); border: 1px solid var(--border); text-align: left; }
.pricing-card.premium { border: 2px solid rgba(255,209,102,0.35); position: relative; overflow: hidden; }
.pricing-glow {
  position: absolute; top: -40px; right: -40px; width: 130px; height: 130px;
  border-radius: 50%; background: rgba(255,209,102,0.1); filter: blur(30px);
}
.pricing-label { font-size: 14px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.pricing-price { font-size: 48px; font-weight: 900; margin-bottom: 4px; }
.pricing-price .unit { font-size: 17px; font-weight: 400; color: var(--text-muted); }
.pricing-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-feature { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 17px; color: var(--text-secondary); line-height: 1.5; }
.pricing-check { font-size: 16px; flex-shrink: 0; margin-top: 3px; }
@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .pricing-card { padding: 32px; } .pricing-price { font-size: 40px; }
}

/* ============ FAQ ============ */
.faq-list { max-width: 740px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; padding: 22px 0; text-align: left; gap: 16px;
}
.faq-q-text { font-size: 19px; font-weight: 700; color: var(--text); flex: 1; }
.faq-toggle { font-size: 24px; color: var(--text-muted); transition: transform 0.3s; width: 32px; text-align: center; flex-shrink: 0; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer p { font-size: 17px; color: var(--text-secondary); line-height: 1.8; padding-bottom: 22px; }

/* ============ CTA ============ */
.cta-section { text-align: center; position: relative; overflow: hidden; padding: 100px 20px; }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,92,252,0.1) 0%, transparent 70%); pointer-events: none;
}
.cta-section .inner { position: relative; z-index: 1; }
.cta-section .cta-icon { font-size: 60px; margin-bottom: 20px; }
.cta-section h2 { font-size: clamp(32px, 5vw, 50px); font-weight: 900; margin-bottom: 18px; line-height: 1.1; }
.cta-section p { font-size: 19px; color: var(--text-secondary); max-width: 500px; margin: 0 auto 40px; line-height: 1.7; }

/* ============ BLOG ============ */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; }
.blog-card { border-radius: 20px; overflow: hidden; background: var(--bg-card); border: 1px solid var(--border); transition: transform 0.25s; display: block; }
.blog-card:hover { transform: translateY(-4px); }
.blog-card-image { height: 180px; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; font-size: 60px; }
.blog-card-body { padding: 28px; }
.blog-card-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.blog-tag { font-size: 12px; padding: 4px 12px; border-radius: 8px; background: rgba(124,92,252,0.12); color: var(--electric-light); font-weight: 700; }
.blog-readtime { font-size: 13px; color: var(--text-muted); }
.blog-card h3 { font-size: 20px; font-weight: 800; line-height: 1.35; margin-bottom: 10px; }
.blog-card p { font-size: 16px; color: var(--text-secondary); line-height: 1.65; }
.blog-card-date { margin-top: 16px; font-size: 14px; color: var(--text-muted); }
@media (max-width: 400px) { .blog-grid { grid-template-columns: 1fr; } }

/* ============ ARTICLE ============ */
.article-header { padding-top: 100px; }
.article-container { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.article-back { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--electric); font-size: 16px; font-weight: 600; margin-bottom: 28px; padding: 0; }
.article-container h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 900; line-height: 1.2; margin-bottom: 20px; }
.article-excerpt { font-size: 20px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.article-content h2 { font-size: 28px; font-weight: 900; margin: 48px 0 18px; line-height: 1.25; color: var(--text); }
.article-content h3 { font-size: 22px; font-weight: 800; margin: 36px 0 12px; line-height: 1.3; color: var(--text); }
.article-content p { font-size: 18px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 16px; }
.article-content strong { color: var(--text); }
.article-content ul { padding-left: 0; list-style: none; margin-bottom: 16px; }
.article-content li { font-size: 18px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 8px; padding-left: 24px; position: relative; }
.article-content li::before { content: '•'; position: absolute; left: 0; color: var(--electric); font-weight: 700; }
.article-cta { margin: 56px 0 80px; padding: 40px; border-radius: 24px; text-align: center; background: rgba(124,92,252,0.06); border: 1px solid rgba(124,92,252,0.15); }
.article-cta h3 { font-size: 24px; font-weight: 900; margin: 14px 0 10px; }
.article-cta p { font-size: 17px; color: var(--text-secondary); margin-bottom: 28px; }

/* ============ LEGAL ============ */
.legal-container { max-width: 760px; margin: 0 auto; padding: 100px 20px 80px; }
.legal-container h1 { font-size: clamp(30px, 5vw, 40px); font-weight: 900; margin-bottom: 36px; }
.legal-container h2 { font-size: 24px; font-weight: 800; margin: 40px 0 14px; line-height: 1.25; color: var(--text); }
.legal-container h3 { font-size: 20px; font-weight: 700; margin: 24px 0 10px; color: var(--text); }
.legal-container p { font-size: 17px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 10px; }
.legal-container strong { color: var(--text); }
.legal-container ul { padding-left: 0; list-style: none; margin-bottom: 14px; }
.legal-container li { font-size: 17px; color: var(--text-secondary); line-height: 1.85; margin-bottom: 6px; padding-left: 22px; position: relative; }
.legal-container li::before { content: '•'; position: absolute; left: 0; color: var(--electric); }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); background: var(--bg-card); padding: 64px 20px 40px; }
.footer-grid { max-width: 1140px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-emoji { font-size: 30px; }
.footer-logo-text { font-weight: 900; font-size: 21px; color: var(--text); }
.footer-desc { color: var(--text-secondary); font-size: 15px; line-height: 1.7; max-width: 300px; }
.footer-socials { display: flex; gap: 10px; margin-top: 20px; }
.footer-social { padding: 8px 16px; border-radius: 8px; background: var(--bg-surface); font-size: 13px; font-weight: 600; color: var(--text-secondary); border: none; }
.footer-heading { font-size: 13px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.footer-link { display: block; font-size: 15px; color: var(--text-secondary); margin-bottom: 12px; transition: color 0.2s; }
.footer-link:hover { color: var(--electric); }
.footer-bottom { max-width: 1140px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 14px; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-link { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.footer-bottom-link:hover { color: var(--text-secondary); }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============ PAGE HEADER ============ */
.page-header { padding: 120px 20px 40px; text-align: center; }
.page-header .section-title { margin-bottom: 14px; }
.page-header .section-desc { margin-bottom: 0; }

/* ============ SKIP LINK ============ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  background: var(--electric);
  color: #fff;
  padding: 8px 16px;
  border-radius: 4px;
  z-index: 10000;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 8px;
}

/* ============ FOCUS VISIBLE ============ */
*:focus-visible {
  outline: 2px solid var(--electric);
  outline-offset: 3px;
}

/* ============ FEATURE HEADING ============ */
.feature-heading {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 36px;
}

/* ============ COOKIE BANNER ============ */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary, var(--bg-card));
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  z-index: 9999;
  display: flex;
  justify-content: center;
}
.cookie-banner-content {
  max-width: 1140px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cookie-banner-content p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.cookie-banner-content a {
  color: var(--electric);
  text-decoration: underline;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
}
.cookie-btn {
  padding: 8px 20px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.cookie-btn.accept {
  background: var(--electric);
  color: #fff;
}
.cookie-btn.refuse {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
