/* ============================================================
   ClickAura.Tech — dark aurora theme
   ============================================================ */
:root {
  --bg: #07070f;
  --bg-2: #0c0c18;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #e8eaf2;
  --muted: #9aa0b4;
  --violet: #8b5cf6;
  --blue: #3b82f6;
  --teal: #14b8a6;
  --grad: linear-gradient(100deg, var(--violet), var(--blue) 50%, var(--teal));
  --radius: 16px;
  --maxw: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(700px 420px at 12% -8%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(700px 420px at 88% -4%, rgba(20, 184, 166, 0.12), transparent 60%),
    radial-gradient(900px 500px at 50% 115%, rgba(59, 130, 246, 0.10), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 15, 0.72);
  border-bottom: 1px solid var(--card-border);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; letter-spacing: 0.2px; }
.brand img { width: 28px; height: 28px; }
.brand .tld { color: var(--muted); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 0.95rem; }
.nav-links a { color: var(--muted); transition: color 0.2s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--grad); border-radius: 2px;
}
.nav-cta {
  padding: 8px 18px !important;
  border: 1px solid transparent;
  background: var(--grad); color: #fff !important;
  border-radius: 999px; font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { filter: brightness(1.12); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--card-border); background: var(--card);
  padding: 7px 16px; border-radius: 999px;
  font-size: 0.83rem; color: var(--muted); margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; } }
h1 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  font-size: clamp(2.3rem, 5.6vw, 3.9rem);
  line-height: 1.12; font-weight: 700; letter-spacing: -1px;
  max-width: 860px; margin: 0 auto 20px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 999px; font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.22s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35); }
.btn-primary:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn-ghost { border-color: var(--card-border); background: var(--card); color: var(--text); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); transform: translateY(-2px); }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.sec-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.sec-head .kicker {
  display: inline-block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-head h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.7rem, 3.4vw, 2.4rem); letter-spacing: -0.5px; margin-bottom: 10px; }
.sec-head p { color: var(--muted); }

