/* =========================================================
   SmartAlgoShop: black and gold theme, shared by every page.
   Change colours in :root and the whole site follows.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #060504;
  --surface: #100d09;
  --surface-2: #17130d;
  --border: #2c2416;
  --border-hi: #4a3c22;
  --text: #f7f2e7;
  --muted: #b5a98f;
  --gold: #f5c542;
  --gold-hi: #ffe7a1;
  --gold-lo: #b8860b;
  --gold-soft: rgba(245, 197, 66, .12);
  --on-gold: #1a1204;
  --red: #c2523a;
  --grad-gold: linear-gradient(180deg, #fff3c4 0%, #f7d065 38%, #e0a82a 62%, #a87412 100%);
  --radius: 16px;
  --max: 1180px;
  --head: 'Montserrat', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65;
  color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased;
}
img, svg, iframe, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hi); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--head); line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 600px; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7rem) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #0b0906, #0e0b07); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; font-family: var(--head); font-weight: 600;
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.gold-text {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold-rule { /* thin gold line with a notch, like the logos */
  width: 220px; height: 12px; margin: 1.5rem 0 0; position: relative;
  background: linear-gradient(90deg, transparent, var(--gold), transparent) center 50% / 100% 1px no-repeat;
}
.gold-rule::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; transform: translate(-50%, -20%) rotate(45deg);
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold); background: var(--bg);
}

/* ---------- Skip link ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 5, 4, .72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(245, 197, 66, .12);
}
.site-header .container { width: min(100% - 2.5rem, 1480px); } /* same width as the home hero */
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand img { width: 38px; height: 38px; border-radius: 8px; }
.brand-name { font-family: var(--head); font-weight: 700; font-size: 1.08rem; letter-spacing: .02em; }
.brand-name span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .95rem;
  color: var(--muted); text-decoration: none; font-weight: 500; border-radius: 10px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--gold); }
/* "Bots" dropdown */
.has-drop { position: relative; }
.has-drop .chev { margin-left: .35rem; transition: transform .2s; }
.drop { list-style: none; margin: 0; padding: .5rem; position: absolute; top: 100%; left: 50%; min-width: 330px; z-index: 60;
  background: rgba(14, 11, 7, .97); border: 1px solid var(--border-hi); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 40px rgba(245,197,66,.08);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity .18s, transform .18s, visibility .18s; }
.drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; } /* keeps the menu open while the mouse moves down */
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; transform: translate(-50%, 4px); }
.has-drop:hover .chev, .has-drop:focus-within .chev { transform: rotate(180deg); }
.nav-links .drop a { display: flex; align-items: center; gap: .8rem; min-height: 0; padding: .65rem .75rem; border-radius: 10px; color: var(--text); white-space: nowrap; }
.drop img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; flex: none; }
.drop b { display: block; font-family: var(--head); font-weight: 600; font-size: .92rem; }
.drop small { display: block; color: var(--muted); font-size: .76rem; margin-top: .1rem; }
.nav-links .drop a:hover { background: var(--surface-2); }
.nav-links .drop a:hover b { color: var(--gold); }
.drop-all { border-top: 1px solid var(--border); margin-top: .35rem; padding-top: .35rem; }
.nav-links .drop-all a { color: var(--gold); font-size: .88rem; font-weight: 600; }

