@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=JetBrains+Mono:wght@400;600;700&family=Inter:wght@400;600;700;800&display=swap');

:root{
  --ink: #0a0a0a;
  --paper: #f6f3ea;
  --amber: #ff8a00;
  --amber-hi: #ffc857;
  --line: rgba(246,243,234,0.14);
}

*{ box-sizing:border-box; margin:0; padding:0; -webkit-tap-highlight-color: transparent; }
html,body{ height:100%; }

body{
  background: var(--ink);
  color: var(--paper);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  overflow-x:hidden;
  transition: background 0.2s ease;
  position: relative;
}

.grime{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background:
    radial-gradient(circle at 1% 2%, rgba(214,168,40,0.35), transparent 22%),
    radial-gradient(circle at 99% 3%, rgba(196,150,30,0.28), transparent 20%),
    radial-gradient(circle at 2% 99%, rgba(214,168,40,0.32), transparent 24%),
    radial-gradient(circle at 98% 98%, rgba(180,138,26,0.26), transparent 20%);
  mix-blend-mode: multiply;
  transition: opacity 0.2s ease;
}
body.on .grime{ opacity: 0.85; }

body.on{
  background:
    radial-gradient(circle at 3% 4%, rgba(214,160,40,0.65), transparent 30%),
    radial-gradient(circle at 97% 6%, rgba(196,140,30,0.55), transparent 28%),
    radial-gradient(circle at 4% 97%, rgba(214,155,35,0.6), transparent 32%),
    radial-gradient(circle at 96% 96%, rgba(180,125,20,0.5), transparent 28%),
    radial-gradient(ellipse 95% 80% at 50% 38%, #ffffff 0%, #ffffff 28%, #fbfbf8 50%, #f3f1e8 74%, #e9e4d2 100%);
}

.app{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  position:relative;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 28px 6vw 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:800;
  font-size: clamp(15px, 2vw, 18px);
  letter-spacing: 0.5px;
}
.brand svg{ width:22px; height:22px; display:block; }
.brand svg path{ fill: var(--paper); transition: fill 0.2s ease; }
body.on .brand svg path{ fill: var(--ink); }
body.on .topbar{ color: var(--ink); }

.status-chip{
  font-family: 'JetBrains Mono','SF Mono', Consolas, monospace;
  font-size: 11px;
  letter-spacing: 1.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(246,243,234,0.65);
  display:flex;
  align-items:center;
  gap:7px;
}
.status-chip .dot{
  width:6px; height:6px;
  border-radius:50%;
  background: rgba(246,243,234,0.4);
  flex-shrink:0;
}
body.on .status-chip .dot{ background: var(--amber); }
body.on .status-chip{
  border-color: rgba(10,10,10,0.2);
  color: rgba(10,10,10,0.65);
}
.status-chip.real .dot{
  background: var(--amber-hi);
  box-shadow: 0 0 6px 1px rgba(255,200,87,0.7);
}
.status-chip.real{
  border-color: rgba(255,200,80,0.35);
  color: var(--amber-hi);
}
body.on .status-chip.real{ color: #8a5a00; border-color: rgba(138,90,0,0.3); }

.stage{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 4vh 6vw;
  gap: 6vh;
}

.torch-emblem{
  width: clamp(120px, 22vw, 200px);
  height: clamp(120px, 22vw, 200px);
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1.5px solid var(--line);
  position:relative;
}
body.on .torch-emblem{ border-color: rgba(10,10,10,0.15); }

.torch-emblem::after{
  content:"";
  position:absolute;
  inset:-30px;
  border-radius:50%;
  background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%);
  opacity:0;
  transition: opacity 0.3s ease;
}
body.on .torch-emblem::after{ opacity:1; }

.torch-emblem svg{
  width: 46%;
  height: 46%;
  display:block;
}
.torch-emblem svg path{ fill: var(--paper); transition: fill 0.2s ease; }
body.on .torch-emblem svg path{ fill: var(--ink); }

.headline{
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 0.98;
  letter-spacing: -1px;
  max-width: 14ch;
}
.sub{
  font-family:'JetBrains Mono','SF Mono', Consolas, monospace;
  font-size: clamp(11px, 1.3vw, 13px);
  letter-spacing: 1.5px;
  color: rgba(246,243,234,0.55);
  text-transform:uppercase;
}
body.on .sub{ color: rgba(10,10,10,0.55); }

.controls{
  display:flex;
  gap: 14px;
  width: min(420px, 90vw);
}
.btn{
  flex:1;
  padding: 19px 0;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.5px;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 9px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:active{ transform: scale(0.96); }
.btn svg{ width:16px; height:16px; display:block; flex-shrink:0; }

.btn-on{
  background: var(--paper);
  color: var(--ink);
}
body.on .btn-on{
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 0 0 2px rgba(10,10,10,0.12);
}
.btn-on svg path{ fill: var(--ink); }
body.on .btn-on svg path{ fill: #ffffff; }
.btn-on:disabled{ opacity:0.5; cursor:default; }

.btn-off{
  background: rgba(246,243,234,0.08);
  color: rgba(246,243,234,0.75);
  border: 1px solid var(--line);
}
body.on .btn-off{
  background: rgba(10,10,10,0.06);
  color: rgba(10,10,10,0.65);
  border-color: rgba(10,10,10,0.16);
}
.btn-off svg path, .btn-off svg rect{ stroke: rgba(246,243,234,0.75); fill:none; }
.btn-off svg{ color: rgba(246,243,234,0.75); }
body.on .btn-off svg path, body.on .btn-off svg rect{ stroke: rgba(10,10,10,0.65); }
body.on .btn-off svg{ color: rgba(10,10,10,0.65); }

.btn-off.shake{ animation: shake 0.4s ease; }
@keyframes shake{
  0%,100%{ transform: translateX(0) rotate(0); }
  20%{ transform: translateX(-7px) rotate(-1.2deg); }
  40%{ transform: translateX(6px) rotate(1.2deg); }
  60%{ transform: translateX(-5px); }
  80%{ transform: translateX(3px); }
}

.footer-note{
  padding: 0 6vw 28px;
  text-align:center;
  font-family:'JetBrains Mono','SF Mono', Consolas, monospace;
  font-size: 10.5px;
  letter-spacing: 1px;
  color: rgba(246,243,234,0.28);
  min-height: 14px;
}
body.on .footer-note{ color: rgba(10,10,10,0.35); }

.overlay{
  position:fixed;
  inset:0;
  background: rgba(5,4,1,0.78);
  backdrop-filter: blur(8px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.3s ease;
  z-index: 30;
}
.overlay.show{ opacity:1; pointer-events:all; }

.sheet{
  width:100%;
  max-width: 480px;
  background: linear-gradient(180deg, #17130a 0%, #0c0a05 100%);
  border: 1px solid rgba(255,200,80,0.12);
  border-bottom:none;
  border-radius: 28px 28px 0 0;
  padding: 40px 34px 32px;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(.2,.9,.3,1.15);
  max-height: 88vh;
  overflow-y:auto;
  position:relative;
}
.overlay.show .sheet{ transform: translateY(0); }

.sheet-drag{
  width:40px; height:4px;
  border-radius:99px;
  background: rgba(246,243,234,0.2);
  margin: 0 auto 24px;
}

.sheet-close{
  position:absolute;
  top:22px; right:22px;
  width:30px;height:30px;
  border-radius:50%;
  background: rgba(246,243,234,0.06);
  border: 1px solid rgba(246,243,234,0.1);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:not-allowed;
}
.sheet-close svg{ width:12px; height:12px; display:block; }
.sheet-close svg path{ stroke: rgba(246,243,234,0.4); }

.price-eyebrow{
  font-family:'JetBrains Mono','SF Mono', Consolas, monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--amber);
  text-align:center;
  text-transform: uppercase;
}
.price{
  font-family: 'Archivo Black','Arial Black', sans-serif;
  font-size: clamp(56px, 13vw, 84px);
  text-align:center;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  margin-top: 8px;
}
.price-sub{
  text-align:center;
  font-size: 14.5px;
  font-weight:700;
  color: rgba(246,243,234,0.82);
  margin-top: 12px;
}
.price-flavor{
  text-align:center;
  font-size: 13px;
  color: rgba(246,243,234,0.42);
  font-style: italic;
  margin-top: 3px;
}

.feature-list{
  margin: 28px 0 30px;
  display:flex;
  flex-direction:column;
  gap: 16px;
}
.feature{
  display:flex;
  align-items:center;
  gap: 14px;
  font-size: 13.5px;
  color: rgba(246,243,234,0.88);
}
.feature .ico{
  width: 30px; height:30px;
  flex-shrink:0;
  border-radius:9px;
  background: rgba(255,138,0,0.12);
  display:flex;
  align-items:center;
  justify-content:center;
}
.feature .ico svg{ width:15px; height:15px; display:block; }
.feature .ico svg path, .feature .ico svg circle, .feature .ico svg rect{ stroke: var(--amber-hi); }

.cta{
  width:100%;
  padding: 19px;
  border:none;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber));
  color: #1a1204;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  cursor:pointer;
  box-shadow: 0 14px 34px -10px rgba(255,138,0,0.55);
  font-family: inherit;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 2px;
  transition: transform 0.12s ease;
}
.cta:active{ transform: scale(0.98); }
.cta small{ font-weight:600; font-size: 10.5px; opacity:0.75; }

.restore{
  text-align:center;
  font-size: 12.5px;
  color: rgba(246,243,234,0.5);
  margin-top: 18px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor:pointer;
}

.fine-print{
  text-align:center;
  font-size: 10px;
  color: rgba(246,243,234,0.25);
  margin-top: 22px;
  line-height: 1.7;
  font-family:'JetBrains Mono','SF Mono', Consolas, monospace;
}

.video-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.92);
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.3s ease;
  z-index: 50;
  padding: 24px;
}
.video-overlay.show{ opacity:1; pointer-events:all; }

