:root {
  --ink: #eaf1ff;
  --muted: #93a8ca;
  --line: rgba(116, 151, 211, .28);
  --paper: rgba(9, 18, 39, .82);
  --soft: #050b1b;
  --accent: #2f72ff;
  --accent-dark: #1f54c8;
  --teal: #22e0c2;
  --gold: #f5a400;
  --danger: #ff565f;
  --success: #2dd4bf;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(46, 103, 199, .13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 103, 199, .13) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(47,114,255,.18), transparent 38%),
    #050b1b;
  background-size: 52px 52px, 52px 52px, auto, auto;
}

a { color: #b8d2ff; text-decoration: none; }

.site-header {
  min-height: 72px;
  padding: 0 6vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(5, 11, 27, .82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.brand {
  color: #f8fbff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}
.brand span { color: var(--gold); }
.brand strong { color: var(--danger); }
.brand small {
  display: inline-block;
  margin-left: 8px;
  color: #8fa7ce;
  font-size: 12px;
  font-weight: 800;
}
.brand.centered { display: block; text-align: center; margin-bottom: 22px; }

nav { display: flex; align-items: center; gap: 16px; font-weight: 800; }
nav a { color: #c8d8f7; }
.nav-cta {
  background: linear-gradient(135deg, #245df4, #5b9dff);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(47,114,255,.24);
}

.hero {
  min-height: calc(100vh - 72px);
  padding: 8vh 6vw 6vh;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, .55fr);
  align-items: center;
  gap: 48px;
  background:
    radial-gradient(circle at 72% 28%, rgba(245,164,0,.18), transparent 18%),
    radial-gradient(circle at 34% 42%, rgba(47,114,255,.24), transparent 22%);
  color: #fff;
}

.hero-badge {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 28px;
  padding: 9px 18px;
  border: 1px solid rgba(94, 142, 255, .55);
  border-radius: 999px;
  color: #a9c7ff;
  background: rgba(47,114,255,.14);
  box-shadow: 0 0 26px rgba(47,114,255,.24), inset 0 0 16px rgba(47,114,255,.14);
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
}
.hero-badge span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
}

.hero-brand-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 8vw, 94px);
  font-weight: 900;
  line-height: .95;
  color: #f7f9ff;
  text-shadow: 0 18px 48px rgba(0,0,0,.45);
}
.hero-brand-mark span { color: var(--gold); }
.hero-brand-mark strong { color: var(--danger); }
.byline {
  margin: 20px 0 14px;
  color: #9fb1cf;
  font-size: 20px;
}
.byline b { color: #fff; }
.byline span { color: var(--danger); }

.eyebrow {
  margin: 0 0 12px;
  color: #9fd2ff;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 900;
}
.eyebrow.dark { color: var(--teal); }

h1 { font-size: clamp(42px, 7vw, 84px); line-height: .96; margin: 0 0 22px; letter-spacing: 0; }
h2 { font-size: 34px; margin: 0 0 18px; letter-spacing: 0; }
h3 { margin: 0 0 10px; font-size: 20px; color: #f8fbff; }
.lead { max-width: 900px; color: #9cb4dc; font-size: 19px; line-height: 1.65; }

.hero-actions, .section-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122, 160, 232, .4);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  cursor: pointer;
}
.button.primary {
  background: linear-gradient(135deg, #245df4, #5b9dff);
  color: #fff;
  border-color: rgba(147, 187, 255, .65);
  box-shadow: 0 16px 38px rgba(47,114,255,.28);
}
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: rgba(255,255,255,.09); color: #fff; }
.button.full { width: 100%; }

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 840px;
  margin-top: 34px;
}
.hero-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #c8d3e7;
  font-size: 13px;
  font-weight: 800;
}

.hero-panel { display: grid; gap: 12px; }
.metric {
  background: rgba(9, 18, 39, .72);
  border: 1px solid rgba(94, 142, 255, .34);
  border-radius: 8px;
  padding: 22px;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 46px rgba(0,0,0,.24), inset 0 0 24px rgba(47,114,255,.08);
}
.metric strong { display: block; font-size: 22px; margin-bottom: 8px; color: #fff; }
.metric span { color: #9cb4dc; line-height: 1.55; }

.feature-band, .plans, .dashboard, .snapshot-band, .workflow-band, .share-band {
  padding: 70px 6vw;
}
.snapshot-band, .workflow-band { background: rgba(255,255,255,.025); }
.feature-grid, .plan-grid, .snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article, .plan, .account-table, .account-hero, .auth-card, .snapshot-card, .workflow-steps div {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(0,0,0,.22), inset 0 0 24px rgba(47,114,255,.04);
}
.feature-grid p, .plan p, .account-hero p, .auth-card p, .snapshot-card p, .workflow-steps p {
  color: var(--muted);
  line-height: 1.55;
}
.section-title { max-width: 760px; margin-bottom: 22px; }
.section-title p { color: var(--muted); }
.section-title.wide { max-width: 980px; }
.feature-grid.six { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.snapshot-grid {
  grid-template-columns: 1.25fr repeat(2, minmax(0, .72fr));
  align-items: stretch;
}
.snapshot-card.large { grid-row: span 2; }
.snapshot-card h3 { margin-top: 18px; }
.snapshot-card {
  position: relative;
  overflow: hidden;
}
.snapshot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--mx, 20%) var(--my, 15%), rgba(47,114,255,.18), transparent 34%);
  opacity: .75;
}
.browser-frame, .mini-screen {
  overflow: hidden;
  border: 1px solid rgba(116, 151, 211, .34);
  border-radius: 8px;
  background: rgba(5, 11, 27, .72);
}
.browser-top {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(116, 151, 211, .26);
}
.browser-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
}
.browser-top span:nth-child(1) { background: #e05252; }
.browser-top span:nth-child(2) { background: #d69e2e; }
.browser-top span:nth-child(3) { background: #38a169; }
.app-preview {
  min-height: 315px;
  display: grid;
  grid-template-columns: 150px 1fr;
}
.app-preview aside {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 18px;
  background: rgba(20,33,61,.92);
  color: #fff;
}
.app-preview aside b { font-size: 14px; margin-bottom: 10px; }
.app-preview aside em {
  font-style: normal;
  font-size: 12px;
  color: #dbeafe;
  padding: 8px;
  border-radius: 6px;
  background: rgba(255,255,255,.08);
}
.app-preview main { padding: 22px; }
.research-window-title {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(47,114,255,.18);
  border: 1px solid rgba(116,151,211,.35);
  color: #dbeafe;
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 14px;
}
.degree-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.degree-tags span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(34,224,194,.12);
  border: 1px solid rgba(34,224,194,.28);
  color: #a7fff0;
  font-weight: 900;
  font-size: 12px;
}
.research-timeline {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
}
.research-timeline span {
  position: relative;
  min-height: 30px;
  display: flex;
  align-items: center;
  padding: 0 12px 0 34px;
  border-radius: 8px;
  background: rgba(255,255,255,.075);
  color: #c8d8f7;
  font-weight: 800;
  font-size: 13px;
  overflow: hidden;
}
.research-timeline span::before {
  content: "";
  position: absolute;
  left: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #64748b;
}
.research-timeline span.done::before { background: var(--teal); box-shadow: 0 0 12px rgba(34,224,194,.8); }
.research-timeline span.active {
  border: 1px solid rgba(245,164,0,.45);
  color: #fff7d6;
}
.research-timeline span.active::before { background: var(--gold); box-shadow: 0 0 12px rgba(245,164,0,.85); }
.research-timeline span.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  transform: translateX(-100%);
  animation: scanLine 2.8s infinite;
}
.preview-title {
  width: 58%;
  height: 24px;
  border-radius: 6px;
  background: var(--accent);
  margin-bottom: 18px;
}
.preview-line {
  width: 62%;
  height: 12px;
  border-radius: 999px;
  background: rgba(203, 213, 225, .55);
  margin-bottom: 10px;
}
.preview-line.wide-line { width: 88%; }
.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.mini-grid span {
  display: block;
  aspect-ratio: 1.1;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47,114,255,.38), rgba(34,224,194,.25));
  border: 1px solid rgba(116, 151, 211, .34);
}
.research-kpis span {
  padding: 14px;
  display: grid;
  align-content: center;
  gap: 5px;
}
.research-kpis b {
  color: #fff;
  font-size: 23px;
}
.research-kpis small {
  color: #9cb4dc;
  font-size: 12px;
  font-weight: 800;
}
.mini-screen {
  min-height: 156px;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.document-screen div {
  border-radius: 8px;
}
.doc-card {
  min-height: 46px;
  display: grid;
  grid-template-columns: 46px 1fr;
  grid-template-rows: 1fr 1fr;
  column-gap: 10px;
  padding: 9px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(116,151,211,.24);
}
.doc-card b {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(47,114,255,.28);
  color: #dbeafe;
  font-size: 12px;
}
.doc-card span {
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.doc-card small {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}
.doc-progress {
  height: 10px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.doc-progress i {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  animation: progressPulse 2.4s ease-in-out infinite;
}
.coding-screen { grid-template-columns: 1fr 1fr; }
.coding-screen span {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: rgba(34,224,194,.12);
  border-left: 5px solid var(--teal);
  color: #eaf1ff;
  font-size: 12px;
  font-weight: 900;
  animation: floatChip 4s ease-in-out infinite;
}
.coding-screen span:nth-child(2) { border-left-color: var(--gold); background: rgba(245,164,0,.12); }
.coding-screen span:nth-child(3) { border-left-color: var(--accent); background: rgba(47,114,255,.14); }
.coding-screen span:nth-child(4) { border-left-color: var(--danger); background: rgba(255,86,95,.12); }
.coding-screen span:nth-child(2) { animation-delay: .35s; }
.coding-screen span:nth-child(3) { animation-delay: .7s; }
.coding-screen span:nth-child(4) { animation-delay: 1.05s; }
.report-screen { grid-template-rows: 24px 1fr 1fr 18px; }
.report-screen header, .report-screen section, .report-screen footer {
  border-radius: 6px;
  background: rgba(148, 163, 184, .18);
  padding: 8px 10px;
  color: #eaf1ff;
  font-size: 12px;
  font-weight: 900;
}
.report-screen header { width: 68%; background: rgba(245,164,0,.9); color: #071124; }
.report-screen section:nth-child(2) { background: rgba(47,114,255,.30); }
.report-screen section:nth-child(3) { width: 80%; background: rgba(34,224,194,.24); }
.report-screen footer { width: 78%; background: rgba(255,86,95,.24); }
.report-screen section {
  display: grid;
  gap: 4px;
}
.report-screen section span {
  color: #b8c8e8;
  font-size: 11px;
}
.accent-card {
  background: linear-gradient(135deg, rgba(34,224,194,.14), rgba(245,164,0,.10));
}
.cloud-save-panel {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 110px;
}
.cloud-icon {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #03111c;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(34,224,194,.2);
  animation: savePulse 2.6s ease-in-out infinite;
}
.cloud-save-panel b {
  display: block;
  color: #fff;
  margin-bottom: 5px;
}
.cloud-save-panel span {
  color: #a7fff0;
  font-size: 12px;
  font-weight: 800;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.workflow-steps strong {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  margin-bottom: 16px;
}

.share-band {
  background: rgba(255,255,255,.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.share-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.share-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(122,160,232,.36);
  border-radius: 8px;
  padding: 0 16px;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  font-family: inherit;
}
.share-btn.facebook { background: #1877f2; }
.share-btn.linkedin { background: #0a66c2; }
.share-btn.instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045); }
.share-btn.copy { background: rgba(255,255,255,.1); }
.share-note {
  color: var(--muted);
  font-size: 13px;
  margin-top: 14px;
}

.plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.plan-grid.two { grid-template-columns: repeat(2, minmax(280px, 440px)); justify-content: center; }
.price { color: var(--teal) !important; font-size: 24px; font-weight: 900; }
.plan-list {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  color: #dfe9ff;
  font-weight: 800;
  font-size: 14px;
}
.plan-list li::before {
  content: "✓";
  color: var(--teal);
  margin-right: 8px;
}

.site-footer {
  padding: 26px 6vw;
  border-top: 1px solid var(--line);
  background: rgba(5,11,27,.92);
  color: var(--muted);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card { width: min(100%, 440px); }
.auth-card h1 { font-size: 34px; line-height: 1.1; text-align: center; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-size: 13px; font-weight: 800; color: #dfe9ff; }
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(122, 160, 232, .38);
  border-radius: 8px;
  padding: 0 12px;
  font-size: 15px;
  background: rgba(255,255,255,.92);
  color: #14213d;
}
.alert {
  border: 1px solid #ffc9c9;
  background: #fff1f1;
  color: #991b1b;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
}
.small { text-align: center; font-size: 14px; }
.dashboard { display: grid; gap: 24px; }
.account-hero h1 { font-size: 42px; }
.account-table table { width: 100%; border-collapse: collapse; }
.account-table th, .account-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 12px; color: #dfe9ff; }

.rl-assistant {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
}
.rl-assistant-toggle {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(122,160,232,.42);
  border-radius: 999px;
  padding: 7px 16px 7px 7px;
  background: rgba(9,18,39,.94);
  color: #fff;
  box-shadow: 0 18px 45px rgba(0,0,0,.35), 0 0 24px rgba(47,114,255,.22);
  cursor: pointer;
  font-weight: 900;
}
.rl-assistant-toggle img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(34,224,194,.65);
}
.rl-chat-panel {
  width: min(380px, calc(100vw - 32px));
  max-height: 620px;
  display: none;
  position: absolute;
  right: 0;
  bottom: 74px;
  overflow: hidden;
  border: 1px solid rgba(122,160,232,.36);
  border-radius: 12px;
  background: rgba(7,14,32,.98);
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}
.rl-chat-panel.open { display: block; }
.rl-chat-panel header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid rgba(122,160,232,.24);
  background: rgba(47,114,255,.12);
}
.rl-chat-panel header img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  object-fit: cover;
}
.rl-chat-panel header div {
  flex: 1;
  display: grid;
  gap: 3px;
}
.rl-chat-panel header strong { color: #fff; }
.rl-chat-panel header span { color: var(--muted); font-size: 12px; }
.rl-chat-panel header button {
  border: 0;
  background: transparent;
  color: #dbeafe;
  font-size: 24px;
  cursor: pointer;
}
.rl-chat-messages {
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.rl-msg {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.45;
  font-size: 13px;
}
.rl-msg.bot {
  background: rgba(255,255,255,.08);
  color: #dbeafe;
}
.rl-msg.user {
  justify-self: end;
  background: rgba(47,114,255,.32);
  color: #fff;
}
.rl-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}
.rl-quick-prompts button {
  border: 1px solid rgba(122,160,232,.30);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: #dbeafe;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 800;
  font-size: 12px;
}
.rl-chat-input {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(122,160,232,.24);
}
.rl-chat-input input {
  min-height: 42px;
}
.rl-chat-input button {
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}
.rl-chat-input .voice-btn {
  background: rgba(255,255,255,.12);
}

@keyframes scanLine {
  to { transform: translateX(100%); }
}
@keyframes progressPulse {
  0%, 100% { width: 44%; }
  50% { width: 92%; }
}
@keyframes floatChip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes savePulse {
  0%, 100% { box-shadow: 0 14px 34px rgba(34,224,194,.2); transform: scale(1); }
  50% { box-shadow: 0 20px 48px rgba(34,224,194,.42); transform: scale(1.03); }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 52px; }
  .feature-grid, .feature-grid.six, .plan-grid, .plan-grid.two, .snapshot-grid, .workflow-steps { grid-template-columns: 1fr; }
  .snapshot-card.large { grid-row: auto; }
  .app-preview { grid-template-columns: 1fr; }
  .app-preview aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header { align-items: flex-start; flex-direction: column; padding-top: 16px; padding-bottom: 16px; }
  .hero-brand-mark { font-size: 48px; }
  .brand small { display: block; margin-left: 0; margin-top: 2px; }
  .rl-assistant { right: 12px; bottom: 12px; }
  .rl-chat-input { grid-template-columns: 1fr; }
}
