:root {
  --ink: #18212b;
  --muted: #6b7682;
  --line: #e7eaee;
  --surface: #ffffff;
  --soft: #f5f7f9;
  --soft-2: #eef2f5;
  --navy: #12293d;
  --navy-2: #183e5b;
  --cyan: #14c7e5;
  --green: #78d400;
  --gold: #c29d59;
  --radius: 20px;
  --shadow: 0 22px 60px rgba(16, 35, 51, .10);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--soft);
}
button, input { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .15em;
  color: var(--navy-2);
}
.eyebrow.light { color: #dfe9ef; }

/* LOGIN */
.login-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(390px, 46%) 1fr;
}
.login-brand-panel {
  min-height: 100vh;
  padding: clamp(46px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background:
    radial-gradient(circle at 15% 18%, rgba(20,199,229,.18), transparent 32%),
    radial-gradient(circle at 76% 78%, rgba(120,212,0,.10), transparent 28%),
    linear-gradient(145deg, #173e59, #102638 66%, #0d2131);
}
.login-brand-panel h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(42px, 5.4vw, 78px);
  line-height: 1;
  letter-spacing: -.05em;
}
.login-intro {
  max-width: 610px;
  margin: 28px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.6;
}
.login-footer { margin: 0; font-size: 13px; color: rgba(255,255,255,.54); }
.login-form-panel {
  min-height: 100vh;
  padding: 38px;
  display: grid;
  place-items: center;
}
.login-card {
  width: min(100%, 490px);
  padding: clamp(30px, 5vw, 50px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.login-logo {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 0 auto 34px;
}
.login-card h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.04em;
}
.helper {
  margin: 12px 0 26px;
  color: var(--muted);
  line-height: 1.55;
}
.login-form { display: grid; gap: 10px; }
.login-form label { margin-top: 8px; font-size: 13px; font-weight: 750; }
.login-form input {
  width: 100%;
  height: 50px;
  border: 1px solid #d9dee4;
  border-radius: 12px;
  padding: 0 14px;
  outline: none;
  transition: .18s ease;
}
.login-form input:focus { border-color: var(--cyan); box-shadow: 0 0 0 4px rgba(20,199,229,.10); }
.password-field { position: relative; }
.password-field input { padding-right: 84px; }
.show-password {
  position: absolute;
  top: 50%; right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--navy-2);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.primary-button {
  height: 52px;
  margin-top: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
  transition: .18s ease;
}
.primary-button:hover { background: var(--navy-2); transform: translateY(-1px); }
.login-message { min-height: 18px; margin: 4px 0 0; color: #9b5f13; font-size: 12px; }
.demo-note {
  margin-top: 24px;
  padding: 16px 17px;
  border: 1px solid #dfe9ed;
  border-radius: 14px;
  background: #f7fbfc;
  display: grid;
  gap: 5px;
}
.demo-note strong { font-size: 12px; color: var(--navy); }
.demo-note span { color: #76818c; font-size: 11px; line-height: 1.45; }

/* APP */
.app-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  background: var(--soft);
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid var(--line);
  z-index: 30;
}
.sidebar-header {
  min-height: 94px;
  padding: 22px 20px 18px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.sidebar-logo { width: 215px; height: auto; }
.sidebar-close { display: none; margin-left: auto; border: 0; background: transparent; font-size: 28px; }
.search-box {
  margin: 16px 16px 8px;
  height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fafb;
  color: #98a1aa;
}
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 13px; }
.sidebar-nav { padding: 6px 12px 24px; overflow-y: auto; flex: 1; }
.nav-group { margin-top: 20px; }
.nav-group-title {
  margin: 0 10px 7px;
  color: #98a1ab;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
}
.nav-item {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #46525f;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.nav-item:hover { background: #f4f7f9; color: var(--navy); }
.nav-item.active { background: #edf6f8; color: var(--navy); }
.nav-dot { width: 8px; height: 8px; border-radius: 3px; background: var(--navy-2); flex: 0 0 auto; }
.nav-dot.cyan { background: var(--cyan); }
.nav-dot.green { background: var(--green); }
.nav-dot.gold { background: var(--gold); }
.future-group { padding: 12px 10px; border: 1px dashed #dce2e7; border-radius: 12px; background: #fafbfc; }
.future-group .nav-group-title { margin-left: 0; }
.future-note { color: #8c959f; font-size: 11px; line-height: 1.45; }
.sidebar-user {
  padding: 15px 16px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
}
.avatar { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: #fff; font-size: 11px; font-weight: 850; }
.sidebar-user strong { display: block; font-size: 11px; }
.sidebar-user span { display: block; margin-top: 2px; color: #8a949e; font-size: 10px; }
.sidebar-user button { border: 0; background: transparent; color: #7b8793; font-size: 11px; font-weight: 700; cursor: pointer; }

.workspace { min-width: 0; }
.topbar {
  min-height: 94px;
  padding: 20px clamp(24px, 4vw, 52px);
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.topbar-kicker { display: block; margin-bottom: 3px; color: #98a1ab; font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.topbar h2 { margin: 0; font-size: 24px; letter-spacing: -.035em; }
.topbar-badge { margin-left: auto; padding: 8px 11px; border-radius: 999px; background: #eef8f3; color: #4c775f; font-size: 10px; font-weight: 800; }
.menu-button { display: none; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.content { padding: clamp(24px, 4vw, 52px); max-width: 1500px; margin: 0 auto; }

.welcome-card {
  min-height: 210px;
  padding: clamp(28px, 4vw, 46px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  overflow: hidden;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #173d58, #10273a);
  box-shadow: 0 18px 44px rgba(15,36,52,.13);
}
.welcome-card .eyebrow { color: #9ee7ef; }
.welcome-card h3 { margin: 0; max-width: 720px; font-size: clamp(31px, 4vw, 48px); letter-spacing: -.045em; }
.welcome-card p:not(.eyebrow) { max-width: 700px; margin: 16px 0 0; color: rgba(255,255,255,.7); line-height: 1.55; }
.welcome-mark { width: 110px; height: 110px; flex: 0 0 auto; border: 1px solid rgba(255,255,255,.13); border-radius: 32px; display: grid; place-items: center; color: rgba(255,255,255,.10); font-size: 72px; font-weight: 900; transform: rotate(-8deg); }

.quick-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.quick-card {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  box-shadow: 0 8px 24px rgba(25,38,50,.035);
  cursor: pointer;
  transition: .18s ease;
}
.quick-card:hover { transform: translateY(-3px); border-color: #cfd8de; box-shadow: 0 14px 28px rgba(25,38,50,.08); }
.quick-icon { min-width: 48px; height: 32px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 9px; font-size: 10px; font-weight: 900; letter-spacing: .05em; color: #275365; background: #e7f8fb; }
.quick-icon.green { color: #547c19; background: #f0f9e6; }
.quick-icon.gold { color: #826936; background: #faf4e8; }
.quick-card strong { margin-top: 18px; font-size: 16px; }
.quick-card small { margin-top: 7px; color: #7c8792; line-height: 1.45; }
.dashboard-bottom { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.info-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: flex; gap: 18px; align-items: center; }
.info-number { width: 52px; height: 52px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #eff4f6; color: var(--navy); font-size: 21px; font-weight: 900; }
.info-card strong { font-size: 14px; }
.info-card p { margin: 5px 0 0; color: #7f8993; font-size: 12px; line-height: 1.5; }

.tool-panel { min-height: 640px; }
.tool-header { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.tool-header h3 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
.tool-header p:not(.eyebrow) { margin: 10px 0 0; color: var(--muted); }
.prototype-badge { padding: 8px 11px; border-radius: 999px; background: #fff6e8; color: #93661f; font-size: 10px; font-weight: 850; }
.tool-placeholder { min-height: 440px; margin-top: 16px; padding: 40px; border: 1px dashed #ccd5dc; border-radius: 20px; display: grid; place-items: center; align-content: center; text-align: center; background: rgba(255,255,255,.72); }
.placeholder-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: #edf4f7; color: var(--navy); font-size: 24px; }
.tool-placeholder h4 { margin: 18px 0 8px; font-size: 20px; }
.tool-placeholder p { max-width: 610px; margin: 0; color: #7d8791; line-height: 1.6; }

@media (max-width: 1050px) {
  .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .app-view { grid-template-columns: 270px minmax(0,1fr); }
}

@media (max-width: 820px) {
  .login-view { grid-template-columns: 1fr; }
  .login-brand-panel { display: none; }
  .login-form-panel { padding: 22px; background: linear-gradient(180deg, var(--navy) 0 170px, var(--soft) 170px); }
  .login-card { margin-top: 36px; }

  .app-view { display: block; }
  .sidebar { position: fixed; left: -310px; width: 290px; transition: left .2s ease; box-shadow: 24px 0 60px rgba(15,35,51,.14); }
  .sidebar.open { left: 0; }
  .sidebar-close { display: block; }
  .menu-button { display: grid; place-items: center; }
  .topbar { min-height: 82px; padding: 15px 18px; }
  .content { padding: 20px 16px 34px; }
  .topbar-badge { display: none; }
  .welcome-mark { display: none; }
}

@media (max-width: 600px) {
  .login-card { padding: 28px 22px; }
  .login-logo { width: min(100%, 300px); }
  .quick-grid, .dashboard-bottom { grid-template-columns: 1fr; }
  .welcome-card { min-height: 190px; padding: 28px 24px; }
  .quick-card { min-height: 145px; }
  .tool-header { padding: 24px; }
  .tool-header h3 { font-size: 28px; }
}