:root {
  color-scheme: light;
  --ink: #17223b;
  --muted: #667085;
  --paper: #fffef9;
  --sand: #f4f0e8;
  --accent: #ef5b5b;
  --accent-dark: #c93f3f;
  --green: #23845e;
  --line: #dedbd2;
  --shadow: 0 24px 70px rgb(23 34 59 / 14%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }

.site-header {
  position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 10px max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgb(222 219 210 / 76%); background: rgb(255 254 249 / 88%);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 850; }
.brand-mark {
  display: grid; place-items: center; width: 39px; height: 39px; border-radius: 12px;
  background: var(--ink); color: #fff; font-family: Georgia, serif; font-size: 21px; box-shadow: 0 6px 16px rgb(23 34 59 / 18%);
}
.brand-mark sup, .preview-logo sup { color: var(--accent); font-size: .58em; }
.site-header nav { display: flex; align-items: center; gap: 27px; }
.site-header nav a { color: #495269; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--ink); }
.site-header .nav-cta { padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; }
.site-header .nav-cta:hover, .site-header .nav-cta:focus-visible { background: #263452; color: #fff; }

main { overflow: hidden; }
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, .92fr) minmax(460px, 1.08fr); align-items: center;
  gap: clamp(45px, 7vw, 100px); max-width: 1240px; min-height: 700px; margin: auto; padding: 78px 30px 92px;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; top: -180px; right: -280px; width: 720px; height: 720px;
  border-radius: 50%; background: radial-gradient(circle, rgb(239 91 91 / 16%), transparent 66%);
}
.eyebrow { margin: 0 0 13px; color: var(--accent-dark); font-size: 12px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { margin-top: 0; font-family: Georgia, "Times New Roman", serif; line-height: 1.08; }
h1 { max-width: 680px; margin-bottom: 24px; font-size: clamp(48px, 6vw, 78px); font-weight: 600; letter-spacing: -.045em; }
.hero-lead { max-width: 660px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin: 32px 0 23px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 49px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 11px; text-decoration: none; font-size: 14px; font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--ink); color: #fff; box-shadow: 0 10px 22px rgb(23 34 59 / 17%); }
.button.primary:hover, .button.primary:focus-visible { background: #263452; }
.button.secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.button.secondary:hover, .button.secondary:focus-visible { box-shadow: 0 9px 20px rgb(23 34 59 / 10%); }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; color: #576078; font-size: 12px; font-weight: 750; list-style: none; }
.hero-points li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 950; }

.product-preview {
  overflow: hidden; border: 1px solid #d6d9df; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}
.preview-topbar { display: flex; align-items: center; gap: 9px; height: 58px; padding: 0 15px; background: #fff; }
.preview-logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--ink); color: #fff; font: 700 17px Georgia, serif; }
.preview-title { font: 700 15px Georgia, serif; }
.preview-pill { margin-left: auto; padding: 5px 9px; border-radius: 99px; background: #eaf5ef; color: #287958; font-size: 9px; font-weight: 850; }
.preview-workspace { display: grid; grid-template-columns: 54px 1fr; min-height: 370px; background: #eceef2; }
.preview-tools { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 15px 7px; background: #fff; }
.preview-tools i { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; background: #f5f4f0; color: var(--ink); font-style: normal; font-weight: 800; }
.preview-board {
  position: relative; display: grid; place-items: center; overflow: hidden; margin: 17px 17px 13px; border-radius: 8px;
  background: linear-gradient(rgb(255 255 255 / 82%), rgb(255 255 255 / 82%)), url("../img/chameleon_fond.jpg") center / cover;
}
.preview-board strong { z-index: 2; max-width: 360px; color: var(--ink); font: 600 clamp(24px, 3vw, 39px)/1.14 Georgia, serif; text-align: center; }
.chalk-line { position: absolute; z-index: 1; display: block; height: 4px; border-radius: 99px; background: var(--accent); transform-origin: left; }
.line-one { top: 26%; left: 15%; width: 120px; transform: rotate(-12deg); }
.line-two { right: 10%; bottom: 25%; width: 145px; transform: rotate(8deg); }
.chalk-circle { position: absolute; right: 12%; top: 16%; width: 72px; height: 72px; border: 4px solid #6047d4; border-radius: 50%; }
.preview-pages { display: flex; gap: 7px; height: 49px; padding: 8px 13px; background: #fff; }
.preview-pages span { display: grid; place-items: center; min-width: 68px; padding: 0 10px; border-radius: 8px; background: #f4f4f2; color: #7a8191; font-size: 10px; font-weight: 750; }
.preview-pages .active { background: var(--ink); color: #fff; }

.feature-section, .versions-section { padding: 100px max(30px, calc((100vw - 1180px) / 2)); }
.feature-section { background: var(--sand); }
.section-heading { max-width: 720px; margin-bottom: 42px; }
.section-heading h2, .closing-section h2 { margin-bottom: 16px; font-size: clamp(35px, 4vw, 53px); font-weight: 600; letter-spacing: -.035em; }
.section-heading > p:not(.eyebrow) { color: var(--muted); font-size: 17px; }
.release-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 20px; }
.release-summary p { margin: 0; color: var(--ink); font-size: 14px; font-weight: 800; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1180px; margin: auto; }
.feature-grid article { min-height: 260px; padding: 27px; border: 1px solid rgb(222 219 210 / 78%); border-radius: 16px; background: rgb(255 254 249 / 72%); }
.feature-icon { display: grid; place-items: center; width: 45px; height: 45px; margin-bottom: 34px; border-radius: 13px; background: var(--ink); color: #fff; font-size: 21px; }
.feature-grid h3, .version-card h3 { margin-bottom: 12px; font-size: 25px; font-weight: 600; }
.feature-grid p, .version-card p { margin: 0; color: var(--muted); font-size: 14px; }

.versions-section { max-width: 1300px; margin: auto; }
.version-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.version-card { display: flex; flex-direction: column; min-height: 320px; padding: 29px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.version-card.featured { border-color: #cdd2df; background: linear-gradient(145deg, #fff, #f6f7fa); }
.version-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 38px; }
.platform-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sand); color: var(--ink); font-size: 24px; }
.windows-icon { grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px; }
.windows-icon i { width: 10px; height: 10px; background: currentColor; }
.status { padding: 5px 10px; border-radius: 99px; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.available-status { background: #e5f4ec; color: #237253; }
.upcoming-status { background: #f0eee9; color: #777264; }
.version-card p { max-width: 510px; margin-bottom: 27px; }
.version-card .button, .download-actions, .disabled-action { margin-top: auto; align-self: flex-start; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; }
.text-link { color: var(--ink); font-size: 13px; font-weight: 850; text-underline-offset: 4px; }
.upcoming { background: #faf9f5; }
.disabled-action { padding: 11px 15px; border-radius: 9px; background: #eceae5; color: #918c80; font-size: 12px; font-weight: 800; }

.closing-section {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; max-width: 1180px; margin: 30px auto 95px;
  padding: 48px; border-radius: 22px; background: var(--ink); color: #fff;
}
.closing-section .eyebrow { color: #ff9e9e; }
.closing-section h2 { margin: 0; }
.button.light { background: #fff; color: var(--ink); white-space: nowrap; }
footer {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; padding: 35px max(30px, calc((100vw - 1180px) / 2));
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12px;
}
footer p { margin: 0; text-align: center; }
footer > a:last-child { justify-self: end; font-weight: 750; text-underline-offset: 3px; }
.footer-brand { justify-self: start; }
.footer-brand .brand-mark { width: 31px; height: 31px; border-radius: 9px; font-size: 16px; }

@media (max-width: 900px) {
  .site-header nav > a:not(.nav-cta) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .hero-copy { max-width: 720px; }
  .product-preview { transform: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-section { margin-inline: 24px; }
}

@media (max-width: 620px) {
  .site-header { min-height: 62px; padding-inline: 15px; }
  .site-header .brand > span:last-child { display: none; }
  .site-header .nav-cta { padding: 9px 12px; font-size: 12px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding: 45px 18px 68px; }
  h1 { font-size: clamp(42px, 13vw, 58px); }
  .hero-actions, .hero-actions .button { width: 100%; }
  .hero-points { display: grid; }
  .product-preview { border-radius: 14px; }
  .preview-workspace { grid-template-columns: 43px 1fr; min-height: 280px; }
  .preview-tools { padding-inline: 4px; }
  .preview-tools i { width: 33px; height: 33px; }
  .preview-board { margin: 9px; }
  .preview-board strong { padding: 20px; font-size: 23px; }
  .feature-section, .versions-section { padding: 72px 18px; }
  .feature-grid, .version-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; }
  .closing-section { display: grid; margin: 16px 18px 70px; padding: 30px 24px; }
  .closing-section .button { width: 100%; }
  footer { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  footer > a:last-child, .footer-brand { justify-self: center; }
}

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