:root {
  --bg: #ffffff;
  --bg-warm: #fffdf8;
  --bg-cool: #eaf2ef;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #111111;
  --text-muted: #5f625f;
  --text-soft: #7b746b;
  --border: rgba(17, 17, 17, 0.1);
  --accent: #2f746a;
  --accent-pressed: #245d55;
  --accent-soft: #e7f0ec;
  --danger: #b73535;
  --max-width: 1120px;
  --radius-card: 8px;
  --radius-control: 8px;
  --shadow-soft: 0 20px 60px rgba(65, 54, 40, 0.1);
  --shadow-icon: 0 22px 60px rgba(67, 55, 38, 0.18);
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "SF Pro Text", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.012) 0 1px, transparent 1px 88px);
  mask-image: linear-gradient(180deg, #000 0%, transparent 58%);
}

.page {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 88px;
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 42px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-link img {
  width: 150px;
  height: auto;
  display: block;
}

.top-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.top-lang a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 7px 9px;
  border-radius: var(--radius-control);
}

.top-lang a[aria-current="page"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: inset 0 0 0 1px var(--border);
}

.top-lang a:focus-visible,
footer a:focus-visible,
.form input[type="email"]:focus-visible,
.form button:focus-visible,
.sticky-cta button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero {
  position: relative;
  max-width: 760px;
  min-height: 560px;
  padding: 18px 0 24px;
  perspective: 900px;
}

.hero-icon-wrap {
  position: absolute;
  left: min(740px, calc(100vw - 360px));
  top: 34px;
  width: 310px;
  height: 310px;
  z-index: 0;
  border-radius: 29%;
  filter: drop-shadow(var(--shadow-icon));
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.38s ease;
  will-change: transform, filter;
}

.hero > :not(.hero-icon-wrap) {
  position: relative;
  z-index: 1;
}

@media (hover: hover) and (pointer: fine) {
  .hero-icon-wrap:hover {
    filter:
      drop-shadow(0 36px 58px rgba(67, 55, 38, 0.22))
      drop-shadow(-18px 22px 30px rgba(47, 116, 106, 0.14));
    transform: rotateX(-10deg) rotateY(-5deg) translateZ(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-icon-wrap {
    transition: none;
  }

  .hero-icon-wrap:hover {
    filter: drop-shadow(var(--shadow-icon));
    transform: translateZ(0);
  }

  .screen,
  .app-screen img,
  .widget-screen img {
    transition: none;
  }

  .screen:hover {
    transform: translateZ(0);
  }
}

.hero-icon-wrap::before,
.hero-icon-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.hero-icon-wrap::before {
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(72, 64, 52, 0.12),
    0 0 0 1px rgba(70, 58, 42, 0.06);
}

.hero-icon-wrap::after {
  inset: 1px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62) 0%, rgba(255, 255, 255, 0.18) 24%, rgba(255, 255, 255, 0) 45%),
    linear-gradient(320deg, rgba(255, 255, 255, 0) 54%, rgba(255, 255, 255, 0.28) 100%);
  mix-blend-mode: screen;
}

.hero-icon {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 690px;
  font-size: 56px;
  line-height: 1.08;
  font-weight: 750;
  margin: 0 0 14px;
  letter-spacing: 0;
}

:lang(ja) .hero h1 {
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: anywhere;
}

.headline-line {
  display: inline;
}

.hero .subhead {
  font-size: 24px;
  line-height: 1.3;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0 0 18px;
}

.hero .lede {
  max-width: 580px;
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 26px;
  line-height: 1.75;
}

.form {
  display: flex;
  align-items: stretch;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 570px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(17, 17, 17, 0.1);
  border-radius: var(--radius-card);
  padding: 8px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 48px;
  border: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  line-height: 20px;
  padding: 14px 12px;
  border-radius: var(--radius-control);
}

.form input[type="email"]::placeholder { color: var(--text-soft); }

.form .honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form button {
  min-height: 48px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-control);
  padding: 14px 20px;
  font: inherit;
  line-height: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.form button:hover {
  background: var(--accent-pressed);
  transform: translateY(-1px);
}

.form button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.form-message {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-muted);
  min-height: 1.5em;
}

.form-message.error { color: var(--danger); }
.form-message.success { color: var(--text); font-weight: 600; }

.consent {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
}

.launch-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.launch-note span {
  padding: 8px 11px;
  border: 1px solid rgba(47, 116, 106, 0.18);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.56);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.section-heading {
  margin-top: 24px;
  max-width: 720px;
}

.section-heading.compact { margin-top: 76px; }

.section-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: 32px;
  line-height: 1.18;
  font-weight: 750;
  letter-spacing: 0;
}

.screens {
  margin-top: 28px;
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
  align-items: start;
  perspective: 900px;
  --widget-row-height: 260px;
}

.screen {
  margin: 0;
  text-align: center;
  transform: translateZ(0);
  transform-style: preserve-3d;
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.screen img {
  width: 100%;
  height: auto;
  display: block;
}

.screen picture {
  display: block;
}

.app-screen picture {
  position: relative;
  border-radius: 22px;
}

.app-screen picture::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -1px 0 rgba(72, 64, 52, 0.1),
    0 0 0 1px rgba(70, 58, 42, 0.06);
}

