/* Pool API — customer web restyle 2026-10-10 */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #0a0f1e;
  --bg2: #0d1428;
  --card: #121b33;
  --card2: #17203c;
  --line: rgba(255,255,255,.09);
  --line2: rgba(255,255,255,.14);
  --txt: #eef2fb;
  --muted: #96a3c0;
  --muted2: #6b7794;
  --gold: #e9c46a;
  --gold2: #f6d98a;
  --gold-deep: #b98a2e;
  --blue: #5b8cff;
  --ok: #3ddc84;
  --bad: #ff6b6b;
  --warn: #ffb020;
  --r: 16px;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --neon-gold: 0 0 22px rgba(233,196,106,.45), 0 0 60px rgba(233,196,106,.18);
  --neon-gold-soft: 0 0 14px rgba(233,196,106,.28);
  --neon-blue: 0 0 22px rgba(91,140,255,.4);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--txt);
  font: 16px/1.65 "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 480px at 85% -80px, rgba(233,196,106,.10), transparent 60%),
    radial-gradient(1000px 560px at 8% -120px, rgba(91,140,255,.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(233,196,106,.35); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 22px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: rgba(10,15,30,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(233,196,106,.12), 0 8px 30px rgba(0,0,0,.35);
}
.brand { font-weight: 900; font-size: 20px; color: var(--txt); letter-spacing: .2px; display: flex; align-items: center; gap: 9px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold2), var(--gold-deep));
  box-shadow: 0 0 14px rgba(233,196,106,.8);
  animation: dotPulse 2.4s ease-in-out infinite; }
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 10px rgba(233,196,106,.6); }
  50%      { box-shadow: 0 0 22px rgba(246,217,138,.95); }
}
.topbar nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; }
.topbar nav a:hover { color: var(--txt); text-decoration: none; background: rgba(255,255,255,.05); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold2), var(--gold) 55%, #d9a83f);
  color: #241a05; border: 0; border-radius: 12px;
  padding: 13px 26px; font: 700 16px/1 "Be Vietnam Pro", sans-serif; cursor: pointer;
  box-shadow: var(--neon-gold-soft), 0 8px 26px rgba(233,196,106,.30);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; transform: translateY(-2px);
  box-shadow: var(--neon-gold), 0 14px 38px rgba(233,196,106,.42); }
.btn:active { transform: translateY(0); }
.btn.small { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: rgba(255,255,255,.04); color: var(--txt); border: 1px solid var(--line2); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.09); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.block { width: 100%; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 84px 0 56px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40px; pointer-events: none; z-index: 0;
  background:
    radial-gradient(560px 300px at 20% 30%, rgba(233,196,106,.10), transparent 65%),
    radial-gradient(640px 340px at 82% 62%, rgba(91,140,255,.12), transparent 65%);
  animation: heroDrift 14s ease-in-out infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 65% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 65% at 50% 40%, #000 30%, transparent 100%);
}
.hero > * { position: relative; z-index: 1; }
@keyframes heroDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--gold2); border: 1px solid rgba(233,196,106,.5);
  background: rgba(233,196,106,.08); padding: 7px 16px; border-radius: 999px; margin-bottom: 22px;
  box-shadow: var(--neon-gold-soft), inset 0 0 14px rgba(233,196,106,.07);
}
.hero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.18; margin: 0 0 18px; font-weight: 900; letter-spacing: -.5px;
  filter: drop-shadow(0 0 26px rgba(233,196,106,.28)); }
