/* Landing page. Shares colours with site.css; everything here is scoped to body.landing. */
body.landing { background: var(--bg); }
.landing main { max-width: none; padding: 0; }
.landing section { padding: 88px 24px; }
.wrap { max-width: 1160px; margin: 0 auto; }
.landing h1, .landing h2, .landing h3 { letter-spacing: -0.02em; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: var(--accent2); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 620px; }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin: 12px 0 14px; }
.section-head .lead { margin: 0 auto; }

/* nav */
.landing nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(12px); background: var(--nav-bg); }
.landing nav .links { display: flex; gap: 22px; margin-left: 28px; }
.landing nav .links a { color: var(--muted); font-size: 14px; }
.landing nav .links a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 860px) { .landing nav .links { display: none; } }

/* hero */
.hero2 { position: relative; overflow: hidden; padding: 72px 24px 40px !important; }
.hero2::before {
  /* cutting-mat grid */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(#ffffff08 1px, transparent 1px), linear-gradient(90deg, #ffffff08 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 50% 20%, #000 30%, transparent 75%);
}
.hero2 .wrap { position: relative; text-align: center; }
.hero2 h1 { font-size: clamp(36px, 6vw, 68px); line-height: 1.04; margin: 18px auto 18px; max-width: 900px; }
.hero2 h1 em { font-style: normal; background: linear-gradient(90deg, var(--accent), var(--accent2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero2 .lead { margin: 0 auto; font-size: 19px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 32px 0 14px; }
.cta .btn { padding: 14px 22px; font-size: 16px; border-radius: 10px; }
.cta .btn.primary { box-shadow: 0 10px 30px #ff7a1a40; }
.trust { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.trust span::before { content: '✓ '; color: var(--ok); }

.window { margin: 56px auto 0; max-width: 1100px; border-radius: 14px; border: 1px solid #3a3c42; background: #1f2023; box-shadow: 0 40px 120px #000a, 0 0 0 1px #ffffff08 inset; overflow: hidden; }
.window .bar { display: flex; gap: 7px; align-items: center; padding: 11px 14px; border-bottom: 1px solid #2c2e33; }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3c42; }
.window .bar span { margin-left: 10px; color: var(--muted); font-size: 12px; }
.window img { display: block; width: 100%; height: auto; }

/* formats strip */
.strip { padding: 28px 24px !important; border-top: 1px solid #26282d; border-bottom: 1px solid #26282d; background: #1a1b1e; }
.strip .wrap { display: flex; gap: 14px 28px; align-items: center; justify-content: center; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.strip b { color: var(--text); font-weight: 600; }
.chip { border: 1px solid #34363c; border-radius: 999px; padding: 5px 12px; font-size: 13px; color: #d4d6db; background: #202125; }

/* before / after */
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .versus { grid-template-columns: 1fr; } }
.vs-card { border-radius: 16px; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.vs-card h3 { margin: 0 0 6px; font-size: 20px; }
.vs-card .time { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.vs-card ol { margin: 0; padding-left: 20px; line-height: 2; color: #c9cbd0; }
.vs-card.old ol li::marker { color: #6b6e75; }
.vs-card.new { border-color: #ff7a1a66; background: linear-gradient(180deg, #2a1f17, var(--panel) 60%); }
.vs-card.new ol li::marker { color: var(--accent); font-weight: 700; }
.vs-card .big-time { font-size: 34px; font-weight: 800; color: var(--accent2); }
.vs-card.old .big-time { color: #8d9097; text-decoration: line-through; text-decoration-color: #ff606099; }

/* steps */
.steps3 { display: grid; gap: 64px; }
.step { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.step:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.step:nth-child(even) .step-text { order: 2; }
@media (max-width: 900px) { .step, .step:nth-child(even) { grid-template-columns: 1fr; } .step:nth-child(even) .step-text { order: 0; } }
.step-num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; background: #ff7a1a22; color: var(--accent); border: 1px solid #ff7a1a55; }
.step h3 { font-size: 28px; margin: 16px 0 10px; }
.step p { color: var(--muted); line-height: 1.65; font-size: 16px; }
.step ul { color: #c9cbd0; line-height: 1.9; padding-left: 18px; margin: 0; }
.shot { border-radius: 12px; border: 1px solid #34363c; overflow: hidden; box-shadow: 0 24px 70px #0008; }
.shot img { display: block; width: 100%; height: auto; }

/* laser demo */
.laser { background: radial-gradient(ellipse at 50% 0%, #2a1d14 0%, var(--bg) 60%); }
.board { max-width: 1100px; margin: 0 auto; border-radius: 14px; padding: 18px; background: #e9e2d3; box-shadow: 0 30px 90px #000b, inset 0 0 0 1px #0000000d; }
.board svg { display: block; width: 100%; height: auto; }
.board svg [stroke] { vector-effect: non-scaling-stroke; stroke-width: 1.6px; }
.board svg #LABEL * { stroke-width: 0.9px; }
.board svg #ENGRAVE * { stroke-width: 1.2px; }
.board.lit #CUT { filter: drop-shadow(0 0 2px #ff3a00aa); }
.legend { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 22px; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 22px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 8px; }

/* feature grid */
.features3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 960px) { .features3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features3 { grid-template-columns: 1fr; } }
.feat { padding: 24px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); transition: border-color 0.2s, transform 0.2s; }
.feat:hover { border-color: #ff7a1a66; transform: translateY(-2px); }
.feat .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #ff7a1a1a; color: var(--accent); margin-bottom: 14px; }
.feat .ic svg { width: 20px; height: 20px; }
.feat h3 { margin: 0 0 8px; font-size: 17px; }
.feat p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }

/* materials */
.mats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.mat-card { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.mat-card .sw { width: 26px; height: 26px; border-radius: 6px; border: 1px solid #0006; flex: none; }
.mat-card b { display: block; font-size: 14px; }
.mat-card span { color: var(--muted); font-size: 12.5px; }
.mat-card.no { border-color: #6a2a2a; background: #2a1d1d; }
.mat-card.no span { color: #ff9a9a; }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 980px; margin: 0 auto; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.price { padding: 28px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); text-align: center; }
.price.best { border-color: var(--accent); box-shadow: 0 20px 60px #ff7a1a22; position: relative; }
.price.best::before { content: 'Most popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #1b1004; font-size: 12px; font-weight: 800; padding: 3px 12px; border-radius: 999px; }
.price .cr { font-size: 46px; font-weight: 800; }
.price .bdt { font-size: 22px; font-weight: 700; color: var(--accent2); margin: 6px 0 4px; }
.price .per { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price .btn { width: 100%; }
.cost-note { max-width: 980px; margin: 22px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 820px) { .cost-note { grid-template-columns: 1fr; } }
.cost-note div { border: 1px dashed var(--line); border-radius: 12px; padding: 16px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cost-note b { color: var(--text); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; font-size: 17px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 4px 20px; color: var(--muted); line-height: 1.7; }

/* final cta + footer */
.final { text-align: center; }
.final .box { max-width: 980px; margin: 0 auto; border-radius: 22px; padding: 56px 24px; border: 1px solid #ff7a1a55; background: radial-gradient(ellipse at 50% 0%, #3a2414, #1f2023 70%); }
.final h2 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.landing footer { border-top: 1px solid var(--line); padding: 34px 24px; color: var(--muted); font-size: 14px; }
.landing footer .wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.landing footer .wrap .grow { flex: 1; }
.landing footer a { color: var(--muted); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.landing footer .credit { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.landing footer .by { padding-left: 12px; border-left: 1px solid var(--line); }
.landing footer .by a { color: var(--text); font-weight: 600; }
.landing footer .by a:hover { color: var(--accent2); }

.mat-card.warn { border-color: #6a5420; background: #2a2416; }
.mat-card.warn span { color: var(--warn); }

/* ---------------------------------------------------------------- smart picking */
#smart { background: radial-gradient(ellipse at 50% 0%, #10282a 0%, var(--bg) 55%); }
.jdemo { border: 1px solid #2f4446; border-radius: 20px; background: #18191c; padding: 26px; box-shadow: 0 30px 90px #0008; }
.jhead { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 18px; }
@media (max-width: 900px) { .jhead { grid-template-columns: 1fr; } }
.jhead h3 { font-size: 24px; margin: 0 0 6px; }
.jhead p { margin: 0; max-width: 560px; line-height: 1.6; }
.jtabs { display: flex; gap: 8px; flex-wrap: wrap; }
.jtabs button { height: auto; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 14px; border-radius: 12px; background: #202226; border-color: #33363c; text-align: left; min-width: 132px; }
.jtabs button span:last-child { font-size: 12.5px; color: var(--muted); }
.jtabs button.on { border-color: #3fd0c9; background: #3fd0c914; box-shadow: 0 0 0 1px #3fd0c955, 0 8px 24px #3fd0c91a; }
.jtabs button.on span:last-child { color: #bff7f3; }
.landing kbd { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 6px; background: #2c2f35; border: 1px solid #44474e; border-bottom-width: 2px; color: var(--text); }
.keys { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--muted); font-size: 12px; }
.jstage { position: relative; border-radius: 14px; background: #2a2b2e; overflow: hidden; padding: 60px 16px 48px;
  background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px); background-size: 28px 28px; }
.jstage svg { display: block; width: 100%; max-width: 680px; height: auto; max-height: 420px; margin: 0 auto; overflow: visible; }
.jstage.swap svg { animation: jswap 0.45s ease; }
@keyframes jswap { from { opacity: 0.25; transform: scale(0.985); } to { opacity: 1; transform: none; } }
.jstage .glow { animation: glowp 1.6s ease-in-out infinite; }
.jstage .cut { animation: cutp 1.6s ease-in-out infinite; }
@keyframes glowp { 0%, 100% { filter: drop-shadow(0 0 2px #3fd0c9aa); } 50% { filter: drop-shadow(0 0 9px #3fd0c9); } }
@keyframes cutp { 0%, 100% { filter: drop-shadow(0 0 2px #ff4d4daa); } 50% { filter: drop-shadow(0 0 10px #ff4d4d); } }
.pbar { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 7px 10px 7px 12px; background: #18191cf2; border: 1px solid #3fd0c9; border-radius: 10px; font-size: 13px; z-index: 2; }
.pbar i { width: 8px; height: 8px; border-radius: 50%; background: #3fd0c9; box-shadow: 0 0 8px #3fd0c9; animation: glowp 1s infinite; }
.pbar .k { font-size: 11.5px; padding: 3px 8px; border-radius: 6px; border: 1px solid #3a3d44; color: var(--muted); }
.pbar .k:first-of-type { background: #3fd0c9; color: #062523; border-color: #3fd0c9; font-weight: 700; }
@media (max-width: 560px) { .pbar b { font-size: 12px; } .pbar .k:last-child { display: none; } }
.jlegend { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.jlegend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.jtext { margin: 18px 4px 0; font-size: 16px; line-height: 1.65; color: #c9cbd0; min-height: 3.3em; }
.jtext b { color: #3fd0c9; }

.fx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
@media (max-width: 1000px) { .fx-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .fx-grid { grid-template-columns: 1fr; } }
.fx-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 14px 14px 20px; transition: border-color 0.2s, transform 0.2s; }
.fx-card:hover { border-color: #3fd0c955; transform: translateY(-2px); }
.fx-card h3 { font-size: 17.5px; margin: 16px 6px 8px; }
.fx-card p { margin: 0 6px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.fx-stage { position: relative; aspect-ratio: 16 / 10.5; border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 14px 44px;
  background: #2a2b2e; background-image: linear-gradient(#ffffff07 1px, transparent 1px), linear-gradient(90deg, #ffffff07 1px, transparent 1px); background-size: 22px 22px; }
.fx-stage > svg { flex: 1; min-height: 0; width: 100%; display: block; overflow: visible; }
.fx-stage.light { background: #34302a; padding-bottom: 14px; }
.fx-stage .glow { animation: glowp 1.2s ease-in-out infinite; }
.fx-stage svg g, .fx-stage svg path, .fx-stage svg polygon, .t-chip { transition: opacity 0.5s, transform 0.9s cubic-bezier(.3, .8, .3, 1), stroke-dashoffset 1.1s ease; }

/* thickness */
#fx-thick .t-face, #fx-thick .t-back, #fx-thick .t-dim, #fx-thick .t-flat, #fx-thick .t-chip, #fx-thick .t-cursor { opacity: 0; }
#fx-thick.st1 .t-cursor { opacity: 1; }
#fx-thick.st1 .ripple { animation: ripple 0.9s ease-out 1; }
@keyframes ripple { from { r: 2; opacity: 1; } to { r: 9; opacity: 0; } }
#fx-thick.st2 .t-face { opacity: 1; }
#fx-thick.st3 .t-back, #fx-thick.st3 .t-dim { opacity: 1; }
#fx-thick.st4 .t-chip { opacity: 1; }
#fx-thick.st5 .t-flat { opacity: 1; }
.t-chip, .m-count, .n-count, .f-count { position: absolute; left: 12px; bottom: 10px; font-size: 12.5px; padding: 5px 10px; border-radius: 8px; background: #18191cee; border: 1px solid var(--line); color: var(--muted); }
.t-chip { border-color: #3ccf8666; color: #c9cbd0; }
.t-chip b { color: var(--ok); }
.f-count b { color: var(--text); }

/* merge */
#fx-merge .m-solid, #fx-merge .m-out { opacity: 0; }
#fx-merge .m-out { stroke-dasharray: 100; stroke-dashoffset: 100; }
#fx-merge.st1 .m-pieces { opacity: 0.25; }
#fx-merge.st1 .m-solid { opacity: 1; }
#fx-merge.st2 .m-tris { opacity: 0; }
#fx-merge.st2 .m-out { opacity: 1; stroke-dashoffset: 0; }
#fx-merge.st3 .m-pieces { opacity: 0; }
.m-count .after, .n-count .after { display: none; color: var(--accent2); font-weight: 700; }
#fx-merge.st2 .m-count .before, #fx-nest.st1 .n-count .before { display: none; }
#fx-merge.st2 .m-count .after, #fx-nest.st1 .n-count .after { display: inline; }

/* units */
#fx-units { padding-bottom: 12px; }
.u-row { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.u-chip { font-size: 12px; padding: 4px 9px; border-radius: 999px; border: 1px solid #3a3d44; color: var(--muted); cursor: pointer; transition: all 0.25s; }
.u-chip.on { border-color: var(--accent); color: #1d1003; background: var(--accent); font-weight: 700; }
.u-out { font-size: 13px; color: var(--muted); }
.u-out b { color: var(--text); }

/* nest */
.n1 { transform: translate(332px, 16px); } .n2 { transform: translate(332px, 50px); } .n3 { transform: translate(332px, 84px); } .n4 { transform: translate(332px, 124px); }
#fx-nest.st1 .n1 { transform: translate(41px, 40px); } #fx-nest.st1 .n2 { transform: translate(41px, 70px); }
#fx-nest.st1 .n3 { transform: translate(144px, 41px); } #fx-nest.st1 .n4 { transform: translate(226px, 16px); }
#fx-nest.st2 .n-sheet2 { opacity: 0; }
@media (max-width: 640px) {
  .jdemo { padding: 16px; border-radius: 16px; }
  .jhead h3 { font-size: 20px; }
  .jtabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .jtabs button { min-width: 0; padding: 8px; }
  .jtabs button span:last-child { font-size: 11.5px; }
  .landing kbd { font-size: 10.5px; padding: 1px 5px; }
  .jstage { padding: 58px 6px 66px; }
  .pbar { max-width: calc(100% - 16px); gap: 8px; padding: 6px 8px; }
  .pbar b { overflow: hidden; text-overflow: ellipsis; }
  .jlegend { gap: 4px 12px; font-size: 11.5px; padding: 0 8px; }
  .jtext { font-size: 15px; }
}

/* ---------------------------------------------------------------- light theme */
.alt { background: var(--alt-bg); }
:root[data-theme="light"] .hero2::before { background-image: linear-gradient(#0000000b 1px, transparent 1px), linear-gradient(90deg, #0000000b 1px, transparent 1px); }
:root[data-theme="light"] .window { border-color: var(--line-strong); background: #1f2023; box-shadow: 0 40px 100px #3b2a1430; }
:root[data-theme="light"] .strip { border-color: var(--line); background: var(--alt-bg); }
:root[data-theme="light"] .chip { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
:root[data-theme="light"] .vs-card ol, :root[data-theme="light"] .step ul { color: #3d3f45; }
:root[data-theme="light"] .vs-card.new { background: linear-gradient(180deg, #fff1e6, var(--panel) 60%); }
:root[data-theme="light"] .vs-card.old .big-time { color: #9a9ca2; }
:root[data-theme="light"] .shot { border-color: var(--line-strong); box-shadow: 0 24px 60px #3b2a1426; }
:root[data-theme="light"] .laser { background: radial-gradient(ellipse at 50% 0%, #fde6d2 0%, var(--bg) 60%); }
:root[data-theme="light"] .board { box-shadow: 0 30px 70px #3b2a1430, inset 0 0 0 1px #0000000d; }
:root[data-theme="light"] .mat-card .sw { border-color: #0002; }
:root[data-theme="light"] .mat-card.no { border-color: #f1b9b9; background: #fff3f3; }
:root[data-theme="light"] .mat-card.no span { color: #b73030; }
:root[data-theme="light"] .mat-card.warn { border-color: #ecd29a; background: #fff8e8; }
:root[data-theme="light"] .final .box { background: radial-gradient(ellipse at 50% 0%, #ffe3cc, var(--surface) 70%); }
:root[data-theme="light"] .price.best { box-shadow: 0 20px 50px #ff7a1a26; }
:root[data-theme="light"] #smart { background: radial-gradient(ellipse at 50% 0%, #d9f3f1 0%, var(--bg) 55%); }
:root[data-theme="light"] .jdemo { border-color: #bfe3e0; background: var(--surface); box-shadow: 0 30px 80px #1b5a5620; }
:root[data-theme="light"] .jtabs button { background: var(--surface-2); border-color: var(--line-strong); }
:root[data-theme="light"] .jtabs button.on { background: #e3f8f6; border-color: #23aaa3; box-shadow: 0 0 0 1px #23aaa355; }
:root[data-theme="light"] .jtabs button.on span:last-child { color: #0f6f6a; }
:root[data-theme="light"] .landing kbd { background: var(--surface); border-color: var(--line-strong); }
:root[data-theme="light"] .jtext { color: #3d3f45; }
:root[data-theme="light"] .jtext b { color: #0f8f88; }
:root[data-theme="light"] .fx-card:hover { border-color: #23aaa366; }
/* The 3D stages stay dark like the app's viewport: give them the dark tokens back. */
:root[data-theme="light"] .jstage, :root[data-theme="light"] .fx-stage {
  --text: #ededef; --muted: #9b9ea6; --line: #2e3036; --accent2: #ffb46b; --ok: #3ccf86; --accent: #ff7a1a; --on-accent: #1d1003;
  color: var(--text);
}