.app-screen img {
  border-radius: 22px;
  box-shadow: 0 28px 72px rgba(45, 38, 28, 0.16);
  transition: box-shadow 0.32s ease;
}

.widget-screen {
  display: grid;
  align-content: center;
}

.widget-screen picture {
  display: grid;
  align-items: center;
}

.widget-screen img {
  border-radius: 0;
  filter: drop-shadow(0 0 0.7px rgba(70, 58, 42, 0.34));
  transition: filter 0.32s ease;
}

@media (hover: hover) and (pointer: fine) {
  .screen:hover {
    transform: translateZ(10px);
  }

  .app-screen:hover img {
    box-shadow: 0 34px 82px rgba(45, 38, 28, 0.2);
  }

  .widget-screen:hover img {
    filter:
      drop-shadow(0 0 0.8px rgba(70, 58, 42, 0.38))
      drop-shadow(0 18px 34px rgba(45, 38, 28, 0.12));
  }
}

.widget-medium picture,
.widget-small picture {
  min-height: var(--widget-row-height);
}

.widget-medium img,
.widget-small img {
  height: auto;
  max-width: 100%;
  margin: 0 auto;
}

.widget-medium img {
  width: min(100%, calc(var(--widget-row-height) * 600 / 295));
  aspect-ratio: 600 / 295;
}

.widget-small img {
  width: min(100%, var(--widget-row-height));
  aspect-ratio: 1;
}

.widget-lock picture {
  min-height: calc(var(--widget-row-height) * 0.78);
}

.widget-lock img {
  width: min(100%, calc(var(--widget-row-height) * 1.55));
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 600 / 289;
}

.widget-medium img {
  align-self: center;
}

.screen .caption {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-muted);
}

.screen .caption strong {
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  font-weight: 700;
}

.benefits {
  margin-top: 22px;
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.benefit {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 16px 42px rgba(65, 54, 40, 0.06);
  backdrop-filter: blur(16px);
}

.benefit h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
}

.benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}

.siri-examples {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.siri-examples li {
  padding: 9px 10px;
  border-radius: var(--radius-control);
  background: rgba(47, 116, 106, 0.07);
  color: var(--accent);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

footer {
  margin-top: 84px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

footer a {
  color: var(--text-muted);
  text-decoration: none;
}

footer a:hover { color: var(--text); }

.lang-toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lang-toggle a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

.lang-toggle .divider { color: var(--border); }

.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  display: none;
  z-index: 10;
  box-shadow: 0 -12px 34px rgba(65, 54, 40, 0.12);
  backdrop-filter: blur(18px);
}

.sticky-cta button {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: var(--radius-control);
  padding: 14px;
  font: inherit;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (min-width: 760px) {
  .screens {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --widget-row-height: min(260px, calc(((100vw - 62px) / 2) * 295 / 600));
  }

  .screen:nth-child(2),
  .screen:nth-child(3),
  .screen:nth-child(4) {
    margin-top: 0;
  }

  .app-screen {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .widget-medium {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
  }

  .widget-small {
    grid-column: 2;
    grid-row: 2;
  }

  .widget-lock {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
  }

  .benefits {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1160px) {
  .screens {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 34px 26px;
    align-items: center;
    --widget-row-height: 222px;
  }

  .screen:nth-child(2),
  .screen:nth-child(3),
  .screen:nth-child(4) {
    margin-top: 0;
  }

  .app-screen {
    grid-column: 1 / span 4;
    grid-row: 1 / span 2;
  }

  .widget-medium {
    grid-column: 5 / span 5;
    grid-row: 1;
    align-self: center;
  }

  .widget-small {
    grid-column: 10 / span 3;
    grid-row: 1;
  }

  .widget-lock {
    grid-column: 6 / span 6;
    grid-row: 2;
    align-self: center;
  }

  .benefits {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 900px) {
  .hero {
    max-width: none;
    min-height: 0;
    padding-top: 8px;
  }

  .hero-icon-wrap {
    position: absolute;
    left: auto;
    right: 0;
    top: 16px;
    width: 112px;
    height: 112px;
    margin: 0;
    z-index: 0;
  }

  .hero h1 {
    font-size: 42px;
    line-height: 1.12;
  }

  .hero .eyebrow,
  .hero h1,
  .hero .subhead {
    max-width: calc(100% - 132px);
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 32px, var(--max-width));
    padding-top: 16px;
  }

  .screens {
    --widget-row-height: calc((100vw - 32px) * 295 / 600);
  }

  .brand {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 34px;
  }

  .brand-link img { width: 132px; }

  .top-lang {
    flex: 0 0 auto;
    gap: 3px;
    font-size: 12px;
    white-space: nowrap;
  }

  .top-lang a {
    padding: 6px 7px;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero-icon-wrap {
    top: 52px;
    width: 92px;
    height: 92px;
  }

  .hero .eyebrow,
  .hero h1,
  .hero .subhead {
    max-width: calc(100% - 108px);
  }

  .headline-line {
    display: block;
  }

  .hero .subhead {
    font-size: 20px;
  }

  .form {
    display: block;
  }

  .form input[type="email"],
  .form button {
    width: 100%;
  }

  .form button {
    margin-top: 4px;
  }

  .section-heading h2 {
    font-size: 26px;
  }

  .sticky-cta.visible { display: block; }
}