.hero h1 .grad { background: linear-gradient(120deg, var(--gold2), #f0a35e 60%, var(--blue)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { color: var(--muted); font-size: 18px; max-width: 660px; margin: 0 auto 30px; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 44px; }
.stats { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stat { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 14px; padding: 14px 22px; min-width: 150px; }
.stat b { display: block; font-size: 22px; font-weight: 800; color: var(--gold2);
  text-shadow: 0 0 16px rgba(233,196,106,.4); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- sections ---------- */
section.block { padding: 34px 0; }
.sec-head { text-align: center; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 10px; font-weight: 800; }
.sec-head p { color: var(--muted); margin: 0; }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.tier {
  position: relative; background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px;
  display: flex; flex-direction: column; transition: transform .18s ease, box-shadow .18s ease;
}
.tier:hover { transform: translateY(-5px); border-color: rgba(233,196,106,.55);
  box-shadow: 0 0 26px rgba(233,196,106,.20), 0 22px 54px rgba(0,0,0,.5); }
.tier h3 { margin: 0 0 6px; font-size: 19px; font-weight: 800; }
.tier .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold2), var(--gold-deep)); color: #241a05;
  font-size: 12px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 0 18px rgba(233,196,106,.55);
}
.tier.hot { border: 1.5px solid rgba(233,196,106,.75);
  animation: neonPulse 2.6s ease-in-out infinite; }
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(233,196,106,.10), 0 0 22px rgba(233,196,106,.28), var(--shadow); }
  50%      { box-shadow: 0 0 0 4px rgba(233,196,106,.16), 0 0 44px rgba(233,196,106,.5), var(--shadow); }
}
.price { font-size: 34px; font-weight: 900; margin: 8px 0 2px; letter-spacing: -.5px;
  text-shadow: 0 0 22px rgba(233,196,106,.30); }
.price small { font-size: 15px; font-weight: 600; color: var(--muted); }
.per { color: var(--gold2); font-weight: 700; font-size: 14px; margin: 0 0 16px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 22px; color: var(--muted); font-size: 14.5px; flex: 1; }
.tier ul li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed rgba(255,255,255,.06); }
.tier ul li:last-child { border-bottom: 0; }
.tier ul li::before { content: "✓"; position: absolute; left: 4px; color: var(--ok); font-weight: 800; }
.note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 20px; }

/* ---------- steps ---------- */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; }
.step .n {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px; color: #241a05;
  background: linear-gradient(135deg, var(--gold2), var(--gold-deep)); margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- CTA banner ---------- */
.cta-band {
  margin: 50px 0 10px; border-radius: 22px; padding: 44px 34px; text-align: center;
  background: linear-gradient(135deg, rgba(233,196,106,.14), rgba(91,140,255,.12)), var(--card);
  border: 1px solid rgba(233,196,106,.45);
  box-shadow: 0 0 30px rgba(233,196,106,.14), inset 0 0 40px rgba(233,196,106,.05);
}
.cta-band h2 { margin: 0 0 10px; font-size: 26px; }
.cta-band p { color: var(--muted); margin: 0 0 22px; }

/* ---------- cards / forms ---------- */
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; margin: 22px 0; box-shadow: 0 10px 34px rgba(0,0,0,.28); }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card.highlight { border: 1.5px solid rgba(233,196,106,.55); }
.card h2 { margin: 0 0 14px; font-size: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }

label { display: block; margin: 14px 0; font-weight: 600; font-size: 14.5px; }
input[type=email], input[type=text], select, textarea {
  display: block; width: 100%; margin-top: 8px; padding: 13px 15px;
  border-radius: 12px; border: 1px solid var(--line2);
  background: #0b1122; color: var(--txt);
  font: 500 16px "Be Vietnam Pro", sans-serif;
  transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(233,196,106,.22), 0 0 20px rgba(233,196,106,.30); }
textarea { resize: vertical; min-height: 110px; }
input[name=code] { text-align: center; font-size: 26px; letter-spacing: 10px; font-weight: 800; padding: 16px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--muted2); font-size: 13px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-wrap { display: flex; justify-content: center; padding: 4px 0; }

