:root {
  color-scheme: light;
  --ink: #161617;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --soft: #f5f5f7;
  --blue: #0066cc;
  --blue-hover: #0077ed;
  --success: #167744;
  --danger: #b42318;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: #fff; }
body { margin: 0; min-width: 320px; }
a { color: inherit; }
button, input, select { font: inherit; }

.site-header {
  height: 58px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  background: rgba(255, 255, 255, .92);
}
.nav {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.wordmark { font-size: 21px; font-weight: 760; letter-spacing: -.045em; text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 13px; }
.nav-links a { text-decoration: none; color: #333336; }
.nav-links a:hover { color: var(--blue); }

.announcement { padding: 13px 24px; text-align: center; font-size: 13px; background: var(--soft); color: #424245; }
.announcement a { color: var(--blue); text-decoration: none; }

.hero {
  overflow: hidden;
  padding: 86px 24px 78px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(117, 197, 255, .23), transparent 27%),
    radial-gradient(circle at 80% 70%, rgba(181, 148, 255, .19), transparent 30%),
    #fbfbfd;
}
.hero-kicker { margin: 0 0 10px; font-size: 19px; font-weight: 650; }
.hero h1 { max-width: 850px; margin: 0 auto; font-size: clamp(48px, 8vw, 88px); line-height: .95; letter-spacing: -.065em; }
.hero-copy { max-width: 660px; margin: 28px auto 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; }
.hero-link { display: inline-block; margin-top: 25px; color: var(--blue); font-size: 17px; text-decoration: none; }
.hero-link:hover { text-decoration: underline; }

.products { max-width: var(--max); margin: 0 auto; padding: 92px 28px 110px; }
.section-heading { margin: 0 0 40px; font-size: clamp(34px, 5vw, 54px); letter-spacing: -.05em; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.product-card { min-height: 540px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: var(--soft); }
.product-copy { padding: 42px 42px 12px; text-align: center; }
.product-eyebrow { margin: 0 0 9px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.product-card h2 { margin: 0; font-size: clamp(31px, 4vw, 46px); letter-spacing: -.05em; }
.product-tagline { min-height: 52px; margin: 13px auto 10px; color: var(--muted); font-size: 18px; line-height: 1.42; }
.product-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 18px; }
.price { font-size: 15px; font-weight: 650; }
.stock { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock.in { color: var(--success); background: #eaf7ef; }
.stock.out { color: var(--danger); background: #fff0ee; }
.button { display: inline-block; border: 0; border-radius: 999px; padding: 10px 18px; text-decoration: none; font-size: 14px; cursor: pointer; background: var(--blue); color: #fff; }
.button:hover { background: var(--blue-hover); }
.button.secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.button.secondary:hover { background: #f3f8ff; }

.device-stage { flex: 1; min-height: 245px; position: relative; display: grid; place-items: end center; padding: 28px; }
.device { position: relative; filter: drop-shadow(0 28px 24px rgba(0, 0, 0, .18)); }
.device.phone { width: 150px; height: 280px; border: 9px solid #202126; border-radius: 34px; background: linear-gradient(145deg, #7bd1ff, #7464ef 54%, #f2a7d9); }
.device.phone::before { content: ""; position: absolute; width: 58px; height: 17px; border-radius: 0 0 12px 12px; background: #202126; top: -1px; left: 37px; }
.device.phone::after { content: "12:42"; color: white; position: absolute; top: 36px; width: 100%; text-align: center; font-size: 22px; font-weight: 650; }
.device.laptop { width: 340px; height: 210px; border: 9px solid #282930; border-bottom-width: 14px; border-radius: 15px 15px 6px 6px; background: linear-gradient(145deg, #1b1437, #765ee6 55%, #e5a6ff); }
.device.laptop::after { content: ""; position: absolute; height: 12px; left: -32px; right: -32px; bottom: -24px; border-radius: 3px 3px 13px 13px; background: linear-gradient(#d8d8dc, #8a8b91); }
.device.watch { width: 138px; height: 164px; border: 8px solid #2a292e; border-radius: 37px; background: radial-gradient(circle at 50% 45%, #ff9f89, #b51b3d 65%, #280c22); }
.device.watch::before, .device.watch::after { content: ""; position: absolute; left: 31px; width: 60px; height: 100px; background: #d9b89d; z-index: -1; }
.device.watch::before { top: -92px; border-radius: 22px 22px 4px 4px; }
.device.watch::after { bottom: -92px; border-radius: 4px 4px 22px 22px; }
.device.watch span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 34px; font-weight: 700; }
.device.glasses { width: 340px; height: 125px; }
.device.glasses::before, .device.glasses::after { content: ""; position: absolute; top: 20px; width: 138px; height: 90px; border: 9px solid #282c2c; background: linear-gradient(145deg, rgba(112, 255, 221, .7), rgba(69, 128, 143, .72)); }
.device.glasses::before { left: 10px; border-radius: 48% 42% 50% 45%; transform: rotate(3deg); }
.device.glasses::after { right: 10px; border-radius: 42% 48% 45% 50%; transform: rotate(-3deg); }
.glasses-bridge { position: absolute; width: 64px; height: 18px; border-top: 8px solid #282c2c; border-radius: 50%; left: 138px; top: 52px; z-index: 2; }
.sky { background: linear-gradient(160deg, #eef9ff, #dceeff); }
.violet { background: linear-gradient(160deg, #f4efff, #e7defd); }
.coral { background: linear-gradient(160deg, #fff2ee, #ffe1d9); }
.mint { background: linear-gradient(160deg, #ecfbf6, #d8f3ed); }

.product-page { background: var(--soft); padding: 54px 24px 90px; }
.product-shell { max-width: var(--max); margin: 0 auto; background: #fff; border-radius: 32px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; min-height: 670px; }
.product-visual { min-height: 570px; display: grid; place-items: center; padding: 60px 30px; }
.product-visual .phone { transform: scale(1.3); }
.product-visual .laptop { transform: scale(1.15); }
.product-visual .watch { transform: scale(1.35); }
.product-visual .glasses { transform: scale(1.15); }
.detail { display: flex; flex-direction: column; justify-content: center; padding: 70px 58px; }
.detail .product-eyebrow { color: var(--muted); }
.detail h1 { margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: 1; letter-spacing: -.06em; }
.detail-tagline { margin: 20px 0 0; font-size: 24px; font-weight: 650; letter-spacing: -.025em; }
.detail-description { margin: 20px 0; color: var(--muted); line-height: 1.6; }
.feature-list { padding: 20px 0; margin: 0; list-style: none; border-top: 1px solid var(--line); }
.feature-list li { padding: 8px 0 8px 27px; position: relative; }
.feature-list li::before { content: "+"; position: absolute; left: 2px; color: var(--blue); font-weight: 700; }
.purchase-row { margin-top: 22px; display: flex; align-items: center; flex-wrap: wrap; gap: 13px; }
.detail-price { font-size: 25px; font-weight: 720; margin-right: 6px; }
.unavailable { border-radius: 14px; padding: 15px 17px; background: #fff0ee; color: var(--danger); font-weight: 650; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--blue); text-decoration: none; }

.actions { max-width: 1050px; margin: 0 auto; padding: 70px 24px 100px; }
.actions-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.actions h1 { margin: 0; font-size: clamp(40px, 6vw, 64px); letter-spacing: -.055em; }
.actions-intro { max-width: 650px; color: var(--muted); font-size: 17px; line-height: 1.55; }
.notice { margin: 0 0 25px; padding: 13px 16px; border-radius: 12px; background: #eaf7ef; color: var(--success); font-weight: 650; }
.notice.error { background: #fff0ee; color: var(--danger); }
.action-list { display: grid; gap: 15px; }
.action-card { display: grid; grid-template-columns: minmax(210px, 1.2fr) minmax(0, 2fr); gap: 30px; align-items: center; border: 1px solid var(--line); border-radius: 20px; padding: 25px; }
.action-product h2 { margin: 0 0 8px; font-size: 23px; letter-spacing: -.025em; }
.action-product p { margin: 0; color: var(--muted); font-size: 14px; }
.action-form { display: grid; grid-template-columns: 1fr 1.25fr auto; align-items: end; gap: 12px; }
.field label { display: block; margin: 0 0 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.field input, .field select { width: 100%; height: 42px; border: 1px solid #a8a8ad; border-radius: 9px; padding: 0 11px; background: #fff; color: var(--ink); }
.action-form .button { height: 42px; }
.automation { margin-top: 42px; border-radius: 20px; padding: 26px; background: var(--soft); }
.automation h2 { margin: 0 0 10px; font-size: 22px; }
.automation p { color: var(--muted); line-height: 1.5; }
.automation code { display: block; overflow-wrap: anywhere; margin: 9px 0; border-radius: 8px; padding: 10px 12px; background: #fff; color: #353538; font-size: 13px; }
.reset-row { margin-top: 22px; display: flex; justify-content: flex-end; }
.footer { padding: 30px 24px; background: #1d1d1f; color: #c7c7cc; font-size: 12px; }
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; }
.footer a { color: #fff; }

@media (max-width: 780px) {
  .nav-links a:not(:last-child) { display: none; }
  .hero { padding-top: 66px; }
  .product-grid, .product-shell { grid-template-columns: 1fr; }
  .product-card { min-height: 500px; }
  .product-shell { border-radius: 22px; }
  .product-visual { min-height: 400px; }
  .detail { padding: 45px 28px 55px; }
  .action-card { grid-template-columns: 1fr; gap: 20px; }
  .action-form { grid-template-columns: 1fr 1fr; }
  .action-form .button { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .nav { padding: 0 18px; }
  .products { padding-left: 16px; padding-right: 16px; }
  .product-copy { padding-left: 24px; padding-right: 24px; }
  .device.laptop { transform: scale(.78); }
  .device.glasses { transform: scale(.8); }
  .product-visual .laptop, .product-visual .glasses { transform: scale(.82); }
  .actions-head, .footer-inner { align-items: flex-start; flex-direction: column; }
  .action-form { grid-template-columns: 1fr; }
  .action-form .button { grid-column: auto; }
}
