/* Edvibe MCP landing — simplified 2026-08-28 */
:root {
  --ink: #24212b;
  --muted: #6b6673;
  --line: #e5e2e8;
  --background: #f7f6f8;
  --surface: #ffffff;
  --accent: #6b52df;
  --accent-dark: #5840c7;
  --accent-pale: #efecff;
  --green: #277257;
  --green-pale: #e8f5ef;
  --amber: #8a5a15;
  --amber-pale: #fff3dc;
  --dark: #1d172b;
  --dark-soft: #282133;
  --dark-line: rgba(255, 255, 255, 0.14);
  --radius: 12px;
  --container: 1120px;
  --nav-height: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--background); }
body {
  margin: 0;
  min-width: 280px;
  color: var(--ink);
  background: var(--background);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
img, iframe { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin-top: 0; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }
code, pre { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: 80px 0; }
.section[id] { scroll-margin-top: calc(var(--nav-height) + 18px); }
.section-white { background: var(--surface); }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 9px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--dark);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}
.nav-inner {
  position: relative;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: inline-flex;
  min-width: max-content;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand-mark {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 15px;
  font-weight: 800;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.nav-links a:hover { color: var(--ink); }
.nav-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav-action:hover { background: var(--accent-dark); }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--surface);
  cursor: pointer;
}
.nav-burger span { width: 19px; height: 2px; border-radius: 2px; background: currentColor; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Shared */
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: var(--accent-dark); }
.button-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: transparent; }
.button-ghost:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
.eyebrow { margin-bottom: 10px; color: var(--accent-dark); font-size: 13px; font-weight: 750; }
.section-heading { max-width: 750px; margin-bottom: 42px; }
.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 4vw, 44px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.section-heading > p:last-child, .split-heading > p { color: var(--muted); font-size: 18px; line-height: 1.6; }
.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  align-items: end;
  gap: 48px;
}
.split-heading h2 { margin-bottom: 0; }
.compact-heading { margin-bottom: 32px; }