.video-box{
  width:100%;
  max-width: 520px;
  background:#000;
  border-radius: 18px;
  overflow:hidden;
  position:relative;
  box-shadow: 0 30px 80px -20px rgba(255,138,0,0.35);
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(.2,.9,.3,1.15);
}
.video-overlay.show .video-box{ transform: scale(1); }

.video-box video{
  width:100%;
  display:block;
  max-height: 78vh;
  background:#000;
}

.video-close{
  position:absolute;
  top:12px; right:12px;
  width:34px;height:34px;
  border-radius:50%;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:2;
  backdrop-filter: blur(4px);
}
.video-close svg{ width:14px; height:14px; display:block; }
.video-close svg path{ stroke: #fff; }

.toast{
  position:fixed;
  left:50%;
  bottom:28px;
  transform: translateX(-50%) translateY(14px);
  background: rgba(20,17,10,0.94);
  border: 1px solid rgba(255,200,80,0.18);
  color: var(--paper);
  padding: 13px 20px;
  border-radius: 999px;
  font-family:'JetBrains Mono','SF Mono', Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  display:flex;
  align-items:center;
  gap:10px;
  z-index: 60;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: 90vw;
  text-align:center;
}
.toast.show{ opacity:1; transform: translateX(-50%) translateY(0); }
.toast svg{ width:15px; height:15px; flex-shrink:0; }
.toast svg path{ fill: var(--amber-hi); }

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
}

@media (max-width: 480px){
  .controls{ flex-direction:column; }
}
