:root {
  --bg-base:      #09090E;
  --bg-primary:   #0D0E13;
  --bg-surface:   #13141C;
  --bg-surface2:  #1A1C28;
  --bg-surface3:  #212336;
  --bg-hover:     #1E2032;

  --accent:         #8B7FF0;
  --accent-dim:     rgba(139,127,240,0.12);
  --accent-glow:    rgba(139,127,240,0.22);
  --accent-hover:   #7A6EDF;
  --accent-gift:    #F0618B;
  --accent-gift-dim:rgba(240,97,139,0.12);
  --accent-live:    #6FCF7F;
  --accent-live-dim:rgba(111,207,127,0.12);

  --text-primary: #E8E9EE;
  --text-secondary:#A0A3B1;
  --text-muted:   #5C6079;
  --text-error:   #E05C5C;

  --border:       rgba(255,255,255,0.06);
  --border-subtle:rgba(255,255,255,0.04);
  --border-accent:rgba(139,127,240,0.3);
  --border-live:  rgba(111,207,127,0.3);

  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
  --font-heading: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Cascadia Code', monospace;

  --radius:    12px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-xs: 5px;
  --radius-pill:999px;

  --t: 150ms ease;
  --t-slow: 300ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

html { display: block; }
body { width: 100%; }

[lang="en"] .pl, [lang="pl"] .en {
  display: none !important;
}
html:not([lang="pl"]) .pl, [hidden] { display: none !important; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--t);
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header */
.header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 14, 19, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: url('/brand/logo-te.webp') center / contain no-repeat;
  border-radius: 20%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.logo-icon svg { display:none; }
.logo-icon::before {
  content:none;
}
.logo-icon img { width:100%; height:100%; object-fit:contain; display:block; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 20px;
}
body[data-page="home"] .header .container { height:auto; min-height:72px; padding-top:10px; padding-bottom:10px; flex-wrap:wrap; gap:12px; }
body[data-page="home"] .nav { flex-wrap:wrap; gap:12px 20px; }

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
}

.language-picker { display:flex; align-items:center; }
.locale-picker { position:relative; display:inline-flex; }
.locale-picker-native {
  position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0; pointer-events:none;
}
.locale-flag {
  display:block; width:20px; height:14px; flex:none; border-radius:2px;
  box-shadow:0 0 0 1px rgba(255,255,255,.28);
}
.locale-picker-button {
  display:inline-flex; align-items:center; gap:8px; min-height:32px;
  padding:4px 10px; background:var(--bg-surface2); border:1px solid var(--border);
  border-radius:var(--radius-sm); color:var(--text-secondary); cursor:pointer;
  font:13px var(--font-ui);
}
.locale-picker-button span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:148px; }
.locale-picker-button:hover, .locale-picker-button:focus { border-color:var(--border-accent); color:var(--text-primary); }
.locale-picker-menu {
  max-height:min(320px, 60vh); overflow:auto; padding:6px;
  background:var(--bg-surface); border:1px solid var(--border); border-radius:10px;
  box-shadow:0 16px 40px rgba(0,0,0,.45);
}
.locale-option {
  display:flex; align-items:center; gap:8px; width:100%; text-align:start;
  background:transparent; color:var(--text-secondary); border:0; border-radius:8px;
  padding:8px 10px; cursor:pointer; font:13px var(--font-ui);
}
.locale-option:hover, .locale-option.active { background:var(--bg-surface2); color:var(--text-primary); }
.lang-select {
  appearance: auto;
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  font: 13px var(--font-ui);
  min-height: 32px;
  padding: 4px 8px;
}
.lang-select:hover, .lang-select:focus { border-color: var(--border-accent); color: var(--text-primary); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-ui);
  transition: all var(--t);
  cursor: pointer;
  border: none;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(139, 127, 240, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-surface2);
  border-color: var(--border-subtle);
}

.btn-live {
  background: var(--accent-live-dim);
  color: var(--accent-live);
  border: 1px solid var(--border-live);
}
.btn-live:hover {
  background: rgba(111, 207, 127, 0.2);
}

