:root {
  color-scheme: dark;
  --bg: #07040e;
  --surface: #110b1d;
  --surface-2: #181027;
  --surface-3: #211631;
  --text: #fbf8ff;
  --muted: #c6bad0;
  --soft: #998ca5;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .22);
  --accent: #f29ab2;
  --accent-strong: #ffb3c6;
  --violet: #b8a1ff;
  --green: #9fe0b6;
  --shadow: 0 28px 80px rgba(0, 0, 0, .42);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.companion-portal {
  margin: 0;
  min-width: 300px;
  background:
    radial-gradient(circle at 78% 8%, rgba(134, 89, 176, .16), transparent 30rem),
    radial-gradient(circle at 20% 28%, rgba(242, 154, 178, .08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
}

.portal-header,
.portal-footer,
.hero,
.section,
.release-card,
.final-cta,
.changelog-hero,
.changelog-list {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.portal-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 86px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  letter-spacing: -.02em;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(242, 154, 178, .18);
}

.brand span { display: grid; line-height: 1.05; }
.brand strong { font-size: 1.05rem; }
.brand small { margin-top: 4px; color: var(--soft); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; }

.portal-header nav,
.portal-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
}

.portal-header nav a,
.portal-footer nav a {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
  text-decoration: none;
}

.portal-header nav a:hover,
.portal-footer nav a:hover { color: var(--text); }

.portal-header nav .portal-login {
  padding: 9px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, .055);
  color: var(--text);
}

.portal-header nav .portal-login:hover {
  border-color: var(--accent);
  background: rgba(242, 154, 178, .11);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
  min-height: 680px;
  padding: 86px 0 106px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
}

.hero h1,
.section h2,
.final-cta h2,
.changelog-hero h1 {
  margin: 18px 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero h1 { max-width: 720px; font-size: clamp(3.4rem, 7.2vw, 6.65rem); }
.hero h1 em { color: var(--accent); font-weight: inherit; }

.hero-lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
}

.hero-actions,
.final-cta > div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:not(.is-disabled):hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: #240914; box-shadow: 0 10px 34px rgba(242, 154, 178, .18); }
.button-primary:hover { background: #ffc0d0; }
.button-secondary { border-color: var(--line-strong); background: rgba(255, 255, 255, .045); color: var(--text); }
.button-secondary:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }
.button.is-disabled { cursor: not-allowed; background: #564c5e; color: #d8d0dc; box-shadow: none; }

.release-line { margin: 17px 0 0; color: #ded5e5; font-size: .86rem; font-weight: 650; }
.mobile-note { display: none; max-width: 550px; margin: 12px 0 0; color: var(--soft); font-size: .8rem; }

.hero-visual { position: relative; min-height: 500px; isolation: isolate; }

.orb { position: absolute; z-index: -2; border-radius: 50%; filter: blur(1px); }
.orb-one { inset: 5% -5% auto 7%; width: 340px; height: 340px; background: radial-gradient(circle at 35% 30%, rgba(255, 188, 207, .55), rgba(115, 66, 153, .16) 48%, transparent 72%); filter: blur(16px); }
.orb-two { right: 8%; bottom: 2%; width: 220px; height: 220px; background: radial-gradient(circle, rgba(157, 130, 232, .28), transparent 70%); filter: blur(20px); }

.desktop-card {
  position: absolute;
  inset: 40px 15px 20px 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(37, 23, 52, .97), rgba(11, 7, 17, .98));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, .08);
  transform: rotate(2deg);
}

.window-bar { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #5c4e66; }
.window-bar span:first-child { background: var(--accent); }
.window-bar small { margin-left: auto; color: var(--soft); font-size: .67rem; letter-spacing: .08em; text-transform: uppercase; }

.desktop-content { display: flex; min-height: 410px; flex-direction: column; align-items: center; justify-content: center; padding: 34px; text-align: center; }
.desktop-content > img { width: 112px; height: 112px; border: 3px solid rgba(255, 255, 255, .15); border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 10px rgba(242, 154, 178, .06), 0 18px 40px rgba(0, 0, 0, .36); }
.presence-dot { margin-top: 20px; color: var(--green); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.presence-dot::before { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; content: ""; }
.desktop-content h2 { margin: 11px 0 4px; font: 500 2.1rem/1 Georgia, serif; }
.desktop-content p { margin: 0; color: var(--muted); font-size: .9rem; }
.mock-input { display: flex; width: min(100%, 330px); align-items: center; justify-content: space-between; margin-top: 32px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: rgba(0, 0, 0, .25); color: var(--soft); font-size: .82rem; text-align: left; }
.mock-input span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--accent); color: #250b14; font-weight: 900; }

.floating-pill { position: absolute; z-index: 2; padding: 9px 13px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(12, 7, 18, .88); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(12px); color: #e9e1ed; font-size: .7rem; font-weight: 800; }
.pill-version { top: 19px; right: -2px; }
.pill-status { bottom: 3px; left: -8px; }
.pill-status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--green); }

.section { padding: 112px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(2.7rem, 5.2vw, 5.1rem); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); column-gap: 60px; align-items: end; margin-bottom: 56px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { margin: 0 0 6px; color: var(--muted); }

.intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: start; }
.intro h2 { margin-bottom: 0; font-size: clamp(2.7rem, 4.7vw, 4.8rem); }
.split-explainer { border-top: 1px solid var(--line); }
.split-explainer article { display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.split-explainer article > span { color: var(--accent); font: 600 .82rem/1 Georgia, serif; }
.split-explainer h3 { margin: 0 0 8px; font-size: 1.15rem; }
.split-explainer p { grid-column: 2; margin: 0; color: var(--muted); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 270px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(31, 20, 45, .84), rgba(15, 10, 23, .88)); }
.feature-card.feature-wide { grid-column: span 2; min-height: 350px; }
.feature-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-bottom: 50px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--accent-strong); font-weight: 800; }
.feature-card h3 { margin: 0 0 10px; font: 500 1.65rem/1.1 Georgia, serif; }
.feature-card p { margin: 0; color: var(--muted); }
.mini-chat { display: grid; max-width: 500px; gap: 8px; margin-top: 24px; }
.mini-chat span { width: fit-content; max-width: 85%; padding: 9px 13px; border-radius: 12px 12px 12px 3px; background: rgba(255, 255, 255, .08); color: #e7deec; font-size: .78rem; }
.mini-chat span:last-child { justify-self: end; border-radius: 12px 12px 3px 12px; background: rgba(242, 154, 178, .13); }

.live-work { position: relative; }
.live-work::before {
  position: absolute;
  z-index: -1;
  top: 12%;
  right: 4%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 161, 255, .11), transparent 68%);
  content: "";
  pointer-events: none;
}
.live-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.live-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(150deg, rgba(27, 18, 40, .92), rgba(12, 8, 19, .96));
}
.live-card-featured { border-color: rgba(242, 154, 178, .32); background: linear-gradient(150deg, rgba(65, 31, 54, .62), rgba(18, 11, 27, .96)); }
.live-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 52px; }
.mode-icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line-strong); border-radius: 14px; color: var(--accent-strong); font-size: 1.15rem; }
.availability { padding: 6px 9px; border-radius: 999px; font-size: .62rem; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.availability.available { background: rgba(159, 224, 182, .12); color: var(--green); }
.availability.assisted { background: rgba(184, 161, 255, .13); color: #d4c8ff; }
.live-card h3 { margin: 0 0 13px; font: 500 1.7rem/1.08 Georgia, serif; }
.live-card > p { margin: 0; color: var(--muted); }
.live-card ul { display: grid; gap: 10px; margin: 26px 0 0; padding: 0; list-style: none; }
.live-card li { position: relative; padding-left: 18px; color: #ded5e4; font-size: .84rem; }
.live-card li::before { position: absolute; top: .68em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); content: ""; }
.live-card code { padding: 2px 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .78rem; }
.live-link { grid-column: auto; margin-top: auto; padding-top: 24px; font-size: .83rem; }
.live-explainer { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .02); }
.live-explainer > div { display: grid; grid-template-columns: 34px 1fr; column-gap: 13px; padding: 24px; }
.live-explainer > div + div { border-left: 1px solid var(--line); }
.live-explainer span { grid-row: 1 / 3; color: var(--accent); font: 500 1.2rem/1 Georgia, serif; }
.live-explainer strong { font-size: .9rem; }
.live-explainer p { margin: 5px 0 0; color: var(--soft); font-size: .78rem; line-height: 1.5; }
.live-definition { max-width: 900px; margin: 30px 0 0; padding-left: 22px; border-left: 2px solid var(--violet); color: var(--muted); font-size: .88rem; }
.live-definition strong { color: var(--text); }

.showcase-grid { display: grid; grid-template-columns: .9fr 1.15fr .95fr; gap: 14px; }
.ui-preview { min-height: 340px; overflow: hidden; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.preview-label { color: var(--soft); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.overlay-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.preview-avatar { position: relative; margin: 34px 0 18px; }
.preview-avatar img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.preview-avatar i { position: absolute; right: 1px; bottom: 2px; width: 12px; height: 12px; border: 3px solid var(--surface); border-radius: 50%; background: var(--green); }
.overlay-preview h3 { margin: 0 0 7px; font: 500 1.55rem/1 Georgia, serif; }
.overlay-preview p { max-width: 220px; margin: 0; color: var(--muted); font-size: .85rem; }
.chat-preview { display: flex; flex-direction: column; gap: 16px; justify-content: center; background: linear-gradient(150deg, #160e20, #0d0914); }
.chat-preview .preview-label { position: absolute; align-self: flex-start; transform: translateY(-130px); }
.bubble { max-width: 86%; padding: 14px 16px; border-radius: 18px; font-size: .83rem; }
.bubble-user { align-self: flex-end; border-bottom-right-radius: 4px; background: var(--accent); color: #250b14; }
.bubble-amelia { border: 1px solid var(--line); border-bottom-left-radius: 4px; background: rgba(255, 255, 255, .05); color: #e5dce9; }
.center-preview ul { display: grid; gap: 10px; margin: 40px 0 0; padding: 0; list-style: none; }
.center-preview li { display: flex; align-items: center; justify-content: space-between; padding: 17px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, .025); }
.center-preview li b { font-size: .83rem; }
.center-preview li span { color: var(--soft); font-size: .7rem; }

.history { display: grid; grid-template-columns: .8fr 1.2fr; column-gap: 90px; }
.history .section-heading { display: block; position: sticky; top: 40px; align-self: start; margin: 0; }
.history .section-heading h2 { font-size: clamp(2.7rem, 4.7vw, 4.6rem); }
.history .section-heading p { max-width: 440px; }
.timeline { border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 118px 1fr; gap: 22px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.timeline-version { color: var(--accent); font-size: .76rem; font-weight: 800; }
.timeline-item h3 { margin: 0 0 8px; font: 500 1.35rem/1.15 Georgia, serif; }
.timeline-item p { margin: 0; color: var(--muted); }
.text-link { grid-column: 2; width: fit-content; margin-top: 28px; color: var(--accent-strong); font-weight: 800; text-underline-offset: 5px; }

.privacy { display: grid; grid-template-columns: .75fr 1.25fr; gap: 80px; }
.privacy-intro h2 { font-size: clamp(3rem, 5vw, 5rem); }
.privacy-intro p { color: var(--muted); }
.data-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.data-columns article { padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255, 255, 255, .025); }
.data-tag { display: inline-flex; padding: 7px 10px; border-radius: 999px; font-size: .7rem; font-weight: 850; }
.data-tag.local { background: rgba(159, 224, 182, .12); color: var(--green); }
.data-tag.shared { background: rgba(184, 161, 255, .12); color: #cfc0ff; }
.data-columns ul { display: grid; gap: 14px; margin: 24px 0 0; padding: 0; list-style: none; }
.data-columns li { position: relative; padding-left: 18px; color: var(--muted); font-size: .88rem; }
.data-columns li::before { position: absolute; top: .7em; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--soft); content: ""; }
.permission-note { grid-column: 2; padding: 25px 28px; border-left: 3px solid var(--accent); background: rgba(242, 154, 178, .06); }
.permission-note strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.permission-note p { margin: 8px 0 0; color: var(--muted); }

.security-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.security-grid article { min-height: 240px; padding: 28px; border: 1px solid var(--line); border-radius: 22px; }
.security-grid article > span { color: var(--accent); font: 600 .82rem/1 Georgia, serif; }
.security-grid h3 { margin: 60px 0 10px; font: 500 1.55rem/1.1 Georgia, serif; }
.security-grid p { margin: 0; color: var(--muted); }

.lab { padding: 62px; border: 1px solid rgba(184, 161, 255, .2); border-radius: var(--radius); background: linear-gradient(120deg, rgba(67, 43, 94, .34), rgba(17, 11, 29, .7)); }
.lab h2 { max-width: 780px; margin-bottom: 24px; font-size: clamp(2.5rem, 4.3vw, 4.3rem); }
.lab p { max-width: 820px; margin: 0; color: var(--muted); font-size: 1.05rem; }

.steps { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.steps li { display: grid; grid-template-columns: 80px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.steps li > span { color: var(--accent); font: 500 2rem/1 Georgia, serif; }
.steps h3 { margin: 0 0 7px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
.install-footnote { max-width: 780px; margin: 30px 0 0 100px; color: var(--soft); font-size: .86rem; }

.release-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 38px; margin-block: 80px 120px; padding: clamp(30px, 5vw, 62px); border: 1px solid rgba(159, 224, 182, .25); border-radius: var(--radius); background: linear-gradient(135deg, rgba(28, 57, 43, .28), rgba(17, 11, 29, .96)); box-shadow: var(--shadow); }
.release-card-unavailable { grid-template-columns: 1fr; border-color: var(--line); background: var(--surface); box-shadow: none; }
.release-card h2 { margin: 13px 0 14px; font: 500 clamp(2rem, 3.4vw, 3.4rem)/1 Georgia, serif; letter-spacing: -.035em; }
.release-card p { max-width: 700px; margin: 0; color: var(--muted); }
.verified-list { display: grid; gap: 9px; margin: 24px 0 0; padding: 0; list-style: none; color: #d8eadf; font-size: .86rem; }
.verified-list span { margin-right: 8px; color: var(--green); font-weight: 900; }
.release-action { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.release-action p { margin-top: 12px; color: var(--soft); font-size: .75rem; }
.technical-details { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); }
.technical-details summary { width: fit-content; cursor: pointer; color: var(--muted); font-weight: 750; }
.technical-details dl { display: grid; gap: 12px; margin: 22px 0 0; }
.technical-details dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; }
.technical-details dt { color: var(--soft); font-size: .75rem; }
.technical-details dd { margin: 0; color: #e6ddeb; font-size: .82rem; overflow-wrap: anywhere; }
.technical-details code { font: .76rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; }
.self-signed-notice { grid-column: 1 / -1; margin: 0; padding: 18px 20px; border: 1px solid rgba(242, 193, 78, .24); border-radius: 16px; background: rgba(242, 193, 78, .06); color: var(--muted); font-size: .82rem; }
.self-signed-notice strong { color: #f2d58b; }
.self-signed-notice a { color: var(--accent-strong); font-weight: 750; }

.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: 80px; }
.faq .section-heading { display: block; margin: 0; }
.faq .section-heading h2 { font-size: clamp(2.7rem, 4.5vw, 4.4rem); }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; cursor: pointer; padding: 23px 38px 23px 0; font-weight: 750; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 21px; right: 5px; color: var(--accent); content: "+"; font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list p { margin: -5px 0 25px; color: var(--muted); }

.final-cta { margin-block: 30px 100px; padding: clamp(42px, 7vw, 86px); border-radius: var(--radius); background: linear-gradient(130deg, #2a162d, #181027 58%, #241536); text-align: center; }
.final-cta h2 { font-size: clamp(3rem, 6vw, 5.8rem); }
.final-cta > div { justify-content: center; }
.final-cta > p { margin: 24px 0 0; color: var(--soft); font-size: .8rem; }

.portal-footer { display: flex; justify-content: space-between; gap: 40px; padding: 48px 0 60px; border-top: 1px solid var(--line); }
.portal-footer strong { font-family: Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.portal-footer p { margin: 7px 0 0; color: var(--soft); font-size: .8rem; }
.portal-footer nav { flex-wrap: wrap; justify-content: flex-end; }

.changelog-hero { padding: 100px 0 70px; border-bottom: 1px solid var(--line); }
.changelog-hero h1 { max-width: 900px; font-size: clamp(3.5rem, 7vw, 6.5rem); }
.changelog-hero p { max-width: 640px; margin: 0; color: var(--muted); font-size: 1.1rem; }
.changelog-hero .button { margin-top: 30px; }
.changelog-list { padding: 50px 0 120px; }
.changelog-entry { display: grid; grid-template-columns: 270px 1fr; gap: 50px; padding: 38px 0; border-bottom: 1px solid var(--line); }
.changelog-entry header { display: flex; flex-direction: column; gap: 8px; }
.changelog-entry header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.changelog-version { font: 500 1.4rem/1 Georgia, serif; }
.status-badge { padding: 4px 8px; border-radius: 999px; background: rgba(159, 224, 182, .12); color: var(--green); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.changelog-entry time { color: var(--soft); font-size: .78rem; }
.changelog-entry ul { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.changelog-entry li { position: relative; padding-left: 20px; color: var(--muted); }
.changelog-entry li::before { position: absolute; top: .7em; left: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); content: ""; }
.changelog-history > summary { padding: 24px 0; color: var(--accent); cursor: pointer; font-weight: 600; }
.changelog-history > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.changelog-entry li { overflow-wrap: anywhere; }
.changelog-list { scroll-margin-top: 24px; }

@media (max-width: 900px) {
  .portal-header nav { gap: 16px; }
  .portal-header nav a:nth-child(2), .portal-header nav a:nth-child(3) { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 70px; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-visual { min-height: 460px; }
  .desktop-card { inset-inline: 8%; }
  .section-heading, .intro, .privacy, .faq { grid-template-columns: 1fr; gap: 35px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .live-grid { grid-template-columns: 1fr; }
  .live-card { min-height: 0; }
  .live-explainer { grid-template-columns: 1fr; }
  .live-explainer > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
  .showcase-grid article:last-child { grid-column: 1 / -1; }
  .history { grid-template-columns: 1fr; gap: 45px; }
  .history .section-heading { position: static; }
  .text-link { grid-column: 1; }
  .permission-note { grid-column: 1; }
  .security-grid { grid-template-columns: 1fr; }
  .security-grid article { min-height: 0; }
  .security-grid h3 { margin-top: 34px; }
  .release-card { grid-template-columns: 1fr; }
  .technical-details { grid-column: 1; }
  .changelog-entry { grid-template-columns: 210px 1fr; gap: 30px; }
}

@media (max-width: 620px) {
  .portal-header, .portal-footer, .hero, .section, .release-card, .final-cta, .changelog-hero, .changelog-list { width: min(calc(100% - 28px), var(--max)); }
  .portal-header { min-height: 74px; }
  .portal-header nav a { display: none; }
  .portal-header nav a:last-child { display: inline; }
  .hero { gap: 30px; padding: 62px 0 74px; }
  .hero h1 { font-size: clamp(3.15rem, 16vw, 4.8rem); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .mobile-note { display: block; }
  .hero-visual { min-height: 390px; }
  .desktop-card { inset: 30px 0 12px; border-radius: 25px; transform: none; }
  .desktop-content { min-height: 330px; padding: 24px; }
  .desktop-content > img { width: 88px; height: 88px; }
  .orb-one { right: 0; left: auto; width: min(340px, 100%); }
  .pill-version { right: 0; }
  .pill-status { left: 0; }
  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .section-heading { margin-bottom: 38px; }
  .feature-grid, .showcase-grid, .data-columns, .live-explainer { grid-template-columns: 1fr; }
  .live-explainer > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .feature-card.feature-wide, .showcase-grid article:last-child { grid-column: auto; }
  .feature-card { min-height: 0; }
  .feature-icon { margin-bottom: 36px; }
  .live-card { padding: 24px; }
  .live-card-head { margin-bottom: 36px; }
  .live-explainer > div { padding: 21px; }
  .ui-preview { min-height: 300px; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .privacy { gap: 40px; }
  .permission-note { padding: 22px; }
  .lab { padding: 38px 24px; }
  .steps li { grid-template-columns: 46px 1fr; }
  .install-footnote { margin-left: 0; }
  .release-card { margin-block: 50px 80px; padding: 28px 22px; }
  .release-action .button { width: 100%; }
  .technical-details dl div { grid-template-columns: 1fr; gap: 2px; }
  .final-cta { margin-bottom: 70px; padding: 52px 22px; }
  .final-cta > div { align-items: stretch; flex-direction: column; }
  .portal-footer { flex-direction: column; }
  .portal-footer nav { align-items: flex-start; flex-direction: column; }
  .changelog-hero { padding-top: 70px; }
  .changelog-entry { grid-template-columns: 1fr; gap: 20px; }
}

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