/* === Claude Design Language === */

:root {
  /* Primary Colors */
  --anthropic-near-black: #141413;
  --terracotta-brand: #c96442;
  --coral-accent: #d97757;
  
  /* Surfaces */
  --parchment: #f5f4ed;
  --ivory: #faf9f5;
  --warm-sand: #e8e6dc;
  --dark-surface: #30302e;
  
  /* Text */
  --charcoal-warm: #4d4c48;
  --olive-gray: #5e5d59;
  --stone-gray: #87867f;
  --warm-silver: #b0aea5;
  
  /* Borders */
  --border-cream: #f0eee6;
  --border-warm: #e8e6dc;
  --border-dark: #30302e;
  
  /* Semantic */
  --error-crimson: #b53333;
  --focus-blue: #3898ec;
}

/* Dark Mode */
body.dark-mode {
  --anthropic-near-black: #faf9f5;
  --terracotta-brand: #d97757;
  --coral-accent: #c96442;
  
  --parchment: #141413;
  --ivory: #1a1a19;
  --warm-sand: #30302e;
  --dark-surface: #e8e6dc;
  
  --charcoal-warm: #f5f4ed;
  --olive-gray: #b0aea5;
  --stone-gray: #87867f;
  --warm-silver: #5e5d59;
  
  --border-cream: #30302e;
  --border-warm: #3d3d3a;
  --border-dark: #f0eee6;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--parchment);
  color: var(--anthropic-near-black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

.hidden { 
  display: none !important; 
}

/* === Theme Toggle Button === */
.theme-toggle {
  display: none;
}

.theme-toggle-header {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--olive-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.theme-toggle-header:hover {
  background: var(--warm-sand);
  color: var(--anthropic-near-black);
}

.theme-icon {
  display: block;
  transition: transform 0.3s ease;
}

.theme-toggle-header:hover .theme-icon {
  transform: rotate(20deg);
}

/* === Welcome Page === */
.welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 24px;
  text-align: center;
  background: var(--parchment);
}

.hero-gif {
  width: 100%;
  max-width: 700px;
  border-radius: 32px;
  border: 1px solid var(--border-cream);
  box-shadow: rgba(0,0,0,0.05) 0px 4px 24px;
  margin-bottom: 48px;
}

.welcome h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--anthropic-near-black);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.welcome .subtitle {
  font-family: Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--olive-gray);
  max-width: 600px;
  margin-bottom: 32px;
}

#start-btn {
  padding: 12px 32px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  background: var(--terracotta-brand);
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--terracotta-brand) 0px 0px 0px 0px, var(--terracotta-brand) 0px 0px 0px 1px;
}

#start-btn:hover {
  background: var(--coral-accent);
  transform: translateY(-1px);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

#start-btn:active {
  transform: translateY(0);
}

/* === Chat Page === */
.chat {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-width: 900px;
  margin: 0 auto;
  background: var(--parchment);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-cream);
  background: var(--ivory);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-header h2 {
  font-size: 20px;
  font-weight: 500;
  color: var(--anthropic-near-black);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* === User Menu Dropdown === */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  background: var(--parchment);
  color: var(--charcoal-warm);
  cursor: pointer;
  transition: all 0.2s;
}

.user-menu-trigger:hover {
  background: var(--warm-sand);
}

.user-menu-trigger .arrow {
  font-size: 12px;
  transition: transform 0.2s;
}

.user-menu.open .arrow {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--ivory);
  border: 1px solid var(--border-cream);
  border-radius: 12px;
  box-shadow: rgba(0,0,0,0.1) 0px 8px 24px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.2s;
  z-index: 1000;
}

.user-menu.open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu-item {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-family: Arial, sans-serif;
  font-size: 15px;
  color: var(--charcoal-warm);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-cream);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}

.user-menu-item:last-child {
  border-bottom: none;
}

.user-menu-item:hover {
  background: var(--warm-sand);
}

.user-menu-item:disabled {
  opacity: 0.6;
  cursor: wait;
}

.user-menu-item.user-info {
  cursor: default;
  background: var(--parchment);
  padding: 16px;
}

.user-menu-item.user-info:hover {
  background: var(--parchment);
}

.user-phone {
  font-weight: 600;
  color: var(--anthropic-near-black);
  margin-bottom: 4px;
}

.user-credits {
  font-size: 14px;
  color: var(--olive-gray);
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--parchment);
}

