:root {
    --bg: #0b1020;
    --ink: #eef1ff;
    --muted: #a3abc5;
    --violet: #956efc;
    --violet-soft: #c0aaff;
    --mint: #b7ffce;
    --border: rgba(255,255,255,.13);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    overflow-x: hidden;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #b7ffce; outline-offset: 4px; }
.Ambient { position: fixed; z-index: -1; pointer-events: none; filter: blur(85px); opacity: .47; border-radius: 50%; }
.AmbientOne { width: 540px; height: 540px; top: -270px; right: 7%; background: #603bc8; }
.AmbientTwo { width: 440px; height: 440px; left: -170px; top: 260px; background: #244f9e; opacity: .25; }
.TopBar {
    max-width: 1360px;
    margin: 0 auto;
    padding: 31px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.Brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; }
.Brand strong { font-size: 18px; letter-spacing: -.8px; display: block; line-height: 1.1; }
.Brand small { font-size: 11px; font-weight: 600; display: block; color: var(--muted); margin-top: 5px; letter-spacing: .3px; }
.BrandSymbol { display: flex; width: 38px; height: 36px; align-items: center; justify-content: center; transform: rotate(-26deg); position: relative; }
.BrandSymbol span { display: block; background: var(--violet); border: 2px solid #0b1020; width: 19px; height: 26px; border-radius: 4px; position: absolute; box-shadow: 0 0 0 1px #c6b3ff; }
.BrandSymbol span:nth-child(1) { left: 4px; top: 8px; background: #5e43b9; }
.BrandSymbol span:nth-child(2) { left: 10px; top: 4px; background: #8460e7; }
.BrandSymbol span:nth-child(3) { left: 16px; top: 0; background: #b49dff; }
.TopRight { display: flex; align-items: center; gap: 27px; }
.LivePill, .PanelLive { font-size: 10px; letter-spacing: 1.3px; font-weight: 800; color: var(--mint); }
.LivePill i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); margin-right: 8px; }
.OriginalLink { font-size: 13px; font-weight: 650; color: #c2c8dc; text-decoration: none; }
.OriginalLink:hover { color: white; }
.Layout { max-width: 1360px; margin: 0 auto; padding: 75px 6% 10px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(330px,.8fr); column-gap: 7%; }
.Hero { padding-top: 5px; max-width: 710px; }
.Eyebrow, .TinyLabel { letter-spacing: 2px; font-size: 10px; font-weight: 800; color: #b9a7ff; }
.Sparkle { color: var(--mint); font-size: 21px; vertical-align: -2px; margin-right: 7px; }
.Hero h1 { margin: 23px 0 24px; font-weight: 800; font-size: clamp(53px, 5.5vw, 86px); line-height: 1.09; letter-spacing: -.065em; }
.Hero h1 span { color: #ac93ff; }
.Intro { font-size: 18px; line-height: 1.77; color: #abb4cd; max-width: 565px; margin: 0 0 34px; }
.Intro strong { color: #fff; font-weight: 650; }
.HeroActions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.PrimaryButton, .SecondaryButton { border-radius: 12px; min-height: 53px; padding: 0 20px; font-size: 13px; font-weight: 750; }
.PrimaryButton { border: 1px solid #beaaff; background: #a98aff; color: #19152e; box-shadow: 0 12px 40px rgba(120,87,226,.24); }
.PrimaryButton:hover { background: #c3b0ff; transform: translateY(-1px); }
.PrimaryButton span, .SecondaryButton span { margin-left: 20px; font-size: 18px; }
.SecondaryButton { border: 1px solid rgba(255,255,255,.19); color: #f1edff; background: rgba(255,255,255,.045); }
.SecondaryButton:hover { background: rgba(255,255,255,.10); }
.MicroLine { display: flex; align-items: center; gap: 9px; color: #818da9; font-size: 11px; margin-top: 29px; }
.MicroDot { width: 6px; height: 6px; background: var(--mint); border-radius: 50%; }
.ControlPanel {
    background: linear-gradient(145deg, rgba(28,34,61,.94), rgba(20,25,47,.97));
    border: 1px solid rgba(185,184,252,.2);
    box-shadow: 0 24px 80px rgba(0,0,0,.22);
    border-radius: 20px;
    padding: 26px;
    align-self: start;
    min-width: 0;
}
.PanelHeader { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.PanelHeader h2 { font-size: 22px; margin: 6px 0 0; letter-spacing: -.6px; }
.PanelLive { font-size: 10px; padding-top: 7px; }
.DepthPanel { margin-top: 24px; padding: 22px; border-radius: 14px; background: rgba(5,8,24,.53); border: 1px solid rgba(255,255,255,.08); }
.DepthPanel > span { color: #98a2be; font-size: 12px; font-weight: 600; }
.DepthPanel > strong { float: right; line-height: 1; margin-top: -9px; font-size: 40px; font-variant-numeric: tabular-nums; letter-spacing: -2px; color: var(--mint); }
.StackMeter { display: flex; height: 37px; gap: 5px; align-items: flex-end; clear: both; padding-top: 11px; }
.StackMeter i { flex: 1; max-width: 38px; height: 17px; display: inline-block; transform: skew(-12deg); border-radius: 3px 3px 1px 1px; background: linear-gradient(150deg,#c0aaff,#7450d1); box-shadow: 0 0 12px rgba(156,122,255,.24); }
.StackMeter i:nth-child(even) { height: 23px; }
.StackMeter i:last-child { background: var(--mint); box-shadow: 0 0 16px rgba(183,255,206,.5); }
.StackMeter .Empty { font: 11px/20px "Segoe UI",sans-serif; color: #6e7997; letter-spacing: .3px; }
.CurrentBox { margin: 20px 0 21px; display: flex; flex-direction: column; gap: 4px; }
.CurrentBox span { font-size: 10px; color: #818ea8; font-weight: 800; letter-spacing: 1px; }
.CurrentBox strong { font-size: 14px; font-weight: 650; min-height: 22px; }
.PanelControls { display: flex; gap: 8px; }
.PanelButton { min-width: 0; flex: 1; border: 1px solid rgba(174,173,240,.23); border-radius: 9px; min-height: 42px; background: #353251; color: #eeeaff; font-size: 11px; font-weight: 750; padding: 6px 10px; }
.PanelButton.Quiet { background: rgba(255,255,255,.04); color: #c9c9d8; }
.PanelButton:not(:disabled):hover { border-color: #aa90ff; }
.PanelFootnote { font-size: 11px; line-height: 1.65; color: #8e99b5; border-top: 1px solid rgba(255,255,255,.09); padding-top: 18px; margin: 19px 0 0; }
.PanelFootnote strong { color: #c6b6ff; }
.FeatureArea { grid-column: 1 / -1; margin-top: 115px; padding: 33px 0 90px; border-top: 1px solid var(--border); }
.SectionIntro h2 { margin: 6px 0 30px; font-size: 26px; letter-spacing: -.9px; }
.FeatureGrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 35px; }
.FeatureNumber { font-size: 12px; color: var(--mint); font-weight: 750; }
.Feature h3 { margin: 12px 0 7px; font-size: 17px; font-weight: 720; }
.Feature p { font-size: 13px; line-height: 1.73; color: #939db9; max-width: 330px; margin: 0; }
.Feature code { color: #cbbcff; }
.Footer { max-width: 1360px; margin: 0 auto; padding: 27px 6% 43px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); color: #78839c; letter-spacing: 1.2px; font-size: 10px; }
.Footer a { text-decoration: none; color: #a999e4; }
.VisuallyHidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Keep the real Razorbox renderer: only style its existing wrappers. */
#Razorboxes .RazorboxOverlayer { background: rgba(5,8,24,.34) !important; border-top: 0 !important; backdrop-filter: blur(3px); }
#Razorboxes div.RazorboxContentWrapper { max-width: calc(100vw - 28px) !important; }
#Razorboxes .RazorboxContentContainer { border-radius: 19px; overflow: hidden; background: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.25); }
#Razorboxes div.RazorboxContent.Notification { padding: 0; border: 0 !important; border-radius: 19px; background: #fff; color: #20243b; }
#Razorboxes .RazorboxContentWrapper .RazorboxCloseWrapper { position: absolute; top: 15px; right: 15px; z-index: 30; }
#Razorboxes .RazorboxCloseWrapper .RazorboxClose { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(10,10,33,.075); color: #424260; font: bold 22px/1 Arial; cursor: pointer; }
#Razorboxes .RazorboxCloseWrapper .RazorboxClose:hover { background: rgba(10,10,33,.15); }
#Razorboxes .RazorboxCloseWrapper .RazorboxClose i { display: none; }
#Razorboxes .RazorboxCloseWrapper .RazorboxClose::after { content: "×"; }
#Razorboxes .RazorboxOverlayerTitle h2 { color: #fff; font-size: 16px; margin-bottom: 12px; font-weight: 650; }
.LabLayer { padding: 30px 33px 32px; color: #20233a; font-family: Inter, "Segoe UI", Arial,sans-serif; }
.LayerMeta { font-size: 10px; font-weight: 800; letter-spacing: 1.8px; text-transform: uppercase; color: #8975bf; margin-bottom: 12px; }
.LayerIndex { display: flex; align-items: baseline; gap: 10px; }
.LayerIndex strong { font-size: 53px; color: #34255e; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -2.8px; }
.LayerIndex span { color: #8b90a8; font-weight: 650; font-size: 13px; }
.LabLayer h3 { font-size: 23px; line-height: 1.2; margin: 18px 0 8px; letter-spacing: -.7px; color: #29213f; }
.LabLayer p { font-size: 14px; line-height: 1.7; margin: 0 0 19px; color: #717790; }
.LayerCard { padding: 16px 18px; border-radius: 12px; background: #f5f2ff; border: 1px solid #e5dafa; margin: 19px 0 22px; font-size: 13px; line-height: 1.55; color: #57467c; }
.LayerCard strong { color: #352552; }
.LayerButtons { display: flex; flex-wrap: wrap; gap: 10px; }
.LayerAction { display: inline-flex; align-items: center; gap: 12px; justify-content: center; border: 0; border-radius: 10px; background: #815fdf; color: white; font-size: 12px; font-weight: 700; padding: 13px 18px; min-height: 44px; }
.LayerAction:hover { background: #6545c6; }
.LayerAction.Ghost { background: #eeebf7; color: #50436f; }
.LayerAction.Ghost:hover { background: #e0d8f6; }
.LayerNote { font-size: 11px; color: #9da1b4; margin-top: 16px; }
.LayerInput { background: white; color: #262034; font: 14px "Segoe UI",Arial,sans-serif; border: 1px solid #d9d6e7; border-radius: 8px; padding: 12px; width: 100%; margin: 8px 0 14px; }
.LayerInputLabel { color: #6c6884; font-size: 12px; font-weight: 700; }
.StatusToast { margin-top: 18px; color: var(--mint); font-size: 12px; min-height: 15px; }
@media (max-width: 900px) {
    .Layout { grid-template-columns: 1fr; padding-top: 45px; }
    .ControlPanel { margin-top: 55px; max-width: 580px; }
    .FeatureArea { margin-top: 70px; }
}
@media (max-width: 620px) {
    .TopBar { padding: 22px 6%; }
    .TopRight { gap: 13px; }
    .OriginalLink { font-size: 11px; }
    .LivePill { display: none; }
    .Hero h1 { font-size: 54px; }
    .Intro { font-size: 15px; }
    .FeatureGrid { grid-template-columns: 1fr; gap: 25px; }
    .FeatureArea { padding-bottom: 55px; }
    .Footer { flex-direction: column; }
    #Razorboxes div.RazorboxContentWrapper.AppMode { width: 100% !important; max-width: 100% !important; }
    #Razorboxes div.RazorboxContent.Notification { border-radius: 18px 18px 0 0; }
    .LabLayer { padding: 25px 22px 28px; }
    .LayerIndex strong { font-size: 47px; }
    .LayerAction { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

.MemoPreview { margin: -6px 0 18px; border: 1px solid rgba(183,255,206,.25); background: rgba(183,255,206,.07); padding: 12px 15px; border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.MemoPreview[hidden] { display: none; }
.MemoPreview span { font-size: 10px; color: var(--mint); letter-spacing: 1px; font-weight: 800; }
.MemoPreview strong { font-size: 13px; color: #e2fceb; font-weight: 600; overflow-wrap: anywhere; }
