*, *::before, *::after { box-sizing: border-box; }
:root {
  --bg: #05060a;
  --panel: #0f1222;
  --accent: #7c5cff;
  --accent-alt: #46d7ff;
  --accent-soft: rgba(124, 92, 255, 0.22);
  --text-main: #f6f7ff;
  --text-subtle: #a4a7c4;
  --text-soft: #8084a3;
  --border-subtle: rgba(255, 255, 255, 0.18);
  --radius-pill: 999px;
  --shadow-soft: 0 32px 90px rgba(0,0,0,0.95);
  --shadow-subtle: 0 20px 46px rgba(0,0,0,0.85);
}
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #020309;
  color: var(--text-main);
}
body { -webkit-font-smoothing: antialiased; }
.bg-layer {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, #252b4a 0, transparent 55%),
    radial-gradient(circle at 80% 15%, rgba(124,92,255,0.5) 0, transparent 55%),
    radial-gradient(circle at 20% 90%, rgba(70,215,255,0.45) 0, transparent 55%),
    var(--bg);
  z-index: -1;
  pointer-events: none;
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 220px;
  padding: 14px 10px;
  z-index: 40;
  pointer-events: none;
  transition: width 0.2s ease;
}
.sidebar.collapsed { width: 80px; }
.sidebar-inner {
  pointer-events: auto;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(5,6,12,0.96);
  backdrop-filter: blur(18px);
  padding: 10px 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.9);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand-link { display:flex;align-items:center;gap:8px;text-decoration:none;color:inherit; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 50%;
  position: relative;
  background: radial-gradient(circle at 30% 20%, var(--accent-alt), var(--accent));
  box-shadow: 0 0 20px rgba(124,92,255,0.95);
  overflow: hidden;
}
.logo-orbit {
  position:absolute; inset:5px; border-radius:inherit;
  border:1px solid rgba(255,255,255,0.55);
  border-left-color:transparent; border-bottom-color:transparent;
  transform:rotate(-26deg);
}
.logo-core {
  position:absolute; inset:10px; border-radius:inherit;
  background: radial-gradient(circle,#fff,rgba(255,255,255,0.3));
}
.brand-text { display:flex;flex-direction:column;line-height:1.1; }
.brand-title { font-size:12px;font-weight:600;letter-spacing:0.08em;text-transform:uppercase; }
.brand-sub { font-size:10px;color:var(--text-soft); }
.sidebar-nav { display:flex;flex-direction:column;gap:4px; }
.nav-item {
  display:block;
  font-size:12px;
  color:var(--text-subtle);
  text-decoration:none;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid transparent;
  background:transparent;
  transition:background 0.16s,border-color 0.16s,color 0.16s,transform 0.1s;
}
.nav-item:hover {
  background:rgba(16,18,32,0.96);
  border-color:rgba(255,255,255,0.18);
  color:var(--text-main);
  transform:translateY(-1px);
}
.nav-item-active {
  background:linear-gradient(135deg,rgba(124,92,255,0.7),rgba(70,215,255,0.5));
  color:#050509;
  border-color:rgba(255,255,255,0.24);
  box-shadow:0 12px 32px rgba(0,0,0,0.9);
}

/* LAYOUT */

.page-shell { margin-left:230px; padding:20px 24px 40px; max-width:1240px; }
main { max-width:1180px; }
.hero-section { margin-bottom:32px; }
.hero-layout { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr);gap:24px;align-items:stretch; }
.hero-copy { padding-top:8px; }
.eyebrow {
  font-size:11px;letter-spacing:0.2em;text-transform:uppercase;color:var(--accent-alt);margin:0 0 6px;
}
.hero-copy h1 { margin:0 0 6px;font-size:clamp(26px,3.4vw,34px); }
.hero-sub { margin:0 0 12px;font-size:14px;color:var(--text-subtle);max-width:520px; }
.hero-cta-row { display:flex;flex-wrap:wrap;gap:10px;margin-bottom:10px; }

.primary-btn,.ghost-btn {
  border-radius:var(--radius-pill);
  padding:8px 16px;
  font-size:13px;font-weight:500;
  border:1px solid transparent;
  cursor:pointer;
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  white-space:nowrap;
  transition:transform 0.1s,box-shadow 0.16s,background 0.16s,border-color 0.16s,color 0.16s;
}
.primary-btn {
  background:linear-gradient(135deg,var(--accent),var(--accent-alt));
  color:#050509;
  box-shadow:0 14px 34px rgba(124,92,255,0.7);
}
.primary-btn:hover { transform:translateY(-1px);box-shadow:0 18px 44px rgba(124,92,255,0.9); }
.ghost-btn {
  background:rgba(16,18,32,0.96);
  color:var(--text-subtle);
  border-color:rgba(255,255,255,0.2);
}
.ghost-btn:hover { background:rgba(21,24,40,0.98);color:var(--text-main); }