.err { color: #ffb3b3; background: rgba(255,107,107,.10); border: 1px solid rgba(255,107,107,.4); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.okmsg { color: #a9f0c9; background: rgba(61,220,132,.10); border: 1px solid rgba(61,220,132,.4); padding: 12px 16px; border-radius: 12px; font-size: 14.5px; }
.muted, .note { color: var(--muted); }
.big { font-size: 32px; font-weight: 900; margin: 0 0 10px; letter-spacing: -.5px; }

.keybox {
  display: flex; align-items: center; gap: 10px;
  background: #0b1122; border: 1px dashed var(--line2); border-radius: 12px;
  padding: 13px 15px; word-break: break-all; margin: 12px 0;
}
.keybox code { font-size: 14px; flex: 1; color: var(--gold2); }
.copybtn {
  flex: none; background: rgba(255,255,255,.06); color: var(--txt);
  border: 1px solid var(--line2); border-radius: 9px; padding: 7px 13px;
  font: 600 13px "Be Vietnam Pro", sans-serif; cursor: pointer;
}
.copybtn:hover { background: rgba(233,196,106,.18); border-color: var(--gold); }

/* ---------- package status ---------- */
.pkg-active { border-left: 4px solid var(--ok); }
.pkg-none { border-left: 4px solid var(--warn); }
.pkg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.lanes { margin-top: 14px; }
.lanes .bar { height: 9px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.lanes .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--gold), var(--gold2)); }

/* ---------- table ---------- */
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
.tbl th { text-align: left; padding: 11px 14px; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .8px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid rgba(255,255,255,.05); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl .prompt { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill.ok { background: rgba(61,220,132,.14); color: var(--ok); border: 1px solid rgba(61,220,132,.3); }
.pill.bad { background: rgba(255,107,107,.14); color: var(--bad); border: 1px solid rgba(255,107,107,.3); }
.pill.run { background: rgba(91,140,255,.14); color: #9db9ff; border: 1px solid rgba(91,140,255,.3); }
.pill.wait { background: rgba(255,176,32,.14); color: var(--warn); border: 1px solid rgba(255,176,32,.3); }

/* ---------- demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 860px) { .demo-grid { grid-template-columns: 1fr; } }
#result-card .media img, #result-card .media video { width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.spinner { display: inline-block; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -4px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- docs ---------- */
.doc h3 { margin: 30px 0 12px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.method { font-size: 12px; font-weight: 800; letter-spacing: .8px; padding: 4px 11px; border-radius: 8px; }
.method.post { background: rgba(61,220,132,.16); color: var(--ok); border: 1px solid rgba(61,220,132,.4); }
.method.get { background: rgba(91,140,255,.16); color: #9db9ff; border: 1px solid rgba(91,140,255,.4); }
.codeblock { position: relative; margin: 12px 0 20px; }
.codeblock pre { margin: 0; background: #0b1122; border: 1px solid var(--line); border-radius: 12px; padding: 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; }
.doc code, p code, li code { background: rgba(233,196,106,.12); color: var(--gold2); padding: 2px 8px; border-radius: 7px; font-size: .88em; }
.codeblock pre code { background: none; color: #c9d6f2; padding: 0; }
.codeblock .copybtn { position: absolute; top: 10px; right: 10px; }
.doc ul { color: var(--muted); }
.doc ul li { margin: 9px 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 34px 22px 40px; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot .fbrand { font-weight: 800; display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.foot p { color: var(--muted2); font-size: 13.5px; margin: 0; max-width: 380px; }
.foot nav { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.foot nav a { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- misc ---------- */
.fade { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 1024px) {
  .tiers { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tiers { grid-template-columns: 1fr; }
  .steps3 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  .hero::after { background-size: 34px 34px; }
  .topbar { padding: 10px 14px; }
  .topbar nav a { padding: 7px 9px; font-size: 13.5px; }
  .card { padding: 20px; }
  .cta-band { padding: 32px 20px; }
  .price { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .tier.hot, .brand .dot { animation: none !important; }
  .btn, .tier { transition: none !important; }
}
