:root {
  color-scheme: light;
  --ink: #121936;
  --muted: #485479;
  --accent: #243fbd;
  --line: #d7deef;
  --paper: #f5f6fd;
  --wrap: 76rem;
  background: var(--paper);
  color: var(--ink);
  font-family: system-ui, sans-serif;
  font-size: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .25em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
p, dd { overflow-wrap: break-word; }
code { font-family: ui-monospace, monospace; font-size: .92em; }
.wrap { width: min(var(--wrap), calc(100% - clamp(2.5rem, 10vw, 10rem))); margin-inline: auto; }
.site-header { display: flex; min-height: 4.5rem; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; font-size: 1.25rem; font-weight: 750; letter-spacing: -.045em; }
.wordmark img { border-radius: .62rem; }
.header-nav, .languages { display: flex; align-items: center; }
.header-nav { gap: clamp(.55rem, 3vw, 1.85rem); }
.header-nav > a { color: var(--ink); font-size: .93rem; font-weight: 550; text-decoration: none; }
.header-nav > a:hover { text-decoration: underline; }
.languages { gap: .2rem; color: var(--muted); }
.languages a { display: grid; min-height: 2.75rem; place-items: center; padding-inline: .44rem; border-radius: .62rem; color: inherit; font-size: .86rem; text-decoration: none; }
.languages a:hover, .languages a[aria-current="page"] { background: #e4e9fc; color: #1b349d; }
.hero {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at 74% 53%, #d2ddff, transparent 57%), linear-gradient(140deg, #f9faff 24%, #e9edff);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0 0 0 42%;
  z-index: -1;
  background: linear-gradient(#6376c11c 1px, transparent 1px), linear-gradient(90deg, #6376c11c 1px, transparent 1px);
  background-size: 2.3rem 2.3rem;
  mask-image: radial-gradient(ellipse at 53% 48%, #000 23%, transparent 70%);
}
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); min-height: min(49rem, calc(100svh - 4.5rem)); padding-block: clamp(2.5rem, 5.8vw, 5.5rem); }
.intro h1 { margin: 0 0 1.35rem; font-size: clamp(2.7rem, 5.45vw, 5rem); font-weight: 800; line-height: .99; letter-spacing: -.075em; text-wrap: balance; }
.lead { max-width: 32rem; margin: 0; color: var(--muted); font-size: clamp(1.07rem, 1.7vw, 1.3rem); line-height: 1.63; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1.3rem; margin-top: 1.9rem; }
.actions a { display: inline-flex; align-items: center; min-height: 2.85rem; font-weight: 650; }
.actions .primary { padding: .7rem 1.15rem; border-radius: .68rem; background: var(--accent); color: white; text-decoration: none; box-shadow: 0 .35rem .8rem #243fbd36; transition: background .17s, transform .17s; }
.actions .primary:hover { background: #192f9c; transform: translateY(-2px); }
.actions .primary:active { transform: translateY(1px); }
.platforms { margin: 1.05rem 0 0; color: var(--muted); font-size: .89rem; }
.app-frame, .study-frame { align-self: center; justify-self: center; width: min(100%, 17.5rem); }
.app-frame img, .study-frame img { height: auto; width: 100%; filter: drop-shadow(0 1rem 1.35rem #17265a38); }
.study { background: #0e173b; color: #f2f5ff; }
.study-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; gap: clamp(2rem, 8vw, 8rem); min-height: 42rem; padding-block: clamp(3rem, 7vw, 7rem); }
.study-frame { width: min(100%, 15.5rem); }
.study-frame img { filter: drop-shadow(0 1rem 1.35rem #050c2980); }
.study h2 { margin: 0 0 1.65rem; max-width: 15ch; font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 1; font-weight: 760; letter-spacing: -.065em; }
.feature-list { margin: 0; }
.feature-list > div { padding-block: 1rem; border-top: 1px solid #445579; }
.feature-list dt { margin-bottom: .32rem; font-weight: 700; }
.feature-list dd { margin: 0; color: #c8d3f5; line-height: 1.58; }
.document { max-width: 48rem; min-height: calc(100svh - 9rem); padding-block: clamp(3rem, 9vw, 7rem); }
.document h1 { margin: 0 0 1.65rem; font-size: clamp(2rem, 5vw, 3.8rem); line-height: 1.05; letter-spacing: -.055em; overflow-wrap: anywhere; }
.document p { margin: 0 0 1rem; color: var(--muted); font-size: 1.06rem; line-height: 1.7; }
.site-footer { border-top: 1px solid var(--line); }
.footer-layout { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 4.5rem; align-items: center; gap: .75rem clamp(1rem, 4vw, 2.5rem); padding-block: 1.05rem; }
.footer-layout nav { display: flex; flex-wrap: wrap; gap: .3rem clamp(.9rem, 2.65vw, 2rem); }
.footer-layout nav a { display: flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-size: .91rem; text-decoration: none; }
.footer-layout nav a:hover { text-decoration: underline; }
.footer-layout small { color: var(--muted); white-space: nowrap; }
section { scroll-margin-block-start: 1rem; }

@media (max-width: 750px) {
  .hero-layout, .study-layout { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-layout { padding-block: 3.2rem 2.8rem; }
  .intro h1 { font-size: clamp(2.05rem, 8.5vw, 3.8rem); text-wrap: initial; }
  .hero::after { inset: 32% 0 0; }
  .app-frame { width: min(68vw, 16rem); }
  .study-layout > :last-child { grid-row: 1; }
  .study-frame { width: min(61vw, 14.5rem); }
  .footer-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
  .site-header { gap: .5rem; }
  .site-header .wordmark { gap: .4rem; }
  .site-header .wordmark img { width: 30px; height: 30px; }
}
@media (prefers-reduced-motion: no-preference) {
  [data-enter] .intro { animation: enter .5s ease-out both; }
  [data-enter] .app-frame { animation: enter .62s .08s ease-out both; }
  @keyframes enter { from { opacity: 0; transform: translateY(12px); } }
}
@media (prefers-reduced-motion: reduce) {
  .actions .primary { transition: none; }
  .actions .primary:hover, .actions .primary:active { transform: none; }
}
