:root{--bg:#07090d;--panel:#10151d;--panel2:#151c27;--line:rgba(255,255,255,.08);--text:#f4f7fb;--muted:#8c97a8;--blue:#2f7cff;--blue2:#76a9ff;--green:#51ee9a;--red:#ff7284;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:radial-gradient(circle at 15% 10%,rgba(47,124,255,.14),transparent 30rem),var(--bg);color:var(--text);min-height:100vh}a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}.wrap{width:min(1160px,calc(100% - 38px));margin:auto}.grid-bg{position:fixed;inset:0;pointer-events:none;background-image:linear-gradient(rgba(255,255,255,.014) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.014) 1px,transparent 1px);background-size:30px 30px;mask-image:linear-gradient(to bottom,#000,transparent 80%)}.nav{height:82px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}.brand{display:flex;align-items:center;gap:10px}.logo,.mini-logo{display:grid;place-items:center;background:linear-gradient(145deg,#4a8cff,#185cff);box-shadow:0 10px 28px rgba(47,124,255,.24);font-weight:900;color:#fff}.logo{width:34px;height:34px;border-radius:10px}.logo.big{width:48px;height:48px;border-radius:14px;margin-bottom:18px}.logo.huge{width:58px;height:58px;border-radius:17px;margin:auto auto 20px;font-size:22px}.mini-logo{width:31px;height:31px;border-radius:9px;font-size:12px}.beta{font-size:9px;letter-spacing:.13em;color:var(--blue2);border:1px solid rgba(118,169,255,.2);background:rgba(47,124,255,.08);padding:5px 7px;border-radius:999px}.nav nav{display:flex;align-items:center;gap:25px;color:#aeb7c5;font-size:13px}.nav nav a:hover{color:#fff}.ghost,.secondary,.primary{border:0;border-radius:13px;padding:12px 18px;cursor:pointer;font-weight:750}.ghost,.secondary{background:rgba(255,255,255,.04);border:1px solid var(--line);color:#dce3ed}.primary{background:linear-gradient(#3c86ff,#2469e8);box-shadow:0 10px 30px rgba(47,124,255,.24);color:#fff}.hero{min-height:690px;display:grid;grid-template-columns:1.04fr .96fr;gap:65px;align-items:center;padding:65px 0 95px}.eyebrow{color:var(--blue2);font-weight:800;letter-spacing:.15em;font-size:11px}.hero h1{font-size:clamp(52px,7vw,84px);line-height:.97;letter-spacing:-.055em;margin:14px 0 20px}.hero h1 em{font-style:normal;color:#73a9ff}.hero-copy>p{color:#9aa5b5;font-size:18px;line-height:1.7;max-width:620px}.actions{display:flex;gap:11px;margin-top:30px}.stats{display:flex;gap:30px;margin-top:38px}.stats span{display:flex;flex-direction:column;gap:3px}.stats b{font-size:14px}.stats small{color:#687487;font-size:11px}.demo{border:1px solid var(--line);background:linear-gradient(rgba(18,24,34,.96),rgba(8,12,18,.96));border-radius:24px;box-shadow:0 24px 90px rgba(0,0,0,.44);padding-bottom:25px}.demo-head{height:52px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 17px;color:#778294;font-size:11px}.demo-head i{font-style:normal;color:var(--green);font-weight:800;letter-spacing:.1em}.bubble{margin:25px 25px 20px auto;width:72%;background:#1a2432;border:1px solid rgba(255,255,255,.05);padding:13px 15px;border-radius:16px 16px 5px 16px;color:#d8e0ec;font-size:13px;line-height:1.5}.answer{display:grid;grid-template-columns:31px 1fr;gap:11px;padding:0 25px}.answer b{font-size:11px;color:#a0aabb}.answer pre{background:#06080b;border:1px solid var(--line);border-radius:13px;padding:15px;color:#bad2ff;font:11px/1.7 Consolas,monospace;white-space:pre-wrap}.section{padding:105px 0}.section h2{font-size:clamp(36px,5vw,52px);letter-spacing:-.045em;max-width:760px;margin:12px 0 38px}.cards{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cards article{border:1px solid var(--line);background:rgba(15,21,30,.72);border-radius:20px;padding:26px;min-height:220px}.cards article>span{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:rgba(47,124,255,.08);border:1px solid rgba(118,169,255,.18);color:var(--blue2);font:700 11px Consolas,monospace}.cards h3{margin:42px 0 8px;font-size:20px}.cards p,.price p{color:var(--muted);line-height:1.65}.price{border:1px solid rgba(118,169,255,.22);background:radial-gradient(circle at 100% 0%,rgba(47,124,255,.13),transparent 23rem),rgba(14,19,27,.9);padding:32px;border-radius:23px;display:flex;justify-content:space-between;gap:40px}.price>div:first-child>b{color:var(--blue2);font-size:11px;letter-spacing:.13em}.price h3{font-size:30px;margin:9px 0}.price-right{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;min-width:220px}.price-right strong{font-size:38px}.price-right small{color:var(--muted);margin:3px 0 16px}.footer{border-top:1px solid var(--line);height:130px;display:flex;align-items:center;justify-content:space-between;color:#667286;font-size:11px}.modal{display:none;position:fixed;inset:0;z-index:50;place-items:center}.modal.open{display:grid}.shade{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(8px)}.login{z-index:1;width:min(420px,calc(100% - 28px));background:#10151e;border:1px solid rgba(255,255,255,.12);border-radius:22px;padding:28px;position:relative;box-shadow:0 25px 90px rgba(0,0,0,.5);display:flex;flex-direction:column}.login .x{position:absolute;right:15px;top:13px;border:0;background:rgba(255,255,255,.05);color:#a6afbd;width:34px;height:34px;border-radius:10px;font-size:20px;cursor:pointer}.login h2{margin:0 0 7px;font-size:28px}.login p{color:var(--muted);line-height:1.5}.login label{font-size:11px;font-weight:700;color:#b8c1cf;margin:12px 0 7px}.login input{height:50px;border-radius:12px;border:1px solid var(--line);background:#090d13;color:#fff;padding:0 13px;outline:0;margin-bottom:11px}.login>small{text-align:center;color:#657184;margin-top:12px}.err{background:rgba(255,114,132,.08);border:1px solid rgba(255,114,132,.22);color:#ff9cab;padding:10px 12px;border-radius:11px;font-size:12px}

/* app */body.app{overflow:hidden}.app-grid{height:100vh;display:grid;grid-template-columns:250px 1fr}.app aside{border-right:1px solid var(--line);background:#090c11;padding:18px 14px;display:flex;flex-direction:column;min-height:0}.sidebrand{padding:3px 5px}.new{margin:22px 0;height:44px;border:1px solid var(--line);background:#121821;border-radius:12px;color:#fff;text-align:left;padding:0 13px;font-weight:700;cursor:pointer}.quick{display:flex;flex-direction:column;gap:5px}.quick>small{color:#5e6979;font-size:9px;letter-spacing:.12em;padding:0 8px 6px}.quick button{border:0;background:transparent;color:#8792a3;text-align:left;padding:9px;border-radius:9px;cursor:pointer;font-size:12px}.quick button:hover{background:rgba(255,255,255,.04);color:#fff}.side-bottom{margin-top:auto;border-top:1px solid var(--line);padding-top:12px;display:flex;flex-direction:column}.side-bottom>span{display:grid;grid-template-columns:10px 1fr;column-gap:8px;padding:8px}.side-bottom i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 12px rgba(81,238,154,.5);margin-top:4px}.side-bottom b{font-size:11px}.side-bottom small{grid-column:2;color:#687487;font-size:9px}.side-bottom a{font-size:11px;color:#687487;padding:8px}.work{height:100vh;display:grid;grid-template-rows:58px 1fr auto;min-width:0;position:relative}.work>header{border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 22px;background:rgba(7,9,13,.72)}.work>header>div:first-child{display:flex;gap:8px;align-items:baseline}.work>header b{font-size:12px}.work>header span{font-size:10px;color:#697587}.status{display:flex;align-items:center;gap:7px}.status i{width:8px;height:8px;border-radius:50%;background:#4c5563}.status i.on{background:var(--green);box-shadow:0 0 12px rgba(81,238,154,.5)}.chat{overflow-y:auto;padding:30px 22px 150px}.welcome{width:min(820px,100%);margin:10vh auto 0;text-align:center}.welcome h1{font-size:clamp(36px,5vw,52px);letter-spacing:-.05em;margin:0 0 9px}.welcome>p{color:var(--muted)}.starters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:32px;text-align:left}.starters button{min-height:105px;border:1px solid var(--line);background:rgba(16,22,31,.7);border-radius:15px;color:#fff;padding:17px;display:flex;flex-direction:column;align-items:flex-start;gap:5px;cursor:pointer}.starters button:hover{border-color:rgba(118,169,255,.2);background:#131b26}.starters b{font-size:12px}.starters span{font-size:10px;color:#7f8a9a}.msg{width:min(880px,100%);margin:0 auto 26px}.msg.user{display:flex;justify-content:flex-end}.ub{max-width:80%;background:#17202c;border:1px solid rgba(255,255,255,.05);padding:13px 15px;border-radius:17px 17px 5px 17px;color:#e4eaf2;font-size:13px;line-height:1.6;white-space:pre-wrap}.msg.ai{display:grid;grid-template-columns:31px 1fr;gap:11px}.msg.ai>div>b{display:block;font-size:10px;color:#8490a1;margin:6px 0 9px}.content{color:#d7dee8;font-size:13px;line-height:1.7}.content pre{position:relative;background:#05070a;border:1px solid var(--line);border-radius:13px;padding:16px;overflow:auto;color:#bad2ff;font:11px/1.7 Consolas,monospace;white-space:pre}.copy{position:absolute;right:8px;top:8px;background:#111720;border:1px solid var(--line);color:#7f8a9a;border-radius:7px;padding:4px 7px;font-size:9px;cursor:pointer}.typing{color:#748198;letter-spacing:4px}.bad{color:#ff8fa0}.composer-wrap{position:absolute;left:0;right:0;bottom:0;padding:20px 22px 14px;background:linear-gradient(transparent,rgba(7,9,13,.96) 35%,#07090d)}.composer{width:min(880px,100%);margin:auto;border:1px solid rgba(255,255,255,.13);background:#10161f;border-radius:18px;padding:10px;display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px}.composer:focus-within{border-color:rgba(74,140,255,.42)}.composer textarea{resize:none;border:0;background:transparent;outline:0;color:#eef2f7;padding:7px 5px;min-height:34px;max-height:180px;line-height:1.5}.composer button{width:38px;height:38px;border:0;border-radius:11px;background:var(--blue);color:#fff;font-size:18px;cursor:pointer}.composer button:disabled{opacity:.5}.hint{width:min(880px,100%);margin:7px auto 0;display:flex;justify-content:space-between;color:#515c6c;font-size:9px}@media(max-width:900px){.hero{grid-template-columns:1fr}.cards{grid-template-columns:1fr}.demo{max-width:650px}.app-grid{grid-template-columns:1fr}.app aside{display:none}}@media(max-width:620px){.nav nav a{display:none}.hero h1{font-size:50px}.actions{flex-direction:column}.stats{gap:12px}.cards{grid-template-columns:1fr}.price{flex-direction:column}.price-right{align-items:flex-start}.starters{grid-template-columns:1fr}.wrap{width:calc(100% - 24px)}}

/* ===== RYX AI STREAMING / CODE OUTPUT UPGRADE ===== */

.content {
    min-width: 0;
}

.stream-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.72;
}

/* Smooth live response rendering */
.msg.ai .content {
    contain: content;
}

.msg.ai {
    align-items: flex-start;
}

/* ChatGPT-style Luau/code container */
.ryx-code {
    width: 100%;
    margin-top: 10px;
    overflow: hidden;
    background: #0d0f13;
    border: 1px solid rgba(255, 255, 255, .095);
    border-radius: 13px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, .18);
}

