/* Handover · "Midnight & Sand"
   Layout concept: a private-viewing gallery at night. Deep midnight ground, champagne-sand hairlines,
   thin oversized type, generous air. Orange appears only where a defect lives, green only for "verified".
   Deliberately single-theme (dark), like a showroom after sunset. */
:root {
  --night: #0a111c;
  --night-2: #0e1826;
  --panel: #111d2e;
  --panel-2: #16243a;
  --ivory: #f2ede4;
  --mute: #93a0b3;
  --sand: #d9c4a0;
  --sand-2: #a99070;
  --sand-ink: #1a1510;
  --hair: rgba(217, 196, 160, 0.16);
  --hair-2: rgba(242, 237, 228, 0.08);
  --defect: #e3773f;
  --verified: #66c595;
  --amber: #e0b25a;
  --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --maxw: 1240px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: dark;
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--night); }
body {
  margin: 0; background: var(--night); color: var(--ivory);
  font-family: var(--font-body); font-size: 17px; line-height: 1.75; font-weight: 400;
  overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--night); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; font-weight: 300; letter-spacing: -0.01em; }
p { margin: 0; }
::selection { background: var(--sand); color: var(--sand-ink); }
:focus-visible { outline: 1px solid var(--sand); outline-offset: 4px; border-radius: 4px; }

.wrap {
  max-width: var(--maxw); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand); display: inline-flex; gap: 14px; align-items: center;
}
[dir="rtl"] .eyebrow { font-family: var(--font-body); font-size: 13.5px; letter-spacing: .04em; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--sand)); }
[dir="rtl"] .eyebrow::before { background: linear-gradient(-90deg, transparent, var(--sand)); }
.section { padding-block: clamp(96px, 12vw, 168px); position: relative; }
.section-head { display: grid; gap: 18px; max-width: 720px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 64px); }
.section-head p { color: var(--mute); font-size: 18px; max-width: 36em; }

