/* css/components.css */

/* Custom Cursor */
.cur-dot { position: fixed; width: 6px; height: 6px; background: var(--volt); border-radius: 50%; top: 0; left: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: var(--z-cursor); transition: background-color 0.2s; }
.cur-ring { position: fixed; width: 32px; height: 32px; border: 1px solid var(--volt); opacity: 0.4; border-radius: 50%; top: 0; left: 0; transform: translate(-50%, -50%); pointer-events: none; z-index: calc(var(--z-cursor) - 1); transition: width 0.3s cubic-bezier(0.25, 1, 0.5, 1), height 0.3s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s, border-color 0.2s; }
.bg-volt .cur-dot { background: var(--paper); }
.bg-volt .cur-ring { border-color: var(--paper); opacity: 0.8; }

.scroll-progress { position: fixed; top: 0; left: 0; width: 100vw; height: 2px; background: var(--volt); transform-origin: left; transform: scaleX(0); z-index: var(--z-cursor); }

/* Preloader */
#preloader { position: fixed; inset: 0; background: var(--ink); z-index: var(--z-preloader); display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; }
.pl-noise { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0.5; mix-blend-mode: screen; }
.pl-text { position: relative; z-index: 2; color: var(--paper); font-size: clamp(2rem, 6vw, 4rem); font-weight: 700; text-align: center; line-height: 1; letter-spacing: -0.02em; opacity: 0; transform: scale(0.9); }
.pl-wipe { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--volt); z-index: 3; display: none; }

/* Multi-use Types */
.t-massive { font-size: clamp(4rem, 12vw, 14rem); font-weight: 700; line-height: 0.88; text-transform: uppercase; }
.t-huge { font-size: clamp(3rem, 8vw, 8rem); font-weight: 700; line-height: 0.95; }
.t-large { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 700; line-height: 1; }
.text-volt { color: var(--volt); }

.link-volt { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); position: relative; font-size: 1.2rem; cursor: none; }
.link-volt::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 100%; height: 1px; background: var(--volt); transform: scaleX(0); transform-origin: left; transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1); }
.link-volt:hover::after { transform: scaleX(1); }
.btn-volt { display: block; width: 100%; padding: 1.25rem; background: var(--volt); color: var(--paper); font-weight: 700; text-align: center; border: none; font-size: 1.1rem; text-transform: uppercase; transition: opacity 0.3s; }
.btn-volt:hover { opacity: 0.8; }

