/* ---------- Palette: Glass theme (temi/tema-5-glass.html) (change colours here) ---------- */
:root {
  --bg: #0b1020;          /* page background: dark slate-indigo (not black) */
  --bg-alt: #070b17;      /* alternate sections */
  --surface: #131b33;     /* cards */
  --surface-2: #1b2543;   /* inner tiles, inputs */
  --line: #29365e;
  --ink: #e8edff;         /* body text */
  --muted: #96a2c6;
  --white: #ffffff;
  --coral: #ff9a4d;       /* calls to action */
  --coral-dark: #e08844;
  --violet: #4f6bff;      /* highlight cards */
  --teal: #5ad1ff;        /* growth / success */
  --sky: #a07cff;         /* secondary charts */
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .35);
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px;
}
img, svg { max-width: 100%; }
a { color: var(--coral); }
h1, h2, h3 { color: var(--white); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; position: relative; }
.section.alt { background: var(--bg-alt); }
.section.peach { background:
  radial-gradient(600px 300px at 90% 0%, rgba(255, 154, 77, .12), transparent 70%), var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--coral); background: rgba(255, 154, 77, .12); padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); color: var(--white); padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}
.btn-cta { background: var(--coral); color: #2a1405; box-shadow: 0 10px 26px rgba(255, 154, 77, .35); }
.btn-cta:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-primary { background: var(--violet); color: #fff; }
.btn-primary:hover { background: #465ee0; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(11, 16, 32, .88);
  backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font-weight: 800; font-size: 1.2rem; }
.brand { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { font-size: .72rem; font-weight: 600; color: var(--teal); letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--coral); }
.nav-links .btn { padding: 10px 18px; font-size: .95rem; color: #2a1405; }
.nav-links .nav-login { border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; }
.nav-links .nav-login:hover { border-color: var(--coral); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 76px 0 84px; overflow: hidden; background:
  radial-gradient(600px 360px at 85% 0%, rgba(79, 107, 255, .35), transparent 70%),
  radial-gradient(520px 320px at 5% 30%, rgba(90, 209, 255, .16), transparent 70%),
  radial-gradient(500px 300px at 60% 100%, rgba(255, 154, 77, .14), transparent 70%),
  var(--bg); }
.hero .container { position: relative; z-index: 1; }
.hero-intro { text-align: center; max-width: 820px; margin: 0 auto 48px; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin: 30px 0 18px; }
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; color: var(--muted); font-size: .92rem; }
.trust-row span::before { content: "✓ "; color: var(--teal); font-weight: 800; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line);
  padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; color: var(--ink); margin-bottom: 20px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(90, 209, 255, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(90, 209, 255, 0); } }
.hero.has-wave { padding-bottom: 130px; }
.hero.has-wave::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40 C 240 0 480 0 720 30 S 1200 70 1440 25 V70 H0Z' fill='%234f6bff'/%3E%3C/svg%3E") center/100% 100% no-repeat;
}

