:root {
  --bg: #0B0D10;
  --bg-2: #13161B;
  --bg-3: #1A1E25;
  --line: #23272F;
  --text: #E6E8EB;
  --muted: #8B929C;
  --ground: #F4F1EA;
  --accent: #D97B2B;
  --accent-2: #E8934A;
  --accent-ink: #0B0D10;
  --ok: #4CAF7D;
  --sans: "Space Grotesk", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.03em; }
h1 { font-size: 64px; }
h2 { font-size: 44px; }
h3 { font-size: 24px; letter-spacing: -0.02em; }
p { margin: 0 0 16px; max-width: 62ch; }
.lead { font-size: 21px; color: var(--muted); line-height: 1.45; }
.label {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 16px;
  display: block;
  font-weight: 500;
}
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
button { font-family: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 120px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.tight { padding: 72px 0; }

/* header */
header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11,13,16,0.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); z-index: 20; }
nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -0.04em; color: var(--ground); }
.brand b { font-weight: inherit; }
.brand svg { width: 28px; height: 28px; overflow: visible; }
.brand span { color: var(--accent); }
.brand:hover { text-decoration: none; }
.brand:hover .lid { transform: translateY(-3px) rotate(-10deg); }
.brand .lid { transition: transform .35s cubic-bezier(.3,1.5,.4,1); transform-origin: 10px 48px; }
.links { display: flex; gap: 26px; align-items: center; }
.links a { color: var(--muted); font-size: 15px; }
.links a:hover, .links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.links a.btn { color: var(--accent-ink); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); padding: 6px 10px; border-radius: 8px; font-family: var(--mono); font-size: 13px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; background: var(--accent-2); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--bg-3); }
.btn.sm { padding: 8px 14px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .2s, transform .2s;
}
.card h3 { font-size: 20px; }
.card p { font-size: 15px; color: var(--muted); margin-bottom: 0; }
.card .num { font-family: var(--mono); color: var(--accent); font-size: 13px; margin-bottom: 14px; display: block; }
a.card { color: var(--text); display: block; }
a.card:hover { text-decoration: none; border-color: var(--accent); transform: translateY(-3px); }

.steps { counter-reset: step; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--mono); color: var(--accent); font-size: 20px; }
.step h3 { font-size: 22px; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 500; }

.placeholder { border: 1px dashed var(--line); border-radius: 16px; padding: 28px; color: var(--muted); }
.placeholder .tag { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.cta { text-align: center; }
.cta p { margin-left: auto; margin-right: auto; }

footer { border-top: 1px solid var(--line); padding: 48px 0; color: var(--muted); font-size: 14px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
footer img { height: 28px; vertical-align: middle; margin-right: 10px; }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } * { animation-duration: .01s !important; } }

/* hero */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 68px; }
.hero-glow { position: absolute; width: 900px; height: 900px; right: -300px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(217,123,43,.14), transparent 70%); pointer-events: none; }
.hero-word { display: inline-block; }
.hero-word span { display: inline-block; opacity: 0; transform: translateY(40px); animation: wordin .7s cubic-bezier(.2,.9,.3,1) forwards; }
@keyframes wordin { to { opacity: 1; transform: none; } }

