:root{
  --bg: #0a0a0d;
  --panel: #0f0f13;
  --ink: #ffffff;
  --ink-60: rgba(255,255,255,0.60);
  --ink-40: rgba(255,255,255,0.40);
  --ink-20: rgba(255,255,255,0.20);
  --hair: rgba(255,255,255,0.08);
  --hair-strong: rgba(255,255,255,0.14);
  --surface: rgba(255,255,255,0.02);
  --surface-2: rgba(255,255,255,0.04);

  --accent: #FF4F00;
  --sand: #D9C9A3;
  --violet: #7C5CFF;
  --warm: #FF7A2A;

  --display: "Inter Tight", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
*{ box-sizing: border-box; }
html,body{ margin:0; padding:0; background: #050507; color: var(--ink); font-family: var(--display); }

/* ---------- top nav ---------- */
.topnav{
  position: sticky; top: 0; z-index: 50;
  display:flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: rgba(5,5,7,0.85); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.topnav .brand{
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink);
  display:flex; align-items:center; gap: 10px;
}
.topnav .brand .dot{ width: 10px; height: 10px; border-radius: 50%; background: var(--accent); display:inline-block; }
.topnav .links{ display:flex; gap: 6px; }
.topnav .links a{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-60); text-decoration: none;
  padding: 8px 14px; border-radius: 999px; border: 1px solid transparent;
  transition: all .15s ease;
}
.topnav .links a:hover{ color: var(--ink); background: rgba(255,255,255,0.04); }
.topnav .links a.active{ color: var(--ink); border-color: var(--hair-strong); background: rgba(255,255,255,0.04); }
.topnav .actions{ display:flex; gap: 10px; align-items:center; }
.btn{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  border: 1px solid var(--hair-strong); background: rgba(255,255,255,0.03); color: var(--ink);
  padding: 10px 16px; border-radius: 999px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .15s ease;
}
.btn:hover{ background: rgba(255,255,255,0.08); }
.btn.primary{ background: var(--accent); color: #0a0a0d; border-color: transparent; }
.btn.primary:hover{ filter: brightness(1.05); }
.btn svg{ width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }
.btn.ghost{ border-color: transparent; }

/* ---------- page head ---------- */
.page-head{
  max-width: 1400px;
  margin: 0 auto;
  padding: 56px 40px 24px;
}
.page-eyebrow{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
}
.page-title{
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  font-size: 44px; line-height: 1.05; margin: 14px 0 8px; max-width: 900px;
}
.page-title .dim{ color: var(--ink-60); }
.page-sub{
  font-size: 15px; color: var(--ink-60); max-width: 720px; line-height: 1.55;
}

/* ---------- index grid ---------- */
.index-grid{
  max-width: 1400px; margin: 24px auto 120px; padding: 0 40px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
@media (max-width: 900px){ .index-grid{ grid-template-columns: 1fr; } }
.card{
  border: 1px solid var(--hair); border-radius: 18px;
  background: var(--surface); padding: 28px;
  text-decoration: none; color: inherit;
  transition: all .2s ease;
  display: flex; flex-direction: column; gap: 18px;
}
.card:hover{ background: rgba(255,255,255,0.04); border-color: var(--hair-strong); transform: translateY(-2px); }
.card .num{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
}
.card h3{
  font-family: var(--display); font-weight: 600; letter-spacing:-0.02em; font-size: 34px; margin: 0; line-height: 1.05;
}
.card p{ font-size: 14px; color: var(--ink-60); line-height: 1.5; margin: 0; }
.card .foot{
  display:flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-40);
  border-top: 1px solid var(--hair); padding-top: 14px; margin-top: auto;
}
.card .peek{
  aspect-ratio: 4/5; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--hair);
  overflow: hidden; position: relative;
}
.card .peek-inner{
  position:absolute; inset: 0;
  width: 1080px; height: 1350px;
  transform-origin: top left;
  transform: scale(0.32);
}
@media (max-width: 900px){ .card .peek-inner{ transform: scale(0.25); } }

/* ---------- carousel page ---------- */
.carousel-page{
  max-width: 1400px; margin: 0 auto; padding: 40px 40px 120px;
}
.carousel-head{
  display:flex; align-items:flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.carousel-head .meta .label{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-40);
}
.carousel-head .meta h2{
  font-family: var(--display); font-weight: 600; letter-spacing:-0.02em; font-size: 36px; margin: 8px 0 0;
}
.carousel-head .meta p{
  font-size: 14px; color: var(--ink-60); margin: 8px 0 0; max-width: 600px;
}
.carousel-head .actions{ display:flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- slide row ---------- */
.slide-row{
  display: flex; gap: 20px; overflow-x: auto; padding: 12px 4px 28px;
  scrollbar-color: rgba(255,255,255,0.15) transparent;
  scroll-snap-type: x mandatory;
}
.slide-row::-webkit-scrollbar{ height: 10px; }
.slide-row::-webkit-scrollbar-thumb{ background: rgba(255,255,255,0.12); border-radius: 10px; }

/* slide frame */
.slide{
  flex: 0 0 auto;
  width: 360px;
  aspect-ratio: 1080 / 1350;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--hair);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.6);
  scroll-snap-align: start;
  transition: border-color .15s;
}
.slide:hover{ border-color: var(--hair-strong); }
.slide.editing{ outline: 2px solid var(--accent); outline-offset: -2px; }
.slide-inner{
  position: absolute; inset: 0;
  width: 1080px; height: 1350px;
  transform-origin: top left;
  transform: scale(calc(360 / 1080));
  background: var(--bg);
  color: var(--ink);
  font-family: var(--display);
}
.slide-index{
  position: absolute; top: 10px; left: 12px;
  z-index: 5;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--ink-40);
  background: rgba(0,0,0,0.5);
  padding: 4px 8px; border-radius: 999px;
  border: 1px solid var(--hair);
  backdrop-filter: blur(4px);
  pointer-events: none;
}
.slide-actions{
  position: absolute; top: 10px; right: 10px; z-index: 5;
  display:none;
  gap: 6px;
}
.slide:hover .slide-actions{ display: flex; }
.slide-actions button{
  border: 1px solid var(--hair-strong); background: rgba(0,0,0,0.5); color: var(--ink);
  width: 28px; height: 28px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
  padding: 0;
}
.slide-actions button:hover{ background: rgba(0,0,0,0.8); }
.slide-actions svg{ width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ---------- inline editable text ---------- */
[data-editable]{
  outline: none;
  border-radius: 4px;
  transition: background .1s, box-shadow .1s;
  cursor: text;
}
[data-editable]:hover{
  background: rgba(255,79,0,0.08);
  box-shadow: 0 0 0 4px rgba(255,79,0,0.08);
}
[data-editable]:focus{
  background: rgba(255,79,0,0.12);
  box-shadow: 0 0 0 4px rgba(255,79,0,0.18);
}

/* ---------- slide internals ---------- */
.s-pad{ padding: 80px; height: 100%; display:flex; flex-direction: column; position: relative; }
.eyebrow{
  font-family: var(--mono); font-size: 22px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent);
}
.eyebrow.dim{ color: var(--ink-40); }
.eyebrow.sand{ color: var(--sand); }
.eyebrow.violet{ color: var(--violet); }
.eyebrow.warm{ color: var(--warm); }