.msg {
  max-width: 75%;
  padding: 16px 20px;
  border-radius: 16px;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.msg.user {
  align-self: flex-end;
  background: var(--terracotta-brand);
  color: var(--ivory);
  box-shadow: rgba(0,0,0,0.08) 0px 2px 8px;
}

.msg.assistant {
  align-self: flex-start;
  background: var(--ivory);
  color: var(--anthropic-near-black);
  border: 1px solid var(--border-cream);
  box-shadow: rgba(0,0,0,0.04) 0px 2px 8px;
}

.quick-actions {
  align-self: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 75%;
  margin-top: -8px;
}

.quick-actions button {
  padding: 10px 14px;
  border: 1px solid rgba(201, 100, 66, 0.38);
  border-radius: 999px;
  background: var(--ivory);
  color: var(--terracotta-brand);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

.quick-actions button:hover {
  background: var(--terracotta-brand);
  border-color: var(--terracotta-brand);
  color: var(--ivory);
  transform: translateY(-1px);
}

.profile-panel {
  align-self: flex-start;
  width: min(620px, 100%);
  padding: 16px;
  border: 1px solid var(--border-cream);
  border-radius: 14px;
  background: var(--ivory);
  box-shadow: rgba(0,0,0,0.04) 0px 2px 8px;
  font-family: Arial, sans-serif;
}

.profile-panel-title {
  margin-bottom: 12px;
  color: var(--anthropic-near-black);
  font-size: 15px;
  font-weight: 700;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--olive-gray);
  font-size: 13px;
}

.profile-field input {
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  background: var(--parchment);
  color: var(--anthropic-near-black);
  font-family: Arial, sans-serif;
  font-size: 14px;
  outline: none;
}

.profile-field input:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 3px rgba(56, 152, 236, 0.1);
}

/* Markdown 渲染样式 */
.msg.assistant h1,
.msg.assistant h2,
.msg.assistant h3,
.msg.assistant h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--anthropic-near-black);
  margin: 16px 0 8px 0;
  line-height: 1.4;
}

.msg.assistant h1 { font-size: 20px; }
.msg.assistant h2 { font-size: 18px; }
.msg.assistant h3 { font-size: 16px; color: var(--terracotta-brand); }
.msg.assistant h4 { font-size: 15px; }

.msg.assistant p {
  margin: 8px 0;
}

.msg.assistant ul,
.msg.assistant ol {
  margin: 8px 0;
  padding-left: 20px;
}

.msg.assistant li {
  margin: 4px 0;
}

.msg.assistant strong {
  color: var(--terracotta-brand);
  font-weight: 600;
}

.msg.assistant em {
  color: var(--olive-gray);
  font-style: italic;
}

.msg.assistant table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 14px;
}

.msg.assistant th {
  background: var(--warm-sand);
  color: var(--anthropic-near-black);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid var(--border-warm);
}

.msg.assistant td {
  padding: 8px 12px;
  border: 1px solid var(--border-cream);
}

.msg.assistant tr:nth-child(even) {
  background: var(--parchment);
}

.msg.assistant code {
  background: var(--warm-sand);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.msg.assistant blockquote {
  border-left: 3px solid var(--terracotta-brand);
  padding-left: 12px;
  margin: 12px 0;
  color: var(--olive-gray);
}

.msg.assistant hr {
  border: none;
  border-top: 1px solid var(--border-warm);
  margin: 16px 0;
}

.input-area {
  display: flex;
  gap: 12px;
  padding: 20px 24px;
  border-top: 1px solid var(--border-cream);
  background: var(--ivory);
}

#input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  background: var(--parchment);
  color: var(--anthropic-near-black);
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  resize: none;
  outline: none;
  transition: all 0.2s;
  min-height: 80px;
}

#input::placeholder {
  color: var(--stone-gray);
}

#input:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 3px rgba(56, 152, 236, 0.1);
}

#send-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 12px;
  background: var(--terracotta-brand);
  color: var(--ivory);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

#send-btn:hover {
  background: var(--coral-accent);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

#send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* === Login Landing === */
.login-landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(560px, 1.28fr) minmax(380px, 0.72fr);
  background: #f4ecde;
}