/* unboxing animation, dark version of the logo kit loop */
.unbox { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; }
.unbox .mark { position: absolute; left: 50%; top: 50%; width: 200px; height: 200px; margin: -100px 0 0 -100px; animation: drop 6s cubic-bezier(.2,.9,.3,1) infinite; }
.unbox .shadow { position: absolute; left: 30px; top: 184px; width: 140px; height: 14px; border-radius: 50%; background: rgba(0,0,0,.5); animation: shadow 6s ease-out infinite; }
.unbox .body { position: absolute; left: 32px; top: 92px; width: 136px; height: 84px; border-radius: 12px; background: var(--accent); transform-origin: 50% 100%; overflow: hidden; animation: squash 6s ease-out infinite; }
.unbox .body i { position: absolute; left: 56px; top: 0; width: 24px; height: 84px; background: var(--ground); }
.unbox .lid { position: absolute; left: 20px; top: 64px; width: 160px; height: 32px; transform-origin: 0% 100%; animation: lid 6s cubic-bezier(.3,1.5,.4,1) infinite; }
.unbox .lid b { position: absolute; inset: 0; border-radius: 10px; background: var(--accent); overflow: hidden; }
.unbox .lid b i { position: absolute; left: 68px; top: 0; width: 24px; height: 32px; background: var(--ground); }
.unbox .lid svg { position: absolute; left: 36px; top: -50px; width: 88px; height: 52px; overflow: visible; }
.unbox .spark { position: absolute; border-radius: 50%; animation: spark 6s ease-out infinite; }
.unbox .spark:nth-child(2) { animation-name: spark2; } .unbox .spark:nth-child(3) { animation-name: spark3; } .unbox .spark:nth-child(4) { animation-name: spark4; }
.unbox .ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--line); }
.unbox .ring.r2 { inset: 12%; opacity: .7; } .unbox .ring.r3 { inset: 24%; opacity: .4; }
@keyframes drop { 0%{transform:translateY(-160px);opacity:0} 11%{transform:translateY(0);opacity:1} 100%{transform:translateY(0);opacity:1} }
@keyframes squash { 0%,11%{transform:scale(1,1)} 13%{transform:scale(1.07,.9)} 17%,100%{transform:scale(1,1)} }
@keyframes shadow { 0%{transform:scale(.4);opacity:0} 11%{transform:scale(1.08);opacity:1} 17%,100%{transform:scale(1);opacity:1} }
@keyframes lid { 0%,11%{transform:translateY(0) rotate(0)} 13%{transform:translateY(-10px)} 17%,24%{transform:translateY(0) rotate(0)} 36%,88%{transform:translateY(-26px) rotate(-14deg)} 96%,100%{transform:translateY(0) rotate(0)} }
@keyframes spark { 0%,28%{transform:scale(0);opacity:0} 36%{transform:scale(1);opacity:1} 52%,100%{transform:scale(.4) translate(10px,-26px);opacity:0} }
@keyframes spark2 { 0%,30%{transform:scale(0);opacity:0} 38%{transform:scale(1);opacity:1} 54%,100%{transform:scale(.4) translate(18px,-14px);opacity:0} }
@keyframes spark3 { 0%,29%{transform:scale(0);opacity:0} 37%{transform:scale(1);opacity:1} 53%,100%{transform:scale(.4) translate(-8px,-30px);opacity:0} }
@keyframes spark4 { 0%,31%{transform:scale(0);opacity:0} 39%{transform:scale(1);opacity:1} 55%,100%{transform:scale(.4) translate(22px,-24px);opacity:0} }

/* feature rows (Apple-style alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: 40px; }
.feature p { color: var(--muted); font-size: 18px; }

/* device frame for demos */
.device {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.02) inset;
}
.device-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-3); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: inline-block; }
.device-bar span { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.device-body { padding: 20px; min-height: 380px; position: relative; }
.demo-note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: .04em; }