/* Hero */
.hero { padding: 86px 0 74px; color: #fff; background: var(--dark); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(48px, 7vw, 86px);
}
.status-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 650;
}
.status-label span { width: 8px; height: 8px; border-radius: 50%; background: #e9b85e; }
.hero h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(46px, 5.6vw, 64px);
  font-weight: 760;
  letter-spacing: -0.052em;
  line-height: 1.01;
}
.hero-lead {
  max-width: 680px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(18px, 2vw, 20px);
  line-height: 1.6;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.hero-facts {
  display: grid;
  max-width: 700px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--dark-line);
  list-style: none;
}
.hero-facts li { padding-right: 18px; }
.hero-facts strong, .hero-facts span { display: block; }
.hero-facts strong { margin-bottom: 3px; color: #fff; font-size: 16px; }
.hero-facts span { color: rgba(255, 255, 255, 0.54); font-size: 12px; line-height: 1.4; }
.prompt-demo {
  overflow: hidden;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--dark-soft);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.prompt-demo-head {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--dark-line);
  background: rgba(0, 0, 0, 0.25);
}
.prompt-demo-dots {
  display: flex;
  gap: 6px;
}
.prompt-demo-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.prompt-demo-dots span:nth-child(1) { background: #ff5f56; opacity: 0.8; }
.prompt-demo-dots span:nth-child(2) { background: #ffbd2e; opacity: 0.8; }
.prompt-demo-dots span:nth-child(3) { background: #27c93f; opacity: 0.8; }

.prompt-demo-status {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}
.prompt-demo-status .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}
.prompt-demo-badge {
  padding: 3px 8px;
  border: 1px solid rgba(145, 221, 189, 0.2);
  border-radius: 999px;
  background: rgba(145, 221, 189, 0.08);
  color: #91ddbd;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.prompt-demo-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.prompt-user-msg {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.msg-author {
  font-size: 11px;
  font-weight: 700;
  color: #ab9dff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.prompt-user-msg p {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.45;
}

.prompt-ai-msg {
  padding: 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.ai-msg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.msg-author.ai-badge {
  color: #91ddbd;
}
.msg-time {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
.ai-intro {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}
.ai-intro strong {
  color: #ffffff;
}

.ai-results-list {
  list-style: none;
  margin: 0 0 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ai-results-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.student-name {
  font-weight: 600;
  color: #ffffff;
}
.student-meta {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}
.student-meta strong {
  color: #fca5a5;
  font-weight: 600;
}

.prompt-audit-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.45);
  font-size: 11px;
}
.prompt-audit-footer svg {
  color: #34d399;
  flex-shrink: 0;
}
.fit-note { border-bottom: 1px solid var(--line); background: var(--surface); }
.fit-note-inner {
  display: grid;
  min-height: 96px;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: 42px;
}
.fit-note-inner strong { font-size: 16px; }
.fit-note-inner p { margin: 0; color: var(--muted); font-size: 15px; }

/* Connection */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 42px;
  padding: 0;
  list-style: none;
}
.steps li { padding-top: 18px; border-top: 2px solid var(--line); }
.steps li > span {
  display: block;
  margin-bottom: 17px;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}
.steps h3 { margin-bottom: 9px; font-size: 17px; line-height: 1.3; }
.steps p { color: var(--muted); font-size: 14px; line-height: 1.55; }
.config { overflow: hidden; border-radius: var(--radius); background: #1f1c27; }
.config-bar {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 10px 8px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.config-tabs { display: flex; align-items: center; gap: 3px; }
.config-tab, .copy-button { border: 0; border-radius: 7px; cursor: pointer; }
.config-tab { padding: 7px 12px; color: rgba(255, 255, 255, 0.52); background: transparent; font-size: 13px; font-weight: 650; }
.config-tab:hover { color: #fff; }
.config-tab.active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.copy-button { min-width: 102px; padding: 8px 12px; color: #fff; background: var(--accent); font-size: 12px; font-weight: 700; }
.copy-button:hover { background: var(--accent-dark); }
.config-panel { min-height: 330px; }
.config-panel:not(.active) { display: none; }
.config-panel pre {
  min-height: 330px;
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #d9d5e2;
  font-size: 13px;
  line-height: 1.75;
  tab-size: 2;
}
.config-panel .comment { color: #8d8797; }
.config-panel .key { color: #b9aaff; }
.config-panel .string { color: #9ce1bc; }
.config-note { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.config-note code { padding: 2px 5px; border-radius: 4px; color: var(--ink); background: #eeecf0; }

/* Scenarios */
.scenario-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 54px;
  margin-bottom: 52px;
}
.scenario-list { border-top: 1px solid var(--line); }
.scenario-item {
  display: grid;
  grid-template-columns: 138px 1fr;
  align-items: start;
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.scenario-item p { margin: 0; font-size: 17px; line-height: 1.55; }
.scenario-type {
  display: inline-flex;
  width: max-content;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
}
.scenario-type.read { color: var(--green); background: var(--green-pale); }
.scenario-type.write { color: var(--amber); background: var(--amber-pale); }
.video-block { align-self: start; }
.video-block iframe { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: #ddd; aspect-ratio: 16 / 9; }
.video-block p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.plain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.plain-grid article { padding-top: 20px; border-top: 2px solid var(--ink); }
.plain-grid h3 { margin-bottom: 9px; font-size: 18px; }
.plain-grid p { color: var(--muted); font-size: 14px; }

/* Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.flow li { min-height: 154px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.flow li > span {
  display: grid;
  width: 28px;
  height: 28px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-dark);
  background: var(--accent-pale);
  font-size: 12px;
  font-weight: 800;
}
.flow strong, .flow small { display: block; }
.flow strong { margin-bottom: 4px; font-size: 15px; line-height: 1.4; }
.flow small { color: var(--muted); font-size: 12px; }

/* Status */
.status-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 22px; }
.status-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.status-card-label { margin-bottom: 12px; font-size: 12px; font-weight: 750; }
.status-card.checked .status-card-label { color: var(--green); }
.status-card.pending .status-card-label { color: var(--amber); }
.status-card h3 { margin-bottom: 17px; font-size: 20px; line-height: 1.35; }
.status-card ul { margin: 0; padding-left: 20px; color: var(--muted); }
.status-card li + li { margin-top: 8px; }
.tool-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.tool-counts div { padding: 20px; }
.tool-counts div + div { border-left: 1px solid var(--line); }
.tool-counts strong, .tool-counts span { display: block; }
.tool-counts strong { margin-bottom: 4px; font-size: 24px; line-height: 1; }
.tool-counts span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.security-note { display: grid; grid-template-columns: 280px 1fr; gap: 34px; padding: 24px 26px; border-radius: var(--radius); background: var(--accent-pale); }
.security-note h3 { margin: 0; font-size: 18px; }
.security-note p { margin: 0; color: #5c566a; font-size: 14px; }

/* FAQ */
.faq-layout { display: grid; grid-template-columns: 310px 1fr; align-items: start; gap: 70px; }
.faq-heading { position: sticky; top: calc(var(--nav-height) + 28px); margin: 0; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 17px 0;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { position: relative; width: 18px; height: 18px; flex: 0 0 18px; }
.faq-list summary span::before, .faq-list summary span::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  background: var(--accent);
  content: "";
}
.faq-list summary span::after { transform: rotate(90deg); }
.faq-list details[open] summary span::after { transform: rotate(0deg); }
.faq-list details p { max-width: 720px; padding: 0 44px 20px 0; color: var(--muted); font-size: 15px; }

/* Closing and footer */
.closing { padding: 54px 0; border-top: 1px solid var(--line); background: var(--surface); }
.closing-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.closing h2 { margin-bottom: 8px; font-size: 30px; letter-spacing: -0.025em; }
.closing p { max-width: 650px; color: var(--muted); }
.closing-actions { display: flex; min-width: max-content; flex-direction: column; align-items: flex-start; gap: 10px; }
.text-link { color: var(--accent-dark); font-size: 13px; font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.footer { padding: 32px 0; color: rgba(255, 255, 255, 0.7); background: var(--dark); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.footer-inner > div:first-child strong, .footer-inner > div:first-child span { display: block; }
.footer-inner strong { margin-bottom: 2px; color: #fff; font-size: 15px; }
.footer-inner span, .footer-links a { font-size: 12px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, 0.64); text-decoration: none; }
.footer-links a:hover { color: #fff; }

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #ab9dff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .nav-links { gap: 18px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 780px; }
  .prompt-demo { max-width: 620px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scenario-layout { grid-template-columns: 1fr; }
  .video-block { max-width: 680px; }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-layout { grid-template-columns: 250px 1fr; gap: 42px; }
}

@media (max-width: 760px) {
  :root { --nav-height: 60px; }
  .container { width: min(calc(100% - 36px), var(--container)); }
  .section { padding: 64px 0; }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
  }
  .nav-links.open { display: block; }
  .nav-links a { display: block; padding: 11px 12px; border-radius: 7px; }
  .nav-links a:hover { background: var(--background); }
  .nav-burger { display: flex; }
  .nav-action { margin-left: auto; }
  .hero { padding: 68px 0 58px; }
  .fit-note-inner, .split-heading, .security-note { grid-template-columns: 1fr; gap: 12px; }
  .fit-note-inner { padding: 22px 0; }
  .section-heading { margin-bottom: 34px; }
  .split-heading { align-items: start; }
  .scenario-item { grid-template-columns: 1fr; gap: 10px; }
  .plain-grid { grid-template-columns: 1fr; }
  .status-columns { grid-template-columns: 1fr; }
  .tool-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tool-counts div + div { border-left: 0; }
  .tool-counts div:nth-child(even) { border-left: 1px solid var(--line); }
  .tool-counts div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .faq-layout { grid-template-columns: 1fr; gap: 28px; }
  .faq-heading { position: static; }
  .closing-inner { align-items: flex-start; flex-direction: column; gap: 26px; }
  .closing-actions { min-width: 0; }
}

@media (max-width: 520px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-action { display: none; }
  .hero h1 { font-size: 42px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-facts { grid-template-columns: 1fr; gap: 13px; }
  .prompt-user { grid-template-columns: 1fr; }
  .prompt-answer dl { grid-template-columns: 1fr; }
  .prompt-answer dt { min-height: 0; }
  .steps, .flow { grid-template-columns: 1fr; }
  .config-bar { align-items: stretch; flex-direction: column; padding: 10px; }
  .config-tabs { overflow-x: auto; }
  .copy-button { min-height: 38px; }
  .config-panel pre { padding: 18px; font-size: 11px; }
  .tool-counts { grid-template-columns: 1fr; }
  .tool-counts div:nth-child(even), .tool-counts div:nth-child(n + 2) { border-top: 1px solid var(--line); border-left: 0; }
  .status-card { padding: 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
