/* Prestify — shared site styles (dark theme). Used by every page: main site, FAQ, module list, product pages. */

:root {
  --bg: #0E0E10;
  --bg-2: #131316;
  --card: #17171B;
  --card-hover: #1C1C22;
  --border: #26262D;
  --border-hi: #36363F;
  --text: #EDEDF0;
  --muted: #9A9AA6;
  --dim: #6B6B76;
  --accent: #6B16ED;
  --accent-hi: #8B47FF;
  --accent-soft: #C4A8FF;
  --accent-line: rgba(139, 71, 255, .4);
  --accent-bg: rgba(107, 22, 237, .13);
  --accent-glow: rgba(107, 22, 237, .35);
  --ok: #3FD99A;
  --radius: 8px;
  --radius-lg: 12px;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p a, li a, footer a { color: var(--accent-soft); }
p a:hover, li a:hover, footer a:hover { color: #fff; }
strong { color: var(--text); font-weight: 600; }
code {
  font-family: var(--mono); font-size: .88em; color: var(--accent-soft);
  background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: 5px; padding: 1px 5px;
}

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* header */
header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(14, 14, 16, .78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { display: block; height: 30px; width: auto; }

nav { display: flex; align-items: center; gap: 24px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
nav a:hover { color: var(--text); }
nav a.lang { font-family: var(--mono); font-size: 12px; border: 1px solid var(--border-hi); border-radius: 6px; padding: 3px 8px; }
nav a.btn { color: #fff; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: var(--radius);
  background: var(--accent); color: #fff; border: 1px solid var(--accent-hi);
  font-weight: 600; font-size: 15px; line-height: 1.4;
  transition: background .15s, box-shadow .2s, transform .15s;
}
.btn:hover { background: var(--accent-hi); box-shadow: 0 8px 30px var(--accent-glow); transform: translateY(-1px); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-ghost, .btn.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: var(--radius);
  background: transparent; border: 1px solid var(--border-hi); color: var(--text); font-weight: 600; font-size: 15px;
  transition: background .15s;
}
.btn-ghost:hover { background: var(--card-hover); box-shadow: none; transform: none; }
.btn-ghost.btn-sm { padding: 7px 14px; font-size: 14px; }

/* hero (product pages, module list) */
.hero { position: relative; text-align: center; padding: 88px 24px 72px; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 65% at 50% 30%, #000 30%, transparent 75%);
  opacity: .5;
}
.hero::after {
  content: ''; position: absolute; left: 50%; top: -200px; z-index: -1; width: min(820px, 100%); height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(107, 22, 237, .36), transparent);
  pointer-events: none;
}
.hero-icon { width: 88px; height: 88px; border-radius: 20px; margin-bottom: 22px; border: 1px solid var(--border-hi); box-shadow: 0 12px 40px rgba(0,0,0,.45); }
.hero h1 {
  font-size: clamp(36px, 6vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -1.8px;
  max-width: 860px; margin: 0 auto 18px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-hi), var(--accent-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { max-width: 600px; margin: 0 auto 30px; color: var(--muted); font-size: 18px; }
.hero .price { font-size: 26px; font-weight: 700; margin-bottom: 22px; letter-spacing: -.5px; }
.hero .price small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--dim); letter-spacing: 0; }
.hero .note { margin: 16px auto 0; font-size: 14px; color: var(--dim); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft);
  padding: 5px 12px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--accent-bg); margin-bottom: 26px;
}
.badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* terminal card (home page) */
.term {
  max-width: 760px; margin: 64px auto 0; text-align: left;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--border-hi); }
.term-bar b { margin-left: 10px; font-family: var(--mono); font-weight: 400; font-size: 12px; color: var(--dim); }
.term pre { font-family: var(--mono); font-size: 13.5px; line-height: 1.9; padding: 18px 22px 22px; color: var(--muted); overflow-x: auto; }
.term .p { color: var(--accent-soft); }
.term .ok { color: var(--ok); }
.term .w { color: var(--text); }

/* sections */
section { padding: 88px 0; border-top: 1px solid var(--border); }
.hero, .hero-home { border-top: 0; }
.section-white { background: var(--bg-2); }
h2 {
  font-size: clamp(26px, 4vw, 38px); font-weight: 700; letter-spacing: -1px; line-height: 1.15;
  text-align: center; margin-bottom: 40px;
}
.eyebrow { font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft); letter-spacing: .5px; text-align: center; margin-bottom: 12px; }
.eyebrow + h2 { margin-bottom: 14px; }
.sub { color: var(--muted); font-size: 17px; max-width: 580px; margin: 0 auto 48px; text-align: center; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 26px; transition: border-color .2s, background .2s;
}
.card:hover { border-color: var(--accent-line); background: var(--card-hover); }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.ico {
  width: 40px; height: 40px; border-radius: var(--radius); display: grid; place-items: center;
  background: var(--accent-bg); border: 1px solid var(--accent-line); color: var(--accent-soft);
  margin-bottom: 20px;
}
.ico svg { width: 20px; height: 20px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-2); }
.step-num { font-family: var(--mono); font-size: 13px; color: var(--accent-soft); margin-bottom: 18px; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* call-to-action boxes */
.contact-box, .buy-box, .about-box {
  border: 1px solid var(--accent-line); border-radius: 16px; padding: 60px 32px;
  background: radial-gradient(ellipse 60% 90% at 50% 0%, rgba(107, 22, 237, .3), transparent 70%), var(--bg-2);
}
.contact-box, .buy-box { text-align: center; }
.contact-box h2, .buy-box h2 { margin-bottom: 12px; }
.contact-box p, .buy-box p { color: var(--muted); font-size: 17px; margin: 0 auto 28px; max-width: 520px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; align-items: start; }
.shots figure { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
.shots figure:hover { border-color: var(--accent-line); }
.shots figure.wide { grid-column: 1 / -1; }
.shots img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--border); }
.shots figcaption { padding: 12px 18px 14px; font-size: 14px; color: var(--muted); }

