:root {
  --ink: #123d3a;
  --muted: #60736f;
  --line: #d7e5e1;
  --teal: #087b72;
  --teal-dark: #075f59;
  --warm: #fff8eb;
  --windows: #0078d4;
  --windows-deep: #075a9c;
  --windows-soft: #eaf6ff;
  --mac: #11171d;
  --mac-cyan: #61d6df;
  --mac-orange: #ff922d;
  --mac-soft: #f1fafb;
  --shadow: 0 24px 60px rgba(17, 61, 57, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #f4f8f7;
  font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; color: #fff; background: #111; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid rgba(7, 95, 89, .14); background: rgba(255, 255, 255, .94); }
.header-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand > img { width: 88px; height: 48px; object-fit: contain; object-position: left center; }
.brand span { display: grid; line-height: 1.25; }
.brand strong { font-size: 20px; }
.brand small { color: var(--muted); }
nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
nav a { padding: 9px 13px; border-radius: 999px; text-decoration: none; font-weight: 600; }
nav a:hover, nav a:focus-visible { color: var(--teal-dark); background: #e9f6f3; }

.hero { position: relative; overflow: hidden; padding: clamp(66px, 9vw, 112px) 0 clamp(92px, 12vw, 150px); color: #fff; background: radial-gradient(circle at 82% 25%, rgba(36, 180, 164, .34), transparent 30%), linear-gradient(135deg, #073b39 0%, #076d65 62%, #0b8175 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.hero::before { width: 460px; height: 460px; right: -150px; top: -230px; }
.hero::after { width: 260px; height: 260px; right: 16%; bottom: -180px; }
.hero-inner { position: relative; z-index: 1; text-align: center; }
.eyebrow { margin: 0 0 16px; font-weight: 700; letter-spacing: .04em; }
.eyebrow span { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: #f4c368; box-shadow: 0 0 0 6px rgba(244, 195, 104, .15); }
.hero h1 { display: grid; justify-items: center; gap: clamp(10px, 1.2vw, 18px); margin: 0; font-size: clamp(42px, 7vw, 80px); line-height: 1.16; letter-spacing: -.035em; }
.hero h1 span, .hero h1 em { display: block; }
.hero h1 em { color: #c9fff6; font-style: normal; }
.hero-lead { max-width: 820px; margin: 24px auto 0; color: rgba(255,255,255,.86); font-size: clamp(18px, 2vw, 22px); }
.choice-hints { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.choice-hints span { padding: 10px 16px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.1); backdrop-filter: blur(8px); }

.program-section { position: relative; z-index: 2; margin-top: -72px; padding-bottom: 82px; }
.section-heading { max-width: 800px; margin: 0 auto 34px; padding: 28px 34px; text-align: center; border: 1px solid rgba(10, 100, 92, .12); border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(17,61,57,.1); }
.kicker { margin: 0 0 6px; color: #9c6508; font-weight: 800; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); line-height: 1.2; }
.section-heading > p:last-child { margin: 10px 0 0; color: var(--muted); }

.program-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; align-items: stretch; }
.program-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 28px; background: #fff; box-shadow: var(--shadow); }
.program-card::before { content: ""; position: absolute; inset: 0 0 auto; z-index: 3; height: 5px; }
.windows-card { border-color: #b8dcf5; box-shadow: 0 24px 60px rgba(0, 120, 212, .14); }
.windows-card::before { background: linear-gradient(90deg, #0067b8, #28a8ea); }
.mac-card { border-color: rgba(97, 214, 223, .55); box-shadow: 0 24px 60px rgba(7, 16, 21, .2); }
.mac-card::before { background: linear-gradient(90deg, var(--mac-cyan), #8be7ec 46%, var(--mac-orange)); }
.program-visual { position: relative; aspect-ratio: 16 / 7.5; overflow: hidden; background: #dce9e6; }
.program-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.windows-card .program-visual { background: #071923; }
.windows-card .program-visual > img { object-fit: contain; object-position: center; }
.program-card:hover .program-visual > img { transform: scale(1.02); }
.platform-badge { position: absolute; left: 18px; bottom: 16px; display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 7px 14px; color: #fff; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.platform-badge.windows { background: rgba(0, 103, 184, .92); }
.platform-badge.mac { background: rgba(8, 11, 15, .92); }
.platform-badge.mac::after { content: ""; position: absolute; inset: auto 12px -1px; height: 2px; background: linear-gradient(90deg, var(--mac-cyan), var(--mac-orange)); }
.platform-badge.mac img { width: 25px; height: 25px; }
.platform-badge.windows i { display: grid; grid-template-columns: repeat(2, 8px); gap: 2px; }
.platform-badge.windows b { width: 8px; height: 8px; background: #fff; }
.program-content { display: flex; flex: 1; flex-direction: column; padding: clamp(24px, 3vw, 34px); }
.windows-card .program-content { background: linear-gradient(145deg, #fff 0%, var(--windows-soft) 100%); }
.mac-card .program-content { color: #f3f7f8; background: radial-gradient(circle at 88% 4%, rgba(97, 214, 223, .13), transparent 13rem), radial-gradient(circle at 12% 100%, rgba(255, 146, 45, .09), transparent 15rem), linear-gradient(145deg, #11171d 0%, #182129 100%); }
.program-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.program-label { margin: 0 0 4px; color: var(--muted); font-weight: 700; }
.windows-card .program-label { color: var(--windows-deep); }
.mac-card .program-label { color: var(--mac-cyan); }
.program-title-row h3 { margin: 0; font-size: clamp(25px, 3vw, 34px); line-height: 1.15; }
.program-title-row h3 small { display: block; margin-top: 5px; color: var(--teal); font-size: .58em; font-weight: 700; }
.windows-card .program-title-row h3 small { color: var(--windows); }
.mac-card .program-title-row h3 small { color: #9eeaf0; }
.version-pill { flex: 0 0 auto; padding: 7px 11px; color: var(--teal-dark); border: 1px solid #b8ded8; border-radius: 999px; background: #ebf8f5; font-weight: 800; white-space: nowrap; }
.windows-card .version-pill { color: var(--windows-deep); border-color: #a9d5f4; background: #e3f3ff; }
.mac-card .version-pill { color: #061014; border-color: rgba(255,255,255,.22); background: linear-gradient(100deg, #9eeaf0, #ffb76f); }
.program-summary { min-height: 80px; margin: 20px 0; color: var(--muted); }
.mac-card .program-summary, .mac-card .spec-list dt { color: #aebbc4; }
.spec-list { margin: 0 0 24px; border-top: 1px solid var(--line); }
.spec-list div { display: grid; grid-template-columns: 135px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mac-card .spec-list { border-top-color: rgba(255,255,255,.11); }
.mac-card .spec-list div { border-bottom-color: rgba(255,255,255,.11); }
.spec-list dt { color: var(--muted); font-weight: 600; }
.spec-list dd { margin: 0; font-weight: 700; }
.card-actions { display: grid; gap: 10px; margin-top: auto; }
.button { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 18px; border-radius: 14px; text-align: center; text-decoration: none; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button.primary { color: #fff; box-shadow: 0 12px 26px rgba(13, 101, 95, .2); }
.windows-button { background: linear-gradient(135deg, var(--windows-deep), var(--windows)); box-shadow: 0 12px 28px rgba(0, 120, 212, .27) !important; }
.mac-button { color: #071013 !important; background: linear-gradient(100deg, var(--mac-cyan) 0%, #9eeaf0 48%, var(--mac-orange) 100%); box-shadow: 0 12px 28px rgba(47, 181, 193, .2) !important; }
.button.secondary { color: var(--teal-dark); border: 1px solid #b9d8d3; background: #fff; }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--teal); background: #f1fbf9; }
.windows-card .button.secondary { color: var(--windows-deep); border-color: #a9d5f4; background: rgba(255,255,255,.86); }
.windows-card .button.secondary:hover, .windows-card .button.secondary:focus-visible { border-color: var(--windows); background: #fff; }
.mac-card .button.secondary { color: #f3f7f8; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.045); }
.mac-card .button.secondary:hover, .mac-card .button.secondary:focus-visible { border-color: var(--mac-cyan); background: rgba(97,214,223,.09); }

.help-box { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; margin-top: 28px; padding: 22px 26px; border: 1px solid #ead7ad; border-radius: 20px; background: var(--warm); }
.help-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #fff; border-radius: 50%; background: #ae7517; font-size: 24px; font-weight: 800; }
.help-box strong { color: #754a07; font-size: 19px; }
.help-box p { margin: 2px 0 0; color: #6b5b3f; }

footer { color: #dbeeea; background: #073d39; }
.footer-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner a { color: #fff; font-weight: 700; }

@media (max-width: 850px) {
  .header-inner { padding: 16px 0; align-items: flex-start; }
  nav { max-width: 280px; }
  .program-grid { grid-template-columns: 1fr; }
  .program-summary { min-height: auto; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .header-inner { display: grid; }
  .brand > img { width: 72px; }
  nav { max-width: none; justify-content: flex-start; }
  nav a { padding: 7px 10px; }
  .hero { padding-top: 54px; }
  .program-section { margin-top: -52px; }
  .section-heading { padding: 22px 18px; }
  .program-card { border-radius: 22px; }
  .program-title-row { display: grid; }
  .version-pill { justify-self: start; }
  .spec-list div { grid-template-columns: 1fr; gap: 2px; }
  .help-box { grid-template-columns: 1fr; }
  .footer-inner { padding: 22px 0; display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