.menu-btn {
  display: none; background: none; border: 1px solid var(--border); color: var(--text);
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch;
    padding: .75rem 1.25rem 1.25rem; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  /* phone menu: show the bots as an indented list under "Bots" */
  .has-drop .chev { display: none; }
  .drop, .has-drop:hover .drop, .has-drop:focus-within .drop { position: static; opacity: 1; visibility: visible; transform: none; min-width: 0;
    background: none; border: 0; box-shadow: none; padding: 0 0 0 .9rem; }
  .drop::before { display: none; }
  .nav-links .drop a { white-space: normal; padding: .5rem .75rem; }
  .drop img { width: 28px; height: 28px; }
  .drop small { display: none; }
  .drop-all { display: none; }
  .nav-links .btn { margin-top: .5rem; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 50px; padding: 0 1.5rem;
  border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .25s, background .2s, border-color .2s, color .2s;
}
.btn-primary {
  background: linear-gradient(180deg, #ffe08a, #f2bb35 55%, #d49a1e); color: var(--on-gold);
  box-shadow: 0 0 0 1px rgba(255, 231, 161, .4) inset, 0 8px 30px rgba(245, 197, 66, .25);
}
.btn-primary::after { /* light sweep on hover */
  content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn-primary:hover { color: var(--on-gold); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255,231,161,.6) inset, 0 12px 40px rgba(245,197,66,.4); }
.btn-primary:hover::after { left: 130%; }
.btn-ghost { border-color: var(--border-hi); color: var(--text); background: rgba(23, 19, 13, .6); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); }
.nav-links .btn { min-height: 42px; color: var(--on-gold); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Generic hero (inner pages) ---------- */
.hero { padding: clamp(4rem, 10vw, 7rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(700px 380px at 85% 0%, rgba(245,197,66,.16), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(184,134,11,.10), transparent 70%);
}
.page-hero h1 { max-width: 820px; }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: linear-gradient(180deg, rgba(23,19,13,.9), rgba(14,11,7,.95));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.6rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: var(--border-hi); transform: translateY(-4px); box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 0 1px rgba(245,197,66,.08); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(180deg, rgba(245,197,66,.22), rgba(245,197,66,.06)); color: var(--gold);
  border: 1px solid rgba(245,197,66,.25);
}
.icon svg { width: 22px; height: 22px; }

/* Stat tiles */
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat b { display: block; font-family: var(--head); font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 700; }
.stat span { color: var(--muted); font-size: .85rem; }

/* ---------- Product showcase (home + products) ---------- */
.showcase { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
@media (max-width: 880px) { .showcase { grid-template-columns: 1fr; } }
.product {
  position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, #120e08, #0a0805); border: 1px solid var(--border);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .35s;
  transform-style: preserve-3d;
}
.product:hover { border-color: var(--border-hi); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(245,197,66,.10); }
.product::before { /* moving gold border light */
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, rgba(255,231,161,.9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin-border 6s linear infinite; opacity: .7;
}
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin-border { to { --ang: 360deg; } }
.product-media { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.product:hover .product-media img { transform: scale(1.06); }
.product-body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.product-body h3 { font-size: 1.45rem; margin-bottom: .35rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.tag { font-family: var(--mono); font-size: .72rem; color: var(--gold); border: 1px solid rgba(245,197,66,.3); background: var(--gold-soft); padding: .2rem .55rem; border-radius: 999px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 1.4rem; }
.mini-stats div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: .7rem .8rem; }
.mini-stats b { display: block; font-family: var(--head); font-size: 1.2rem; }
.mini-stats span { font-size: .75rem; color: var(--muted); }
.product .btn-row { margin-top: auto; }
.fineprint { font-size: .78rem; color: #8d8370; margin-top: 1rem; }

/* ---------- Bot detail (products page) ---------- */
.bot { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: start; }
.bot + .bot { margin-top: 6rem; padding-top: 6rem; border-top: 1px solid var(--border); }
@media (max-width: 960px) { .bot { grid-template-columns: 1fr; } }
.bot-media { position: sticky; top: 96px; display: grid; gap: 1rem; }
@media (max-width: 960px) { .bot-media { position: static; } }
.bot-media > img { border-radius: 18px; border: 1px solid var(--border); }
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-placeholder { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); text-align: center; padding: 1rem; }
.specs { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: .7rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 42%; }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .65rem; }
.checklist li::before {
  content: ""; position: absolute; left: .1rem; top: .42rem; width: 1rem; height: .55rem;
  border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg);
}
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 1.5rem; }
.preset-row div { border: 1px solid var(--border-hi); border-radius: 12px; padding: .8rem; background: var(--surface); }
.preset-row b { display: block; font-family: var(--head); color: var(--gold); }
.preset-row span { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .preset-row { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.review p { font-size: 1.02rem; }
.review cite { font-style: normal; color: var(--muted); font-size: .85rem; }
.stars { color: var(--gold); letter-spacing: .15em; margin-bottom: .6rem; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.steps .card::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--head); font-weight: 700; font-size: 2rem; display: block; margin-bottom: .5rem;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- FAQ ---------- */
details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 1.25rem; margin-bottom: .75rem; }
summary { cursor: pointer; font-weight: 600; min-height: 58px; display: flex; align-items: center; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; margin-left: auto; font-family: var(--mono); color: var(--gold); font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: 26px; padding: clamp(2.2rem, 6vw, 4rem);
  background: radial-gradient(600px 300px at 100% 0%, rgba(245,197,66,.25), transparent 70%), linear-gradient(135deg, #17110a, #0b0805);
  border: 1px solid var(--border-hi);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem;
}
.cta h2 { margin: 0 0 .3rem; }
.cta p { margin: 0; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 500; }
.field .hint { font-size: .85rem; color: var(--muted); }
input, textarea, select {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px; padding: .8rem 1rem; min-height: 50px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: transparent; }
.hp { position: absolute; left: -5000px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 3.5rem 0 2rem; color: var(--muted); font-size: .92rem; background: #040302; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.disclaimer { font-size: .82rem; line-height: 1.6; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.legal { font-size: .76rem; line-height: 1.65; border-top: 1px solid var(--border); padding-top: 1.5rem; color: #8f8574; }
.legal p { margin: 0 0 .9rem; max-width: 1100px; }
.legal strong { color: var(--muted); }

/* Learn page: lesson cards */
.lessons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-bottom: 1.5rem; }
.lesson { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; text-decoration: none; color: inherit; }
.lesson h3 { margin: 0; font-size: 1.08rem; }
.lesson p { margin: 0; flex: 1; }
.lesson .soon { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border: 1px dashed var(--border-hi); border-radius: 999px; padding: .2rem .7rem; }
a.lesson::after { content: "Read lesson →"; font-family: var(--head); font-weight: 600; font-size: .9rem; color: var(--gold); }
@media (max-width: 900px) { .lessons { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lessons { grid-template-columns: 1fr; } }

/* Lesson article */
.prose { max-width: 760px; }
.prose .back { display: inline-block; margin-bottom: 1.2rem; color: var(--muted); text-decoration: none; font-size: .9rem; }
.prose .back:hover { color: var(--gold); }
.prose h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-top: .8rem; }
.prose h2 { margin-top: 2.2rem; font-size: 1.5rem; }
.prose p, .prose li { font-size: 1.05rem; line-height: 1.75; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: 14px; border: 1px solid var(--border); }
.prose figcaption { font-size: .85rem; color: var(--muted); margin-top: .5rem; }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 2rem 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Reviews (compact cards) */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.reviews .review { margin: 0; padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; }
.reviews .stars { font-size: .85rem; letter-spacing: .1em; }
.reviews .review p { margin: 0; font-size: .92rem; line-height: 1.5; color: var(--text); flex: 1; }
.reviews cite { font-style: normal; font-size: .76rem; color: var(--muted); }
.reviews .review-more { align-items: flex-start; justify-content: center; text-decoration: none; border-style: dashed; }
.reviews .review-more b { font-family: var(--head); font-size: 1.05rem; color: var(--gold); }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .reviews { grid-template-columns: 1fr; } }

/* =========================================================
   HOME PAGE: 3D gold hero + animations
   ========================================================= */
.hero-cc {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: clamp(4rem, 9vw, 7rem) 0 clamp(2rem, 4vw, 3rem);
  background: radial-gradient(1100px 600px at 50% 0%, #1a1206 0%, #0a0704 50%, #060504 80%);
}
.hero-copy { max-width: 900px; margin: 0 auto; }
.hero-title { font-size: clamp(2.4rem, 6vw, 4.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; text-transform: uppercase; text-wrap: balance; }
.hero-title .gold-text { filter: drop-shadow(0 4px 24px rgba(245,197,66,.25)); }
.hero-copy .lead { margin: 1.4rem auto .9rem; max-width: 720px; }
.hero-punch { font-family: var(--head); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--gold); margin: 0 0 2rem; letter-spacing: .01em; }
.hero-copy .btn-row { justify-content: center; }
.hero-rating { margin-top: 1.6rem; color: var(--muted); font-size: .9rem; }
.hero-rating b { font-family: var(--head); font-size: 1.15rem; margin-right: .3rem; }

/* The command center screen */
.cc-stage { position: relative; width: min(1180px, 100% - 2.5rem); margin: clamp(2.5rem, 5vw, 4rem) auto 0; perspective: 1700px; padding-bottom: .5rem; }
.cc-glow { position: absolute; left: 50%; bottom: -6%; width: 110%; height: 60%; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(245,170,40,.28), rgba(245,170,40,0)); filter: blur(10px); }
#cc-canvas { display: block; width: 100%; aspect-ratio: 16 / 10.5; border-radius: 16px; border: 1px solid var(--border-hi); background: #0a0805;
  --rx: 10deg; --ry: -8deg; /* resting tilt; hero.js adds --mx / --my when the mouse moves over it */
  transform: rotateX(calc(var(--rx) - var(--my, 0deg))) rotateY(calc(var(--ry) + var(--mx, 0deg))); transform-origin: 50% 60%; transition: transform .25s ease-out;
  box-shadow: 0 40px 100px rgba(0,0,0,.7), 0 0 70px rgba(245,197,66,.14); }
.cc-note { margin: 1.1rem 0 0; font-size: .78rem; color: var(--muted); }
/* Wide screens: text on the left, animation on the right */
.hero-grid { width: 100%; margin: 0 auto; }
.hero-grid .hero-copy { padding-inline: 1.25rem; }
@media (min-width: 1100px) {
  .hero-grid { width: min(100% - 2.5rem, 1480px); } /* text lines up with the logo/menu */
  .hero-grid .hero-copy { padding-inline: 0; }
  .hero-cc { text-align: left; padding: clamp(3rem, 5vw, 4.5rem) 0 clamp(2.5rem, 4vw, 3.5rem); min-height: calc(100svh - 72px); display: flex; align-items: center;
    background: radial-gradient(900px 600px at 72% 45%, #1a1206 0%, #0a0704 50%, #060504 80%); }
  .hero-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(2rem, 3.5vw, 4rem); align-items: center; }
  .hero-copy { margin: 0; max-width: 560px; }
  .hero-title { font-size: clamp(2.4rem, 3.9vw, 4.3rem); }
  .hero-copy .lead { margin-left: 0; }
  .hero-copy .btn-row { justify-content: flex-start; }
  .cc-stage { width: 100%; margin: 0; }
  #cc-canvas { --rx: 6deg; --ry: -12deg; }
  .cc-note { text-align: center; }
}
@media (max-width: 700px) {
  .cc-stage { width: calc(100% - 1.5rem); }
  #cc-canvas { aspect-ratio: 4 / 6.6; transform: none; }
}

/* Live market prices (TradingView ticker tape) */
.live-prices { border-block: 1px solid var(--border); background: #080604; min-height: 46px; }

/* Hero entrance */
.hero-in { opacity: 0; transform: translateY(22px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Gold shimmer that sweeps across gold text */
.shine { position: relative; }
.shine.gold-text {
  background: linear-gradient(100deg, #e0a82a 0%, #ffd866 20%, #fff8e0 28%, #ffd866 36%, #eab437 60%, #ffd866 80%, #e0a82a 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sweep 5s linear infinite;
}
@keyframes sweep { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Motion off ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .hero-in, .reveal { opacity: 1 !important; transform: none !important; }
}