/* check lists */
.facts { max-width: 760px; margin: 0 auto; list-style: none; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card); }
.facts li { padding: 14px 20px 14px 50px; border-bottom: 1px solid var(--border); position: relative; color: var(--muted); }
.facts li:last-child { border-bottom: 0; }
.facts.planned li::before { content: '○'; color: var(--accent-soft); }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.card p + p { margin-top: 12px; }
.card p a { color: var(--accent-soft); }
.facts li::before { content: '✓'; position: absolute; left: 20px; color: var(--ok); font-weight: 700; }

/* FAQ */
details {
  max-width: 760px; margin: 0 auto 10px; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; transition: border-color .2s;
}
details[open] { border-color: var(--accent-line); }
summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-family: var(--mono); color: var(--accent-soft); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: 10px; color: var(--muted); font-size: 15px; }

.page-hero { position: relative; text-align: center; padding: 88px 24px 56px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -1.5px; max-width: 800px; margin: 0 auto 18px; }
.page-hero p { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 18px; }
.faq-group { max-width: 760px; margin: 0 auto 64px; }
.faq-group:last-child { margin-bottom: 0; }
.faq-group h2 { text-align: left; font-size: 26px; margin-bottom: 8px; }
.section-lead { color: var(--muted); margin-bottom: 22px; }

.about-box { max-width: 860px; margin: 0 auto; }
.about-box h2 { margin-bottom: 24px; }
.about-box p { color: var(--muted); font-size: 16.5px; margin-bottom: 16px; }
.about-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.about-tags span {
  font-family: var(--mono); font-size: 12.5px; color: var(--accent-soft);
  border: 1px solid var(--accent-line); background: var(--accent-bg); border-radius: 6px; padding: 4px 10px;
}
.cta-center { text-align: center; }

/* module list */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.module {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s, transform .2s;
}
.module:hover { border-color: var(--accent-line); transform: translateY(-3px); }
.module-shot { display: block; aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-bottom: 1px solid var(--border); }
.module-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s; }
.module:hover .module-shot img { transform: scale(1.03); }
.module-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 26px; }
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.module h3 { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.module .tag { font-family: var(--mono); font-size: 11.5px; color: var(--dim); border: 1px solid var(--border-hi); border-radius: 6px; padding: 2px 8px; }
.module .tagline, .module-body > p { color: var(--muted); margin: 6px 0 18px; }
.module ul { list-style: none; margin-bottom: 22px; }
.module li { padding: 5px 0 5px 26px; position: relative; font-size: 15px; color: var(--muted); }
.module li::before { content: '✓'; position: absolute; left: 2px; color: var(--ok); font-weight: 700; }
.module-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.module .price { font-size: 22px; font-weight: 700; letter-spacing: -.4px; }
.module .price small { display: block; font-family: var(--mono); font-weight: 400; color: var(--dim); font-size: 12px; letter-spacing: 0; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 32px 0 40px; color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; }
footer .brand img { height: 22px; }

/* legal pages (privacy policy) */
.legal { max-width: 760px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; text-align: left; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p { margin-top: 12px; }
.legal ul, .legal ol { margin: 12px 0 0 20px; }
.legal li + li { margin-top: 6px; }

/* blog (blog/, blog/en/) */
.article h3 { font-size: 18px; margin: 26px 0 10px; }
.article .meta { font-size: 14px; color: var(--dim); margin-bottom: 28px; }
.article pre {
  margin: 14px 0; padding: 16px 18px; overflow-x: auto; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; line-height: 1.7;
}
.article pre code { background: none; border: 0; padding: 0; color: var(--text); font-size: inherit; }
.article-cta {
  margin-top: 44px; padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--accent-bg); border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
}
.article-cta p { color: var(--text); font-weight: 600; margin: 0; }
.posts { display: grid; gap: 16px; max-width: 760px; margin: 0 auto; }
.post-card { display: block; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s, background .2s; }
.post-card:hover { background: var(--card-hover); border-color: var(--accent-line); }
.post-card h2 { font-size: 20px; line-height: 1.3; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: 15px; }
.post-card span { display: inline-block; margin-top: 12px; color: var(--accent-soft); font-size: 14px; font-weight: 600; }

/* cookie banner (assets/consent.js) */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px 20px; padding: 16px 18px;
  background: var(--card); border: 1px solid var(--border-hi); border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); font-size: 14px; color: var(--muted);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { flex: 1; }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn { cursor: pointer; font-family: inherit; border: 0; }
.cookie-actions .btn-ghost { border: 1px solid var(--border-hi); }

@media (max-width: 860px) {
  .cards-2 { grid-template-columns: 1fr; }
  nav { gap: 16px; }
  nav a:not(.lang):not(.btn) { display: none; }
  .cards, .steps, .modules, .shots { grid-template-columns: 1fr; }
  .hero, .page-hero { padding: 64px 16px 56px; }
  section { padding: 64px 0; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .cookie-banner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; text-align: center; }
  .contact-box, .buy-box, .about-box { padding: 44px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