/* ---------- Product grid ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 38px; }
.filters button {
  background: var(--card); border: 1px solid var(--card-border); color: var(--muted);
  padding: 8px 18px; border-radius: 999px; cursor: pointer; font-size: 0.88rem; transition: 0.2s;
}
.filters button:hover { color: var(--text); }
.filters button.active { background: var(--grad); color: #fff; border-color: transparent; font-weight: 600; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px; position: relative;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.45); box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45); }
.card .icon {
  width: 52px; height: 52px; border-radius: 14px; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(20, 184, 166, 0.14));
  border: 1px solid var(--card-border);
}
.card h3 { font-family: "Space Grotesk", sans-serif; font-size: 1.22rem; margin-bottom: 6px; }
.card .tagline { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.card p.desc { color: var(--muted); font-size: 0.93rem; flex: 1; }
.card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 20px; gap: 10px; flex-wrap: wrap; }
.card .links { display: flex; gap: 14px; font-size: 0.88rem; font-weight: 600; }
.card .links a { color: var(--blue); }
.card .links a:hover { text-decoration: underline; }
.card .links a.disabled { color: var(--muted); opacity: 0.5; pointer-events: none; }

.badge {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 4px 12px; border-radius: 999px; white-space: nowrap;
}
.badge-live { background: rgba(20, 184, 166, 0.14); color: #2dd4bf; border: 1px solid rgba(45, 212, 191, 0.35); }
.badge-beta { background: rgba(59, 130, 246, 0.14); color: #60a5fa; border: 1px solid rgba(96, 165, 250, 0.35); }
.badge-in-dev { background: rgba(139, 92, 246, 0.14); color: #a78bfa; border: 1px solid rgba(167, 139, 250, 0.35); }
.badge-soon { background: rgba(255, 255, 255, 0.06); color: var(--muted); border: 1px solid var(--card-border); }
.badge-pinned { background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(251, 191, 36, 0.4); }

/* ---------- Demo section ---------- */
.demo-shell {
  border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--bg-2); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.demo-bar {
  display: flex; align-items: center; gap: 8px; padding: 13px 18px;
  border-bottom: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
}
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.demo-bar .url {
  flex: 1; margin-left: 10px; background: rgba(255, 255, 255, 0.05);
  border-radius: 8px; padding: 6px 14px; font-size: 0.8rem; color: var(--muted);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.demo-frame { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
.demo-frame iframe { width: 100%; height: 560px; border: 0; display: block; }
.demo-placeholder { text-align: center; color: var(--muted); padding: 70px 30px; }
.demo-placeholder .big { font-size: 2.6rem; margin-bottom: 14px; }
.demo-placeholder code {
  background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 6px;
  font-size: 0.85rem; color: #a5b4fc;
}

/* ---------- Updates ---------- */
.update-item {
  display: flex; gap: 18px; padding: 22px 24px;
  background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius);
  margin-bottom: 14px; transition: border-color 0.2s;
}
.update-item:hover { border-color: rgba(59, 130, 246, 0.4); }
.update-item.pinned { border-color: rgba(251, 191, 36, 0.45); background: linear-gradient(135deg, rgba(251, 191, 36, 0.06), rgba(255, 255, 255, 0.03)); }
.update-date { color: var(--muted); font-size: 0.85rem; min-width: 96px; font-family: ui-monospace, Menlo, monospace; padding-top: 3px; }
.update-body h4 { font-size: 1.05rem; margin-bottom: 5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.update-body p { color: var(--muted); font-size: 0.93rem; }
.update-item .badge { flex-shrink: 0; }

/* ---------- API page ---------- */
.api-layout { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.api-toc { position: sticky; top: 92px; }
.api-toc a {
  display: block; padding: 8px 14px; color: var(--muted); font-size: 0.9rem;
  border-left: 2px solid var(--card-border); transition: 0.2s;
}
.api-toc a:hover, .api-toc a.active { color: var(--text); border-left-color: var(--violet); background: linear-gradient(90deg, rgba(139, 92, 246, 0.08), transparent); }
.api-sec { margin-bottom: 54px; }
.api-sec h2 { font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; margin-bottom: 14px; }
.api-sec h2 .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; font-size: 0.95rem; margin-right: 12px;
  background: var(--grad); color: #fff; vertical-align: middle;
}
.api-sec p { color: var(--muted); margin-bottom: 12px; }
pre.code {
  background: #0d0d1a; border: 1px solid var(--card-border); border-radius: 12px;
  padding: 20px; overflow-x: auto; font-size: 0.86rem; line-height: 1.6;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: #d7dcf0; margin: 16px 0;
}
pre.code .c { color: #6b7280; }
pre.code .k { color: #a78bfa; }
pre.code .s { color: #5eead4; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 16px 0; }
table.tbl th {
  text-align: left; padding: 12px 14px; color: var(--muted);
  border-bottom: 1px solid var(--card-border); font-size: 0.78rem;
  text-transform: uppercase; letter-spacing: 1.2px;
}
table.tbl td { padding: 13px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: top; }
table.tbl code { background: rgba(255, 255, 255, 0.07); padding: 2px 8px; border-radius: 6px; font-size: 0.84rem; color: #a5b4fc; white-space: nowrap; }
.method { font-weight: 700; font-size: 0.75rem; padding: 3px 9px; border-radius: 6px; margin-right: 8px; letter-spacing: 0.5px; }
.method-get { background: rgba(45, 212, 191, 0.14); color: #2dd4bf; }
.method-post { background: rgba(96, 165, 250, 0.14); color: #60a5fa; }
.method-put { background: rgba(251, 191, 36, 0.14); color: #fbbf24; }
.method-del { background: rgba(248, 113, 113, 0.14); color: #f87171; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin: 24px 0; }
.step-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 24px; }
.step-card .n { font-size: 0.8rem; font-weight: 700; color: var(--teal); letter-spacing: 1.5px; margin-bottom: 10px; }
.step-card h4 { margin-bottom: 8px; font-size: 1.02rem; }
.step-card p { font-size: 0.89rem; color: var(--muted); margin: 0; }

.status-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 999px; padding: 9px 18px; font-size: 0.88rem; color: var(--muted);
}
.status-pill .dot { width: 9px; height: 9px; border-radius: 50%; }
.dot-ok { background: #2dd4bf; box-shadow: 0 0 8px rgba(45, 212, 191, 0.8); }
.dot-warn { background: #fbbf24; }
.dot-down { background: #f87171; }

/* ---------- Contact strip / CTA ---------- */
.cta-band {
  border: 1px solid var(--card-border); border-radius: 22px;
  background:
    radial-gradient(500px 240px at 15% 0%, rgba(139, 92, 246, 0.16), transparent),
    radial-gradient(500px 240px at 85% 100%, rgba(20, 184, 166, 0.13), transparent),
    var(--bg-2);
  padding: 60px 40px; text-align: center;
}
.cta-band h2 { font-family: "Space Grotesk", sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: var(--muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--card-border); padding: 56px 0 34px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.foot-grid h5 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); margin-bottom: 16px; }
.foot-grid a { display: block; color: var(--muted); font-size: 0.92rem; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.foot-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 12px; max-width: 280px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 0.84rem; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links {
    position: fixed; inset: 66px 0 auto 0; flex-direction: column; align-items: stretch;
    background: rgba(9, 9, 18, 0.98); padding: 20px 26px 30px; gap: 4px;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-130%); transition: transform 0.3s; z-index: 40;
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 12px 4px; font-size: 1.02rem; }
  .nav-links a.active::after { display: none; }
  .nav-toggle { display: block; }
  .api-layout { grid-template-columns: 1fr; }
  .api-toc { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 8px; }
  .api-toc a { border-left: 0; border: 1px solid var(--card-border); border-radius: 999px; white-space: nowrap; padding: 7px 15px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 64px 0 50px; }
  .update-item { flex-direction: column; gap: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .demo-frame iframe { height: 480px; }
}