/* demo shared bits */
.d-input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 12px 14px; border-radius: 10px; font-family: var(--mono); font-size: 15px; outline: none; }
.d-input:focus { border-color: var(--accent); }
.d-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.d-err { color: #E0684B; font-family: var(--mono); font-size: 13px; min-height: 18px; margin-top: 8px; }
.d-ok { color: var(--ok); }
.d-title { font-weight: 700; font-size: 20px; margin-bottom: 4px; letter-spacing: -0.02em; }
.d-sub { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.d-pill { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.d-pill.acc { color: var(--accent); border-color: rgba(217,123,43,.4); }
.d-pill.ok { color: var(--ok); border-color: rgba(76,175,125,.4); }
.d-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.d-steps i { height: 3px; flex: 1; background: var(--line); border-radius: 2px; transition: background .3s; }
.d-steps i.on { background: var(--accent); }
.fade { animation: fadein .35s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* gift grid */
.gifts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gift { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; text-align: left; color: var(--text); transition: border-color .15s, transform .15s; }
.gift:hover { border-color: var(--muted); transform: translateY(-2px); }
.gift.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gift svg { width: 100%; height: 96px; display: block; margin-bottom: 10px; filter: drop-shadow(0 8px 10px rgba(0,0,0,.45)); }
.gift b { display: block; font-size: 15px; }
.gift small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.d-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.d-form .full { grid-column: 1 / -1; }
.d-summary { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: 13px; line-height: 1.7; }
.d-summary b { color: var(--accent); }

/* order board */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.col { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-height: 260px; }
.col h4 { margin: 0 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; }
.col h4 em { font-style: normal; color: var(--accent); }
.ord { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, transform .2s; animation: fadein .3s; }
.ord:hover { border-color: var(--accent); }
.ord b { display: block; font-size: 14px; }
.ord small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.ord .late { color: #E0684B; font-family: var(--mono); font-size: 11px; }
.ord .adv { margin-top: 8px; font-family: var(--mono); font-size: 11px; color: var(--accent); }
.board-tools { display: flex; gap: 8px; margin-bottom: 12px; align-items: center; flex-wrap: wrap; }
.board-tools .d-input { width: 220px; padding: 8px 10px; font-size: 13px; }
.toast { position: absolute; left: 20px; bottom: 20px; background: var(--ground); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; font-family: var(--mono); font-size: 12px; animation: fadein .3s; }

/* quote tool */
.quote { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.quote label { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 12px 0 6px; }
.quote select, .quote input[type=number] { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 10px 12px; border-radius: 10px; font-family: var(--mono); font-size: 14px; }
.quote input[type=range] { width: 100%; accent-color: var(--accent); }
.q-out { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.q-out > div:first-child svg { filter: drop-shadow(0 6px 8px rgba(0,0,0,.45)); }
.q-out .big { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin: 6px 0 14px; }
.q-out .big small { font-size: 14px; color: var(--muted); font-weight: 400; letter-spacing: 0; font-family: var(--mono); }
.q-out table td { padding: 7px 0; font-size: 13px; font-family: var(--mono); }
.q-out table td:last-child { text-align: right; }
.tiers { display: flex; gap: 6px; margin-top: 8px; }
.tiers span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; padding: 6px 4px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.tiers span.on { border-color: var(--accent); color: var(--accent); }

/* kit builder */
.kit { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.kit-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kit-items .gift { padding: 10px; }
.kit-items .gift svg { height: 56px; margin-bottom: 6px; }
.kit-items .gift b { font-size: 13px; }
.kit-box { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; }
.kit-box .meter { height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; margin: 8px 0 12px; }
.kit-box .meter i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }
.kit-box .meter i.over { background: #E0684B; }
.kit-list { flex: 1; font-family: var(--mono); font-size: 12px; }
.kit-list div { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--line); }
.kit-list div span:last-child { color: var(--muted); }
.kit-viz { position: relative; height: 90px; margin-bottom: 8px; }
.kit-viz .kb { position: absolute; left: 50%; bottom: 0; width: 150px; height: 60px; margin-left: -75px; background: var(--accent); border-radius: 8px; }
.kit-viz .kb i { position: absolute; left: 63px; top: 0; width: 24px; height: 100%; background: var(--ground); }
.kit-viz .ki { position: absolute; bottom: 52px; width: 24px; height: 24px; border-radius: 6px; background: var(--ground); border: 2px solid var(--bg); animation: pop .3s cubic-bezier(.3,1.5,.4,1); }
@keyframes pop { from { transform: scale(0) translateY(20px); } to { transform: none; } }

/* designer */
.designer { display: grid; grid-template-columns: 1fr; gap: 14px; }
.dz-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; align-items: start; }
.dz-panel > label { margin-top: 6px; }
.dz-panel .d-summary { grid-column: 1 / -1; }
.dz-panel .range-wrap { grid-column: 1 / -1; }
.canvas { background: radial-gradient(ellipse at 50% 60%, #1B1F26, var(--bg) 70%); border: 1px solid var(--line); border-radius: 12px; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.canvas .stage { position: relative; }
.canvas .stage > svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); }
.canvas .parea { position: absolute; border: 1px dashed rgba(244,241,234,.28); border-radius: 4px; pointer-events: none; }
.canvas .logo { position: absolute; cursor: grab; user-select: none; touch-action: none; border-radius: 4px; outline: 1px solid transparent; transition: outline-color .15s; }
.canvas .logo:hover { outline-color: rgba(244,241,234,.5); }
.canvas .logo.drag { cursor: grabbing; outline-color: var(--accent); }
.canvas .logo svg { display: block; width: 100%; height: 100%; opacity: .96; mix-blend-mode: normal; }
.dz-panel label { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 12px 0 6px; }
.dz-panel label .muted { text-transform: none; letter-spacing: 0; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches button { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.swatches button.on { border-color: var(--ground); }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 8px 4px; font-family: var(--mono); font-size: 11px; cursor: pointer; white-space: nowrap; }
.seg button.on { background: var(--bg-3); color: var(--text); }
.dz-panel input[type=range] { width: 100%; accent-color: var(--accent); }
.dz-panel .d-summary { margin-top: 14px; font-size: 12px; }

/* stat band */
.band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.band div b { display: block; font-size: 44px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ground); }
.band div span { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }

/* logo showcase */
.logo-strip { display: flex; gap: 16px; align-items: center; justify-content: center; flex-wrap: wrap; }
.logo-strip img { height: 64px; border-radius: 14px; }

@media (max-width: 900px) {
  h1, .hero h1 { font-size: 40px; }
  h2, .feature h2 { font-size: 30px; }
  .lead { font-size: 18px; }
  section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .hero .container, .feature, .quote, .kit, .designer { grid-template-columns: 1fr; }
  .feature.flip .feature-text { order: 0; }
  .grid.two, .grid.three { grid-template-columns: 1fr; }
  .band { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .kit-items { grid-template-columns: repeat(2, 1fr); }
  .d-form { grid-template-columns: 1fr; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px; align-items: flex-start; }
  .links.open { display: flex; }
  .menu-btn { display: block; }
  .step { grid-template-columns: 44px 1fr; }
  .unbox { max-width: 320px; }
}