.landing-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(34px, 4.4vh, 48px) 58px 36px;
  background:
    linear-gradient(90deg, rgba(183, 37, 32, 0.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(183, 37, 32, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 44% 34%, rgba(183, 37, 32, 0.12), transparent 32%),
    linear-gradient(180deg, #fbf7ed 0%, #f0e4d0 76%, #fbf7ed 100%);
  background-size: 46px 46px, 46px 46px, auto, auto;
  border-right: 1px solid rgba(125, 23, 20, 0.14);
}

.landing-visual::before {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(125, 23, 20, 0.16);
  pointer-events: none;
}

.landing-brand {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(125, 23, 20, 0.18);
}

.landing-brand strong {
  color: #8a1714;
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.landing-brand span {
  color: #655850;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
}

.landing-seal {
  position: absolute;
  top: 88px;
  right: clamp(40px, 6vw, 92px);
  width: 96px;
  height: 96px;
  border: 2px solid rgba(183, 37, 32, 0.86);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(183, 37, 32, 0.86);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  transform: rotate(8deg);
  animation: sealPulse 4s ease-in-out infinite;
}

.landing-kicker {
  position: relative;
  z-index: 2;
  margin: clamp(22px, 3vh, 32px) 0 16px;
  color: #8a1714;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-kicker::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #b72520;
  vertical-align: 1px;
}

.landing-visual h1 {
  position: relative;
  z-index: 2;
  max-width: min(1160px, 100%);
  margin: 0;
  color: #b72520;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(42px, 3.5vw, 62px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

.landing-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 18px 0 0;
  color: #3d332d;
  font-family: Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
}

.landing-showcase {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin-top: clamp(34px, 6vh, 64px);
}

.showcase-board {
  display: grid;
  gap: 16px;
}

.decision-workbench {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 0;
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(360px, 1.22fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.case-card,
.analysis-card,
.insight-card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(125, 23, 20, 0.15);
  box-shadow: 0 16px 44px rgba(67, 25, 19, 0.08);
}

.case-card {
  grid-row: 1 / 3;
  min-height: 280px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.workbench-label {
  display: block;
  margin-bottom: 16px;
  color: #8a1714;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card b {
  display: block;
  color: #1f1915;
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: clamp(28px, 2.05vw, 36px);
  font-weight: 500;
  line-height: 1.18;
  margin-bottom: 14px;
}

.score-highlight {
  color: #b72520;
  font-weight: 700;
}

.case-card p {
  margin: 0;
  color: #51463e;
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.case-tags span {
  padding: 8px 10px;
  background: #f4eadb;
  color: #4d3f37;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.analysis-card {
  padding: 18px 20px;
}

.analysis-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analysis-flow div {
  min-height: 118px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(138, 23, 20, 0.07), rgba(138, 23, 20, 0.015)),
    rgba(255, 251, 244, 0.74);
  border: 1px solid rgba(125, 23, 20, 0.12);
}

.analysis-flow i {
  display: block;
  margin-bottom: 18px;
  color: rgba(138, 23, 20, 0.78);
  font-family: Arial, sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
}

.analysis-flow strong {
  display: block;
  color: #8a1714;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 6px;
}

.analysis-flow span {
  color: #55483f;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.insight-card {
  padding: 18px 22px;
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: start;
}

.insight-card span {
  color: #8a1714;
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: 900;
}

.insight-card p {
  margin: 0;
  color: #312a25;
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

.landing-metrics {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid rgba(125, 23, 20, 0.15);
  background: rgba(255, 255, 255, 0.42);
}

.landing-metrics div {
  min-height: 70px;
  padding: 14px 20px;
  border-right: 1px solid rgba(125, 23, 20, 0.14);
}

.landing-metrics div:last-child {
  border-right: 0;
}

.landing-metrics b {
  display: block;
  color: rgba(138, 23, 20, 0.86);
  font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
  font-size: 30px;
  line-height: 1;
  font-weight: 500;
}

.landing-metrics span {
  display: block;
  margin-top: 8px;
  color: #5a4e46;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

.advisor-phone {
  display: none;
}

.phone-speaker,
.phone-screen {
  pointer-events: none;
}

.login-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  background: var(--ivory);
}

.login-panel-header {
  max-width: 420px;
  margin: 0 auto 24px;
}

.login-panel-header p {
  margin: 0 0 10px;
  color: #b72520;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-panel-header h2 {
  margin: 0 0 10px;
  color: var(--anthropic-near-black);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.24;
}

.login-panel-header span {
  color: var(--olive-gray);
  font-family: Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.login-form {
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--border-cream);
  box-shadow: rgba(0,0,0,0.05) 0px 4px 24px;
  background: var(--ivory);
}

.login-panel .login-form {
  margin: 0 auto;
}

.login-disclaimer {
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0;
  padding: 18px 18px 16px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid var(--border-cream);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--olive-gray);
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.65;
  cursor: pointer;
  box-shadow: rgba(0,0,0,0.03) 0px 2px 12px;
}

.login-disclaimer input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--terracotta-brand);
}

.login-disclaimer span {
  min-width: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--olive-gray);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  background: var(--parchment);
  color: var(--anthropic-near-black);
  font-family: Arial, sans-serif;
  font-size: 16px;
  outline: none;
  transition: all 0.2s;
}

.form-group input::placeholder {
  color: var(--stone-gray);
}

.form-group input:focus {
  border-color: var(--focus-blue);
  box-shadow: 0 0 0 3px rgba(56, 152, 236, 0.1);
}

.code-group {
  display: flex;
  gap: 12px;
}

.code-group input {
  flex: 1;
}

#send-code-btn {
  padding: 12px 20px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  background: var(--warm-sand);
  color: var(--charcoal-warm);
  cursor: pointer;
  transition: all 0.2s;
}

#send-code-btn:hover {
  background: var(--border-warm);
}