.h-xl{ font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; font-size: 128px; line-height: 1.0; }
.h-lg{ font-family: var(--display); font-weight: 600; letter-spacing: -0.025em; font-size: 96px; line-height: 1.02; }
.h-md{ font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 72px; line-height: 1.05; }
.h-sm{ font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; font-size: 56px; line-height: 1.1; }
.dim{ color: var(--ink-60); }
.dim-strong{ color: var(--ink-40); }
.body-lg{ font-size: 32px; line-height: 1.45; color: var(--ink-60); }
.body{ font-size: 28px; line-height: 1.5; color: var(--ink-60); }
.label{ font-family: var(--mono); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); }

.foot{
  position:absolute; left:80px; right:80px; bottom: 64px;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40);
}
.foot .mark{ color: var(--ink); }
.foot .mark .dot{
  display:inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  vertical-align: middle; margin-right: 10px; transform: translateY(-2px);
}

.swipe-pill{
  position:absolute; right:80px; bottom: 120px;
  display:inline-flex; align-items:center; gap: 12px;
  color: var(--ink); border: 1px solid var(--hair-strong);
  padding: 16px 22px; border-radius: 999px;
  font-family: var(--mono); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase;
  background: rgba(255,255,255,0.03);
}
.swipe-pill svg{ width: 22px; height: 22px; stroke: var(--ink); fill: none; stroke-width: 2; }

.prompt-card{
  border: 1px solid var(--hair-strong);
  background: rgba(255,255,255,0.03);
  border-radius: 20px;
  padding: 40px 44px;
}
.prompt-card .ph{
  display:flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 20px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40);
  margin-bottom: 24px;
}
.prompt-card .ph .copy{ color: var(--accent); }
.prompt-text{
  font-family: var(--display); font-size: 34px; line-height: 1.4; color: var(--ink);
}
.prompt-text .hl{ color: var(--accent); }