.input-group { margin-bottom: 2rem; position: relative; }
.input-label { display: block; font-family: var(--font-mono); font-size: 0.75rem; color: rgba(5,5,10,0.5); margin-bottom: 0.5rem; text-transform: uppercase; }
.input-naked { width: 100%; border: none; border-bottom: 1px solid rgba(5,5,10,0.2); background: transparent; padding: 0.5rem 0; font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); transition: border-color 0.3s; border-radius:0; }
.input-naked:focus { border-bottom-color: var(--volt); }
.input-naked::placeholder { color: rgba(5,5,10,0.2); }
select.input-naked { appearance: none; cursor: none; }
.bg-ink .input-label { color: rgba(255,255,255,0.4); }
.bg-ink .input-naked { border-bottom-color: rgba(255,255,255,0.2); color: #fff; }
.bg-ink .input-naked:focus { border-bottom-color: var(--volt); }

/* Cinematic Hero */
#hero { justify-content: center; align-items: center; padding-top: 10rem; }
.hero-epic-title { font-size: clamp(3.5rem, 12vw, 8rem); line-height: 0.9; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); text-align: center; margin-bottom: 1.5rem; }
.hero-epic-title .char { display: inline-block; }
.hero-sub-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; max-width: 600px; margin: 0 auto; }
.hero-editorial { font-size: clamp(1.2rem, 3vw, 1.8rem); opacity: 0.8; }
.hero-form-bar { display: flex; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.05); }
.hero-form-bar input { flex: 1; padding: 1rem 1.5rem; border: 1px solid rgba(5,5,10,0.1); background: #fff; font-size: 1rem; border-right: none; appearance:none; border-radius:0;}
.hero-form-bar button { padding: 1rem 2rem; background: var(--volt); color: var(--paper); font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; }

/* Manifesto */
.manifesto-section { padding: 0 !important; display: flex; align-items: center; justify-content: center; height: 100vh; text-align: center; overflow: hidden; }
.manifesto-text { z-index: 2; position: relative; width: 100%; white-space: nowrap; color: var(--ink);}
.strike-volt { text-decoration: line-through; text-decoration-color: var(--volt); }

/* Discord UI */
.discord-app { display: flex; background: #313338; height: 90vh; min-height: 800px; border-radius: 8px; overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.8); border: 1px solid rgba(255,255,255,0.05); font-size: 0.95rem; font-family: "Whitney", "Helvetica Neue", Helvetica, Arial, sans-serif; color: #DBDEE1; text-align: left; }
.dc-servers { width: 72px; background: #1E1F22; padding: 0.75rem 0; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.dc-server-icon { width: 48px; height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; color: #fff; background: #313338; transition: 0.2s; position: relative; cursor: none; }
.dc-server-icon:hover, .dc-server-icon.active-server { border-radius: 16px; background: #5865F2; }
.dc-server-icon.tpf-server.active-server { background: var(--ink); color: #fff; }
.server-pill { position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 8px; height: 40px; background: #fff; border-radius: 0 4px 4px 0; display: none; }
.active-server .server-pill { display: block; }
.server-sep { width: 32px; height: 2px; background: #35363C; border-radius: 1px; margin: 0.25rem 0; }
.dc-sidebar { width: 240px; background: #2B2D31; display: flex; flex-direction: column; }
.dc-sidebar-header { padding: 0.75rem 1rem; border-bottom: 1px solid #1E1F22; font-size: 1rem; font-weight: 700; color: #fff; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,0.2); z-index: 2; }
.dc-channels { flex: 1; overflow-y: auto; padding: 1rem 0.5rem; display:flex; flex-direction:column; gap:0.1rem; }
.dc-cat { padding: 0.5rem 0.2rem 0.2rem; font-size: 0.75rem; color: #949BA4; font-weight: 700; margin-top:0.5rem; text-transform: uppercase; }
.dc-chan { padding: 0.35rem 0.5rem; border-radius: 4px; color: #949BA4; display: flex; align-items: center; gap: 0.3rem; transition: 0.1s; font-family: var(--font-display); font-weight: 500; cursor: none; }
.dc-chan:hover { background: #35373C; color: #DBDEE1; }
.dc-chan.active { background: #404249; color: #FFF; }
.chan-icon { opacity: 0.8; font-size: 1.1rem; color: #80848E; }
.dc-chan.active .chan-icon { color: #fff; }
.dc-user { height: 52px; background: #232428; display: flex; align-items: center; padding: 0 0.5rem; gap: 0.5rem; }
.dc-user-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; justify-content: center; align-items: center; font-weight: 600; font-size: 0.9rem; position: relative; }
.dc-user-avatar::after { content: ''; position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: #23A559; border: 2px solid #232428; border-radius: 50%; }
.dc-user-details { flex: 1; display: flex; flex-direction: column; }
.dc-user-name { font-size: 0.85rem; font-weight: 600; color: #fff; line-height: 1.1; }
.dc-user-status { font-size: 0.75rem; color: #949BA4; }
.dc-user-icons { color: #B5BAC1; font-size: 1rem; letter-spacing: 0.2rem; }
.dc-main { flex: 1; background: #313338; display: flex; flex-direction: column; position: relative; }
.dc-chat-header { padding: 0.75rem 1rem; border-bottom: 1px solid #1E1F22; display:flex; align-items: center; box-shadow: 0 1px 2px rgba(0,0,0,0.1); z-index: 2; }
.dc-chat-area { flex: 1; padding: 1rem; overflow-y: auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 1rem; }
.chat-row { display: flex; gap: 1rem; opacity: 1; margin-bottom: 0.5rem; padding: 0.1rem 0; }
.chat-row:hover { background: #2E3035; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-display); font-weight: 600; flex-shrink: 0; margin-top: 0.2rem; }
.chat-content { display: flex; flex-direction: column; gap: 0.2rem; }
.chat-meta { display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.chat-name { font-weight: 600; font-family: var(--font-display); font-size: 1rem; color: #fff; }
.chat-time { font-family: var(--font-display); font-size: 0.75rem; color: #949BA4; }
.chat-text { font-family: sans-serif; color: #DBDEE1; line-height: 1.375; font-size: 0.95rem; }
.dc-chat-input-area { padding: 0 1rem 1rem; }
.dc-chat-input { background: #383A40; border-radius: 8px; padding: 0.75rem 1rem; color: #949BA4; font-size: 0.9rem; }
.dc-members { width: 240px; background: #2B2D31; padding: 1rem 0.5rem; overflow-y: auto; }
.dc-role { padding: 1rem 0.5rem 0.2rem; font-size: 0.75rem; color: #949BA4; font-weight: 700; text-transform: uppercase; }
.dc-member { display: flex; align-items: center; gap: 0.75rem; padding: 0.4rem 0.5rem; border-radius: 4px; color: #949BA4; transition: 0.2s; cursor: none; }
.dc-member:hover { background: #35373C; color: #DBDEE1; }
.dc-avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; font-family: var(--font-display); font-weight: 600; position: relative; }
.dc-avatar::after { content: ''; position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; background: #23A559; border: 2px solid #2B2D31; border-radius: 50%; }
.bot-tag { background: #5865F2; color: #fff; font-size: 0.6rem; padding: 0.1rem 0.3rem; border-radius: 3px; font-weight: 700; margin-left: 0.3rem; }

/* Immersive Features Base */
.feat-block { display: flex; flex-direction: column; min-height: 100vh; padding: 10rem 5%; justify-content: center; gap: 4rem; overflow: hidden; border-top: 1px solid rgba(255,255,255,0.05);}
.feat-content { text-align: left; max-width: 1200px; margin: 0 auto; width: 100%; z-index: 2; position: relative;}
.feat-label { font-size: 0.85rem; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 1rem; text-transform:uppercase;}
.feat-desc { font-size: clamp(1.1rem, 2vw, 1.4rem); opacity: 0.7; margin-top: 1.5rem; max-width: 600px;}
.feat-ui-wrapper { width: 100%; max-width: 1400px; margin: 0 auto; z-index: 1; position: relative; margin-top:2rem;}
.interact-hint { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); background: rgba(0,0,0,0.8); color: #fff; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.15em; padding: 0.4rem 0.8rem; border-radius: 4px; pointer-events: none; z-index: 10; font-weight: 700; white-space: nowrap; }

/* Flat UI Window System */
.ui-window { background: #0A0A10; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 40px 100px rgba(0,0,0,0.8); font-family: var(--font-mono); font-size: 0.8rem; color: #fff; display: flex; flex-direction: column; cursor: crosshair;}
.ui-header { background: #050508; padding: 0.75rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: space-between; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;}
.ui-header .dots { display: flex; gap: 6px; }
.ui-header .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.2); }
.ui-header .dot.act { background: var(--volt); }

/* Portal Mock Academy Dashboard */
.mock-portal { flex-direction: row !important; height: 75vh; min-height: 500px; background: var(--paper) !important; color: var(--ink) !important; }
.port-sidebar { width: 260px; background: #0A0A10; color: #fff; display: flex; flex-direction: column; flex-shrink: 0; border-right: 1px solid rgba(0,0,0,0.1); }
.port-brand { padding: 1.5rem; display: flex; align-items: center; gap: 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.port-brand-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.port-brand-text { font-size: 0.65rem; opacity: 0.6; line-height: 1.2; }
.port-nav { flex: 1; overflow-y: auto; padding: 1rem 0; font-family: sans-serif; font-size: 0.8rem; }
.port-group { font-size: 0.65rem; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; padding: 1rem 1.5rem 0.5rem; font-weight: 700;}
.port-item { padding: 0.5rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; color: rgba(255,255,255,0.7); cursor: none; transition: 0.2s; font-weight: 600;}
.port-item:hover { color: #fff; background: rgba(255,255,255,0.03); }
.port-item.act { background: rgba(230,0,0,0.1); border-left: 2px solid var(--volt); color: #fff; }
.port-sub { padding: 0.25rem 0 0.5rem 3rem; display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.7rem; color: rgba(255,255,255,0.5); }
.port-sub div { cursor: none; transition: 0.2s; }
.port-sub div:hover { color: #fff; }

.port-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: var(--paper); }
.port-topbar { height: 50px; border-bottom: 1px solid rgba(0,0,0,0.05); display: flex; align-items: center; padding: 0 2rem; justify-content: space-between; }
.port-search { background: rgba(0,0,0,0.04); border-radius: 4px; padding: 0.4rem 1rem; font-size: 0.75rem; color: rgba(0,0,0,0.5); width: 240px; display: flex; align-items: center; gap: 0.5rem;}
.port-prof { width: 24px; height: 24px; border-radius: 50%; background: #0A0A10; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700;}
.port-content { flex: 1; padding: 2.5rem 3rem; overflow-y: auto; display: flex; flex-direction: column; gap: 1.25rem; }
.port-title { font-family: var(--font-accent); font-size: 2.5rem; color: var(--ink); line-height: 1;}
.port-tag { display: inline-block; padding: 0.3rem 0.8rem; background: rgba(230,0,0,0.1); color: var(--volt); font-size: 0.6rem; letter-spacing: 0.1em; font-weight: 700; border-radius: 4px; width: max-content; }
.port-cards { display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 1rem; -ms-overflow-style: none; scrollbar-width: none; }
.port-cards::-webkit-scrollbar { display: none; }
.p-card { flex-shrink: 0; width: 260px; border-radius: 8px; border: 1px solid rgba(0,0,0,0.08); background: #fff; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.03); transition: transform 0.3s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s, border-color 0.3s; cursor: none; }
.p-card:hover { transform: translateY(-4px); box-shadow: 0 15px 40px rgba(0,0,0,0.08); border-color: rgba(230,0,0,0.3); }
.p-card:active { transform: translateY(0) scale(0.98); box-shadow: 0 5px 15px rgba(0,0,0,0.05); transition: 0.1s; }
.pc-top { background: #0A0A10; color: #fff; padding: 1.5rem; position: relative; height: 140px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.pc-bg-num { position: absolute; right: -10px; top: -10px; font-family: var(--font-accent); font-size: 7rem; opacity: 0.05; line-height: 1; }
.pc-label { font-size: 0.6rem; color: var(--volt); letter-spacing: 0.1em; font-weight: 700; z-index: 1; }
.pc-title { font-family: var(--font-accent); font-size: 1.25rem; line-height: 1.2; z-index: 1; }
.pc-bot { padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; flex: 1; background: #fff;}
.pc-desc { font-size: 0.75rem; color: rgba(0,0,0,0.6); }
.pc-meta { font-family: var(--font-mono); font-size: 0.6rem; color: rgba(0,0,0,0.4); display: flex; flex-direction: column; gap: 0.2rem; }
.pc-meta-bar { width: 100%; height: 2px; background: rgba(0,0,0,0.05); border-radius: 1px; margin-top: 0.5rem; position: relative;}
.pc-meta-fill { position: absolute; left:0; top:0; height:100%; background: var(--volt); width: 65%; border-radius: 1px;}
.pc-status { display: inline-block; padding: 0.3rem 0.6rem; font-size: 0.6rem; font-weight: 700; border-radius: 4px; width: max-content; }
.pc-status.in-prog { background: rgba(230,0,0,0.1); color: var(--volt); }
.pc-status.coming { background: rgba(0,0,0,0.05); color: rgba(0,0,0,0.4); }

/* Kanban Hyper-Fidelity */
.kanban-body { display: flex; height: 75vh; min-height: 500px; padding: 2rem; gap: 2rem; background: #08080C; overflow-x: auto;}
.kb-col { flex: 1; min-width: 320px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05); border-radius: 4px; display: flex; flex-direction: column;}
.kb-head { padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,0.05); display: flex; justify-content: space-between; align-items: center;}
.kb-title { font-weight: 700; color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; font-family: var(--font-display);}
.kb-count { background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 12px; font-size: 0.7rem;}
.kb-list { flex: 1; padding: 1rem; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto;}
.kb-card { background: #111116; border: 1px solid rgba(255,255,255,0.1); padding: 1.25rem; border-radius: 4px; display: flex; flex-direction: column; gap: 1rem; position: relative;}
.kb-card:hover { border-color: rgba(255,255,255,0.3); }
.kb-tags { display: flex; gap: 0.5rem; flex-wrap: wrap;}
.kb-tag { padding: 2px 6px; font-size: 0.65rem; font-weight: 700; border-radius: 2px; }
.kb-tag.red { background: rgba(230,0,0,0.1); color: var(--volt); border: 1px solid rgba(230,0,0,0.3);}
.kb-tag.blue { background: rgba(0,194,255,0.1); color: #00C2FF; border: 1px solid rgba(0,194,255,0.3);}
.kb-tag.purp { background: rgba(123,97,255,0.1); color: #7B61FF; border: 1px solid rgba(123,97,255,0.3);}
.kb-main { font-family: sans-serif; font-size: 0.95rem; color: #DBDEE1; line-height: 1.4;}
.kb-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05);}
.kb-date { font-size: 0.7rem; color: rgba(255,255,255,0.4);}
.kb-avs { display: flex;}
.kb-av { width: 24px; height: 24px; border-radius: 50%; background: #333; display: flex; align-items: center; justify-content: center; font-size: 0.6rem; font-weight: 700; border: 2px solid #111116; margin-left: -8px;}
.kb-av:first-child { margin-left: 0; }

/* Milly Chat Hyper-Fidelity */
.milly-body { display: flex; height: 75vh; min-height: 500px; background: #050508;}
.mi-sidebar { width: 260px; border-right: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column;}
.mi-new { margin: 1rem; padding: 0.75rem; border: 1px dashed rgba(255,255,255,0.2); text-align: center; color: rgba(255,255,255,0.6); transition: 0.2s;}
.mi-new:hover { border-color: var(--volt); color: var(--volt);}
.mi-hist { padding: 1rem; font-size: 0.75rem; color: rgba(255,255,255,0.4); border-bottom: 1px solid rgba(255,255,255,0.05); text-overflow: ellipsis; white-space: nowrap; overflow: hidden;}
.mi-chat { flex: 1; display: flex; flex-direction: column; position: relative;}
.mi-feed { flex: 1; padding: 3rem; overflow-y: auto; display: flex; flex-direction: column; gap: 2.5rem; scroll-behavior: smooth;}
.mi-msg { display: flex; gap: 1.5rem; max-width: 85%; }
.mi-msg.ai { max-width: 95%; }
.mi-msg.user { margin-left: auto; justify-content: flex-end;}
.mi-av { width: 36px; height: 36px; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; flex-shrink: 0;}
.mi-av-u { background: #2B2D31; color: #fff;}
.mi-av-m { background: var(--volt); color: #000;}
.mi-text { background: transparent; color: #E0E0E0; font-family: sans-serif; font-size: 1rem; line-height: 1.6;}
.mi-msg.user .mi-text { background: rgba(255,255,255,0.05); padding: 1rem 1.5rem; border-radius: 8px;}
.mi-input-wrap { padding: 2rem 3rem;}
.mi-input-box { background: #111116; border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; padding: 1rem 1.5rem; display: flex; gap: 1rem; align-items: center;}
.m-spin-cur { display: inline-block; width: 8px; height: 16px; background: var(--volt); animation: blink 1s infinite; vertical-align: middle;}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* Team List */
.team-sec { display: flex; min-height: 100vh; padding: 0;}
.team-left { width: 40%; background: var(--paper); padding: 5rem 5%; color: var(--ink); display: flex; flex-direction: column; justify-content: center; }
.team-right { width: 60%; background: var(--volt); padding: 5rem 5%; display: flex; flex-direction: column; justify-content: center; clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); margin-left: -1px; }
.team-row { display: flex; padding: 1.5rem 0; border-bottom: 1px solid rgba(5,5,10,0.15); color: var(--paper); font-size: clamp(1rem, 2vw, 1.25rem); position: relative; cursor: none; transition: 0.25s; overflow: hidden; align-items:center; }
.team-name { font-weight: 700; text-transform: uppercase; width: 40%; transition: color 0.25s;}
.team-role { font-size: 0.85rem; width: 60%; transform: translateX(0); transition: 0.25s; opacity: 1; position: absolute; left: 40%;}
.team-quote { font-size: 0.85rem; width: 60%; transform: translateX(20px); transition: 0.25s; opacity: 0; position: absolute; left: 40%; font-family: var(--font-accent); }
.team-row:hover { background: var(--paper); padding-left: 1rem; color: var(--ink);}
.team-row:hover .team-name { color: var(--ink); }
.team-row:hover .team-role { transform: translateX(-20px); opacity: 0; pointer-events:none;}
.team-row:hover .team-quote { transform: translateX(0); opacity: 1; color: var(--ink);}

/* Countdown LED */
.led-block { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; margin: 4rem 0; }
.led-numbers { display: flex; gap: 4vw; margin-bottom: 2rem; justify-content: center; flex-wrap: wrap;}
.led-unit { display: flex; flex-direction: column; align-items: flex-start; }
.led-val { font-size: clamp(3.5rem, 8vw, 10rem); line-height: 1; position: relative; overflow: visible; display:flex; justify-content:center; align-items:center; min-width: 2ch;}
.led-val span { display: inline-block; position: relative; text-align: center;}
#ld-secs { position: relative; }
#ld-secs span { position: absolute; left: 0; width: 100%; top: 0;}
.led-label { font-size: 0.8rem; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); padding-top: 0.5rem; border-top: 3px solid; width: 100%; text-align: center; }

.u-days { border-color: var(--paper); }
.u-hrs { border-color: var(--ice); }
.u-mins { border-color: var(--rose); }
.u-secs { border-color: var(--flame); }

/* Footer */
#footer { min-height: auto; padding: 4rem 5%; display: flex; flex-direction: column; justify-content: center; gap: 2rem; text-align: center; }
.ft-huge { font-size: clamp(3rem, 10vw, 8rem); text-transform: uppercase; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.ft-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem 3vw; border-top: 1px solid rgba(5,5,10,0.1); padding-top: 2rem; font-size: 0.9rem; }
.ft-bot { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; font-size: 0.65rem; opacity: 0.5; text-transform: uppercase; }

/* =========================================
   MOBILE: Scale-down full desktop previews
   ========================================= */

/* Preview scaling wrapper — JS sets --preview-scale on each .preview-scaler */
.preview-scaler {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.preview-scaler > * {
  transform-origin: top left;
  transform: scale(var(--preview-scale, 1));
}
/* Hide all scrollbars inside scaled previews */
.preview-scaler *::-webkit-scrollbar { display: none; }
.preview-scaler * { scrollbar-width: none; -ms-overflow-style: none; }

@media (max-width: 900px) {

  /* --- GLOBAL --- */
  #discord-section,
  #features {
    overflow-x: hidden;
  }

  /* --- Discord App: keep FULL desktop layout, scale to fit --- */
  .discord-app {
    width: 1060px;       /* servers(72) + sidebar(240) + main(~500) + members(240) + borders */
    flex-direction: row;  /* keep desktop row layout */
    height: 70vh;
    min-height: 500px;
  }
  .dc-servers { display: flex; }
  .dc-sidebar { display: flex; }
  .dc-members { display: block; }

  /* --- Feature blocks --- */
  .feat-block { padding: 5rem 5%; min-height: unset; gap: 2rem; }
  .feat-ui-wrapper { overflow: visible; }

  /* --- Portal Mock: keep FULL desktop side-by-side layout --- */
  .mock-portal {
    flex-direction: row !important;
    height: 75vh;
    min-height: 500px;
    width: 1060px;       /* sidebar(260) + main(~800) */
  }
  .port-sidebar {
    width: 260px;
    min-height: unset;
    border-right: 1px solid rgba(0,0,0,0.1);
    border-bottom: none;
    flex-shrink: 0;
  }

  /* --- Action Teams: keep FULL desktop grid layout --- */
  .bespoke-dashboard {
    width: 1060px;
  }

  /* --- Milly: keep FULL desktop layout --- */
  .milly-body {
    width: 1060px;
    height: 75vh;
    min-height: 500px;
  }
  .mi-sidebar { display: flex; }

  /* --- Team section: stack vertically --- */
  .team-sec { flex-direction: column; }
  .team-left, .team-right { width: 100%; clip-path: none; margin: 0; padding: 4rem 5%; }
  .team-left { min-height: 40vh; text-align: center; align-items: center; }

  /* --- Countdown --- */
  .led-numbers { gap: 2rem; }
  .led-unit { align-items: center; }
  .led-label { text-align: center; }

  /* --- Hero form --- */
  .hero-form-bar { flex-direction: column; }
  .hero-form-bar input { border-right: 1px solid rgba(5,5,10,0.1); border-bottom: none; }

  /* --- Manifesto --- */
  .manifesto-text { white-space: normal; line-height: 1.1; font-size: clamp(2rem, 10vw, 4rem); }

  /* --- Footer --- */
  .ft-huge { font-size: clamp(2rem, 8vw, 5rem); }
  .ft-links { gap: 1.5rem; }
  .ft-bot { flex-direction: column; gap: 0.5rem; }

  /* Interact hint smaller */
  .interact-hint { font-size: 0.55rem; padding: 0.3rem 0.6rem; }
}

/* =========================================
   MOBILE NAV + READABILITY (≤768px)
   ========================================= */
@media (max-width: 768px) {

  /* --- Hamburger Nav --- */
  .nav-links { display: none !important; }
  .nav-hamburger { display: flex !important; }

  /* Hamburger X animation when open */
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
  .nav-hamburger.open span:nth-child(3) { width: 24px; transform: translateY(-7px) rotate(-45deg); }

  /* --- Section Readability --- */

  /* Feature section labels */
  .feat-label { font-size: 0.75rem; letter-spacing: 0.08em; }
  .t-huge { font-size: clamp(2rem, 7vw, 4rem); }
  .feat-desc { font-size: clamp(1rem, 3vw, 1.3rem); }

  /* Hero: scale the entire section to desktop proportions instead of reflowing text */
  .hero-huge-title { font-size: clamp(4rem, 11vw, 12rem) !important; }

  /* Waitlist section */
  .t-massive { font-size: clamp(3rem, 10vw, 10rem); }
  .input-group { margin-bottom: 1.5rem; }
  .input-naked { font-size: 1rem; padding: 1rem; }
  .btn-volt { padding: 1.1rem; font-size: 1rem; }

  /* Footer social icons */
  .ft-links a { width: 38px !important; height: 38px !important; }
}

/* =========================================
   HERO MOBILE (≤768px) — Large text, no emojis
   ========================================= */
@media (max-width: 768px) {
  /* Hide emojis on mobile */
  #hero .float-emoji { display: none !important; }

  #hero {
    padding-top: 7rem;
    padding-bottom: 2rem;
    min-height: auto;
  }

  /* Center subtext on mobile */
  #hero .editorial {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  /* Center the masthead row */
  #hero .reveal > div[style*="justify-content"] {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-align: center;
  }

  /* MASSIVE headline — fills the viewport, forces scroll */
  .hero-huge-title {
    font-size: clamp(5.5rem, 26vw, 14rem) !important;
    line-height: 0.85 !important;
    letter-spacing: -0.03em !important;
    margin-bottom: 2rem !important;
  }

  /* Reduce spacing between hero and manifesto */
  #hero + .section,
  #hero + #manifesto,
  .manifesto-section {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
    min-height: 60vh;
  }

  /* Scroll indicator tighter */
  #hero > .reveal:last-child {
    margin-top: 1rem;
  }
}

/* Very small phones (≤500px) */
@media (max-width: 500px) {
  .hero-huge-title {
    font-size: clamp(5rem, 22vw, 8rem) !important;
  }

  /* Description text readable */
  .feat-desc { font-size: 1rem !important; }

  /* Waitlist heading */
  .t-massive { font-size: clamp(2.5rem, 9vw, 6rem); }
}

