:root{
  --bg:#050506;
  --panel:#0b0b0e;
  --panel2:#111116;
  --text:#f7f7f8;
  --muted:#8f8f9a;
  --line:rgba(255,255,255,.09);
  --red:#ff2438;
  --scarlet:#ff003c;
  --cyan:#3cf7ff;
  --violet:#8f5cff;
  --lime:#caff4a;
}
*{box-sizing:border-box}
html{background:var(--bg);color:var(--text);font-family:Inter,Arial,sans-serif}
body{margin:0;min-height:100vh;background:
  radial-gradient(circle at 15% 0%,rgba(255,0,60,.10),transparent 32%),
  radial-gradient(circle at 85% 15%,rgba(143,92,255,.08),transparent 26%),
  var(--bg);overflow-x:hidden}
button,input,textarea,select{font:inherit}
button{color:inherit}
.noise{position:fixed;inset:0;pointer-events:none;opacity:.025;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");z-index:50}
.topbar{height:78px;padding:0 clamp(20px,4vw,70px);display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);position:sticky;top:0;background:rgba(5,5,6,.72);backdrop-filter:blur(18px);z-index:30}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:#fff;letter-spacing:.12em;font-size:14px}
.brand b{color:var(--red)}
.brand-dot{width:10px;height:10px;border-radius:50%;background:var(--red);box-shadow:0 0 22px var(--red),0 0 45px rgba(255,36,56,.7)}
.topnav{display:flex;gap:4px}
.nav-btn,.ghost-btn,.close-btn{border:0;background:transparent;cursor:pointer}
.nav-btn{padding:10px 14px;color:var(--muted);border-radius:999px}
.nav-btn.active{color:#fff;background:rgba(255,255,255,.06)}
.status-pill{display:flex;align-items:center;gap:8px;border:1px solid var(--line);padding:8px 12px;border-radius:999px;font-size:12px;color:var(--muted)}
.pulse{width:8px;height:8px;border-radius:50%;background:#31ef8a;box-shadow:0 0 15px #31ef8a}
main{width:min(1480px,94vw);margin:0 auto}
.hero{min-height:43vh;display:flex;flex-direction:column;justify-content:center;position:relative;padding:70px 0 42px}
.eyebrow{margin:0 0 12px;color:#b1b1bc;font-size:11px;letter-spacing:.26em}
.hero h1{font-size:clamp(58px,10vw,158px);line-height:.82;margin:0;letter-spacing:-.07em;font-weight:700}
.hero h1 span{color:var(--red);text-shadow:0 0 24px rgba(255,36,56,.36),0 0 70px rgba(255,0,60,.24)}
.hero-copy{max-width:670px;color:#b2b2bc;font-size:clamp(16px,1.4vw,22px);line-height:1.5;margin:30px 0 0}
.hero-glow{position:absolute;border-radius:50%;filter:blur(80px);pointer-events:none}
.glow-a{width:300px;height:300px;right:12%;top:2%;background:rgba(255,0,60,.14)}
.glow-b{width:240px;height:240px;right:0;bottom:0;background:rgba(60,247,255,.06)}
.view{display:none}
.view.active{display:block}
.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;padding:8px 0 70px}
.module-card{min-height:440px;padding:24px;border:1px solid var(--line);border-radius:24px;background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden;transition:.35s ease}
.module-card:before{content:"";position:absolute;inset:auto -30% -55% -30%;height:60%;filter:blur(30px);opacity:0;transition:.35s}
.module-card:nth-child(1):before{background:var(--scarlet)}
.module-card:nth-child(2):before{background:var(--violet)}
.module-card:nth-child(3):before{background:var(--cyan)}
.module-card:nth-child(4):before{background:var(--lime)}
.module-card:hover{transform:translateY(-8px);border-color:rgba(255,255,255,.22)}
.module-card:hover:before{opacity:.10}
.module-icon{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.12);font-size:22px;background:rgba(255,255,255,.035)}
.module-index{color:#666672;font-size:11px;letter-spacing:.2em;margin-bottom:14px}
.module-card h2{font-size:34px;margin:0 0 10px;letter-spacing:-.045em}
.module-card p{color:var(--muted);line-height:1.55;margin:0;max-width:28ch}
.open-module{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-top:1px solid var(--line);padding:20px 0 0;background:transparent;cursor:pointer;color:#fff}
.open-module span{font-size:22px}
.section-head{display:flex;align-items:end;justify-content:space-between;padding:34px 0 18px}
.section-head h2{margin:0;font-size:50px;letter-spacing:-.05em}
.ghost-btn{border:1px solid var(--line);border-radius:999px;padding:10px 14px}
.history-list{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;padding-bottom:70px}
.history-item{border:1px solid var(--line);border-radius:18px;padding:18px;background:rgba(255,255,255,.025)}
.history-meta{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-bottom:20px}
.history-item h3{margin:0 0 8px}
.history-item p{color:var(--muted);font-size:14px;line-height:1.5}
.drawer{position:fixed;inset:0;display:none;z-index:70}
.drawer.open{display:block}
.drawer-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.72);backdrop-filter:blur(10px)}
.drawer-panel{position:absolute;right:0;top:0;bottom:0;width:min(670px,100%);background:#09090c;border-left:1px solid var(--line);padding:30px;overflow:auto;box-shadow:-30px 0 90px rgba(0,0,0,.5)}
.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:34px}
.drawer-head h2{font-size:42px;letter-spacing:-.05em;margin:0}
.close-btn{font-size:36px;color:#999}
.field{display:block;margin-bottom:18px}
.field>span{display:block;font-size:12px;color:#a2a2ad;margin-bottom:8px}
.field em{font-style:normal;color:#60606a}
textarea,select,input[type=file]{width:100%;border:1px solid var(--line);background:#111116;color:#fff;border-radius:15px;outline:none}
textarea{padding:16px;resize:vertical}
textarea:focus,select:focus{border-color:rgba(255,36,56,.6);box-shadow:0 0 0 3px rgba(255,36,56,.08)}
select{padding:13px}
.fields-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
input[type=file]{display:none}
.upload-box{border:1px dashed rgba(255,255,255,.18);border-radius:15px;padding:18px;cursor:pointer}
.upload-box strong{display:block}
.upload-box small{display:block;color:#777783;margin-top:5px}
.generate-btn{position:relative;width:100%;height:58px;border:0;border-radius:16px;background:linear-gradient(90deg,#e8002f,#ff3045);cursor:pointer;overflow:hidden;font-weight:700}
.button-glow{position:absolute;width:120px;height:120px;border-radius:50%;background:rgba(255,255,255,.25);filter:blur(30px);left:-20px;top:-45px}
.button-label{position:relative}
.job-result{margin-top:18px;border:1px solid var(--line);border-radius:16px;padding:18px;background:#0f0f14}
.hidden{display:none}
footer{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding:24px clamp(20px,4vw,70px);color:#666672;font-size:12px}
@media(max-width:1100px){.module-grid{grid-template-columns:1fr 1fr}.module-card{min-height:330px}.history-list{grid-template-columns:1fr 1fr}}
@media(max-width:680px){
  .topbar{height:66px;padding:0 14px}.topnav{display:none}.status-pill{padding:7px 9px}.hero{min-height:37vh;padding-top:48px}
  .hero h1{font-size:22vw}.module-grid{grid-template-columns:1fr}.module-card{min-height:270px}
  .drawer-panel{padding:20px}.fields-row{grid-template-columns:1fr}.history-list{grid-template-columns:1fr}
  footer{padding:20px 14px}.section-head h2{font-size:38px}
}