/* Header */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--night) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair-2);
}
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: 19px; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; gap: 30px; margin-inline-start: auto; }
.nav a { text-decoration: none; color: var(--mute); font-size: 14.5px; transition: color .3s; }
.nav a:hover { color: var(--ivory); }
.lang {
  font: 500 13px var(--font-body); color: var(--ivory); background: transparent;
  border: 1px solid var(--hair); border-radius: 999px; padding: 6px 14px; cursor: pointer; transition: border-color .3s;
}
.lang:hover { border-color: var(--sand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 15px var(--font-body); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 15px 30px; border: 1px solid transparent;
  transition: background .35s var(--ease), color .35s, border-color .35s, transform .35s var(--ease);
}
.btn-primary { background: var(--sand); color: var(--sand-ink); }
.btn-primary:hover { background: var(--ivory); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: var(--hair); }
.btn-ghost:hover { border-color: var(--sand); }
.top .btn { padding: 9px 20px; font-size: 13.5px; background: transparent; color: var(--sand); border-color: var(--sand-2); }
.top .btn:hover { background: var(--sand); color: var(--sand-ink); }

/* Hero */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) 0; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 45% at 50% 70%, rgba(217, 196, 160, .14), transparent 70%),
    radial-gradient(45% 40% at 50% 0%, rgba(64, 104, 160, .25), transparent 70%);
}
.hero .wrap { position: relative; display: grid; justify-items: center; text-align: center; }
.hero-copy { display: grid; gap: 26px; justify-items: center; max-width: 1000px; }
.hero h1 { font-size: clamp(42px, 7.2vw, 100px); font-weight: 200; line-height: 1.06; }
.hero h1 .mark {
  font-weight: 600; white-space: nowrap;
  background: linear-gradient(100deg, var(--defect) 10%, #f2a777 50%, var(--defect) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--mute); max-width: 40em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.facts { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--hair); }
.fact { display: grid; gap: 2px; padding: 26px 12px 34px; text-align: center; }
.fact + .fact { border-inline-start: 1px solid var(--hair); }
.fact b { font-size: 22px; font-weight: 300; color: var(--ivory); }
.fact span { font-size: 12.5px; color: var(--mute); }

/* Ring */
.ring-stage {
  position: relative; width: 100%; height: 600px; perspective: 1700px; perspective-origin: 50% 35%;
  touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; margin-top: 16px;
}
.ring-stage:active { cursor: grabbing; }
.ring { position: absolute; left: 50%; top: 40%; width: 0; height: 0; transform-style: preserve-3d; }
.ring-item {
  position: absolute; width: 190px; height: 400px; margin: -200px 0 0 -95px;
  transform-style: preserve-3d; backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.phone {
  position: relative; width: 100%; height: 100%; border-radius: 34px; padding: 7px;
  background: linear-gradient(145deg, #2b3546, #0b0f16 40%, #1b2230);
  box-shadow: 0 0 0 1px rgba(255,255,255,.07) inset, 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.6);
}
.phone::after {
  content: ""; position: absolute; inset: 7px; border-radius: 27px; pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.14), transparent 32%, transparent 70%, rgba(255,255,255,.05));
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.ring-item .phone { -webkit-box-reflect: below 14px linear-gradient(transparent 74%, rgba(255,255,255,.14)); }
.ring-floor {
  position: absolute; left: 50%; top: 84%; width: 760px; height: 170px; margin-left: -380px;
  border-radius: 50%; border: 1px solid var(--hair);
  background: radial-gradient(closest-side, rgba(217,196,160,.10), transparent);
  transform: rotateX(72deg);
}
.ring-caption { position: absolute; inset-inline: 0; bottom: 18px; display: flex; justify-content: center; pointer-events: none; }
.ring-caption > div { display: flex; gap: 14px; align-items: baseline; padding: 10px 22px; border: 1px solid var(--hair); border-radius: 999px; background: rgba(10,17,28,.7); backdrop-filter: blur(8px); }
.ring-caption .num { color: var(--sand); font-size: 12px; letter-spacing: .1em; }
.ring-caption b { font-size: 14.5px; font-weight: 500; }
.ring-hint { position: absolute; top: 0; inset-inline-end: 0; font: 11px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
[dir="rtl"] .ring-hint { font: 12.5px var(--font-body); letter-spacing: 0; }

/* Lens */
.lens-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.plan-card {
  border: 1px solid var(--hair); border-radius: 22px; padding: 18px;
  background: linear-gradient(180deg, var(--panel), var(--night-2));
  box-shadow: 0 60px 120px -60px rgba(0,0,0,.9);
}
.plan-stage { position: relative; overflow: hidden; border-radius: 12px; cursor: none; touch-action: pan-y; }
.plan-stage svg { width: 100%; height: auto; display: block; }
.plan-stage { --card: #0d1726; --ink: #d9c4a0; --ink-2: #6f7b91; }
.plan-stage rect[stroke-width="7"] { stroke-width: 3.5; }
.plan-stage path[stroke-width="5"] { stroke-width: 2.5; }
.plan-stage text[font-size="13"], .plan-stage g[font-size="13"] text { fill: var(--ivory); font-weight: 600; }
.plan-meta { display: flex; justify-content: space-between; gap: 12px; padding: 14px 4px 0; font-size: 11.5px; color: var(--mute); flex-wrap: wrap; letter-spacing: .06em; }
.lens {
  position: absolute; width: 200px; height: 200px; border-radius: 50%; overflow: hidden; left: 0; top: 0;
  border: 1px solid rgba(242,237,228,.7); background: #0d1726;
  box-shadow: 0 0 0 8px rgba(217,196,160,.10), 0 0 0 9px rgba(217,196,160,.35), 0 30px 60px -10px rgba(0,0,0,.8);
  touch-action: none; cursor: grab; will-change: transform;
}
.lens svg { position: absolute; left: 0; top: 0; max-width: none; }
.lens::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background:
    linear-gradient(var(--sand), var(--sand)) center / 18px 1px no-repeat,
    linear-gradient(var(--sand), var(--sand)) center / 1px 18px no-repeat,
    radial-gradient(circle at 28% 22%, rgba(255,255,255,.2), transparent 38%),
    radial-gradient(circle, transparent 62%, rgba(0,0,0,.35));
}
.lens-zoom { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); font: 500 10.5px var(--font-mono); letter-spacing: .1em; color: var(--sand); pointer-events: none; }
.found-panel { display: grid; gap: 20px; min-width: 0; }
.found-count { display: flex; align-items: baseline; gap: 14px; }
.found-count b { font-size: 88px; font-weight: 200; line-height: .9; color: var(--ivory); font-family: var(--font-display); }
.found-count span { color: var(--mute); }
.found-bar { height: 1px; background: var(--hair); position: relative; }
.found-bar i { position: absolute; inset-inline-start: 0; top: -1px; display: block; height: 3px; width: 0; background: var(--defect); transition: width .6s var(--ease); }
.defects { list-style: none; margin: 0; padding: 0; display: grid; }
.defects li {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 14px 4px; border-bottom: 1px solid var(--hair-2); cursor: pointer; transition: background .3s;
}
.defects li:hover { background: rgba(255,255,255,.02); }
.defects li .pin { font: 500 12px var(--font-mono); color: var(--mute); }
.defects li .t { font-weight: 500; font-size: 15.5px; line-height: 1.4; }
.defects li .s { font-size: 12px; color: var(--mute); }
.defects li .t .q { display: inline-block; filter: blur(5px); opacity: .7; transition: filter .6s, opacity .6s; }
.defects li.on .pin { color: var(--defect); }
.defects li.on .t .q { filter: none; opacity: 1; }
.sev { font: 500 10.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; white-space: nowrap; border: 1px solid; }
[dir="rtl"] .sev { font-family: var(--font-body); font-size: 12px; letter-spacing: 0; }
.sev.hi { color: var(--defect); border-color: rgba(227,119,63,.4); }
.sev.md { color: var(--amber); border-color: rgba(224,178,90,.35); }
.sev.lo { color: var(--mute); border-color: var(--hair-2); }
.note { font-size: 12.5px; color: var(--mute); opacity: .8; }

/* Measuring scale */
.ruler-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 72px; align-items: stretch; }
.tape {
  position: relative; height: 600px; border-radius: 6px; overflow: hidden; touch-action: none; cursor: ns-resize;
  background: linear-gradient(180deg, var(--panel), var(--night-2)); border: 1px solid var(--hair);
}
.tape svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tape .tk { stroke: var(--sand-2); }
.tape .tk.major { stroke: var(--sand); }
.tape .tick-l { fill: var(--ivory); }
.tape .tier-l { fill: var(--mute); font-weight: 500; }
.tape .band { fill: var(--sand); }
.tape .band.b0 { fill-opacity: .35; }
.tape .band.b1 { fill-opacity: .12; }
.tape-handle { position: absolute; inset-inline: 0; height: 0; top: 0; border-top: 1px solid var(--defect); pointer-events: none; box-shadow: 0 0 18px 1px rgba(227,119,63,.6); }
.tape-handle span {
  position: absolute; inset-inline-end: 22px; top: -14px; background: var(--defect); color: #fff;
  font: 500 12px var(--font-mono); padding: 4px 10px; border-radius: 99px; white-space: nowrap;
}
.readout { display: grid; gap: 34px; align-content: start; min-width: 0; }
.tier-chips { display: flex; flex-wrap: wrap; gap: 4px 22px; border-bottom: 1px solid var(--hair-2); }
.chip {
  font: 400 15px var(--font-body); color: var(--mute); background: none; border: 0; border-bottom: 1px solid transparent;
  padding: 8px 0 12px; margin-bottom: -1px; cursor: pointer; transition: color .3s, border-color .3s;
}
.chip:hover { color: var(--ivory); }
.chip[aria-pressed="true"] { color: var(--sand); border-bottom-color: var(--sand); }
.quote { display: grid; gap: 22px; }
.quote .type { font-size: 15px; color: var(--mute); }
.quote .price { font-size: clamp(64px, 9vw, 128px); font-weight: 200; line-height: .95; display: flex; gap: 18px; align-items: baseline; flex-wrap: wrap; font-family: var(--font-display); }
.quote .price .mono { font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.quote .price > span:first-child { font-size: .3em; color: var(--sand); font-weight: 400; }
.quote .price small { font-size: 15px; font-weight: 400; color: var(--mute); }
.quote .rows { display: grid; border-top: 1px solid var(--hair); }
.quote .rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hair-2); font-size: 15px; color: var(--mute); }
.quote .rows b, .quote .rows .mono { color: var(--ivory); font-weight: 400; }
.compare { display: grid; gap: 12px; }
.compare .bar { display: grid; grid-template-columns: 120px minmax(0,1fr) 84px; gap: 16px; align-items: center; font-size: 13.5px; color: var(--mute); }
.compare .track { height: 2px; background: var(--hair-2); }
.compare .fill { height: 100%; transition: width .7s var(--ease); }
.compare .fill.us { background: var(--sand); box-shadow: 0 0 12px rgba(217,196,160,.5); }
.compare .fill.mk { background: var(--mute); opacity: .45; }