#send-code-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.login-form #login-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  font-family: Arial, sans-serif;
  font-size: 17px;
  font-weight: 500;
  border: none;
  border-radius: 12px;
  background: var(--terracotta-brand);
  color: var(--ivory);
  cursor: pointer;
  transition: all 0.2s;
}

.login-form #login-btn:hover {
  background: var(--coral-accent);
  box-shadow: rgba(0,0,0,0.1) 0px 4px 12px;
}

.error-text {
  color: var(--error-crimson);
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin-top: 12px;
  min-height: 20px;
}

.login-proof {
  width: 100%;
  max-width: 420px;
  margin: 22px auto 0;
  display: grid;
  gap: 10px;
}

.login-proof div {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid var(--border-cream);
}

.login-proof div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #b72520;
  box-shadow: 0 0 0 4px rgba(183, 37, 32, 0.08);
}

.login-proof b {
  color: #8a1714;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.login-proof span {
  color: #4f4c47;
  font-family: Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

/* === Login Footer === */
.login-footer {
  padding: 16px 24px 24px;
  text-align: center;
  font-family: Arial, sans-serif;
  font-size: 13px;
}

.login-footer a {
  color: var(--stone-gray);
  text-decoration: none;
  transition: color 0.2s;
}

.login-footer a:hover {
  color: var(--terracotta-brand);
}

@keyframes sealPulse {
  0%, 100% { transform: rotate(8deg) scale(1); }
  50% { transform: rotate(8deg) scale(1.035); }
}

/* === Responsive === */
@media (max-width: 1500px) {
  .landing-seal {
    display: none;
  }
}

@media (min-width: 1700px) and (min-height: 980px) {
  .landing-visual {
    padding-top: clamp(42px, 4.8vh, 68px);
    padding-bottom: clamp(38px, 4vh, 58px);
  }

  .landing-kicker {
    margin-top: clamp(30px, 3.6vh, 52px);
  }

  .landing-visual h1 {
    max-width: min(1200px, 100%);
    white-space: nowrap;
  }

  .landing-showcase {
    margin-top: clamp(54px, 6.6vh, 92px);
  }

  .decision-workbench {
    max-width: 100%;
  }

  .case-card {
    min-height: clamp(300px, 27vh, 390px);
    padding: 30px;
  }

  .case-card b {
    font-size: clamp(38px, 2.3vw, 46px);
  }

  .case-card p {
    font-size: 16px;
  }

  .analysis-card {
    padding: 24px 26px;
  }

  .analysis-flow div {
    min-height: clamp(150px, 12vh, 190px);
    padding: 22px;
  }

  .insight-card {
    min-height: clamp(108px, 8.5vh, 136px);
    padding: 24px 30px;
  }

  .landing-metrics {
    max-width: 100%;
  }

  .landing-metrics div {
    min-height: clamp(86px, 7.2vh, 112px);
    padding: 20px 24px;
  }

  .landing-metrics b {
    font-size: 38px;
  }

  .advisor-phone {
    position: relative;
    z-index: 3;
    display: none;
    width: clamp(360px, 17vw, 440px);
    aspect-ratio: 0.52;
    padding: 0;
    border: 8px solid #151412;
    border-radius: 38px;
    background: #fffaf0;
    box-shadow:
      0 30px 70px rgba(70, 32, 22, 0.18),
      0 0 0 8px rgba(255, 255, 255, 0.22);
  }

  .phone-speaker {
    position: absolute;
    top: 21px;
    left: 50%;
    width: 54px;
    height: 12px;
    border-radius: 999px;
    background: #151412;
    transform: translateX(-50%);
    z-index: 2;
  }

  .phone-screen {
    width: 100%;
    height: 100%;
    padding: 58px 24px 24px;
    border: 0;
    border-radius: 34px;
    background: #fffaf0;
    overflow: hidden;
  }

  .phone-screen strong {
    display: block;
    margin-bottom: 18px;
    color: #8a1714;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 900;
  }

  .phone-scroll {
    height: calc(100% - 48px);
    overflow: hidden;
  }

  .phone-thread {
    display: grid;
    gap: 12px;
    animation: phoneThreadScroll 24s ease-in-out infinite;
  }

  .phone-bubble {
    padding: 15px;
    border-radius: 10px;
    font-family: Arial, sans-serif;
    font-size: clamp(14px, 0.74vw, 17px);
    font-weight: 700;
    line-height: 1.45;
  }

  .phone-bubble.muted {
    background: #f1e7d6;
    color: #2f2924;
  }

  .phone-bubble.active {
    background: #9f1d19;
    color: #fff8ee;
  }

  .phone-bubble.final {
    background: transparent;
    border: 1px solid rgba(159, 29, 25, 0.28);
    color: #8a1714;
  }

  @keyframes phoneThreadScroll {
    0%, 10% { transform: translateY(0); }
    22%, 32% { transform: translateY(-118px); }
    44%, 54% { transform: translateY(-236px); }
    66%, 76% { transform: translateY(-354px); }
    90%, 100% { transform: translateY(-472px); }
  }
}

@media (min-width: 2300px) and (min-height: 980px) {
  .landing-showcase {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(760px, 1fr) minmax(380px, 0.44fr);
    gap: clamp(54px, 5vw, 92px);
    align-items: start;
  }

  .showcase-board {
    min-width: 0;
  }

  .advisor-phone {
    display: block;
    justify-self: center;
    align-self: start;
    margin-top: -140px;
  }
}

@media (max-width: 1080px) {
  .login-landing {
    grid-template-columns: 1fr;
  }

  .landing-visual {
    min-height: auto;
    padding: 28px 26px 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(125, 23, 20, 0.14);
  }

  .landing-visual::before {
    inset: 14px;
  }

  .landing-brand span {
    font-size: 13px;
  }

  .landing-seal {
    top: 78px;
    right: 34px;
    width: 72px;
    height: 72px;
    font-size: 12px;
  }

  .landing-kicker {
    margin-top: 32px;
  }

  .landing-visual h1 {
    max-width: 560px;
    font-size: 46px;
  }

  .landing-copy {
    max-width: 560px;
    font-size: 17px;
  }

  .decision-workbench {
    margin-top: 22px;
    padding-top: 0;
    grid-template-columns: 1fr;
  }

  .case-card {
    grid-row: auto;
    min-height: auto;
  }

  .analysis-card,
  .landing-metrics {
    display: none;
  }

  .insight-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .login-panel {
    min-height: auto;
    padding: 34px 22px 42px;
  }
}

@media (max-width: 768px) {
  .login-landing {
    background: var(--ivory);
  }

  .landing-visual {
    padding: 24px 24px 28px;
  }

  .landing-brand {
    align-items: flex-start;
    gap: 12px;
  }

  .landing-brand strong {
    font-size: 24px;
  }

  .landing-brand span {
    max-width: 140px;
    text-align: right;
    line-height: 1.4;
  }

  .landing-seal {
    display: none;
  }

  .landing-kicker {
    margin: 22px 0 14px;
    font-size: 10px;
  }

  .landing-visual h1 {
    font-size: 32px;
  }

  .landing-copy {
    margin-top: 14px;
    font-size: 15px;
  }

  .landing-showcase {
    display: none;
  }

  .login-panel {
    padding: 38px 22px 42px;
  }

  .login-panel-header h2 {
    font-size: 28px;
  }

  .welcome h1 {
    font-size: 36px;
  }
  
  .welcome .subtitle {
    font-size: 18px;
  }
  
  .hero-gif {
    margin-bottom: 32px;
  }
  
  .chat-header {
    padding: 12px 16px;
  }
  
  .messages {
    padding: 20px 16px;
  }
  
  .input-area {
    padding: 16px;
  }
  
  .msg {
    max-width: 85%;
  }

  .quick-actions {
    max-width: 100%;
  }

  .quick-actions button {
    width: 100%;
    text-align: left;
  }

  .profile-panel {
    width: 100%;
    padding: 14px;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }
  
  .login-form {
    padding: 24px;
  }
}
