/* click2ink: the home page (home.html). */
:root {
  --bg: #0e0d11;
  --panel: #15141a;
  --panel-2: #1c1b22;
  --line: #2c2a33;
  --text: #efebe5;
  --muted: #a39eaa;
  --accent: #ff6a30;
  --accent-2: #ffb46b;
  --accent-ink: #1a0d06;
  --font: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Outfit', 'Heebo', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
[hidden] { display: none !important; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background-color: rgba(255, 180, 107, 0.3); border: 3px solid transparent; background-clip: padding-box; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 106, 48, 0.65); }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 180, 107, 0.35) transparent; } }
img { max-width: 100%; display: block; }
a { color: inherit; }
.muted { color: var(--muted); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 18px;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: linear-gradient(160deg, #ff8a45, var(--accent) 60%, #ef4d22); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 30px rgba(255, 106, 48, 0.3); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent-2); }
.btn.big { padding: 13px 26px; font-size: 16.5px; }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 20; transition: background 0.2s, border-color 0.2s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(14, 13, 17, 0.86); backdrop-filter: blur(12px); border-bottom-color: var(--line); }
.nav-in { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand .wordmark { font-size: 25px; }
.links { display: flex; gap: 22px; margin-inline-start: 12px; flex: 1; }
.links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 8px; margin-inline-start: auto; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 30px 20px 10px; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.g1 { width: 520px; height: 520px; background: rgba(255, 106, 48, 0.22); top: -160px; left: -120px; }
.g2 { width: 420px; height: 420px; background: rgba(255, 180, 107, 0.1); bottom: 0; right: -140px; }
.hero-in { position: relative; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { margin: 0 0 12px; color: var(--accent-2); font-weight: 500; font-size: 15px; }
h1 { margin: 0; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.08; font-weight: 900; letter-spacing: -0.01em; }
.hl { background: linear-gradient(160deg, #ffc58a, var(--accent) 60%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 20px 0 26px; font-size: 18.5px; color: #cfc9c2; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 14px 0 0; color: var(--muted); font-size: 14px; }

.hero-visual { position: relative; min-width: 0; }
.stage {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse 70% 60% at 50% 40%, #2a2531 0%, #15131a 60%, #0b0a0e 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  aspect-ratio: 9 / 10;
}
.stage { position: relative; }
.stage img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.8s ease; }
/* the 3D figure fades in over the picture once it has loaded (home3d.js) */
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; pointer-events: none; transition: opacity 0.8s ease; touch-action: pan-y; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage.live canvas { opacity: 1; pointer-events: auto; }
.stage.live img { opacity: 0; }
.drag-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); padding: 5px 12px; border-radius: 999px; background: rgba(14, 13, 17, 0.7); color: var(--muted); font-size: 12.5px; pointer-events: none; opacity: 0; transition: opacity 0.6s ease 0.6s; white-space: nowrap; }
.stage.live .drag-hint { opacity: 1; }
.bubble {
  position: absolute;
  max-width: 270px;
  padding: 11px 14px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.bubble { pointer-events: none; }
.bubble.user { top: 5%; inset-inline-start: -34px; max-width: 205px; background: rgba(255, 106, 48, 0.94); color: var(--accent-ink); font-weight: 500; border-end-start-radius: 6px; }
.bubble.ai { bottom: 9%; inset-inline-end: -34px; max-width: 235px; background: rgba(28, 27, 34, 0.95); border: 1px solid var(--line); border-end-end-radius: 6px; }
.bubble .who { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent-2); margin-bottom: 3px; }

.facts { position: relative; max-width: 1180px; margin: 46px auto 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.facts li { background: rgba(21, 20, 26, 0.7); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; color: var(--muted); font-size: 14.5px; }
.facts b { display: block; color: var(--text); font-family: var(--display); font-size: 22px; font-weight: 700; }

/* ---------- sections ---------- */
.section { max-width: 1180px; margin: 0 auto; padding: 80px 20px 0; }
.section h2, .final h2 { margin: 0 0 10px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; font-weight: 800; text-align: center; }
.sub { margin: 0 auto 28px; color: var(--muted); text-align: center; max-width: 40em; }

.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.steps .num { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 106, 48, 0.14); color: var(--accent-2); font-family: var(--display); font-size: 20px; font-weight: 800; }
.steps h3 { margin: 14px 0 6px; font-size: 21px; }
.steps p { margin: 0; color: var(--muted); }

.features { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.features .ico { font-size: 28px; }
.features h3 { margin: 10px 0 6px; font-size: 19px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }

.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #e3c2a6; border-radius: 16px; padding: 10px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px 24px; }
.plan.best { border-color: rgba(255, 106, 48, 0.6); box-shadow: 0 20px 60px rgba(255, 106, 48, 0.12); }
.plan h3 { margin: 0; font-family: var(--display); font-size: 24px; }
.price { margin: 6px 0 14px; font-family: var(--display); font-size: 42px; font-weight: 800; line-height: 1.1; }
.price small { font-family: var(--font); font-size: 15px; font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.plan ul { margin: 0 0 22px; padding-inline-start: 20px; color: var(--muted); flex: 1; }
.plan li { margin-bottom: 6px; }
.plan li b { color: var(--text); font-weight: 500; }
.badge { position: absolute; top: -12px; inset-inline-end: 18px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 12px; }
.topup-note { margin: 20px auto 0; max-width: 46em; text-align: center; color: var(--muted); font-size: 15px; }
.topup-note b { color: var(--text); font-weight: 500; }

.faq { max-width: 820px; margin: 28px auto 0; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 4px 18px; }
.faq summary { cursor: pointer; padding: 12px 0; font-weight: 500; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent-2); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; color: var(--muted); }

.final { margin: 90px auto 0; max-width: 1180px; padding: 56px 20px; text-align: center; background: radial-gradient(ellipse 60% 90% at 50% 100%, rgba(255, 106, 48, 0.2), transparent 70%); border-top: 1px solid var(--line); }
.final .btn { margin-top: 14px; }

.foot { max-width: 1180px; margin: 0 auto; padding: 26px 20px 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; justify-content: space-between; border-top: 1px solid var(--line); font-size: 14px; }
.foot .wordmark { font-size: 19px; }
.foot a { color: var(--muted); }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .links { display: none; }
  .hero-in { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps, .features, .plans { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .nav-in { padding: 12px 16px; gap: 10px; }
  .brand .wordmark { font-size: 21px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-cta .btn { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 16px 16px 0; }
  .section { padding: 60px 16px 0; }
  .lead { font-size: 17px; }
  .bubble { max-width: 170px; font-size: 12.5px; padding: 9px 11px; }
  .bubble.user { inset-inline-start: -6px; top: 3%; }
  .bubble.ai { inset-inline-end: -6px; bottom: 11%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .final { padding: 44px 16px; }
  .foot { padding: 22px 16px 36px; }
}