/* Journey */
.journey { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 80px; }
.steps { position: relative; display: grid; padding-inline-start: 0; }
.steps .progress { display: none; }
.step { position: relative; display: grid; grid-template-columns: 104px minmax(0,1fr); column-gap: 24px; align-content: start; padding-block: 40px; min-height: 40vh; border-top: 1px solid var(--hair-2); opacity: .38; transition: opacity .6s var(--ease); }
.step > *:not(.dot) { grid-column: 2; }
.step.active { opacity: 1; }
.step.done { opacity: .6; }
.step .dot {
  grid-column: 1; grid-row: 1 / span 4; font: 200 76px/1 var(--font-display); color: transparent;
  -webkit-text-stroke: 1px var(--sand-2); transition: color .6s;
}
.step.active .dot { color: var(--sand); -webkit-text-stroke-color: var(--sand); }
.step h3 { font-size: clamp(24px, 2.8vw, 36px); font-weight: 400; margin-bottom: 12px; }
.step p { color: var(--mute); max-width: 32em; }
.step .tag { justify-self: start; margin-top: 16px; font: 500 11px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sand); }
[dir="rtl"] .step .tag { font: 500 13px var(--font-body); letter-spacing: 0; }
.step .inline-shot { display: none; }
.journey-phone { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 110px); align-self: start; }
.journey-phone::before { content: ""; position: absolute; inset: -60px; background: radial-gradient(closest-side, rgba(217,196,160,.16), transparent); pointer-events: none; }
.journey-phone .phone { height: 660px; }
.journey-phone img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); opacity: 0; transition: opacity .7s var(--ease); }
.journey-phone img.on { opacity: 1; }