/* Showcase: prompt + optional reference image + result image */
.showcase{
  flex: 1; display: flex; flex-direction: column; gap: 24px;
  min-height: 0;
  padding-bottom: 200px; /* reserve space for swipe-pill (bottom:120px) + foot (bottom:64px) */
}
.showcase .sc-title{
  font-family: var(--display); font-weight: 700; letter-spacing: -0.02em;
  font-size: 60px; line-height: 1.02; color: var(--ink); margin: 0;
}
.showcase .sc-prompt{
  border: 1px solid var(--hair);
  background: rgba(255,255,255,0.03);
  border-radius: 24px;
  padding: 26px 30px;
  font-family: var(--display);
  font-size: 22px; line-height: 1.45;
  color: rgba(255,255,255,0.85);
  max-height: 300px; overflow: hidden;
  position: relative;
  display: flex; gap: 22px; align-items: flex-start;
}
.showcase .sc-prompt-body{ flex: 1; min-width: 0; }
.showcase .sc-prompt-label{
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--accent); margin-bottom: 10px;
  display: block; text-transform: uppercase;
}
.showcase .sc-ref{
  flex: 0 0 auto;
  width: 140px; height: 140px;
  border-radius: 18px; overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--hair);
  position: relative;
}
.showcase .sc-ref img{
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.showcase .sc-ref::after{
  content: 'INPUT';
  position: absolute; top: 8px; left: 8px;
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.22em;
  color: #fff; background: rgba(0,0,0,0.55);
  padding: 3px 7px; border-radius: 6px; backdrop-filter: blur(4px);
}
.showcase .sc-image{
  flex: 1; min-height: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--hair);
  border-radius: 24px;
  overflow: hidden;
  padding: 16px;
}
.showcase .sc-image img{
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.tip-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.tip{
  border: 1px solid var(--hair);
  border-radius: 18px; padding: 28px; background: rgba(255,255,255,0.02);
}
.tip .n{ font-family: var(--mono); font-size: 18px; letter-spacing: 0.2em; color: var(--accent); }
.tip h4{ font-family: var(--display); font-weight: 600; font-size: 32px; margin: 10px 0 6px; letter-spacing:-0.01em; }
.tip p{ font-size: 22px; line-height: 1.4; color: var(--ink-60); margin: 0; }

.phone{
  width: 460px; height: 800px; border-radius: 52px;
  border: 1px solid var(--hair-strong);
  background: linear-gradient(180deg, #121217, #0b0b0f);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.8), inset 0 0 0 6px rgba(255,255,255,0.02);
}
.phone::before{
  content:""; position:absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 28px; background: #000; border-radius: 20px; z-index: 3;
}
.phone-scr{ position:absolute; inset: 14px; border-radius: 40px; overflow: hidden; background: #17161a; }
.med{
  width:100%; height:100%; padding: 60px 28px 28px;
  background: radial-gradient(120% 80% at 50% 0%, #2a2a33 0%, #151418 50%, #0f0e12 100%);
  color:#f0ece4; display:flex; flex-direction:column;
}
.med .good{ font-family: var(--mono); font-size: 14px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(240,236,228,0.5); }
.med .greet{ font-size: 34px; margin-top: 12px; letter-spacing:-0.01em; line-height: 1.1; }
.med .greet span{ color: rgba(240,236,228,0.55); }
.med .card{
  margin-top: 22px;
  border-radius: 22px; padding: 22px;
  background: linear-gradient(160deg, #3a3226, #221d18);
  border: 1px solid rgba(217,201,163,0.15);
}
.med .card .tag{ font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #D9C9A3; }
.med .card h5{ font-size: 22px; margin: 8px 0 0; font-weight: 600; }
.med .card p{ font-size: 13px; color: rgba(240,236,228,0.6); margin: 8px 0 0; }
.med .play{ margin-top: 14px; width: 44px; height: 44px; border-radius: 50%; background: #D9C9A3; display:flex; align-items:center; justify-content:center; color: #2a2216; }
.med .row2{ display:flex; gap: 10px; margin-top: 18px; }
.med .row2 .chip{ flex:1; border-radius: 14px; padding: 14px; border: 1px solid rgba(255,255,255,0.08); font-size: 12px; }
.med .row2 .chip b{ display:block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.med .tabs{ margin-top: auto; display:flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,0.08); padding-top: 14px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.med .tabs .active{ color: #D9C9A3; }

.checklist{ list-style:none; padding: 0; margin: 60px 0 0; }
.checklist li{
  display:flex; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--hair);
  font-size: 30px; color: var(--ink);
}
.checklist li .num{ font-family: var(--mono); color: var(--ink-40); letter-spacing: 0.18em; font-size: 22px; min-width: 50px; }

.steps{ display:flex; flex-direction: column; gap: 16px; }
.step{ display:flex; gap: 22px; align-items: flex-start; border: 1px solid var(--hair); border-radius: 18px; padding: 26px 28px; background: rgba(255,255,255,0.02); }
.step .k{ font-family: var(--mono); font-size: 18px; letter-spacing: 0.2em; color: var(--accent); min-width: 56px; }
.step h5{ font-family: var(--display); font-weight: 600; font-size: 30px; margin: 0 0 6px; letter-spacing:-0.01em; }
.step p{ font-size: 22px; color: var(--ink-60); margin: 0; line-height: 1.4; }

.big-quote{
  font-family: var(--display); font-weight: 600; letter-spacing: -0.03em;
  font-size: 116px; line-height: 0.98;
}
.big-quote .hl{ color: var(--accent); }
.big-quote .dim{ color: var(--ink-40); }

.chips{ display:flex; gap: 14px; flex-wrap: wrap; }
.chips .chip{ border: 1px solid var(--hair-strong); border-radius: 999px; padding: 14px 22px; font-family: var(--mono); font-size: 22px; letter-spacing: 0.14em; text-transform: uppercase; }

.kbd{ display:inline-block; min-width: 46px; padding: 6px 12px; font-family: var(--mono); font-size: 22px; border: 1px solid var(--hair-strong); border-bottom-width: 3px; border-radius: 8px; background: rgba(255,255,255,0.03); }

.bar{ height: 2px; background: var(--hair); width: 100%; }

/* ---------- brand panel ---------- */
.panel{
  position: fixed; right: 20px; top: 90px; width: 300px;
  background: #0f0f13; border: 1px solid var(--hair-strong); border-radius: 14px;
  padding: 18px; z-index: 40; color: var(--ink); font-family: var(--mono); font-size: 12px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.6);
  max-height: calc(100vh - 120px); overflow-y: auto;
  transform: translateX(340px); transition: transform .2s ease;
}
.panel.on{ transform: translateX(0); }
.panel h3{ margin: 0 0 14px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-40); font-weight: 600; }
.panel h4{ margin: 18px 0 10px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-60); font-weight: 500; }
.panel .field{ margin-bottom: 12px; }
.panel label{ color: var(--ink-60); display: block; margin-bottom: 6px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; }
.panel input[type=text], .panel select{
  width: 100%; background: rgba(255,255,255,0.04); color: var(--ink); border: 1px solid var(--hair);
  border-radius: 8px; padding: 8px 10px; font-family: var(--mono); font-size: 12px;
}
.panel input[type=text]:focus, .panel select:focus{ outline: none; border-color: var(--accent); }
.panel .swatches{ display:flex; gap: 6px; flex-wrap: wrap; }
.panel .sw{ width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--hair-strong); cursor: pointer; }
.panel .sw.sel{ outline: 2px solid #fff; outline-offset: 2px; }
.panel .reset{ margin-top: 16px; width: 100%; }
.panel .close{
  position: absolute; top: 12px; right: 12px;
  background: transparent; border: none; color: var(--ink-40); cursor: pointer; font-size: 16px;
}
.panel .close:hover{ color: var(--ink); }

/* toast */
.toast{
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: #0f0f13; border: 1px solid var(--hair-strong); border-radius: 999px;
  padding: 12px 22px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink); z-index: 200;
  opacity: 0; transition: opacity .2s, transform .2s;
  pointer-events: none;
}
.toast.on{ opacity: 1; transform: translateX(-50%) translateY(0); }

/* progress modal */
.modal-bg{
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 150;
  display: none; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.modal-bg.on{ display: flex; }
.modal{
  background: #0f0f13; border: 1px solid var(--hair-strong); border-radius: 18px;
  padding: 32px; width: 380px; text-align: center;
}
.modal h3{ font-family: var(--display); font-weight: 600; font-size: 22px; margin: 0 0 8px; }
.modal p{ color: var(--ink-60); font-size: 13px; margin: 0 0 18px; }
.modal .prog{ height: 6px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.modal .prog-fill{ height: 100%; width: 0%; background: var(--accent); transition: width .2s; }