/* ---------- Dashboard mock (hero) ---------- */
.dash {
  display: grid; grid-template-columns: 200px 1fr; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; max-width: 1040px; margin: 0 auto;
}
.dash-side { background: var(--bg-alt); padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; }
.dash-side .side-logo { display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 800; font-size: .95rem; margin: 0 8px 22px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: .86rem; font-weight: 600; }
.side-item i { width: 14px; height: 14px; border-radius: 4px; border: 2px solid currentColor; display: block; }
.side-item.active { background: var(--coral); color: #2a1405; }
.side-item .count { margin-left: auto; background: var(--violet); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 999px; }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink); }
.side-user .avatar { width: 30px; height: 30px; }
.dash-main { padding: 24px; display: grid; gap: 18px; min-width: 0; }
.dash-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dash-top small { color: var(--muted); font-size: .8rem; }
.dash-top h3 { margin: 0; font-size: 1.25rem; }
.dash-top .btn { padding: 9px 16px; font-size: .85rem; border-radius: 10px; box-shadow: none; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 16px; }
.tile { background: var(--surface-2); border-radius: 16px; padding: 16px; min-width: 0; }
.tile-title { font-size: .82rem; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; }
.tile-title b { color: var(--white); }
.kpi { display: flex; justify-content: space-between; align-items: end; gap: 10px; margin-top: 10px; }
.kpi + .kpi { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.kpi small { display: block; font-size: .72rem; color: var(--muted); }
.kpi strong { font-size: 1.5rem; color: var(--white); line-height: 1.1; }
.mini { display: flex; align-items: end; gap: 4px; height: 38px; }
.mini span { width: 7px; height: var(--h); border-radius: 3px; background: var(--violet); transform-origin: bottom; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.mini.teal span { background: var(--teal); }
.mini span:nth-child(2) { animation-delay: .06s; } .mini span:nth-child(3) { animation-delay: .12s; }
.mini span:nth-child(4) { animation-delay: .18s; } .mini span:nth-child(5) { animation-delay: .24s; }
.mini span:nth-child(6) { animation-delay: .3s; }
.big-num { font-size: 2.2rem; font-weight: 800; color: var(--white); margin: 6px 0 0; line-height: 1.1; }
.up { color: var(--teal); font-weight: 800; font-size: .78rem; }
.line-chart { width: 100%; height: 90px; margin-top: 6px; display: block; }
.line-chart path.line { fill: none; stroke: var(--violet); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s ease forwards .3s; }
.line-chart circle { fill: var(--coral); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.meter { margin-top: 12px; }
.meter-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink); }
.meter-row span:last-child { color: var(--muted); }
.track { height: 6px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.fill { height: 100%; width: var(--w); border-radius: 999px; background: var(--c, var(--teal)); animation: fill 1.4s cubic-bezier(.2, .8, .2, 1) both .3s; }
.dash-bottom { display: grid; grid-template-columns: 2fr 1.1fr; gap: 16px; }
.table-head, .t-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr .9fr; gap: 10px; align-items: center; font-size: .8rem; }
.table-head { color: var(--muted); padding: 10px 12px 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.t-row { padding: 9px 12px; border-radius: 10px; color: var(--ink); }
.t-row:nth-child(odd) { background: rgba(255, 255, 255, .03); }
.t-row .who { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--white); min-width: 0; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--teal)); flex: none; }
.tag { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; justify-self: start; }
.tag.ok { background: rgba(90, 209, 255, .16); color: var(--teal); }
.tag.sent { background: rgba(160, 124, 255, .16); color: #bca3ff; }
.tag.wait { background: rgba(255, 154, 77, .16); color: #ffb37a; }
.tile.violet { background: linear-gradient(140deg, #617aff, #4760e6); color: #fff; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.tile.violet .tile-title { color: #e5e9ff; }
.tile.violet .big-num { font-size: 2.4rem; }
.tile.violet .track { background: rgba(255, 255, 255, .25); }
.tile.violet .fill { background: var(--coral); }
.tile.violet small { color: #e5e9ff; font-size: .78rem; }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes fill { from { width: 0; } }

/* ---------- Activity strip ---------- */
.ticker { background: var(--violet); color: #fff; overflow: hidden; padding: 14px 0 16px; margin-top: -1px; }
.ticker-track { display: flex; gap: 44px; width: max-content; animation: scroll 40s linear infinite; font-size: .95rem; white-space: nowrap; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker b { color: #ffd7b8; }
@keyframes scroll { to { transform: translateX(calc(-50% - 22px)); } }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { --c: var(--coral); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--radius); padding: 26px 22px; }
.step:nth-child(2) { --c: var(--violet); } .step:nth-child(3) { --c: var(--teal); } .step:nth-child(4) { --c: var(--sky); }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--c); color: #070b17; font-weight: 800; margin-bottom: 16px;
}
.step:nth-child(2)::before { color: #fff; }
.step p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--violet); }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 154, 77, .15); color: var(--coral); margin-bottom: 16px; }
.feature:nth-child(3n+2) .icon { background: rgba(79, 107, 255, .2); color: #b0bcff; }
.feature:nth-child(3n) .icon { background: rgba(90, 209, 255, .15); color: var(--teal); }
.feature .icon svg { width: 24px; height: 24px; }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- Numbers band ---------- */
.band { padding: 0 0 88px; background: var(--bg); }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; text-align: center; }
.band-grid > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 12px; }
.band-grid > div:nth-child(1) b { color: var(--coral); } .band-grid > div:nth-child(2) b { color: #b0bcff; }
.band-grid > div:nth-child(3) b { color: var(--teal); } .band-grid > div:nth-child(4) b { color: var(--sky); }
.band b { display: block; font-size: 2.3rem; }
.band span { color: var(--muted); font-size: .95rem; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: 24px; justify-content: center; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--violet); box-shadow: 0 20px 50px rgba(79, 107, 255, .25); position: relative; }
.plan .badge { position: absolute; top: -14px; left: 32px; background: var(--violet); color: #fff; font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.price { font-size: 2.6rem; font-weight: 800; color: var(--white); margin: 8px 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .note { color: var(--muted); font-size: .92rem; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 28px; display: grid; gap: 10px; }
.plan li { padding-left: 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.plan .btn { margin-top: auto; }
.small-print { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq details[open] { border-color: var(--violet); }
.faq summary { cursor: pointer; font-weight: 700; color: var(--white); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--coral); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* ---------- CTA + Contact ---------- */
.cta-box { background: radial-gradient(500px 250px at 90% 0%, rgba(255, 154, 77, .45), transparent 70%), linear-gradient(135deg, #617aff, #3b50bf); color: #fff; border-radius: 24px; padding: 52px; text-align: center; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #eaedff; max-width: 560px; margin: 0 auto 24px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; }
.form label { font-weight: 600; font-size: .93rem; color: var(--white); display: grid; gap: 6px; }
.form input, .form textarea, .form select {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--white);
}
.form textarea { min-height: 120px; resize: vertical; }
.form-msg { color: var(--teal); font-weight: 600; margin: 0; }

/* ---------- Download page ---------- */
.dl-card { max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 36px; box-shadow: var(--shadow); text-align: center; }
.dl-meta { color: var(--muted); font-size: .92rem; margin-top: 12px; }
.req { max-width: 720px; margin: 36px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req .feature h3 { margin-bottom: 8px; }
.ol-steps { padding-left: 20px; color: var(--muted); }
.ol-steps li { margin-bottom: 8px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--muted); }
.notice { background: rgba(255, 154, 77, .12); border: 1px solid rgba(255, 154, 77, .4); color: #ffd2af; padding: 14px 18px; border-radius: 12px; font-size: .95rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); color: var(--muted); padding: 56px 0 28px; font-size: .93rem; border-top: 1px solid rgba(255, 255, 255, .06); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.site-footer h4 { color: var(--white); margin: 0 0 12px; font-size: .95rem; }
.site-footer a { color: var(--muted); text-decoration: none; display: block; margin-bottom: 8px; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { color: var(--white); margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

@media (prefers-reduced-motion: reduce) {
  .mini span, .fill, .ticker-track, .dot { animation: none; }
  .line-chart path.line { animation: none; stroke-dashoffset: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .dash { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-grid { grid-template-columns: 1fr 1fr; }
  .dash-grid .tile:last-child { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
  .steps, .features, .band-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-btn { display: block; }
  .nav-links {
    display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--bg);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin-top: 12px; border: 0; }
  .nav-links .nav-login { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
  .dash-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 60px; }
  .steps, .features, .pricing, .req, .dash-grid { grid-template-columns: 1fr; }
  .band-grid { grid-template-columns: 1fr 1fr; }
  .dash-main { padding: 16px; }
  .dash-top .btn { display: none; }
  .table-head, .t-row { grid-template-columns: 1fr auto; }
  .table-head > :nth-child(2), .table-head > :nth-child(3), .t-row > :nth-child(2), .t-row > :nth-child(3) { display: none; }
  .cta-box { padding: 34px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Log in page ---------- */
.login-wrap { max-width: 440px; margin: 0 auto; display: grid; gap: 18px; }
.login-wrap .notice a { color: inherit; }
.form input:disabled, .form button:disabled { opacity: .55; cursor: not-allowed; }
.login-links { margin: 0; text-align: center; font-size: .92rem; color: var(--muted); }
