:root {
  --ink: #0a0e17;
  --muted: #626b7c;
  --line: #dfe3ea;
  --blue: #0a6cff;
  --blue-dark: #0758d5;
  --white: #ffffff;
}

@font-face {
  font-family: "Font Awesome 5 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../webfonts/fa-brands-400.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img { max-width: 100%; display: block; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { min-height: 78px; position: relative; z-index: 50; border-bottom: 1px solid rgba(10,14,23,.08); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.site-header-inner { width: min(1320px, calc(100% - 48px)); min-height: 78px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 36px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.brand-icon { width: 34px; height: 34px; flex: 0 0 auto; display: block; overflow: hidden; border-radius: 8px; background: #292929; box-shadow: 0 4px 12px rgba(3,36,90,.18); }
.brand-icon img { width: 100%; height: 100%; max-width: none; transform: scale(1.18); }
.site-nav { display: flex; justify-content: center; align-items: center; }
.site-nav-link { position: relative; padding: 28px 8px 26px; color: #4e5868; font-size: 13px; font-weight: 600; }
.site-nav-link::after { content: ""; position: absolute; right: 8px; bottom: 19px; left: 8px; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.site-nav-link:hover, .site-nav-link.is-active { color: var(--ink); }
.site-nav-link:hover::after, .site-nav-link.is-active::after { transform: scaleX(1); }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.language-picker { height: 40px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: #4e5868; background: #fff; }
.language-picker select { width: 150px; max-width: 150px; border: 0; outline: 0; background: transparent; color: inherit; cursor: pointer; }

.hero { position: relative; overflow: hidden; padding: 94px clamp(24px, 7vw, 120px) 0; text-align: center; background: linear-gradient(180deg, #fff 0%, #f7f9fd 72%, #edf3ff 100%); min-height: 880px; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(8,74,178,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(8,74,178,.045) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, #000 30%, transparent 88%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .7; }
.hero-glow-one { width: 480px; height: 480px; background: radial-gradient(circle, rgba(40,132,255,.18), transparent 68%); top: 80px; left: -180px; }
.hero-glow-two { width: 540px; height: 540px; background: radial-gradient(circle, rgba(62,215,201,.13), transparent 68%); top: 20px; right: -220px; }
.hero-copy { position: relative; z-index: 2; max-width: 940px; margin: 0 auto; }
.hero h1 { margin: 0 auto 24px; max-width: 920px; font-size: clamp(54px, 6.3vw, 94px); line-height: .98; letter-spacing: -.065em; font-weight: 700; }
.hero h1 em { font-style: normal; color: transparent; background: linear-gradient(100deg, #086bff 20%, #1686f7 58%, #23a9c4 100%); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 700px; margin: 0 auto; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.6; color: #596274; letter-spacing: -.015em; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 650; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: linear-gradient(135deg, var(--blue), #0557dc); box-shadow: 0 12px 30px rgba(10,108,255,.24); }
.button-primary:hover { box-shadow: 0 16px 36px rgba(10,108,255,.32); }
.apple-mark { width: 18px; height: 20px; display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; color: currentColor; font-family: "Font Awesome 5 Brands"; font-size: 20px; font-weight: 400; line-height: 1; }
.apple-mark::before { content: "\f179"; }
.requirement { margin-top: 18px; display: flex; justify-content: center; align-items: center; gap: 7px; color: #6b7484; font-size: 12px; }
.requirement span { width: 17px; height: 17px; display: inline-grid; place-items: center; color: #16865a; background: #e3f7ef; border-radius: 50%; font-size: 10px; }
.hero-product { position: relative; z-index: 2; width: min(1120px, 90vw); margin: 68px auto -42px; perspective: 1800px; }
.window-frame { overflow: hidden; padding: 1px; border-radius: 18px; background: #2d3440; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 34px 100px rgba(4,19,49,.25), 0 3px 10px rgba(4,19,49,.14); transform: rotateX(1.5deg); transform-origin: center bottom; }
.window-frame > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }

.showcase-section { padding: 40px 0 145px; overflow: hidden; color: var(--ink); background: linear-gradient(180deg, #edf3ff 0, #f8faff 72px, #fff 190px, #fff 100%); }
.showcase-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.showcase-row { display: grid; grid-template-columns: minmax(260px, 360px) minmax(0, 1fr); gap: clamp(44px, 6vw, 96px); align-items: center; padding: 88px 0; border-top: 1px solid #dfe6f0; }
.showcase-row:nth-child(even) { grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); }
.showcase-row:nth-child(even) .showcase-copy { order: 2; }
.showcase-row:nth-child(even) .showcase-image { order: 1; }
.showcase-copy { max-width: 360px; }
.showcase-copy h2 { margin: 20px 0 15px; font-size: 34px; line-height: 1.12; letter-spacing: -.045em; }
.showcase-copy p { color: #626b7c; line-height: 1.65; }
.showcase-copy ul { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 13px; color: #354052; font-size: 13px; }
.showcase-copy li { display: flex; align-items: center; gap: 10px; }
.showcase-copy li i { width: 18px; height: 18px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; font-style: normal; font-size: 9px; color: #fff; background: var(--blue); box-shadow: 0 4px 10px rgba(10,108,255,.2); }
.showcase-image { min-width: 0; overflow: hidden; border: 1px solid rgba(13,37,73,.14); border-radius: 18px; background: #171b22; box-shadow: 0 30px 70px rgba(11,31,61,.16), 0 3px 10px rgba(11,31,61,.09); }
.showcase-image img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: center; }

.video-section { padding: 120px 0 136px; background: #f7f9fd; border-top: 1px solid #e5eaf2; }
.video-shell { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }
.video-heading { margin-bottom: 42px; text-align: center; }
.video-heading h2 { margin: 0; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; letter-spacing: -.05em; }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.video-frame { min-width: 0; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(13,37,73,.14); border-radius: 16px; background: #0a0e17; box-shadow: 0 24px 60px rgba(11,31,61,.14), 0 3px 10px rgba(11,31,61,.08); }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }

.site-footer { min-height: 300px; padding: 72px 24px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 44px; text-align: center; color: #718096; background: #fff; font-size: 12px; }
.footer-download { display: flex; flex-direction: column; align-items: center; }
.footer-cta { min-height: 60px; padding: 0 28px; border-radius: 14px; font-size: 16px; }
.footer-meta { width: min(1220px, 100%); padding-top: 28px; display: flex; justify-content: center; align-items: center; gap: 16px; border-top: 1px solid #dfe6f0; }
.footer-meta a { color: #4e5868; text-decoration: underline; text-underline-offset: 3px; }
.footer-meta a:hover { color: var(--blue); }

.page-hero { position: relative; overflow: hidden; padding: 116px 24px 88px; text-align: center; background: linear-gradient(180deg, #fff 0%, #f5f8ff 100%); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(8,74,178,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(8,74,178,.04) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(to bottom, transparent, #000 48%, transparent); }
.page-hero > * { position: relative; z-index: 1; }
.page-kicker { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.page-hero h1 { margin: 16px auto 22px; font-size: clamp(52px, 7vw, 84px); line-height: 1; letter-spacing: -.06em; }
.page-hero p { max-width: 680px; margin: 0 auto; color: var(--muted); font-size: 19px; line-height: 1.65; }
.changelog-list { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 136px; }
.release-card { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 50px; padding: 46px 0; border-bottom: 1px solid #dfe6f0; }
.release-card:first-child { border-top: 1px solid #dfe6f0; }
.release-version { color: var(--blue); font: 700 13px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.release-summary h2 { margin: -7px 0 14px; font-size: 34px; letter-spacing: -.04em; }
.release-summary h2 a:hover { color: var(--blue); }
.release-summary p { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.7; }
.release-link { display: inline-flex; gap: 8px; margin-top: 22px; color: var(--blue); font-size: 13px; font-weight: 700; }
.release-link:hover { color: var(--blue-dark); }
.release-page { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 136px; }
.back-link { display: inline-flex; gap: 8px; margin-bottom: 66px; color: #667085; font-size: 13px; font-weight: 600; }
.back-link:hover { color: var(--blue); }
.release-header { padding-bottom: 42px; border-bottom: 1px solid #dfe6f0; }
.release-header h1 { margin: 16px 0 18px; font-size: clamp(46px, 7vw, 72px); line-height: 1; letter-spacing: -.055em; }
.release-header p { max-width: 680px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.release-body { padding-top: 38px; color: #354052; font-size: 17px; line-height: 1.75; }
.release-body h2, .release-body h3 { color: var(--ink); letter-spacing: -.035em; }
.release-body h2 { margin: 38px 0 16px; font-size: 30px; }
.release-body h3 { margin: 30px 0 12px; font-size: 22px; }
.release-body ul { padding-left: 1.3em; }
.release-body li { margin: 8px 0; }
.release-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-hero { padding-bottom: 72px; }
.legal-page { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 64px 0 120px; }
.legal-card { color: #354052; font-size: 17px; line-height: 1.75; }
.legal-card ul { display: grid; gap: 20px; margin: 0; padding-left: 1.25em; }
.legal-card .release-link { margin-top: 42px; }
.error-page { min-height: 560px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.error-page .button { margin-top: 30px; }

@media (max-width: 1000px) {
  .site-header-inner { grid-template-columns: 1fr auto auto; gap: 22px; }
  .hero { min-height: 800px; }
  .showcase-row, .showcase-row:nth-child(even) { grid-template-columns: 1fr; gap: 38px; padding: 72px 0; }
  .showcase-row:nth-child(even) .showcase-copy, .showcase-row:nth-child(even) .showcase-image { order: initial; }
  .showcase-copy { max-width: 620px; }
  .video-grid { grid-template-columns: 1fr; width: min(760px, 100%); margin: 0 auto; gap: 28px; }
}

@media (max-width: 720px) {
  .site-header { min-height: 66px; }
  .site-header-inner { width: calc(100% - 36px); min-height: 66px; grid-template-columns: 1fr auto auto; gap: 10px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-icon { width: 30px; height: 30px; }
  .site-nav-link { padding: 23px 3px 21px; font-size: 12px; }
  .site-nav-link::after { right: 3px; bottom: 14px; left: 3px; }
  .language-picker { height: 36px; padding: 0 6px; }
  .language-picker > span:not(.sr-only) { display: none; }
  .language-picker select { width: 105px; max-width: 105px; font-size: 12px; }
  .hero { min-height: 680px; padding: 72px 20px 0; }
  .hero h1 { font-size: clamp(46px, 14vw, 66px); }
  .hero-copy > p { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; max-width: 360px; margin-left: auto; margin-right: auto; }
  .hero-product { width: 112%; margin-left: -6%; margin-top: 46px; }
  .showcase-section { padding: 28px 0 94px; }
  .showcase-shell { width: calc(100% - 32px); }
  .showcase-row, .showcase-row:nth-child(even) { gap: 28px; padding: 52px 0; }
  .showcase-copy h2 { font-size: 30px; }
  .showcase-image img { aspect-ratio: 1.2; }
  .video-section { padding: 82px 0 94px; }
  .video-shell { width: calc(100% - 32px); }
  .video-heading { margin-bottom: 30px; }
  .video-grid { gap: 20px; }
  .video-frame { border-radius: 12px; }
  .site-footer { padding: 64px 18px 26px; }
  .footer-download, .footer-cta { width: 100%; }
  .footer-cta { max-width: 380px; padding: 0 18px; font-size: 14px; }
  .page-hero { padding: 84px 20px 66px; }
  .page-hero p { font-size: 16px; }
  .changelog-list { width: calc(100% - 32px); padding: 52px 0 94px; }
  .release-card { grid-template-columns: 1fr; gap: 22px; padding: 38px 0; }
  .release-summary h2 { margin-top: 0; font-size: 30px; }
  .release-page { width: calc(100% - 36px); padding: 46px 0 94px; }
  .back-link { margin-bottom: 46px; }
  .legal-page { width: calc(100% - 36px); padding: 46px 0 94px; }
}

@media (max-width: 440px) {
  .brand > span:last-child { display: none; }
}

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