.history-page { background: #f5f7fa; }
.history-page .nav-current { color: #fff; }
.history-page .nav-current::after { content: ""; height: 2px; margin-top: 5px; display: block; background: var(--mint); }
.history-hero { min-height: 720px; position: relative; overflow: hidden; display: flex; align-items: center; color: #fff; background: linear-gradient(145deg, #071329 0%, #0c2143 66%, #123568 100%); }
.history-grid { position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.15) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.15) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, transparent 3%, #000 50%, transparent 100%); }
.history-orb { position: absolute; border-radius: 50%; filter: blur(3px); }
.history-orb-one { width: 560px; height: 560px; right: -120px; top: -210px; background: radial-gradient(circle, rgba(45,127,249,.46), transparent 70%); }
.history-orb-two { width: 420px; height: 420px; left: 35%; bottom: -320px; background: radial-gradient(circle, rgba(65,214,187,.28), transparent 70%); }
.history-hero-inner { position: relative; z-index: 2; padding: 156px 0 86px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 90px; align-items: end; }
.history-hero-copy h1 { max-width: 850px; margin-bottom: 26px; font-size: clamp(54px, 7vw, 96px); line-height: .96; }
.history-hero-copy > p:last-of-type { max-width: 740px; margin-bottom: 30px; color: #b9c8df; font-size: clamp(17px, 1.75vw, 21px); }
.feed-links { display: flex; flex-wrap: wrap; gap: 22px; }
.feed-links a { padding-bottom: 5px; border-bottom: 1px solid rgba(255,255,255,.45); font-size: 13px; font-weight: 800; }
.latest-release { padding: 30px; border: 1px solid rgba(255,255,255,.17); border-radius: 22px; background: rgba(255,255,255,.08); box-shadow: 0 30px 70px rgba(0,0,0,.2); backdrop-filter: blur(16px); }
.latest-label { margin-bottom: 42px; display: flex; align-items: center; gap: 9px; color: #dce8fa; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.latest-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 5px rgba(65,214,187,.12); }
.latest-release strong { margin-bottom: 15px; display: block; font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.latest-release > p { color: #c3d1e6; font-size: 15px; }
.latest-meta { margin-top: 30px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; gap: 12px; color: #9eb0ca; font-size: 11px; font-weight: 700; }
.history-summary { color: #fff; background: var(--blue); }
.history-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.history-summary-grid div { min-height: 150px; padding: 28px; border-right: 1px solid rgba(255,255,255,.2); display: flex; flex-direction: column; justify-content: center; }
.history-summary-grid div:first-child { padding-left: 0; }
.history-summary-grid div:last-child { border: 0; }
.history-summary strong { margin-bottom: 5px; font-size: 36px; letter-spacing: -.05em; }
.history-summary span { color: #dce9ff; font-size: 12px; font-weight: 700; }
.history-content { padding: 112px 0 130px; }
.history-heading { margin-bottom: 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 80px; align-items: end; }
.history-heading h2 { margin: 0; font-size: clamp(42px, 5.2vw, 68px); line-height: 1; }
.history-heading > p { margin: 0; color: var(--muted); font-size: 16px; }
.history-toolbar { position: sticky; top: 14px; z-index: 12; margin-bottom: 54px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; display: flex; align-items: center; justify-content: space-between; gap: 18px; background: rgba(255,255,255,.9); box-shadow: 0 16px 40px rgba(10,30,60,.08); backdrop-filter: blur(14px); }
.history-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.filter-button { appearance: none; min-height: 40px; padding: 9px 14px; border: 1px solid transparent; border-radius: 10px; color: #566277; background: transparent; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.filter-button:hover { color: var(--navy); background: #eef4ff; }
.filter-button.is-active { color: #fff; background: var(--navy); }
.filter-result { padding-right: 8px; color: #718096; font-size: 11px; font-weight: 700; white-space: nowrap; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 0; left: 151px; width: 1px; background: var(--line); }
.timeline-group { display: contents; }
.timeline-year { margin: 0 0 32px; padding: 9px 12px; border-radius: 999px; width: fit-content; color: var(--blue); background: #e8f1ff; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.timeline-event { position: relative; margin-bottom: 18px; display: grid; grid-template-columns: 120px 1fr; gap: 64px; }
.event-date { padding-top: 29px; color: #657186; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.event-date time { display: block; }
.event-dot { position: absolute; left: 145px; top: 35px; width: 13px; height: 13px; border: 3px solid var(--paper); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #a9c9f8; }
.event-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 28px rgba(17,24,39,.045); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.event-card:hover { transform: translateY(-2px); border-color: #b9cceb; box-shadow: 0 18px 42px rgba(17,24,39,.08); }
.event-topline { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.event-kind, .event-status, .event-version { padding: 7px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.event-kind { color: #165fbf; background: #e6f0ff; }
.event-kind[data-kind="release"] { color: #6b3fb3; background: #f0e9ff; }
.event-kind[data-kind="integration"] { color: #087d70; background: #e3f7f2; }
.event-kind[data-kind="platform"] { color: #9a5510; background: #fff0dc; }
.event-status { color: #287348; background: #e7f6ec; }
.event-status[data-status="available"] { color: #275f9f; background: #e8f1ff; }
.event-status[data-status="verified"] { color: #8c5b0d; background: #fff2d9; }
.event-version { margin-left: auto; color: #4a5568; background: #f0f2f5; }
.event-card h3 { margin-bottom: 12px; font-size: clamp(24px, 2.8vw, 36px); line-height: 1.1; }
.event-summary { max-width: 850px; margin-bottom: 22px; color: var(--muted); font-size: 16px; }
.event-highlights { margin: 0; padding: 20px 0 0; border-top: 1px solid #edf0f4; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px 28px; list-style: none; }
.event-highlights li { position: relative; padding-left: 16px; color: #435066; font-size: 13px; }
.event-highlights li::before { content: ""; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
.history-error { padding: 34px; border: 1px solid #f0c8c8; border-radius: 18px; background: #fff4f4; }
.history-error h3 { margin-bottom: 8px; }
.history-error p { margin: 0; color: var(--muted); }
.history-error a { text-decoration: underline; }
.history-principle { padding: 90px 0; color: #fff; background: var(--navy); }
.history-principle-grid { display: grid; grid-template-columns: .5fr 1.4fr 1fr; gap: 54px; align-items: start; }
.history-principle h2 { margin: 0; font-size: clamp(38px, 4.8vw, 64px); line-height: 1.05; }
.history-principle > .shell > p:last-child { margin: 0; color: #aebdd4; font-size: 16px; }

@media (max-width: 980px) {
  .history-hero-inner { grid-template-columns: 1fr; gap: 46px; }
  .latest-release { max-width: 640px; }
  .history-heading { grid-template-columns: 1fr; gap: 24px; }
  .history-principle-grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 700px) {
  .history-hero { min-height: auto; }
  .history-hero-inner { padding: 124px 0 64px; }
  .history-hero-copy h1 { font-size: clamp(45px, 13vw, 64px); }
  .latest-release { padding: 24px; }
  .latest-label { margin-bottom: 30px; }
  .latest-release strong { font-size: 40px; }
  .history-summary-grid { grid-template-columns: 1fr 1fr; }
  .history-summary-grid div, .history-summary-grid div:first-child { min-height: 120px; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
  .history-summary-grid div:nth-child(2) { border-right: 0; padding-left: 20px; }
  .history-summary-grid div:nth-child(4) { border-right: 0; border-bottom: 0; padding-left: 20px; }
  .history-summary-grid div:nth-child(3) { border-bottom: 0; }
  .history-content { padding: 76px 0 90px; }
  .history-toolbar { position: static; padding: 0; border: 0; display: block; background: transparent; box-shadow: none; }
  .history-filters { margin-bottom: 13px; gap: 6px; }
  .filter-button { padding: 8px 11px; border-color: var(--line); background: #fff; }
  .filter-result { display: block; }
  .timeline::before { left: 6px; }
  .timeline-event { padding-left: 26px; grid-template-columns: 1fr; gap: 9px; }
  .event-date { padding-top: 0; }
  .event-dot { left: 0; top: 5px; }
  .event-card { padding: 22px; border-radius: 16px; }
  .event-version { margin-left: 0; }
  .event-highlights { grid-template-columns: 1fr; }
  .history-principle { padding: 70px 0; }
}
