:root {
  color-scheme: dark;
  font-size: 16px;
  --ink: #d5e0e8;
  --muted: #82929f;
  --accent: #54e6a5;
  --accent-bright: #7bffc2;
  --paper: #080b0f;
  --line: #26343a;
  --panel: #0d1217;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(#080b0fb0, #080b0fdd), linear-gradient(#17212655 1px, transparent 1px), linear-gradient(90deg, #17212655 1px, transparent 1px);
  background-size: cover, 32px 32px, 32px 32px;
  background-position: center, 0 0, 0 0;
  background-attachment: fixed;
  color: var(--ink);
}
a { color: inherit; }
button { font: inherit; }
.shell { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 12px; left: 12px; transform: translateY(-160%); padding: 12px 16px; border: 1px solid var(--accent); background: #080b0f; color: var(--accent-bright); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 4px; }

.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: .9375rem; font-weight: 700; letter-spacing: -.04em; }
.brand::before { content: ">"; color: var(--accent); }
.brand-mark { width: 30px; height: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 3px; }
.brand-mark i { background: var(--accent); }
.brand-mark i:nth-child(2) { background: #ffc857; }
.brand-mark i:nth-child(3) { background: #31c8d3; }
.brand-mark i:nth-child(4) { background: #a78bfa; }
.top-actions { display: flex; align-items: center; gap: 23px; }
.domain { color: var(--muted); font-size: .75rem; }
.language { border: 1px solid var(--line); background: var(--panel); color: var(--accent); border-radius: 2px; padding: 9px 14px; font-size: .75rem; font-weight: 700; cursor: pointer; }
.language:hover { border-color: var(--accent); }

.hero { position: relative; overflow: hidden; margin: 16px 0 66px; padding: 65px 68px 68px; border: 1px solid #315047; border-radius: 3px; background: #0b1014e8; box-shadow: inset 0 0 55px #54e6a508; }
.hero::before { content: "┌─ session: applications4education ──────────────────────────────"; position: absolute; top: 18px; left: 24px; color: #52655f; font-size: .625rem; white-space: nowrap; }
.hero::after { content: ""; position: absolute; right: 40px; bottom: 34px; width: 9px; height: 20px; background: var(--accent); animation: cursor-blink 1.2s steps(2, start) infinite; }
.hero-copy { position: relative; z-index: 1; max-width: 680px; }
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: .75rem; font-weight: 700; }
.eyebrow::before { content: "$ "; color: #ffc857; }
h1 { max-width: 620px; margin: 0; font-size: clamp(2.125rem, 5vw, 3.625rem); line-height: 1.12; letter-spacing: -.07em; }
.hero-intro { max-width: 610px; margin: 22px 0 0; color: #9baeb5; font-size: .9375rem; line-height: 1.8; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 27px; color: var(--accent); font-size: .75rem; font-weight: 700; }
.hero-note::before { content: "[+]"; color: #ffc857; }
@keyframes cursor-blink { 50% { opacity: 0; } }

.collection { padding-bottom: 78px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.section-heading h2 { margin: 0; font-size: 1.3125rem; letter-spacing: -.05em; }
.section-heading h2::before { content: "./"; color: var(--accent); }
.section-heading p { margin: 7px 0 0; color: var(--muted); font-size: .75rem; }
.count { color: #ffc857; font-size: .75rem; white-space: nowrap; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.app-card { display: grid; grid-template-columns: minmax(190px, .9fr) 1.1fr; min-height: 280px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: var(--panel); box-shadow: 0 12px 40px #0008; }
.app-art { display: grid; place-items: center; min-width: 0; min-height: 270px; overflow: hidden; border-right: 1px dashed #34423f; background: #0a1013; }
.project-preview { display: block; width: 100%; height: 100%; min-height: 270px; object-fit: contain; }
.app-content { align-self: center; padding: 30px 28px; }
.app-kicker { margin: 0 0 11px; color: var(--accent); font-size: .625rem; font-weight: 700; letter-spacing: .08em; }
.app-kicker::before { content: "["; color: #ffc857; }
.app-kicker::after { content: "]"; color: #ffc857; }
.app-content h3 { margin: 0; font-size: 1.5rem; letter-spacing: -.06em; }
.tagline { margin: 6px 0 14px; color: var(--muted); font-size: .75rem; }
.description { max-width: 420px; margin: 0; color: #9baeb5; font-size: .75rem; line-height: 1.8; }
.open-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 21px; padding: 11px 14px; border: 1px solid var(--accent); border-radius: 2px; background: #54e6a510; color: var(--accent); font-size: .75rem; font-weight: 700; text-decoration: none; transition: background .16s ease, color .16s ease; }
.open-link:hover { background: var(--accent); color: #08100d; }
.open-link span:last-child { font-size: 1rem; line-height: 1; }
.noscript { margin: 20px 0; color: #ffc857; font-size: .75rem; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .625rem; }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-block: 14px; }
.footer-brand { display: grid; gap: 6px; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.legal-nav a { color: var(--ink); text-decoration: underline; text-decoration-color: #52655f; text-underline-offset: 3px; }
.legal-nav a:hover { color: var(--accent-bright); text-decoration-color: currentColor; }
.legal-main { padding: 45px 0 80px; }
.legal-back { display: inline-block; margin-bottom: 0; color: var(--accent); }
.legal-draft { margin: 14px 0 34px; padding: 18px 20px; border: 1px solid #806d32; background: #ffc8570b; color: var(--ink); font-size: .75rem; line-height: 1.8; }
.legal-draft strong { display: block; margin-bottom: 5px; color: #ffd875; }
.legal-section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.page-heading { margin: 0 0 18px; font-size: clamp(1.5625rem, 4vw, 2.375rem); letter-spacing: -.06em; }
.legal-section h1, .legal-section h2 { margin: 0 0 18px; font-size: clamp(1.4375rem, 3vw, 2rem); letter-spacing: -.05em; }
.legal-section h2 { font-size: 1.5rem; }
.legal-section p { max-width: 78ch; margin: 12px 0; color: #b4c0c7; font-size: .8125rem; line-height: 1.85; }
.legal-section p[lang="es"] { color: #a8bbb2; }
.legal-placeholder { color: #ffd875; font-weight: 700; }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, 540px); }
  .topbar { height: 70px; }
  .brand { font-size: .8125rem; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .domain { display: none; }
  .top-actions { gap: 10px; }
  .hero { margin: 10px 0 48px; padding: 48px 25px 45px; }
  .hero::before { top: 14px; left: 15px; right: 15px; overflow: hidden; font-size: .5rem; }
  .hero::after { width: 8px; height: 18px; right: 22px; bottom: 23px; }
  .hero-intro { font-size: .875rem; }
  .section-heading { align-items: start; }
  .section-heading h2 { font-size: 1.1875rem; }
  .app-grid { grid-template-columns: 1fr; }
  .app-card { grid-template-columns: 1fr; }
  .app-art { min-height: 225px; border-right: 0; border-bottom: 1px dashed #34423f; }
  .project-preview { min-height: 225px; }
  .app-content { padding: 26px 24px 29px; }
  .footer-inner { align-items: flex-start; }
  .legal-nav { gap: 14px; }
}
.a11y-trigger { position: fixed; z-index: 40; right: 24px; bottom: 22px; display: grid; width: 54px; height: 54px; place-items: center; border: 2px solid #d4aa00; border-radius: 50%; background: #ffd21a; color: #111820; box-shadow: 0 5px 18px #0006; cursor: pointer; }
.a11y-trigger svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.a11y-trigger:hover { background: #ffe36a; }
.a11y-panel { position: fixed; z-index: 41; right: 24px; bottom: 88px; width: min(330px, calc(100vw - 32px)); max-height: calc(100vh - 104px); overflow-y: auto; padding: 17px 18px 18px; border: 2px solid #17202a; border-radius: 16px; background: #fff; color: #111820; box-shadow: 0 14px 36px #0006; font-family: Arial, Helvetica, sans-serif; }
.a11y-panel[hidden] { display: none; }
.a11y-panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.a11y-panel-header h2 { max-width: 220px; margin: 0; font-size: 1.25rem; line-height: 1.05; font-weight: 800; text-transform: uppercase; }
.a11y-close { flex: 0 0 auto; width: 42px; height: 42px; border: 2px solid #28c7ed; background: #fff; color: #111820; font-size: 1.375rem; cursor: pointer; }
.a11y-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.a11y-action { min-height: 66px; padding: 9px 10px; border: 1px solid #8998a6; border-radius: 10px; background: #fff; color: #111820; font-size: .875rem; line-height: 1.25; font-weight: 700; cursor: pointer; }
.a11y-action:hover, .a11y-action[aria-pressed="true"] { border-color: #111820; background: #e9fff4; }
.a11y-action:disabled { opacity: .55; cursor: not-allowed; }
.a11y-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.a11y-panel :focus-visible, .a11y-trigger:focus-visible { outline: 3px solid #087da0; outline-offset: 3px; }

html.a11y-high-contrast {
  --ink: #fff;
  --muted: #fff;
  --accent: #00ff9d;
  --accent-bright: #fff;
  --paper: #000;
  --line: #fff;
  --panel: #000;
}
html.a11y-high-contrast body { background: #000; background-image: none; color: #fff; }
html.a11y-high-contrast .hero, html.a11y-high-contrast .app-card { border-color: #fff; background: #000; box-shadow: none; }
html.a11y-high-contrast .hero-intro, html.a11y-high-contrast .description, html.a11y-high-contrast .legal-section p, html.a11y-high-contrast footer { color: #fff; }
html.a11y-high-contrast .a11y-panel { background: #fff; color: #111820; }
html.a11y-underline-links a { text-decoration: underline !important; text-decoration-thickness: .12em; text-underline-offset: .18em; }

@media (max-width: 760px) {
  .a11y-trigger { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .a11y-panel { right: 12px; bottom: 78px; width: min(330px, calc(100vw - 24px)); max-height: calc(100vh - 90px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation: none !important; }
}