/* Identity / anti-phishing clarity */
.identity-banner {
  background: rgba(224, 92, 92, 0.08);
  border-bottom: 1px solid rgba(224, 92, 92, 0.28);
  color: var(--text-secondary);
}
.identity-banner-inner {
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
}
.identity-banner p {
  margin: 0 auto;
  max-width: 820px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-primary);
  font-weight: 500;
}

/* Beta notice */
.beta-banner {
  background: linear-gradient(90deg, rgba(139, 127, 240, 0.16), rgba(111, 207, 127, 0.1));
  border-bottom: 1px solid var(--border-accent);
  color: var(--text-secondary);
}

.beta-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding-top: 8px;
  padding-bottom: 8px;
  text-align: center;
}

.beta-badge {
  flex: 0 0 auto;
  padding: 3px 9px;
  border: 1px solid var(--border-live);
  border-radius: var(--radius-pill);
  background: var(--accent-live-dim);
  color: var(--accent-live);
  font: 600 11px/1.4 var(--font-mono);
  letter-spacing: .08em;
}

.beta-banner p {
  font-size: 14px;
  line-height: 1.45;
}

/* Hero */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--accent-live-dim);
  border: 1px solid var(--border-live);
  color: var(--accent-live);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-live);
  box-shadow: 0 0 8px var(--accent-live);
}

.hero h1 {
  font-size: 56px;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 800px;
  margin-inline: auto;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero .hero-disclaimer {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-surface2);
}
.footer-company {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-secondary);
}