.ryx-code-head {
    height: 40px;
    padding: 0 13px 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #202329;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}

.ryx-code-head span {
    color: #f1f3f6;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
}

.ryx-code-head .copy {
    position: static;
    padding: 6px 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #aeb7c5;
    font-size: 10px;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.ryx-code-head .copy:hover {
    background: rgba(255, 255, 255, .065);
    color: #fff;
}

.ryx-code pre {
    position: static;
    margin: 0;
    padding: 17px 18px 19px;
    max-width: 100%;
    overflow-x: auto;
    background: #0d0f13;
    border: 0;
    border-radius: 0;
    color: #f0f3f8;
    font: 12.5px/1.68 Consolas, "Cascadia Code", "Courier New", monospace;
    tab-size: 4;
    white-space: pre;
}

.ryx-code code {
    display: block;
    min-width: max-content;
    color: inherit;
    font: inherit;
    white-space: pre;
}

/* Keep the old generic pre style from fighting the new code box */
.content .ryx-code pre {
    border: 0;
    border-radius: 0;
    padding: 17px 18px 19px;
    background: #0d0f13;
    color: #f0f3f8;
    font-size: 12.5px;
}

.content .ryx-code .copy {
    position: static;
}

/* Smoother waiting animation */
.typing {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    color: #7c8ba1;
    letter-spacing: 4px;
    animation: ryxTypingPulse 1.05s ease-in-out infinite;
}

@keyframes ryxTypingPulse {
    0%, 100% { opacity: .45; }
    50% { opacity: 1; }
}

/* Make streamed output feel less jumpy */
.content,
.stream-text,
.ryx-code code {
    text-rendering: optimizeLegibility;
}

@media (max-width: 620px) {
    .ryx-code pre {
        padding: 14px;
        font-size: 11.5px;
    }

    .ryx-code-head {
        height: 38px;
    }
}