.hero-tags { display:flex;flex-wrap:wrap;gap:8px; }
.tag-pill {
  border-radius:var(--radius-pill);
  padding:4px 10px;
  font-size:10px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(8,10,20,0.96);
  color:var(--text-soft);
}

.hero-console-wrap { display:flex;justify-content:flex-end;align-items:stretch; }

/* HERO TILE + NEON BORDER */

.hero-tile,
.console-overlay-panel {
  position: relative;
  z-index: 0;
  overflow: hidden;
}

.hero-tile::before,
.console-overlay-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(
    from 180deg,
    #7c5cff,
    #46d7ff,
    #4bffa5,
    #ffd35c,
    #7c5cff
  );
  opacity: 0.9;
  z-index: -2;
  animation: dreamerNeonSpin 16s linear infinite;
}

.hero-tile::after,
.console-overlay-panel::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 92, 255, 0.35), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(70, 215, 255, 0.3), transparent 55%),
    rgba(5, 7, 16, 0.96);
  z-index: -1;
}

@keyframes dreamerNeonSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.hero-tile {
  width:100%;max-width:620px;
  border-radius:24px;
  padding:10px 12px 12px;
  box-shadow:0 22px 60px rgba(0,0,0,0.95);
  cursor:pointer;
}

.hero-tile-header {
  display:flex;justify-content:space-between;align-items:center;
  font-size:11px;color:var(--text-soft);margin-bottom:6px;
}
.hero-tile-tabs { display:inline-flex;gap:4px;margin-bottom:6px; }
.hero-tile-tab {
  padding:3px 9px;font-size:11px;border-radius:999px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(8,10,20,0.96);
  color:var(--text-soft);
}
.hero-tile-tab-active {
  border-color:rgba(124,92,255,0.9);
  color:var(--text-main);
  background:radial-gradient(circle at top left,rgba(124,92,255,0.5),transparent 60%),rgba(8,10,20,0.96);
}
.hero-tile-body {
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(5,7,16,0.98);
  padding:8px 9px 9px;
  font-size:11px;
}
.hero-tile-label { margin:0 0 4px;color:var(--text-subtle); }
.hero-tile-input-row {
  display:grid;grid-template-columns:minmax(0,1fr) auto;
  gap:6px;align-items:center;margin-bottom:4px;
}
.hero-tile-input-placeholder {
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.22);
  background:rgba(8,10,22,0.98);
  padding:5px 9px;
  font-size:11px;color:rgba(164,167,196,0.86);
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.hero-tile-run {
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.26);
  background:linear-gradient(135deg,var(--accent),var(--accent-alt));
  color:#050509;
  font-size:11px;padding:5px 10px;cursor:pointer;
}
.hero-tile-foot { margin:0;margin-top:2px;font-size:10px;color:var(--text-soft); }
.hero-tile-overlay {
  position:absolute;inset:0;
  display:flex;align-items:flex-end;justify-content:flex-end;
  padding:6px 8px;
  background:linear-gradient(to top,rgba(0,0,0,0.55),transparent);
  font-size:10px;color:rgba(246,247,255,0.8);
  pointer-events:none;
}
.hero-tile-overlay span {
  background:rgba(5,7,16,0.9);
  border-radius:999px;
  padding:3px 8px;
  border:1px solid rgba(255,255,255,0.2);
}

/* CONTENT SECTIONS */

.content-section { margin-bottom:32px; }
.section-header h2 { margin:0 0 6px;font-size:22px; }
.section-header p { margin:0 0 12px;font-size:14px;color:var(--text-subtle);max-width:580px; }
.cards-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
.info-card {
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(9,10,22,0.96);
  padding:12px 14px 14px;
  font-size:13px;color:var(--text-subtle);
  box-shadow:0 18px 40px rgba(0,0,0,0.8);
}
.info-card h3 { margin:0 0 6px;font-size:15px;color:var(--text-main); }
.two-col { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px; }
.bullet-list { list-style:disc;padding-left:18px;margin:4px 0;font-size:13px;color:var(--text-subtle); }
.bullet-list li { margin-bottom:3px; }
.contact-card {
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(9,10,22,0.96);
  padding:14px 16px 16px;
  max-width:500px;
  font-size:13px;color:var(--text-subtle);
  box-shadow:0 18px 40px rgba(0,0,0,0.8);
}
.site-footer {
  font-size:11px;color:var(--text-soft);
  margin-top:18px;padding-top:6px;
  border-top:1px solid rgba(255,255,255,0.16);
}

