:root {
  --bg: #05070b;
  --surface: rgba(14, 18, 27, .78);
  --surface-strong: #10151f;
  --text: #f3f5f8;
  --muted: #a1a9b8;
  --line: rgba(255,255,255,.1);
  --accent: #f0ca74;
  --accent-2: #7b8cff;
  --danger: #ff7a90;
  --header-height: 76px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
body.private-mode { overflow: hidden; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .035; z-index: 50; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E"); }
.site-header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; z-index: 40; transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(5,7,11,.82); backdrop-filter: blur(18px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: "Space Grotesk", sans-serif; font-weight: 700; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(116,240,206,.6); border-radius: 11px; color: var(--accent); background: linear-gradient(145deg, rgba(116,240,206,.15), rgba(123,140,255,.1)); box-shadow: inset 0 0 18px rgba(116,240,206,.08); }
.brand-text { letter-spacing: -.03em; font-size: 1.15rem; }
.brand-logo-icon { width: 44px; height: 44px; object-fit: contain; display: block; }
.brand-logo-text { height: 48px; width: auto; object-fit: contain; display: block; max-width: min(42vw, 520px); }
.login-brand .brand-logo-icon { width: 38px; height: 38px; }
.login-brand .brand-logo-text { height: 40px; }
.private-brand .brand-logo-icon { width: 34px; height: 34px; }
.private-brand .brand-logo-text { height: 34px; max-width: 180px; }
.main-nav { display: flex; align-items: center; gap: 30px; font-size: .92rem; color: #ccd2dc; }
.main-nav a { transition: color .2s; }
.main-nav a:hover { color: var(--accent); }
.nav-login, .button { border: 0; cursor: pointer; border-radius: 999px; padding: 12px 20px; font-weight: 600; }
.nav-login { color: var(--text); border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.menu-toggle { display: none; background: none; border: 0; color: white; font-size: 1.5rem; }
.section-panel { min-height: 100vh; position: relative; padding: 120px 7vw 90px; overflow: hidden; }
.hero { display: flex; flex-direction: column; justify-content: center; position: relative; }

.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; background: url('images/unexpectech_lizard_transparent.png') right center/ clamp(220px,28vw,540px) no-repeat; background-repeat: no-repeat; }

.hero::after { display: none; }

.hero-content { max-width: 900px; position: relative; z-index: 2; }
.eyebrow { color: var(--accent); font-size: .72rem; font-weight: 700; letter-spacing: .18em; }
h1,h2,h3 { font-family: "Space Grotesk", sans-serif; margin-top: 0; }
.hero h1 { font-size: clamp(3.6rem,8vw,7.8rem); line-height: .94; letter-spacing: -.065em; margin: 20px 0 28px; max-width: 1100px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 1px rgba(243,245,248,.76); }
.hero-copy { max-width: 680px; color: var(--muted); font-size: clamp(1rem,2vw,1.28rem); line-height: 1.75; }
.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.button { display: inline-flex; justify-content: center; align-items: center; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); }
.primary { background: linear-gradient(135deg,var(--accent),#feffef); color: #07100e; box-shadow: 0 12px 40px rgba(116,240,206,.17); }
.ghost { background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.hero-stats { position: relative; z-index: 2; display: flex; gap: 1px; max-width: 620px; margin-top: 70px; border: 1px solid var(--line); background: var(--line); }
.hero-stats article { flex: 1; padding: 20px; background: rgba(7,10,15,.85); }
.hero-stats strong { font-size: 1.5rem; display: block; }
.hero-stats span { color: var(--muted); font-size: .78rem; }
.intro { background: linear-gradient(rgba(5,8,14,.88),rgba(5,8,14,.95)), url('images/unexpectech_lizard.png') center/cover fixed; }
.projects-section { background: radial-gradient(circle at top left,rgba(69,42,120,.18),transparent 35%),linear-gradient(160deg,#090b12,#05080d 60%,#071315); }
.vision { display:grid; place-items:center; background: linear-gradient(rgba(5,7,10,.83),rgba(5,7,10,.92)),url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1800&q=85') center/cover fixed; }
.section-heading { max-width: 760px; margin-bottom: 54px; }
.section-heading h2,.vision h2 { font-size: clamp(2.5rem,5vw,4.8rem); letter-spacing: -.05em; margin-bottom: 18px; }
.section-heading p,.vision p { color: var(--muted); line-height: 1.7; }
.area-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.area-card { min-height: 390px; padding: 28px; border-radius: 22px; border: 1px solid var(--line); position: relative; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; background-size:cover; background-position:center; box-shadow:0 20px 70px rgba(0,0,0,.22); }
.area-card::before { content:""; position:absolute; inset:0; background:linear-gradient(to top,rgba(4,6,10,.98),rgba(4,6,10,.16)); }
.area-card>* { position:relative; z-index:1; }
.area-card .area-number { position:absolute; top:24px; right:24px; color:rgba(255,255,255,.5); font-family:"Space Grotesk"; }
.area-card h3 { font-size:2rem; margin-bottom:12px; }
.area-card p { color:#c4cad4; line-height:1.55; }
.area-card .subarea-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:14px; }
.area-card .subarea-list span,.project-tags span,.principles span { padding:7px 10px; border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.05); border-radius:999px; font-size:.72rem; }
.project-toolbar { display:flex; justify-content:space-between; gap:20px; margin-bottom:32px; }
.filter-group { display:flex; flex-wrap:wrap; gap:8px; }
.filter-button { border:1px solid var(--line); color:#cad0da; background:rgba(255,255,255,.03); border-radius:999px; padding:9px 14px; cursor:pointer; }
.filter-button.active { color:#07100e; background:var(--accent); border-color:var(--accent); }
.search-box { min-width:280px; display:flex; align-items:center; gap:10px; padding:0 15px; border:1px solid var(--line); background:rgba(255,255,255,.03); border-radius:999px; }
.search-box input { width:100%; border:0; outline:0; color:white; background:transparent; padding:10px 0; }
.projects-layout { display:grid; grid-template-columns:240px minmax(0,1fr); gap:30px; }
.project-index { position:sticky; top:100px; height:max-content; border-left:1px solid var(--line); padding-left:18px; }
.project-index a { display:block; color:var(--muted); font-size:.86rem; padding:8px 0; }
.project-index a:hover { color:var(--accent); }
.project-list { display:grid; gap:18px; }
.project-card { padding:28px; border:1px solid var(--line); border-radius:20px; background:linear-gradient(145deg,rgba(255,255,255,.055),rgba(255,255,255,.018)); backdrop-filter:blur(10px); }
.project-card-top { display:flex; justify-content:space-between; gap:20px; }
.project-area { color:var(--accent); font-size:.68rem; letter-spacing:.13em; font-weight:700; text-transform:uppercase; }
.project-name { margin:9px 0 0; font-size:1.65rem; }
.project-status { font-size:.7rem; color:#fff3b9; background:rgba(210, 191, 80, 0.1); border:1px solid rgba(80,210,126,.22); border-radius:999px; padding:6px 10px; height:max-content; }
.project-description { color:var(--muted); line-height:1.7; }
.project-tags { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.project-documents { display:grid; gap:8px; }
.document-link { display:flex; justify-content:space-between; gap:16px; padding:12px 14px; border:1px solid var(--line); border-radius:12px; color:#dfe4ec; background:rgba(255,255,255,.025); }
.document-link small { color:var(--muted); }
.project-actions { display:flex; gap:10px; margin-top:18px; }
.project-actions a,.project-actions button { padding:9px 13px; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid var(--line); color:white; cursor:pointer; font-size:.8rem; }
.vision-card { max-width:980px; padding:clamp(34px,7vw,80px); border-radius:28px; background:rgba(7,10,15,.76); border:1px solid var(--line); backdrop-filter:blur(18px); }
.principles { display:flex; gap:10px; flex-wrap:wrap; margin-top:28px; }
footer { display:flex; justify-content:space-between; gap:20px; padding:28px 7vw; background:#030406; border-top:1px solid var(--line); color:var(--muted); font-size:.8rem; }
.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.76); backdrop-filter:blur(14px); opacity:0; visibility:hidden; transition:.25s; }
.modal-backdrop.open { opacity:1; visibility:visible; }
.login-card { width:min(460px,100%); position:relative; padding:38px; border:1px solid var(--line); border-radius:24px; background:linear-gradient(145deg,#121824,#080b11); box-shadow:0 30px 90px rgba(0,0,0,.55); }
.login-brand { margin-bottom:30px; }
.login-card h2 { font-size:2rem; }
.login-hint { color:var(--muted); font-size:.8rem; padding:11px 13px; background:rgba(255,255,255,.04); border-radius:10px; }
.login-card form { display:grid; gap:16px; margin-top:22px; }
.login-card label { display:grid; gap:8px; color:#ccd2dc; font-size:.84rem; }
.login-card input { padding:13px 14px; border-radius:11px; border:1px solid var(--line); background:#080b11; color:white; outline:none; }
.login-card input:focus { border-color:var(--accent); }
.full { width:100%; }
.modal-close { position:absolute; right:18px; top:14px; border:0; background:none; color:var(--muted); font-size:1.8rem; cursor:pointer; }
.login-error { color:var(--danger); min-height:18px; font-size:.8rem; }
.private-shell { position:fixed; inset:0; z-index:90; display:grid; grid-template-columns:280px 1fr; background:#080b11; }
.private-sidebar { padding:22px 18px; display:flex; flex-direction:column; background:#0c1119; border-right:1px solid var(--line); overflow:auto; }
.private-brand { padding:6px 8px 26px; }
.sidebar-label { padding:0 10px; color:#667083; font-size:.67rem; letter-spacing:.15em; }
.tree-nav details { margin-bottom:4px; }
.tree-nav summary,.tree-nav a { list-style:none; display:block; padding:10px 12px; border-radius:9px; color:#c9d0db; font-size:.84rem; cursor:pointer; }
.tree-nav summary:hover,.tree-nav a:hover { background:rgba(255,255,255,.05); color:white; }
.tree-nav details a { margin-left:18px; color:#8f98a8; }
.sidebar-footer { margin-top:auto; padding:16px 10px 4px; color:#7f899a; font-size:.72rem; }
.status-dot { display:inline-block; width:8px; height:8px; border-radius:50%; background:#59e28f; margin-right:7px; box-shadow:0 0 12px #e2d959; }
.private-main { min-width:0; min-height:0; display:flex; flex-direction:column; }
.private-topbar { height:72px; padding:0 24px; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); background:rgba(12,17,25,.88); }
.private-topbar>div,.top-actions,.user-menu { display:flex; align-items:center; gap:14px; }
.private-topbar button { border:0; background:rgba(255,255,255,.04); color:#d5dae2; border-radius:9px; padding:9px 11px; cursor:pointer; }
.breadcrumb { color:#8c95a5; font-size:.8rem; }
.avatar { width:35px; height:35px; display:grid; place-items:center; border-radius:50%; background:linear-gradient(135deg,var(--accent-2),var(--accent)); color:#07100e; font-size:.72rem; font-weight:700; }
.user-menu div:last-child { display:grid; }
.user-menu strong { font-size:.78rem; }
.user-menu span { color:#778193; font-size:.66rem; }
.logout-button { color:#ff9dac !important; }
.sidebar-mobile-btn { display:none; }
.private-content { flex:1; min-height:0; padding:40px; overflow:auto; background:radial-gradient(circle at 50% 20%,rgba(123,140,255,.1),transparent 35%),#080b11; }
.private-empty { max-width:700px; text-align:center; }
.private-empty h1 { font-size:clamp(3rem,8vw,6.5rem); letter-spacing:-.06em; margin:12px 0; }
.private-empty>p:not(.eyebrow) { color:var(--muted); line-height:1.7; }
.lock-icon { display:grid; place-items:center; width:62px; height:62px; margin:0 auto 24px; border:1px solid rgba(116,240,206,.28); color:var(--accent); transform:rotate(45deg); }
.token-preview { margin:30px auto 0; max-width:520px; text-align:left; padding:15px; border:1px solid var(--line); border-radius:12px; background:#05070b; }
.token-preview span { color:#778193; font-size:.68rem; display:block; margin-bottom:8px; }
.token-preview code { color:#b8c1d0; font-size:.72rem; word-break:break-all; }
.reveal { opacity:0; transform:translateY(22px); transition:opacity .7s ease,transform .7s ease; }
.reveal.visible { opacity:1; transform:none; }
.delay-1 { transition-delay:.15s; }
@media (max-width:900px){
  .menu-toggle{display:block}.main-nav{position:absolute;top:70px;left:4vw;right:4vw;display:none;flex-direction:column;align-items:stretch;padding:20px;background:#0b1018;border:1px solid var(--line);border-radius:16px}.main-nav.open{display:flex}.area-grid{grid-template-columns:1fr}.projects-layout{grid-template-columns:1fr}.project-index{display:none}.project-toolbar{flex-direction:column}.search-box{min-width:0}.private-shell{grid-template-columns:1fr}.private-sidebar{position:absolute;z-index:4;width:280px;inset:0 auto 0 0;transform:translateX(-100%);transition:.25s}.private-sidebar.open{transform:none}.sidebar-mobile-btn{display:inline-block}.user-menu{display:none!important}
}
@media (max-width:600px){
  .brand-logo-icon{width:34px;height:34px}
  .brand-logo-text{height:30px;max-width:56vw}
  .section-panel{padding:105px 6vw 70px}.hero h1{font-size:3.3rem}.hero-actions,.hero-stats{flex-direction:column}.hero-stats{width:100%}.project-card-top{flex-direction:column}.project-toolbar{align-items:stretch}.top-actions{gap:6px}.private-topbar{padding:0 12px}.private-content{padding:25px}.project-actions{flex-wrap:wrap}footer{flex-direction:column}.login-card{padding:30px 22px}
}
.private-view { display:none; width:100%; min-height:100%; }
.private-view.active { display:block; }
#overviewView.active { display:grid; place-items:center; }
.web-editor-view { min-height:100%; padding:38px; }
.editor-heading { display:flex; justify-content:space-between; gap:28px; align-items:flex-end; margin-bottom:22px; }
.editor-heading h1 { font-size:3.4rem; margin:4px 0 8px; }
.editor-heading p:last-child { color:var(--muted); max-width:760px; line-height:1.6; }
.editor-actions,.panel-title-row { display:flex; gap:10px; align-items:center; }
.editor-button { border:1px solid var(--line); border-radius:10px; padding:10px 14px; cursor:pointer; color:white; background:rgba(255,255,255,.05); }
.editor-button.primary { color:#07100e; border-color:var(--accent); background:var(--accent); }
.editor-button.danger { color:#ff9dac; }
.save-message { min-height:22px; margin-bottom:12px; color:var(--accent); font-size:.84rem; }
.editor-grid { display:grid; grid-template-columns:minmax(260px,380px) minmax(0,1fr); gap:18px; align-items:start; }
.editor-panel { padding:22px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.025); }
.editor-panel h2 { margin-bottom:18px; }
.editor-panel label { display:grid; gap:7px; margin-bottom:14px; color:#bfc7d4; font-size:.78rem; }
.editor-panel input,.editor-panel textarea,.editor-panel select { width:100%; color:white; background:#070a10; border:1px solid var(--line); border-radius:9px; padding:10px 11px; outline:none; }
.editor-panel input:focus,.editor-panel textarea:focus { border-color:var(--accent); }
.editor-panel-wide { min-width:0; }
.panel-title-row { justify-content:space-between; margin-bottom:16px; }
.panel-title-row h2 { margin:0; }
.area-editor-list { display:grid; gap:14px; }
.area-editor-card { border:1px solid var(--line); border-radius:14px; background:#090d14; overflow:hidden; }
.area-editor-card summary { cursor:pointer; padding:16px; font-weight:700; }
.area-editor-body { padding:0 16px 16px; }
.editor-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.editor-row.three { grid-template-columns:repeat(3,minmax(0,1fr)); }
.project-editor-card { margin-top:12px; padding:14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.project-editor-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; }
.project-editor-header strong { color:var(--accent); }
.editor-help { color:#748094; font-size:.72rem; line-height:1.5; margin-top:-5px; margin-bottom:12px; }
.tree-nav .tree-main-link { display:block; margin-bottom:4px; font-weight:600; }
.tree-nav .tree-main-link.active { color:#07100e; background:var(--accent); }
@media (max-width:1100px){.editor-grid{grid-template-columns:1fr}.editor-heading{align-items:flex-start;flex-direction:column}.web-editor-view{padding:24px}}
@media (max-width:650px){.editor-row,.editor-row.three{grid-template-columns:1fr}.editor-actions{flex-wrap:wrap}.web-editor-view{padding:18px}.editor-heading h1{font-size:2.6rem}}