/* Features Grid */
.features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 36px;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.trust {
  padding: 32px 0 96px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.trust-card {
  padding: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.trust-card .eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-live);
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trust-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.trust-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform var(--t), border-color var(--t);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Legal Content / Text Pages */
.legal-page {
  padding: 80px 0;
  flex: 1;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.legal-content h1 {
  font-size: 32px;
  margin-bottom: 16px;
}

.legal-content .last-updated {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 40px;
  display: block;
}

.legal-content h2 {
  font-size: 20px;
  margin: 32px 0 16px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.legal-content h3 {
  font-size: 16px;
  margin: 24px 0 12px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  margin: 0 0 24px 24px;
}

.legal-content li {
  margin-bottom: 8px;
}

.legal-content strong {
  color: var(--text-primary);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-primary);
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 300px;
  margin-bottom: 24px;
}

.footer-disclaimer {
  padding: 16px;
  background: var(--bg-surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links h4 {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Responsive */
@media (max-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header .container {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    height: auto;
    min-height: 72px;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .nav { display: contents; }
  .nav-links {
    position: static;
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 20px;
    padding: 8px 16px;
    background: rgba(13, 14, 19, 0.96);
    border-top: 1px solid var(--border);
  }
  .nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    gap: 8px;
  }
  .nav-actions .btn { padding-inline: 12px; }
  .legal-content { padding: 32px 24px; }
  .footer-bottom { align-items:flex-start; flex-direction:column; gap:16px; }
  .footer-bottom .footer-links { flex-wrap:wrap; }
}

@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .beta-banner-inner {
    align-items: flex-start;
    gap: 8px;
    justify-content: flex-start;
    text-align: left;
  }
  .beta-banner p { font-size: 13px; }
  .logo { font-size: 15px; gap: 8px; }
  .nav-actions .btn-outline { display: none; }
  .nav-actions .btn { padding-inline: 10px; font-size: 13px; }
  .locale-picker-button span { max-width: 92px; }
  .hero h1 { font-size: clamp(32px, 10vw, 40px); letter-spacing: -0.8px; }
  .hero { padding-bottom: 56px; }
  .hero-actions { align-items:stretch; flex-direction:column; }
  .feature-card { padding: 24px; }
  .legal-content { padding: 26px 18px; }
}

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

/* Keep the complete brand and navigation usable on narrow legal/contact pages. */
@media (max-width:480px){
  body:not([data-page="home"]) .header .logo{grid-column:1/-1;grid-row:1;justify-self:center}
  body:not([data-page="home"]) .header .nav-actions{grid-column:1/-1;grid-row:2;justify-self:center}
  body:not([data-page="home"]) .header .nav-links{grid-column:1/-1;grid-row:3;flex-wrap:wrap}
}

/* ===== Homepage (scoped) ===== */
body[data-page="home"] { --hp-ink:#07070C; }
body[data-page="home"] .hp-hero { padding:72px 0 36px; position:relative; overflow:hidden; }
body[data-page="home"] .hp-hero::before { content:''; position:absolute; inset:-160px -10% auto; height:520px; background:radial-gradient(ellipse 42% 80% at 78% 20%, rgba(240,97,139,.16), transparent 70%), radial-gradient(ellipse 50% 90% at 12% 0%, var(--accent-glow), transparent 68%); pointer-events:none; }
body[data-page="home"] .hp-hero-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr); gap:40px; align-items:center; }
body[data-page="home"] .hp-hero-copy { position:relative; max-width:680px; }
body[data-page="home"] .hp-hero h1 { font-size:clamp(36px,5vw,62px); letter-spacing:-0.04em; line-height:1.02; margin-bottom:18px; }
body[data-page="home"] .hp-console { position:relative; border:1px solid var(--border); border-radius:18px; background:linear-gradient(180deg,#171924,#101118); box-shadow:0 30px 80px rgba(0,0,0,.45); overflow:hidden; }
body[data-page="home"] .hp-console-bar { display:flex; align-items:center; gap:12px; padding:12px 14px; border-bottom:1px solid var(--border); }
body[data-page="home"] .hp-console-bar em { margin-left:auto; font:600 11px/1 var(--font-mono); letter-spacing:.14em; color:var(--accent-live); font-style:normal; }
body[data-page="home"] .hp-console-canvas { position:relative; height:250px; margin:16px; border-radius:14px; overflow:hidden; background:radial-gradient(circle at 70% 20%, rgba(139,127,240,.35), transparent 42%), linear-gradient(160deg,#24143f,#0b1024 60%, #071018); }
body[data-page="home"] .hp-mock-goal, body[data-page="home"] .hp-mock-rank, body[data-page="home"] .hp-mock-chat { position:absolute; border:1px solid rgba(255,255,255,.12); background:rgba(8,10,18,.72); border-radius:12px; }
body[data-page="home"] .hp-mock-goal { left:16px; right:16px; top:18px; height:46px; padding:14px; }
body[data-page="home"] .hp-mock-goal b, body[data-page="home"] .hp-mock-goal i { display:block; height:8px; border-radius:99px; background:rgba(255,255,255,.12); }
body[data-page="home"] .hp-mock-goal i { margin-top:8px; width:68%; background:linear-gradient(90deg,#8b7ff0,#f0618b); }
body[data-page="home"] .hp-mock-rank { left:16px; bottom:16px; width:42%; display:grid; gap:8px; padding:12px; }
body[data-page="home"] .hp-mock-rank span { display:block; height:10px; border-radius:99px; background:rgba(255,255,255,.14); }
body[data-page="home"] .hp-mock-rank span:nth-child(2) { width:78%; } body[data-page="home"] .hp-mock-rank span:nth-child(3) { width:56%; }
body[data-page="home"] .hp-mock-chat { right:16px; bottom:16px; width:46%; display:grid; gap:8px; padding:12px; }
body[data-page="home"] .hp-mock-chat span { height:12px; border-radius:99px; background:rgba(255,255,255,.16); }
body[data-page="home"] .hp-mock-chat span:last-child { width:70%; }
body[data-page="home"] .hp-metrics { display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--border); }
body[data-page="home"] .hp-metrics div { padding:14px 12px 16px; text-align:center; }
body[data-page="home"] .hp-metrics div + div { border-left:1px solid var(--border); }
body[data-page="home"] .hp-metrics strong { display:block; font:700 22px/1 var(--font-heading); }
body[data-page="home"] .hp-metrics span { display:block; margin-top:6px; color:var(--text-secondary); font-size:12px; }
body[data-page="home"] .hp-lead { font-size:18px; color:var(--text-secondary); max-width:640px; margin-bottom:32px; }
body[data-page="home"] .hp-actions { display:flex; flex-wrap:wrap; align-items:center; gap:14px; }
body[data-page="home"] .hp-textlink { font-size:14px; font-weight:600; padding:10px 4px; }
body[data-page="home"] .hp-hero .hero-disclaimer { margin:28px 0 0; max-width:640px; text-align:left; font-size:13px; color:var(--text-secondary); padding:12px 16px; border:1px solid var(--border); border-left:3px solid var(--accent-gift); border-radius:var(--radius-sm); background:var(--bg-surface); }
body[data-page="home"] .hp-eyebrow { display:inline-block; font:500 11px/1.4 var(--font-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--accent-live); margin-bottom:12px; }

body[data-page="home"] .hp-demo { padding:32px 0 72px; scroll-margin-top:90px; }
body[data-page="home"] .hp-demo-head { max-width:640px; margin-bottom:28px; }
body[data-page="home"] .hp-demo-head h2, body[data-page="home"] .hp-sec-head h2 { font-size:clamp(26px,3.4vw,38px); letter-spacing:-0.025em; margin-bottom:12px; }
body[data-page="home"] .hp-demo-head p, body[data-page="home"] .hp-sec-head p { color:var(--text-secondary); }
body[data-page="home"] .hp-demo-head .hp-access-note {
  color:var(--text-primary);
  font-weight:700;
  line-height:1.5;
  margin-bottom:16px;
}
body[data-page="home"] .hp-demo-head .hp-updates-note {
  margin:0 0 16px;
  padding:14px 18px;
  border:1px solid rgba(167,139,250,.35);
  border-left:4px solid var(--accent);
  border-radius:8px;
  background:
    linear-gradient(110deg,transparent 25%,rgba(196,181,253,.2) 42%,rgba(165,243,252,.3) 50%,rgba(249,168,212,.2) 58%,transparent 75%),
    linear-gradient(120deg,rgba(139,127,240,.18),rgba(34,211,238,.08),rgba(236,72,153,.12));
  background-size:250% 100%,100% 100%;
  background-position:140% 0,0 0;
  color:var(--text-primary);
  font-size:clamp(16px,1.6vw,19px);
  font-weight:700;
  line-height:1.5;
  text-shadow:0 0 14px rgba(196,181,253,.25);
  animation:hp-updates-pulse 3.6s ease-in-out infinite,hp-updates-shimmer 5.4s linear infinite;
}
@keyframes hp-updates-pulse {
  0%,100% { transform:scale(1); border-color:rgba(167,139,250,.55); box-shadow:0 0 8px rgba(139,127,240,.12); }
  40% { transform:scale(1.012); border-color:rgba(103,232,249,.8); box-shadow:0 0 24px rgba(34,211,238,.22),0 0 12px rgba(139,127,240,.18); }
  70% { transform:scale(1.006); border-color:rgba(249,168,212,.7); box-shadow:0 0 18px rgba(236,72,153,.2); }
}
@keyframes hp-updates-shimmer {
  from { background-position:140% 0,0 0; }
  to { background-position:-140% 0,0 0; }
}
@media (prefers-reduced-motion:reduce) {
  body[data-page="home"] .hp-demo-head .hp-updates-note {
    animation:none;
    transform:none;
  }
}
body[data-page="home"] .hp-demo-layout { display:grid; grid-template-columns:minmax(0,1fr) 320px; gap:24px; align-items:start; }
body[data-page="home"] .hp-window { background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:0 24px 60px rgba(0,0,0,.45); min-width:0; }
body[data-page="home"] .hp-window-bar { display:flex; align-items:center; gap:14px; padding:10px 14px; background:var(--bg-primary); border-bottom:1px solid var(--border); }
body[data-page="home"] .hp-dots { display:flex; gap:6px; }
body[data-page="home"] .hp-dots i { width:9px; height:9px; border-radius:50%; background:var(--bg-surface3); }
body[data-page="home"] .hp-select-wrap { flex:1; min-width:0; display:block; }
body[data-page="home"] .hp-select-wrap select { width:100%; min-height:36px; background:var(--bg-surface2); color:var(--text-primary); border:1px solid var(--border); border-radius:var(--radius-sm); padding:6px 10px; font:13px var(--font-ui); }
body[data-page="home"] .hp-select-wrap select:focus { border-color:var(--border-accent); }
body[data-page="home"] .hp-preview { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; background:
  linear-gradient(45deg,#0b0b12 25%,transparent 25% 75%,#0b0b12 75%) 0 0/24px 24px,
  linear-gradient(45deg,#0b0b12 25%,#0f1018 25% 75%,#0b0b12 75%) 12px 12px/24px 24px; }
body[data-page="home"] #public-effects-stage { position:relative; width:1280px; height:720px; transform-origin:top left; }
body[data-page="home"] .hp-controls { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px; border-top:1px solid var(--border); }
body[data-page="home"] .hp-controls .btn { padding:10px 16px; }
body[data-page="home"] .hp-controls .btn[aria-pressed="true"] { border-color:var(--border-live); color:var(--accent-live); }
body[data-page="home"] .hp-status { margin-left:auto; font:12px var(--font-mono); color:var(--text-secondary); }
body[data-page="home"] .hp-howto { background:var(--bg-primary); border:1px solid var(--border); border-radius:var(--radius); padding:22px; }
body[data-page="home"] .hp-isolation { font-size:13px; line-height:1.5; color:var(--text-primary); padding:12px 14px; margin-bottom:22px; background:var(--accent-live-dim); border:1px solid var(--border-live); border-radius:var(--radius-sm); }
body[data-page="home"] .hp-howto h3 { font-size:17px; margin-bottom:14px; }
body[data-page="home"] .hp-steps { list-style:none; counter-reset:s; display:grid; gap:14px; }
body[data-page="home"] .hp-steps li { counter-increment:s; position:relative; padding-left:38px; font-size:14px; color:var(--text-secondary); }
body[data-page="home"] .hp-steps li::before { content:counter(s); position:absolute; left:0; top:-1px; width:26px; height:26px; border-radius:50%; display:grid; place-items:center; font:600 12px var(--font-mono); background:var(--accent-dim); color:var(--accent); border:1px solid var(--border-accent); }

body[data-page="home"] .hp-features { padding:32px 0 72px; }
body[data-page="home"] .hp-sec-head { max-width:620px; margin-bottom:36px; }
body[data-page="home"] .hp-feature-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:16px; }
body[data-page="home"] .hp-feature { grid-column:span 2; background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); padding:26px; transition:border-color var(--t), transform var(--t); }
body[data-page="home"] .hp-feature:hover { border-color:var(--border-accent); transform:translateY(-3px); }
body[data-page="home"] .hp-feature-wide { grid-column:span 4; background:linear-gradient(135deg,var(--bg-surface2),var(--bg-surface)); }
body[data-page="home"] .hp-ficon { width:40px; height:40px; border-radius:var(--radius-sm); display:grid; place-items:center; background:var(--accent-dim); color:var(--accent); margin-bottom:18px; }
body[data-page="home"] .hp-feature h3 { font-size:18px; margin-bottom:8px; }
body[data-page="home"] .hp-feature p { font-size:14px; color:var(--text-secondary); }

body[data-page="home"] .hp-platforms { padding:0 0 64px; }
body[data-page="home"] .hp-platform-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
body[data-page="home"] .hp-platform-grid article { padding:26px; border:1px dashed var(--border-accent); border-radius:var(--radius); background:var(--bg-primary); }
body[data-page="home"] .hp-platform-grid h3 { font-size:20px; margin-bottom:8px; }
body[data-page="home"] .hp-platform-grid p { color:var(--text-secondary); font-size:14px; }

body[data-page="home"] .trust-grid { grid-template-columns:repeat(3,1fr); }
body[data-page="home"] .trust .section-header { text-align:left; max-width:680px; margin-bottom:32px; }

body[data-page="home"] .hp-more { padding:8px 0 72px; }
body[data-page="home"] .hp-more-list { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; list-style:none; }
body[data-page="home"] .hp-more-list li { padding:16px 18px; border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--bg-surface); color:var(--text-primary); font:600 14px/1.35 var(--font-heading); }
body[data-page="home"] .hp-cta { padding:0 0 80px; }
body[data-page="home"] .hp-cta-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:32px; border-radius:20px; border:1px solid var(--border-accent); background:linear-gradient(120deg,rgba(139,127,240,.16),rgba(240,97,139,.08) 55%, #13141c); }
body[data-page="home"] .hp-cta h2 { font-size:clamp(26px,3vw,36px); letter-spacing:-.03em; margin-bottom:8px; }
body[data-page="home"] .hp-cta p { color:var(--text-secondary); max-width:640px; }
body[data-page="home"] .hpg { scroll-margin-top:90px; }
body[data-page="home"] .hpg-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:22px; }
body[data-page="home"] .hpg-stage { position:relative; width:min(100%, calc(min(680px, 72vh) * 9 / 16)); aspect-ratio:9/16; height:auto; margin:0 auto; overflow:hidden; background:#07070d; }
body[data-page="home"] .hpg-stage.wide { width:100%; height:auto; aspect-ratio:16/9; }
body[data-page="home"] .hpg-stage iframe { position:absolute; top:0; left:0; width:720px; height:1280px; border:0; transform-origin:top left; background:transparent; }
body[data-page="home"] .hpg-stage iframe.wide { width:1280px; height:720px; }
@media (max-width:992px) {
  body[data-page="home"] .hp-hero-grid, body[data-page="home"] .hp-demo-layout, body[data-page="home"] .hp-cta-inner { grid-template-columns:1fr; }
  body[data-page="home"] .hp-cta-inner { display:grid; }
  body[data-page="home"] .hp-more-list, body[data-page="home"] .hpg-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="home"] .hp-feature, body[data-page="home"] .hp-feature-wide { grid-column:span 3; }
  body[data-page="home"] .hp-feature-wide { grid-column:span 6; }
}
@media (max-width:640px) {
  body[data-page="home"] .trust-grid { grid-template-columns:minmax(0,1fr); }
  body[data-page="home"] .hp-hero { padding-top:52px; }
  body[data-page="home"] .hp-feature, body[data-page="home"] .hp-feature-wide { grid-column:span 6; }
  body[data-page="home"] .hp-platform-grid { grid-template-columns:1fr; }
  body[data-page="home"] .hp-status { margin-left:0; flex-basis:100%; }
  body[data-page="home"] .hp-dots { display:none; }
  body[data-page="home"] .hp-actions .btn { flex:1 1 100%; }
}

/* ===== Widgets demo ===== */
body[data-page="home"] .hpw { padding-top:48px; scroll-margin-top:90px; }
body[data-page="home"] .hpw-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; margin-bottom:22px; }
body[data-page="home"] .hpw-card { display:flex; flex-direction:column; gap:10px; align-items:flex-start; text-align:left; padding:14px; min-height:84px; background:var(--bg-surface); color:var(--text-primary); border:1px solid var(--border); border-radius:var(--radius-sm); font:600 14px/1.3 var(--font-heading); cursor:pointer; transition:border-color var(--t), background var(--t), transform var(--t); }
body[data-page="home"] .hpw-card:hover { border-color:var(--border-accent); background:var(--bg-surface2); transform:translateY(-2px); }
body[data-page="home"] .hpw-card[aria-pressed="true"] { border-color:var(--accent); background:var(--accent-dim); }
body[data-page="home"] .hpw-num { font:500 11px var(--font-mono); letter-spacing:.1em; color:var(--accent-live); }
body[data-page="home"] .hpw-card[aria-pressed="true"] .hpw-num { color:var(--accent); }
body[data-page="home"] .hpw-style { flex:0 1 180px; }
body[data-page="home"] .hpw-preview { position:relative; width:100%; aspect-ratio:3/2; overflow:hidden; background:#0b0b12; }
body[data-page="home"] .hpw-preview iframe { position:absolute; top:0; left:0; width:960px; height:640px; border:0; transform-origin:top left; background:transparent; }
body[data-page="home"] .hpw-desc { font-size:14px; color:var(--text-secondary); }
@media (max-width:992px) { body[data-page="home"] .hpw-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (max-width:640px) {
  body[data-page="home"] .hpw-cards { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="home"] .hp-window-bar { flex-wrap:wrap; }
  body[data-page="home"] .hpw-style { flex:1 1 100%; }
}

/* ===== Pricing ===== */
body[data-page="home"] .hp-pricing { padding:0 0 72px; scroll-margin-top:90px; }
body[data-page="home"] .hp-pay-notice { margin-bottom:20px; padding:14px 18px; border:1px solid rgba(240,97,139,.35); border-left:3px solid var(--accent-gift); border-radius:var(--radius-sm); background:var(--bg-surface); color:var(--text-primary); font-size:14px; }
body[data-page="home"] .hp-plan-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; align-items:stretch; }
body[data-page="home"] .hp-plan { position:relative; display:flex; flex-direction:column; gap:14px; padding:26px; background:var(--bg-surface); border:1px solid var(--border); border-radius:var(--radius); min-width:0; }
body[data-page="home"] .hp-plan-main { background:linear-gradient(135deg,var(--bg-surface2),var(--bg-surface)); border-color:var(--border-accent); }
body[data-page="home"] .hp-plan-badge { align-self:flex-start; padding:3px 9px; border:1px solid var(--border-live); border-radius:var(--radius-pill); background:var(--accent-live-dim); color:var(--accent-live); font:600 11px/1.4 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; }
body[data-page="home"] .hp-plan h3 { font-size:20px; overflow-wrap:anywhere; hyphens:auto; }
body[data-page="home"] .hp-price { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 8px; }
body[data-page="home"] .hp-price strong { font:700 36px/1 var(--font-heading); letter-spacing:-.03em; }
body[data-page="home"] .hp-price span { color:var(--text-secondary); font-size:14px; }
body[data-page="home"] .hp-plan-desc { color:var(--text-secondary); font-size:14px; }
body[data-page="home"] .hp-plan ul { list-style:none; display:grid; gap:8px; flex:1; }
body[data-page="home"] .hp-plan li { position:relative; padding-left:20px; font-size:14px; color:var(--text-primary); overflow-wrap:anywhere; }
body[data-page="home"] .hp-plan li::before { content:''; position:absolute; left:2px; top:.55em; width:8px; height:8px; border-radius:50%; background:var(--accent-live); }
body[data-page="home"] .hp-plan .btn, body[data-page="home"] .hp-agency .btn { line-height:1.3; text-align:center; text-wrap:balance; }
body[data-page="home"] .hp-agency { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:16px; padding:22px 26px; border:1px dashed var(--border-accent); border-radius:var(--radius); background:var(--bg-primary); }
body[data-page="home"] .hp-agency h3 { font-size:18px; margin-bottom:4px; }
body[data-page="home"] .hp-agency p { color:var(--text-secondary); font-size:14px; }
@media (max-width:992px) { body[data-page="home"] .hp-agency { flex-direction:column; align-items:stretch; } }

/* Live published price cards */
body[data-page="home"] .hp-plan-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr)); }
body[data-page="home"] .hp-live-status { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px; margin-top:16px; padding:14px 18px; border:1px dashed var(--border-accent); border-radius:var(--radius-sm); color:var(--text-secondary); font-size:14px; }
body[data-page="home"] .hp-live-status[hidden] { display:none; }
body[data-page="home"] .hp-plan-live .hp-price strong { overflow-wrap:anywhere; }