/* FULLSCREEN CONSOLE */

.console-overlay {
  position:fixed;inset:0;display:none;z-index:60;
}
.console-overlay-open { display:block; }
.console-overlay-bg {
  position:absolute;inset:0;
  background:radial-gradient(circle at top,rgba(20,24,60,0.9),rgba(4,5,12,0.98));
  backdrop-filter:blur(10px);
}
.console-overlay-panel {
  position:absolute;
  inset:18px;
  margin-left:230px;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.18);
  box-shadow:0 30px 80px rgba(0,0,0,0.98);
  display:flex;
  flex-direction:column;
  padding:16px 18px 18px;
  transform:scale(0.86);
  opacity:0;
  transform-origin:50% 50%;
  transition:
    transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1),
    opacity 220ms ease-out;
  z-index:1;
}
.console-overlay-open .console-overlay-panel {
  transform:scale(1);
  opacity:1;
}

.overlay-header {
  display:flex;justify-content:space-between;align-items:flex-start;gap:18px;
}
.console-eyebrow {
  font-size:10px;letter-spacing:0.16em;text-transform:uppercase;color:var(--accent-alt);margin:0 0 4px;
}
.console-title { margin:0;font-size:18px; }
.console-sub { margin:4px 0 0;font-size:12px;color:var(--text-subtle);max-width:420px; }
.overlay-header-right { display:flex;flex-direction:column;align-items:flex-end;gap:6px; }

.console-tabs { display:inline-flex;flex-wrap:wrap;gap:4px;justify-content:flex-end; }
.tab-pill {
  border-radius:999px;
  padding:4px 9px;
  font-size:11px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(12,14,26,0.96);
  color:var(--text-subtle);
  cursor:pointer;
  transition:background 0.16s,border-color 0.16s,color 0.16s,transform 0.1s;
}
.tab-pill:hover { background:rgba(19,21,35,0.98);color:var(--text-main);transform:translateY(-1px); }
.tab-pill-active {
  border-color:rgba(124,92,255,0.9);
  background:radial-gradient(circle at top left,rgba(124,92,255,0.5),transparent 60%),rgba(12,14,26,0.96);
  color:var(--text-main);
}

.overlay-console-main {
  flex:1;margin-top:10px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.16);
  background:radial-gradient(circle at top left,var(--accent-soft),transparent 60%),rgba(6,7,16,0.97);
  padding:10px;
  box-shadow:var(--shadow-subtle);
  display:flex;
}
.overlay-console-body {
  flex:1;
  border-radius:16px;
  background:rgba(6,8,20,0.98);
  border:1px solid rgba(255,255,255,0.12);
  padding:10px 12px 12px;
  color:var(--text-subtle);
  font-size:13px;
  overflow-y:auto;
}
.overlay-console-body h2 { margin:0 0 6px;font-size:16px;color:var(--text-main); }
.overlay-console-body h3 { margin:10px 0 4px;font-size:14px;color:var(--text-main); }
.overlay-console-body p { margin:4px 0;line-height:1.6; }
.overlay-console-body ul { margin:6px 0 0;padding-left:18px; }
.overlay-console-body li { margin-bottom:3px; }

.matrix-layout { display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1.1fr);gap:12px;margin-top:4px; }
.field-label { font-size:12px;color:var(--text-soft);margin-top:4px; }
.textarea {
  width:100%;margin-top:4px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(7,9,20,0.98);
  color:var(--text-main);
  padding:8px 10px;
  font-size:13px;
  resize:vertical;
  min-height:90px;
}
.textarea::placeholder { color:rgba(164,167,196,0.76); }
.textarea:focus {
  outline:none;
  border-color:rgba(124,92,255,0.9);
  box-shadow:0 0 0 1px rgba(124,92,255,0.6);
}
.helper-text { font-size:11px;color:var(--text-soft);margin-top:4px; }
.preset-row { display:flex;flex-wrap:wrap;gap:6px;margin:4px 0 8px; }
.preset-btn {
  border-radius:var(--radius-pill);
  padding:4px 9px;
  font-size:11px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(13,15,26,0.98);
  color:var(--text-subtle);
  cursor:pointer;
  transition:background 0.16s,border-color 0.16s,color 0.16s;
}
.preset-btn:hover { background:rgba(19,21,34,0.98);color:var(--text-main); }
.full-width { width:100%;margin-top:8px; }
.matrix-output-header { display:flex;justify-content:space-between;align-items:center;margin-bottom:6px; }
.mini-label { font-size:10px;letter-spacing:0.16em;text-transform:uppercase;color:var(--text-soft); }
.status-dot { width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,0.2); }
.status-dot.active { background:var(--accent-alt);box-shadow:0 0 12px rgba(70,215,255,0.9); }
.matrix-output {
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(4,6,15,0.98);
  padding:8px 10px;
  font-size:13px;
  white-space:pre-line;
}

