/* KASKOW public landing pages — standalone, no framework. */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0e13;
  --surface: #0f151c;
  --card: rgba(255, 255, 255, 0.04);
  --card-solid: #121a23;
  --border: rgba(255, 255, 255, 0.09);
  --text: #e7eef4;
  --muted: #94a3b8;
  --brand: #14b8a6;
  --brand-strong: #0d9488;
  --brand-tint: rgba(20, 184, 166, 0.14);
  --accent-text: #2dd4bf;
  --nav-bg: rgba(10, 14, 19, 0.72);
  --amber: #f59e0b;
  --amber-tint: rgba(245, 158, 11, 0.14);
  --indigo: #818cf8;
  --indigo-tint: rgba(129, 140, 248, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --border: rgba(13, 27, 42, 0.1);
  --text: #0d1b2a;
  --muted: #5b6b7c;
  --brand: #0d9488;
  --brand-strong: #0f766e;
  --brand-tint: rgba(13, 148, 136, 0.1);
  --accent-text: #0d9488;
  --nav-bg: rgba(255, 255, 255, 0.78);
  --amber: #d97706;
  --amber-tint: rgba(217, 119, 6, 0.12);
  --indigo: #4f46e5;
  --indigo-tint: rgba(79, 70, 229, 0.1);
  --shadow: 0 20px 60px rgba(13, 27, 42, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
p { margin: 0; }
code, kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
code { padding: 2px 7px; border-radius: 6px; background: var(--brand-tint); color: var(--accent-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- background decor ---------- */
.bg-decor { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-decor::before, .bg-decor::after {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: 0.35;
}
.bg-decor::before { top: -30vmax; right: -20vmax; background: radial-gradient(circle, var(--brand) 0%, transparent 60%); }
.bg-decor::after { bottom: -35vmax; left: -25vmax; background: radial-gradient(circle, var(--indigo) 0%, transparent 60%); opacity: 0.22; }
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at top, #000 0%, transparent 65%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 0%, transparent 65%); opacity: 0.5;
}

/* ---------- layout ---------- */
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--accent-text); background: var(--brand-tint); border: 1px solid transparent;
}
.eyebrow.amber { color: var(--amber); background: var(--amber-tint); }
.eyebrow.indigo { color: var(--indigo); background: var(--indigo-tint); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 14px 0 12px; }
.sec-head p { color: var(--muted); font-size: 16.5px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.muted { color: var(--muted); }
.grad { background: linear-gradient(90deg, var(--accent-text), #60a5fa); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font-weight: 700; font-size: 15px;
  border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-tint); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; border-color: transparent; box-shadow: 0 10px 30px rgba(20, 184, 166, 0.3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--brand), var(--brand-strong)); box-shadow: 0 14px 36px rgba(20, 184, 166, 0.4); }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 11px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--brand-tint); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: var(--nav-bg); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; filter: drop-shadow(0 4px 10px rgba(18, 160, 114, 0.28)); }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 22px; margin-left: 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.nav .spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; }
.nav-mobile { display: none; border-top: 1px solid var(--border); padding: 12px 0 16px; }
.nav-mobile a { display: block; padding: 10px 0; font-weight: 600; }
.nav-mobile .row { display: flex; gap: 8px; padding-top: 8px; }
.nav.open .nav-mobile { display: block; }
@media (max-width: 860px) {
  .nav-links, .nav-actions .hide-m { display: none; }
  .nav-burger { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding: 84px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); margin: 18px 0 18px; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { width: 15px; height: 15px; color: var(--accent-text); }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 56px; } }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 24px; backdrop-filter: blur(6px); }
.card-hover { transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.ic { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-tint); color: var(--accent-text); margin-bottom: 16px; }
.ic svg { width: 22px; height: 22px; }
.ic.amber { background: var(--amber-tint); color: var(--amber); }
.ic.indigo { background: var(--indigo-tint); color: var(--indigo); }
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* app showcase (hub page) */
.app-show { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 920px) { .app-show { grid-template-columns: 1fr; } }
.app-show .card { padding: 30px; display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.app-show .card::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--brand-tint), transparent 70%); pointer-events: none; }
.app-show h3 { font-size: 24px; }
.app-show ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; color: var(--muted); font-size: 14.5px; }
.app-show li { display: flex; gap: 10px; align-items: flex-start; }
.app-show li svg { width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--accent-text); }
.app-show .acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; position: relative; z-index: 1; }
.tag { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.03em; }
.tag.pro { background: var(--amber-tint); color: var(--amber); }
.tag.free { background: var(--brand-tint); color: var(--accent-text); }
.tag.new { background: var(--indigo-tint); color: var(--indigo); }

/* steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px 24px 24px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-size: 13px; font-weight: 800; color: var(--accent-text); letter-spacing: 0.08em; display: block; margin-bottom: 12px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.stat b { display: block; font-size: 24px; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }

/* comparison table */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--border); font-size: 14.5px; }
.cmp th, .cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.cmp th { background: var(--brand-tint); color: var(--text); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td.ok { color: var(--accent-text); font-weight: 700; }
.cmp td.no { color: var(--muted); }
.cmp-wrap { overflow-x: auto; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding-top: 30px; }
.plan.featured { border-color: var(--brand); box-shadow: 0 18px 50px rgba(20, 184, 166, 0.16); }
.plan-tag { position: absolute; top: -12px; left: 22px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); color: #fff; }
.plan h3 { margin: 0; font-size: 18px; }
.plan .price { margin: 0; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; }
.plan .price small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.plan ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); font-size: 14.5px; flex: 1; }
.plan li::before { content: "✓"; color: var(--accent-text); font-weight: 800; margin-right: 8px; }
.plan .btn { justify-content: center; }
.pricing-note { max-width: 760px; margin: 22px auto 0; text-align: center; color: var(--muted); font-size: 14px; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: var(--card); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 17px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; color: var(--accent-text); flex: none; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--muted); font-size: 14.5px; }

/* cta band */
.cta { border-radius: 24px; padding: 48px 40px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--brand-tint), var(--indigo-tint)); }
.cta h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.cta p { color: var(--muted); max-width: 560px; margin: 0 auto 26px; }
.cta .acts { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 34px 0 40px; font-size: 13.5px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 30px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a:hover { color: var(--text); }

/* ---------- product mockups (pure CSS) ---------- */
.mock { border-radius: 20px; border: 1px solid var(--border); background: var(--card-solid); box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--card); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar i:nth-child(1) { background: #f87171; } .mock-bar i:nth-child(2) { background: #fbbf24; } .mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock-body { padding: 18px; display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); min-width: 0; }
.kpi small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi b { font-size: 15.5px; display: block; margin-top: 2px; letter-spacing: -0.01em; white-space: nowrap; }
.kpi.t b { color: var(--accent-text); } .kpi.a b { color: var(--amber); } .kpi.i b { color: var(--indigo); }
.mtable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mtable th { text-align: left; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.mtable td { padding: 9px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.mtable tr:last-child td { border-bottom: 0; }
.mtable .nm { display: flex; align-items: center; gap: 9px; }
.mtable .th { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, var(--brand-tint), var(--indigo-tint)); flex: none; }
.mtable .bar { height: 6px; border-radius: 4px; background: var(--border); position: relative; min-width: 70px; }
.mtable .bar i { position: absolute; inset: 0 auto 0 0; border-radius: 4px; background: linear-gradient(90deg, var(--brand), #60a5fa); }
.pill { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.pill.g { background: var(--brand-tint); color: var(--accent-text); } .pill.a { background: var(--amber-tint); color: var(--amber); }
@media (max-width: 480px) { .kpis { grid-template-columns: repeat(2, 1fr); } .mtable .hide-s { display: none; } }

/* remote mock */
.rmock { display: grid; grid-template-columns: 240px 1fr; gap: 0; }
@media (max-width: 560px) { .rmock { grid-template-columns: 1fr; } }
.rpanel { padding: 20px; border-right: 1px solid var(--border); background: var(--card); display: grid; gap: 14px; align-content: start; }
.rpanel small { display: block; font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.rid { font-size: 26px; font-weight: 800; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; color: var(--accent-text); }
.rpw { font-family: ui-monospace, Menlo, monospace; font-size: 16px; font-weight: 700; letter-spacing: 0.1em; }
.rdot { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--accent-text); }
.rdot i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.rscreen { position: relative; min-height: 250px; background: radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.25), transparent 50%), radial-gradient(circle at 80% 90%, rgba(45, 212, 191, 0.25), transparent 55%), var(--surface); }
.rwin { position: absolute; border-radius: 10px; border: 1px solid var(--border); background: var(--card-solid); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); overflow: hidden; }
.rwin::before { content: ""; display: block; height: 18px; background: var(--card); border-bottom: 1px solid var(--border); }
.rwin.a { left: 8%; top: 12%; width: 56%; height: 58%; }
.rwin.b { right: 7%; bottom: 10%; width: 44%; height: 46%; }
.rwin .ln { height: 6px; margin: 10px 12px 0; border-radius: 4px; background: var(--border); }
.rwin .ln.s { width: 50%; }
.rcursor { position: absolute; left: 48%; top: 52%; width: 18px; height: 18px; color: var(--text); filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); animation: cur 6s ease-in-out infinite; }
@keyframes cur { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(70px, -40px); } 60% { transform: translate(120px, 50px); } 80% { transform: translate(30px, 30px); } }
.rtaskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: var(--card); border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; padding: 0 12px; }
.rtaskbar i { width: 14px; height: 14px; border-radius: 4px; background: var(--border); }

/* reveal (only when JS present) */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; transition: none; } .rcursor { animation: none; } }
