.home-hero { padding-top: clamp(60px, 7vw, 108px); padding-bottom: 72px; text-align: center; }
.home-hero h1 { max-width: 1200px; margin-inline: auto; font-size: clamp(46px, 4.4vw, 64px); line-height: 1.1; letter-spacing: -.035em; }
.home-hero h1 span { display: block; }
.home-hero h1 .hero-device { display: block; min-height: 1.1em; white-space: nowrap; color: var(--blue); transition: opacity .18s ease, transform .18s ease; }
.home-hero h1 .hero-device.is-changing { opacity: 0; transform: translateY(7px); }
.home-lead { margin-top: 29px; color: #566073; font-size: clamp(19px, 2vw, 25px); line-height: 1.35; }
.device-grid { margin-top: clamp(35px, 4vw, 62px); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; align-items: end; }
.device { min-width: 0; min-height: 277px; padding: 0 8px 17px; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; position: relative; border: 1px solid transparent; border-radius: 15px; background: transparent; color: var(--ink); cursor: pointer; font: inherit; touch-action: manipulation; transition: transform .2s ease; }
.device:hover, .device[aria-expanded="true"] { background: #f5f7fc; transform: translateY(-4px); }
.device:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.device-visual { display: flex; width: 100%; height: 205px; flex: none; align-items: end; justify-content: center; overflow: hidden; }
.device-visual img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.visual-macbook img { width: 135%; max-width: none; }
.device-name { margin-top: 4px; font-size: clamp(19px, 1.8vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.device-arrow { position: absolute; right: 14px; bottom: 18px; color: var(--blue); font-size: 20px; font-weight: 700; opacity: 0; transform: translate(-4px, 4px); transition: opacity .2s ease, transform .2s ease; }
.device:hover .device-arrow, .device:focus-visible .device-arrow, .device[aria-expanded="true"] .device-arrow { opacity: 1; transform: translate(0, 0); }
.selection { margin-bottom: 45px; padding: 24px 30px; display: flex; align-items: center; justify-content: space-between; gap: 25px; border: 1px solid var(--line); border-radius: 15px; }
.selection[hidden] { display: none; }
.selection-kicker { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.selection h2 { margin-top: 5px; font-size: 27px; }
.selection-text > p:last-child { max-width: 60ch; margin-top: 5px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.selection a { max-width: 260px; padding: 12px 16px; border-radius: 9px; background: var(--blue); color: white; font-size: 14px; font-weight: 700; line-height: 1.3; }
.selection a[hidden] { display: none; }
.selection a:hover { background: var(--blue-dark); }
.home-contact { margin-bottom: 22px; padding: 30px 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 15px; background: #eef3ff; }
.home-contact h2 { font-size: 26px; letter-spacing: -.025em; line-height: 1.2; }
.home-contact p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.home-contact a { min-height: 48px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--blue); color: #fff; font-weight: 750; }
.home-contact a:hover { background: var(--blue-dark); }
@media (max-width: 850px) {
  .home-hero { padding-top: 55px; }
  .device-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  .device:nth-child(4) { grid-column: 1 / 2; }
  .device { min-height: 260px; }
}
@media (max-width: 700px) {
  .home-hero { padding-top: 49px; padding-bottom: 45px; }
  .home-hero h1 { font-size: clamp(36px, 8.3vw, 52px); }
  .home-hero h1 span { display: block; }
  .home-lead { margin-top: 18px; font-size: 17px; }
  .device-grid { margin-top: 25px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .device { min-height: 228px; padding-bottom: 14px; }
  .device-visual { height: 178px; }
  .visual-macbook img { width: 130%; }
  .device-name { max-width: 100%; overflow-wrap: anywhere; font-size: 18px; white-space: normal; text-wrap: balance; }
  .device:nth-child(4) { grid-column: auto; }
  .device:last-child { grid-column: 1 / -1; width: calc((100% - 6px) / 2); justify-self: center; }
  .selection { flex-direction: column; align-items: stretch; padding: 20px; }
  .selection a { max-width: none; }
  .home-contact { padding: 23px; flex-direction: column; align-items: stretch; }
  .home-contact h2 { font-size: 22px; }
}
@media (min-width: 560px) and (max-width: 700px) {
  .visual-macbook img { width: 140%; }
}
@media (max-width: 430px) {
  .device { min-height: 190px; padding-bottom: 12px; }
  .device-visual { height: 142px; margin-top: 8px; }
  .visual-macbook img { width: 140%; }
}
@media (max-width: 370px) {
  .device-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .device, .device-arrow, .home-hero h1 .hero-device { transition: none; }
}