.engine-grid { display:flex;flex-wrap:wrap;gap:8px;margin:6px 0 8px; }
.engine-chip {
  border-radius:var(--radius-pill);
  padding:6px 12px;
  border:1px solid rgba(255,255,255,0.18);
  background:rgba(11,13,24,0.98);
  color:var(--text-subtle);
  font-size:12px;
  cursor:pointer;
  transition:background 0.16s,border-color 0.16s,color 0.16s,transform 0.1s;
}
.engine-chip:hover { background:rgba(19,21,34,0.98);color:var(--text-main);transform:translateY(-1px); }
.engine-chip-active {
  border-color:rgba(124,92,255,0.95);
  background:radial-gradient(circle at top left,rgba(124,92,255,0.55),transparent 60%),rgba(11,13,24,0.98);
  color:var(--text-main);
}
.engine-detail {
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(4,6,15,0.98);
  padding:8px 10px;
  font-size:13px;
  margin-top:4px;
}

/* VERONICA */

.veronica-launcher {
  position:fixed;right:18px;bottom:18px;
  border-radius:var(--radius-pill);
  border:1px solid rgba(255,255,255,0.24);
  background:radial-gradient(circle at top left,rgba(124,92,255,0.6),rgba(18,20,34,0.98));
  color:var(--text-main);
  font-size:13px;
  padding:8px 14px;
  display:inline-flex;align-items:center;gap:6px;
  cursor:pointer;
  box-shadow:0 22px 50px rgba(0,0,0,0.96);
  z-index:80;
}
.veronica-dot {
  width:9px;height:9px;border-radius:50%;
  background:var(--accent-alt);
  box-shadow:0 0 12px rgba(70,215,255,0.9);
}
.veronica-panel {
  position:fixed;right:18px;bottom:70px;
  width:320px;max-height:420px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,0.22);
  background:linear-gradient(145deg,#0b0d1a,#050510);
  box-shadow:0 30px 70px rgba(0,0,0,0.98);
  display:none;
  flex-direction:column;
  z-index:85;
}
.veronica-panel-open { display:flex; }
.veronica-header {
  padding:8px 10px;
  display:flex;justify-content:space-between;align-items:center;
  border-bottom:1px solid rgba(255,255,255,0.2);
}
.veronica-name { font-size:13px;font-weight:600; }
.veronica-role { font-size:11px;color:var(--text-soft); }
.veronica-close { border:none;background:transparent;color:var(--text-soft);font-size:18px;cursor:pointer; }
.veronica-chat {
  flex:1;padding:8px 10px;
  overflow-y:auto;display:flex;flex-direction:column;gap:6px;
}
.vb { border-radius:12px;padding:7px 9px;font-size:13px;line-height:1.5; }
.vb-bot {
  align-self:flex-start;background:rgba(15,18,32,0.98);
  border:1px solid rgba(255,255,255,0.18);
}
.vb-user {
  align-self:flex-end;
  background:radial-gradient(circle at top left,rgba(124,92,255,0.6),rgba(70,215,255,0.6));
  color:#050509;
}
.veronica-form {
  padding:8px 10px 10px;
  display:flex;gap:6px;
  border-top:1px solid rgba(255,255,255,0.18);
}
.veronica-input {
  flex:1;border-radius:var(--radius-pill);
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(10,12,24,0.98);
  color:var(--text-main);
  padding:6px 11px;font-size:13px;
}
.veronica-input:focus {
  outline:none;
  border-color:rgba(124,92,255,0.85);
  box-shadow:0 0 0 1px rgba(124,92,255,0.6);
}
.veronica-send { padding-inline:12px; }

/* RESPONSIVE */

@media (max-width:1040px){
  .sidebar{transform:translateX(-110%);}
  .page-shell{margin-left:0;padding-inline:16px;}
  .hero-layout{grid-template-columns:minmax(0,1fr);}
  .hero-console-wrap{justify-content:flex-start;}
  .console-overlay-panel{margin-left:0;}
}
@media (max-width:780px){
  .cards-grid{grid-template-columns:minmax(0,1fr);}
  .two-col{grid-template-columns:minmax(0,1fr);}
  .console-overlay-panel{inset:12px;}
  .veronica-panel{width:92%;right:4%;}
}