/* Brokers: the one light surface on the page */
.brokers { background: linear-gradient(135deg, #e8d9bc, var(--sand) 55%, #c4ab83); color: var(--sand-ink); border-radius: 28px; overflow: hidden; }
.brokers .inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; padding: clamp(32px, 6vw, 80px); align-items: center; }
.brokers .eyebrow { color: #5a4a33; }
.brokers .eyebrow::before { background: #5a4a33; }
.brokers p { color: #4a3d2b; }
.brokers h2 { font-size: clamp(32px, 4.4vw, 56px); font-weight: 300; margin: 16px 0 18px; }
.perks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; }
.perks li { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 10px; padding: 16px 0; border-top: 1px solid rgba(26,21,16,.15); }
.perks li::before { content: "—"; color: #5a4a33; }
.perks b { display: block; font-weight: 600; }
.brokers .phone { height: 560px; max-width: 270px; margin-inline: auto; transform: rotate(-5deg); }

/* Waitlist */
.waitlist { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
form.card { display: grid; gap: 22px; padding: 8px 0; }
label { display: grid; gap: 4px; font-size: 13px; color: var(--mute); }
input, select {
  font: 400 18px var(--font-body); color: var(--ivory); background: transparent; border: 0; border-bottom: 1px solid var(--hair);
  border-radius: 0; padding: 10px 0; width: 100%; transition: border-color .3s;
}
input:focus, select:focus { outline: none; border-bottom-color: var(--sand); }
select option { background: var(--panel); color: var(--ivory); }
input::placeholder { color: rgba(147,160,179,.5); }
[dir="rtl"] #f-contact { text-align: right; }
form .btn { justify-self: start; margin-top: 8px; }
.form-msg { font-size: 14px; color: var(--verified); min-height: 1.4em; }
.badge-row { display: inline-flex; gap: 12px; align-items: center; color: var(--verified); font-size: 14px; margin-top: 10px; }
.badge-row span:first-child { width: 22px; height: 22px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 11px; flex: none; }

footer { border-top: 1px solid var(--hair-2); padding-block: 36px; color: var(--mute); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .top .wrap { gap: 12px; }
  .top .btn { margin-inline-start: auto; }
  .lens-grid, .brokers .inner, .waitlist { grid-template-columns: minmax(0, 1fr); }
  .ring-stage { height: 520px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact:nth-child(3) { border-inline-start: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .journey { grid-template-columns: minmax(0, 1fr); }
  .journey-phone { display: none; }
  .step { min-height: 0; opacity: 1; grid-template-columns: 60px minmax(0,1fr); }
  .step.done { opacity: 1; }
  .step .dot { font-size: 48px; color: var(--sand); }
  .step .inline-shot { display: block; width: 210px; margin-top: 24px; border-radius: 26px; border: 6px solid #141b26; box-shadow: 0 30px 60px -30px rgba(0,0,0,.9); }
  .brokers .phone { height: 460px; max-width: 220px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top .brand span { display: none; }
  .top .btn { padding: 8px 14px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .ring-stage { height: 440px; }
  .ring-item { width: 138px; height: 290px; margin: -145px 0 0 -69px; }
  .phone { border-radius: 26px; padding: 5px; }
  .phone::after { inset: 5px; border-radius: 21px; }
  .phone img { border-radius: 21px; }
  .ring-floor { width: 420px; margin-left: -210px; }
  .ruler-grid { grid-template-columns: 96px minmax(0, 1fr); gap: 22px; }
  .tape { height: 540px; }
  .tape-handle span { inset-inline-end: 3px; font-size: 10.5px; padding: 3px 6px; }
  .lens { width: 150px; height: 150px; }
  .found-count b { font-size: 64px; }
  .compare .bar { grid-template-columns: 76px minmax(0,1fr) 60px; gap: 10px; font-size: 12px; }
  .quote .price { font-size: 58px; gap: 10px; }
  .chip { font-size: 14px; }
  .tier-chips { gap: 2px 16px; }
  .section-head { margin-bottom: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; }
}
