/* Bug Blade sales page. Screen Studio's page order, in Manrope, black and grey,
   gold gradients and one amber accent. Dark only: the brand is black. */

:root {
  --ink: #08080a;
  --panel: #111114;
  --panel-2: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f3f2ee;
  --muted: #9a9ba3;
  --dim: #6c6d75;
  --amber: #f2bd4b;
  --amber-hi: #f8cf72;
  --amber-lo: #d99a22;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --r: 14px;
  --step-time: 6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 500 16px/1.55 Manrope, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul { margin: 0; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.hot { color: var(--amber); }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font: 700 14px/1 Manrope, system-ui, sans-serif; color: #16120a; white-space: nowrap;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber) 50%, var(--amber-lo));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 20px rgba(242, 189, 75, 0.18);
  transition: transform 160ms var(--ease-out), filter 200ms ease;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .btn:hover { filter: brightness(1.06); } }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 11px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a:not(.btn) { color: var(--muted); transition: color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .nav-links a:not(.btn):hover { color: var(--text); } }

/* The mark: Bug Blade icon on a dark tile over a gold glow */
.mark { position: relative; width: 96px; height: 96px; margin: 0 auto 26px; }
.mark::before {
  content: ""; position: absolute; inset: -28px; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 189, 75, 0.32), rgba(242, 189, 75, 0) 65%);
}
.tile {
  position: relative; width: 100%; height: 100%; border-radius: 27%;
  display: grid; place-items: center;
  background: linear-gradient(160deg, #2a2a30, #0f0f12 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.06), 0 20px 50px rgba(0, 0, 0, 0.6);
}
.tile img { width: 56%; height: auto; }

/* Hero */
.hero { text-align: center; padding-top: 56px; }
h1 { font-weight: 800; font-size: clamp(34px, 4.3vw, 58px); letter-spacing: -0.035em; line-height: 1.05; text-wrap: balance; }
.sub { margin: 18px auto 0; max-width: 51.7ch; color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.55; text-wrap: balance; }
.hero .btn { margin-top: 28px; }

/* Demo video on a gold glow */
.stage { position: relative; margin: 64px auto 0; max-width: 1120px; }
.stage::before {
  content: ""; position: absolute; top: 30%; bottom: -18%;
  left: calc(-1 * min(6%, var(--gutter))); right: calc(-1 * min(6%, var(--gutter))); /* never wider than the screen */
  background:
    radial-gradient(45% 55% at 25% 60%, rgba(242, 189, 75, 0.75), transparent 70%),
    radial-gradient(45% 55% at 78% 55%, rgba(230, 120, 20, 0.55), transparent 70%),
    radial-gradient(35% 45% at 52% 90%, rgba(200, 200, 210, 0.35), transparent 70%);
  filter: blur(70px); opacity: 0.9; pointer-events: none;
}
.video {
  position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: #000;
  border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
}
.video video { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
/* Play button over the still. The whole frame is the button; it fades out once the video plays. */
.play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.12));
  transition: opacity 200ms var(--ease-out), visibility 0s linear 0s;
}
.play-dot {
  display: grid; place-items: center; width: clamp(56px, 7vw, 84px); aspect-ratio: 1; border-radius: 50%;
  background: linear-gradient(180deg, var(--amber-hi), var(--amber) 50%, var(--amber-lo));
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(242, 189, 75, 0.18);
  transition: transform 160ms var(--ease-out);
}
.play-dot::after { /* the triangle */
  content: ""; margin-left: 12%; border-left: 0.3em solid #16120a;
  border-top: 0.18em solid transparent; border-bottom: 0.18em solid transparent;
  font-size: clamp(56px, 7vw, 84px);
}
.play-label {
  font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px;
  background: rgba(10, 10, 12, 0.62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.play-label em { font-style: normal; font-weight: 600; opacity: 0.65; margin-left: 6px; }
.play:active .play-dot { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .play:hover .play-dot { transform: scale(1.05); } }
.video.playing .play { opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }

/* Section heads */
h2 { font-weight: 800; font-size: clamp(30px, 3.6vw, 48px); letter-spacing: -0.03em; line-height: 1.05; }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; margin-top: 14px; max-width: 52ch; }
.feature { padding: 140px 0 120px; scroll-margin-top: 24px; }
.more, .price, .faq { padding: 40px 0 120px; scroll-margin-top: 24px; }
.price, .faq { text-align: center; }
.price .lead { margin-left: auto; margin-right: auto; }
/* While the steps and tiles are hidden, the price follows the video: give it the gap the steps had */
.more[hidden] + .price { padding-top: 140px; }

/* Steps: Screen Studio's list on the left, clip on the right */
.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 32px; margin-top: 48px; align-items: start; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tab {
  all: unset; box-sizing: border-box; display: block; cursor: pointer;
  padding: 16px 18px; border-radius: 12px; color: var(--muted);
  transition: background-color 200ms ease, box-shadow 200ms ease;
}
.tab:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.tab b { display: block; color: #c9c9cf; font-size: 16px; font-weight: 700; letter-spacing: -0.01em; transition: color 200ms ease; }
.tab-body, .tab .bar { display: none; }
.tab-body { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.tab .bar { height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); margin-top: 14px; overflow: hidden; }
.tab .bar i { display: block; height: 100%; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); }
.tab[aria-selected="true"] { background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.tab[aria-selected="true"] b { color: var(--text); }
.tab[aria-selected="true"] .tab-body, .tab[aria-selected="true"] .bar { display: block; }
.tab[aria-selected="true"] .bar i { transform: scaleX(1); }
.playing .tab[aria-selected="true"] .bar i { animation: fill var(--step-time) linear both; }
.paused .tab[aria-selected="true"] .bar i { animation-play-state: paused; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (hover: hover) and (pointer: fine) { .tab[aria-selected="false"]:hover b { color: var(--text); } }

.wall {
  border-radius: 20px; padding: clamp(18px, 3vw, 40px); overflow: hidden;
  background:
    radial-gradient(70% 90% at 0% 100%, #ffd77a 0, #f2bd4b 22%, rgba(217, 138, 26, 0.9) 45%, transparent 72%),
    radial-gradient(70% 80% at 100% 100%, #c4661a 0, rgba(140, 70, 20, 0.7) 40%, transparent 75%),
    radial-gradient(90% 70% at 70% 0%, #5a5a64 0, #2a2a30 45%, transparent 80%),
    linear-gradient(160deg, #3a3a42, #16161a);
}
.panel img { width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); }
.panel:not([hidden]) { animation: swap 320ms var(--ease-out); }
@keyframes swap { from { opacity: 0; transform: scale(0.985); } }
.dots { display: none; }

/* What you can change: Screen Studio's 2x2 grid */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.cell { background: var(--panel); border-radius: 20px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.cell-text { padding: 26px 28px 22px; }
.cell h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.cell p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 6px; }
.pic { margin-top: auto; padding: 40px 40px 0; background: var(--g); }
.pic img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px 10px 0 0; border: 1px solid rgba(255, 255, 255, 0.14); border-bottom: 0; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.g1 { --g: radial-gradient(90% 120% at 0% 100%, #ffd77a, #f2bd4b 25%, #c9780f 55%, transparent 85%), linear-gradient(160deg, #3a3a42, #18181c); }
.g2 { --g: radial-gradient(100% 120% at 100% 100%, #f0a040, #c4661a 35%, #6a3510 65%, transparent 90%), linear-gradient(200deg, #44444c, #18181c); }
.g3 { --g: radial-gradient(110% 110% at 50% 115%, #ffe29a, #f2bd4b 30%, #b8720f 60%, transparent 90%), linear-gradient(180deg, #32323a, #18181c); }
.g4 { --g: radial-gradient(80% 100% at 0% 0%, #8a8a96, #4a4a54 40%, transparent 75%), radial-gradient(90% 110% at 100% 100%, #f8cf72, #d99a22 35%, transparent 80%), linear-gradient(160deg, #2c2c33, #18181c); }

/* Price: one full-width panel on a thin gold edge */
.card {
  position: relative; margin-top: 48px; text-align: left;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center;
  padding: clamp(28px, 4vw, 56px); border-radius: 24px;
  background:
    radial-gradient(60% 120% at 0% 100%, rgba(242, 189, 75, 0.14), transparent 70%),
    linear-gradient(180deg, #19191d, #111114);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 40px 100px rgba(0, 0, 0, 0.6);
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 25px; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(242, 189, 75, 0.8), rgba(242, 189, 75, 0) 45%, rgba(242, 189, 75, 0) 70%, rgba(242, 189, 75, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.card-name { font-weight: 700; font-size: 20px; }
.amt { font-weight: 800; font-size: clamp(56px, 6vw, 80px); letter-spacing: -0.04em; line-height: 1; margin-top: 16px; }
.card .btn { margin-top: 28px; min-width: 240px; }
.card-list { list-style: none; padding: 0 0 0 48px; border-left: 1px solid var(--line); display: grid; gap: 16px; font-size: 16px; }
.card-list li { display: flex; gap: 12px; align-items: center; }
.card-list li::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: rgba(242, 189, 75, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2bd4b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Questions */
.qs { max-width: 760px; margin: 44px auto 0; text-align: left; }
details { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 4px; font-size: 16px; font-weight: 600;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease-out);
}
details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
details p { color: var(--muted); font-size: 15px; line-height: 1.6; padding: 0 4px 22px; max-width: 65ch; }

/* Close */
.close { text-align: center; padding: 60px 0 140px; }
.mark-lg { width: 128px; height: 128px; margin-bottom: 40px; }
.mark-lg::before { inset: -80px; background: radial-gradient(circle, rgba(242, 189, 75, 0.45), rgba(242, 189, 75, 0) 62%); }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--dim); font-size: 13px; }
.foot .brand { color: var(--text); font-size: 15px; }
.foot-links { display: flex; gap: 22px; }

/* Motion: content is visible by default; these only arm when JS runs and motion is allowed */
.motion .enter { animation: rise 700ms var(--ease-out) both; }
.motion .enter:nth-child(2) { animation-delay: 60ms; }
.motion .enter:nth-child(3) { animation-delay: 120ms; }
.motion .enter:nth-child(4) { animation-delay: 180ms; }
.motion .enter:nth-child(5) { animation-delay: 260ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.motion .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); }
.motion .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .panel:not([hidden]) { animation: none; }
}

/* Phone */
@media (max-width: 767px) {
  .nav-links a:not(.btn) { display: none; }
  .hero { padding-top: 36px; }
  .mark { width: 72px; height: 72px; }
  .stage { margin-top: 40px; }
  .video { border-radius: 10px; }
  .play { gap: 10px; }
  .play-label { font-size: 13px; padding: 6px 11px; }
  .feature { padding: 88px 0 72px; }
  .more, .price, .faq { padding: 24px 0 80px; }
  .more[hidden] + .price { padding-top: 88px; }
  .split { grid-template-columns: 1fr; gap: 20px; margin-top: 28px; }
  .tab[aria-selected="false"] { display: none; }
  .dots { display: flex; gap: 6px; justify-content: center; }
  .dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.15); transition: background-color 200ms ease; }
  .dots i.on { background: var(--amber); }
  .bento { grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
  .cell-text { padding: 20px 20px 16px; }
  .pic { padding: 24px 24px 0; }
  .card { grid-template-columns: 1fr; gap: 28px; }
  .card .btn { width: 100%; min-width: 0; }
  .card-list { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .close { padding: 40px 0 90px; }
  .mark-lg { width: 96px; height: 96px; }
  .foot { flex-direction: column; gap: 14px; }
}
