:root {
  color-scheme: light;
  --ink: #172437;
  --muted: #667386;
  --paper: #f5f3ed;
  --line: #e3e0d7;
  --blue: #4168c5;
  --coral: #d56d4e;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 4% 0%, #d9e2f0 0, transparent 34%),
    radial-gradient(ellipse at 100% 52%, #efe1d3 0, transparent 27%),
    var(--paper);
}
a { color: inherit; text-decoration: none; }
.home-shell { width: min(1100px, calc(100% - 56px)); margin: auto; }
.home-header {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1724371a;
}
.wordmark { display: inline-flex; align-items: center; gap: 11px; font-size: 13px; font-weight: 850; letter-spacing: 2px; }
.mark {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 500;
}
.muted-mark { color: #8790a0; font-weight: 550; }
.local-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.local-pill i { width: 7px; height: 7px; border-radius: 50%; background: #559b76; }
.intro { padding: 79px 12px 43px; text-align: center; }
.eyebrow { margin: 0; color: #65738a; font-size: 10px; font-weight: 800; letter-spacing: 2.4px; }
h1 { margin: 16px 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(48px, 7vw, 78px); font-weight: 500; line-height: .98; letter-spacing: -3.5px; }
h1 span { color: var(--blue); font-style: italic; }
.subtitle { max-width: 540px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.7; }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
.personal-space { display: flex; justify-content: center; padding: 22px 0 0; }
.together-home-card { width: min(460px, 100%); min-height: 260px; --accent: #a94e70; background: linear-gradient(145deg, #fff0f5 0, #fffdf9 65%); }
.together-home-card .app-icon { color: #a94e70; background: #fff9fc; }
.together-home-card .card-copy h2 { color: #603849; }
.app-card {
  position: relative;
  display: flex;
  min-height: 330px;
  flex-direction: column;
  overflow: hidden;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: 0 12px 34px #29364a0d;
  transition: transform .2s ease, box-shadow .2s ease;
}
.app-card::after { position: absolute; top: -57px; right: -46px; width: 175px; height: 175px; border: 1px solid color-mix(in srgb, var(--accent), transparent 82%); border-radius: 50%; content: ""; pointer-events: none; }
.app-card::before { position: absolute; top: -22px; right: -12px; width: 110px; height: 110px; border: 1px solid color-mix(in srgb, var(--accent), transparent 86%); border-radius: 50%; content: ""; pointer-events: none; }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px #29364a18; }
.university-card { --accent: #4d8a62; background: linear-gradient(145deg, #eaf3e9 0, #fffdf9 57%); }
.performance-card { --accent: var(--coral); background: linear-gradient(145deg, #faeee7 0, #fffdf9 57%); }
.card-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; }
.app-icon { display: grid; width: 53px; height: 53px; place-items: center; border: 1px solid color-mix(in srgb, var(--accent), transparent 75%); border-radius: 50%; background: #fff9; font-size: 22px; }
.category { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.card-copy { position: relative; z-index: 1; margin: 31px 0 26px; }
.card-copy h2 { margin: 0 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -.5px; }
.card-copy p { max-width: 340px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.open-link { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 13px 2px 10px; border-bottom: 1px solid color-mix(in srgb, var(--accent), transparent 35%); color: var(--accent); font-size: 12px; font-weight: 750; transition: gap .2s ease; }
.open-link:hover { gap: 18px; }
.open-link span { font-size: 17px; }
footer { display: flex; justify-content: space-between; gap: 18px; padding: 34px 2px 28px; color: #7a8491; font-size: 11px; }

@media (max-width: 640px) {
  .home-shell { width: min(100% - 32px, 480px); }
  .home-header { height: 70px; }
  .intro { padding: 56px 7px 32px; }
  h1 { letter-spacing: -2.5px; }
  .subtitle { font-size: 14px; }
  .apps { grid-template-columns: 1fr; gap: 14px; }
  .app-card { min-height: 270px; padding: 22px; }
  .personal-space { padding-top: 14px; }
  .together-home-card { min-height: 240px; }
  .card-copy { margin: 24px 0 21px; }
  .card-copy h2 { font-size: 24px; }
  footer { flex-direction: column; gap: 8px; padding-top: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
