/* Profitly-Hub Tracker — marketing site, design A «Орбіта» (dark, like the CRM sign-in). */
:root {
  --bg: #070b1a; --bg2: #0b1124; --line: rgba(255,255,255,.08); --line2: rgba(255,255,255,.14);
  --text: #e2e8f0; --muted: #94a3c4; --dim: #64748b;
  --violet: #8b5cf6; --indigo: #6366f1; --cyan: #22d3ee; --pink: #f472b6; --green: #4ade80;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7,11,26,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 26px; height: 68px; }
.top .logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 14px; color: #a5b4d4; }
.nav a:hover { color: #fff; }
.top .sp { margin-left: auto; }
.lang { font-size: 13px; font-weight: 700; color: #a5b4d4; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line2); }
.lang:hover { color: #fff; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 12px; font-weight: 700; font-size: 14.5px; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; cursor: pointer; border: 0; font-family: inherit; }
.btn:hover { transform: translateY(-1px); }
.btn-p { background: linear-gradient(90deg, var(--indigo), #a855f7); color: #fff; box-shadow: 0 10px 30px rgba(124,58,237,.45); }
.btn-p:hover { box-shadow: 0 14px 38px rgba(124,58,237,.6); }
.btn-g { border: 1px solid var(--line2); color: var(--text); background: rgba(255,255,255,.03); }
.btn-g:hover { background: rgba(255,255,255,.07); }
.top .btn { height: 40px; padding: 0 16px; font-size: 13.5px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 40px; background: radial-gradient(720px 400px at 72% 18%, rgba(99,102,241,.30), transparent 70%), radial-gradient(620px 320px at 8% 82%, rgba(34,211,238,.14), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(165,180,252,.3); color: #c7d2fe; font-size: 12.5px; font-weight: 600; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0; }
.grad { background: linear-gradient(90deg, var(--cyan), #a78bfa, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: #a5b4d4; max-width: 560px; margin: 0; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hint { margin-top: 14px; font-size: 13px; color: var(--dim); }

/* The brand hub — the same animated graphic as the panel sign-in page
   (frontend/src/ph/ph-login.css .phl-hub): sources orbit the logo on the outer
   ring, CRM and Postback on the inner one; rings turn, chips stay upright. */
.hub-wrap { display: flex; align-items: center; justify-content: center; height: 460px; }
.hub { position: relative; width: 380px; height: 380px; flex-shrink: 0; }
.hub-ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(165,180,252,.18); }
.hub-ring--1 { width: 380px; height: 380px; animation: hub-spin 90s linear infinite; }
.hub-ring--2 { width: 252px; height: 252px; border-style: dashed; border-color: rgba(165,180,252,.22); animation: hub-spin 60s linear infinite reverse; }
.hub-ring--3 { width: 132px; height: 132px; border: 0; background: radial-gradient(circle, rgba(99,102,241,.45) 0%, rgba(99,102,241,0) 70%); }
.hub-core { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: rgba(15,23,42,.85); border: 1px solid rgba(165,180,252,.35); box-shadow: 0 0 40px rgba(99,102,241,.45), inset 0 1px 1px rgba(255,255,255,.12); }
.hub-core img { width: 52px; height: 52px; border-radius: 14px; }
.hub-chip { position: absolute; left: 50%; top: 50%; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)) rotate(calc(var(--a) * -1)); }
.hub-chip > span { display: block; translate: -50% -50%; white-space: nowrap; padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #e0e7ff; background: rgba(30,27,75,.85); border: 1px solid rgba(129,140,248,.40); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.hub-ring--1 .hub-chip > span { animation: hub-spin 90s linear infinite reverse; }
.hub-ring--2 .hub-chip > span { animation: hub-spin 60s linear infinite; }
.hub-chip--out > span { color: #042f2e; background: linear-gradient(to bottom right, #5eead4, #a5b4fc); border-color: transparent; }
@keyframes hub-spin { to { transform: rotate(360deg); } }

.proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.proof div { padding: 18px 20px; border-radius: 16px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.proof b { display: block; font-size: 30px; letter-spacing: -.02em; }
.proof span { font-size: 13px; color: #8fa0c4; }

/* big screenshot */
.shot { margin-top: 56px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 40px 120px rgba(76,29,149,.45), 0 0 0 1px rgba(255,255,255,.03); background: var(--bg2); }
.shot .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #0d1428; border-bottom: 1px solid var(--line); }
.shot .bar i { width: 10px; height: 10px; border-radius: 50%; }
.shot .bar span { margin-left: 12px; font-size: 12px; color: var(--dim); }

/* sections */
section { padding: 90px 0; }
.h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.025em; margin: 0 0 10px; line-height: 1.12; }
.sub { color: #8fa0c4; font-size: 17px; margin: 0 0 36px; max-width: 680px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a78bfa; margin-bottom: 10px; }

.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.card { padding: 24px; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(167,139,250,.4); transform: translateY(-2px); }
.card.big { grid-column: span 2; }
.card .ic { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(139,92,246,.18); color: #c4b5fd; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 17.5px; }
.card p { margin: 0; color: #94a3c4; font-size: 14.5px; }
.card .tag { display: inline-block; margin-top: 12px; font-size: 11.5px; font-weight: 700; color: var(--green); }

/* stories */
.story { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding: 50px 0; }
.story.rev { grid-template-columns: 1.25fr 1fr; }
.story.rev .txt { order: 2; }
.story ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.story li { display: flex; gap: 10px; color: #b8c4de; font-size: 15px; }
.story li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: rgba(74,222,128,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234ade80' stroke-width='3'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.frame { border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); box-shadow: 0 30px 80px rgba(15,23,42,.6); }

/* compare */
.cmp-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.cmp { width: 100%; min-width: 640px; border-collapse: collapse; }
.cmp th, .cmp td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp th { font-size: 13px; color: #a5b4d4; font-weight: 700; }
.cmp th small { display: block; font-weight: 400; color: var(--dim); }
.cmp .us { background: rgba(99,102,241,.14); color: #fff; font-weight: 700; }
.cmp .no { color: var(--dim); }
.note { font-size: 12.5px; color: var(--dim); margin-top: 12px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.step i { font-style: normal; font-weight: 800; font-size: 13px; color: #a78bfa; }
.step h3 { margin: 8px 0 6px; font-size: 19px; }
.step p { margin: 0; color: #94a3c4; font-size: 14.5px; }

.migrate { display: flex; gap: 22px; align-items: center; padding: 28px 32px; border-radius: 22px; background: linear-gradient(90deg, rgba(34,211,238,.08), rgba(139,92,246,.10)); border: 1px solid var(--line); }
.migrate h3 { margin: 0 0 4px; font-size: 20px; }
.migrate p { margin: 0; color: #a5b4d4; font-size: 15px; }
.migrate .btn { margin-left: auto; }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.02); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: #a78bfa; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 18px; color: #a5b4d4; }

/* access */
.access { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 28px; background: radial-gradient(520px 240px at 20% 0, rgba(168,85,247,.32), transparent 70%), rgba(255,255,255,.03); border: 1px solid var(--line); }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: #a5b4d4; }
.form input, .form select, .form textarea { width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(7,11,26,.6); color: #fff; font: inherit; font-size: 15px; }
.form textarea { height: 90px; padding: 12px 14px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--violet); outline: none; box-shadow: 0 0 0 3px rgba(139,92,246,.25); }
.form .hp { position: absolute; left: -9999px; }
.form .msg { min-height: 20px; font-size: 14px; }
.form .msg.ok { color: var(--green); } .form .msg.err { color: #fca5a5; }

footer { padding: 36px 0 44px; color: var(--dim); font-size: 13.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer a:hover { color: #fff; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .hub-ring, .hub-chip > span { animation: none !important; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .story, .story.rev, .access { grid-template-columns: 1fr; }
  .story.rev .txt { order: 0; }
  .hub-wrap { height: 400px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .proof { grid-template-columns: 1fr 1fr; }
  .access { padding: 30px 22px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top .btn-g { display: none; }
  .top .wrap { gap: 12px; }
  .top .logo img { height: 26px; }
  .bento, .steps { grid-template-columns: 1fr; }
  .card.big { grid-column: auto; }
  .proof b { font-size: 24px; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .migrate { flex-direction: column; align-items: flex-start; }
  .migrate .btn { margin-left: 0; }
  .hub-wrap { height: 320px; }
  .hub { transform: scale(.78); }
}

/* Grid items must be allowed to shrink below their images' intrinsic width,
   or the 1600px screenshots widen the page on phones. */
.hero-grid > *, .story > *, .access > *, .bento > *, .steps > *, .proof > * { min-width: 0; }
html, body { overflow-x: clip; }
