:root {
  color-scheme: dark;
  --background: #050607;
  --ink: #f5f5f7;
  --muted: #a3a5a7;
  --gold: #edcf8d;
  --surface: #151718;
  --line: #ffffff19;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 6px;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

p {
  letter-spacing: -0.015em;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 12px;
  left: 12px;
  padding: 14px 20px;
  border-radius: 6px;
  background: var(--gold);
  color: var(--background);
  transform: translateY(calc(-100% - 24px));
}

.skip-link:focus {
  transform: translateY(0);
}

.wrap {
  width: min(1080px, calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.7px;
}

.brand img {
  width: 29px;
  height: 29px;
  border-radius: 8px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 27px;
  font-size: 12px;
  letter-spacing: 0;
}

.site-header nav > a,
.site-footer nav > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.site-header nav > a:hover,
.site-footer nav > a:hover {
  color: var(--gold);
}

.site-header nav > a[aria-current="page"],
.site-footer nav > a[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 25px;
  border: 0;
  border-radius: 30px;
  background: var(--gold);
  color: #161611;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.1px;
  transition: background 180ms ease, transform 180ms ease;
}

.button:hover {
  background: #f8dc9c;
  transform: translateY(-2px);
}

.eyebrow {
  font-size: 11px;
  line-height: 1.7;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font-size: 14px;
  letter-spacing: -0.15px;
}

.text-link:hover {
  color: #f8dc9c;
}

.text-link:disabled {
  opacity: 0.65;
  cursor: wait;
}

.hero {
  padding-top: 58px;
  text-align: center;
}

.hero-heading {
  animation: enter 700ms ease-out both;
}

.hero .eyebrow {
  color: #a7aaae;
}

h1 {
  margin: 19px 0 20px;
  font-size: clamp(54px, 6vw, 76px);
  line-height: 1.01;
  letter-spacing: -4.2px;
  font-weight: 650;
}

h1 span {
  color: #edd096;
}

.hero-copy {
  max-width: 535px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
}

.product-stage {
  position: relative;
  height: 650px;
  max-width: 1280px;
  margin: 30px auto 0;
  overflow: hidden;
}

.landscape {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--background), transparent 30%, var(--background)),
    linear-gradient(90deg, var(--background), transparent 30%, transparent 70%, var(--background)),
    url("/assets/palawan.jpg") center 60% / cover;
  opacity: 0.75;
}

.app-preview {
  --device-radius: clamp(28px, 3.6vw, 44px);
  padding: 7px;
  border: 1px solid #93969a;
  border-radius: var(--device-radius);
  background: linear-gradient(115deg, #73767a, #1c1e21 13%, #505357 48%, #1b1d20 85%, #7b7e82);
  box-shadow: inset 0 0 0 2px #111214, 0 0 0 1px #000, 0 28px 60px #0009;
}

.app-preview::before,
.app-preview::after {
  content: "";
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #777b80, #25272b);
}

.app-preview::before {
  top: 21%;
  left: -3px;
  height: 8%;
  box-shadow: 0 48px 0 #4f5358;
}

.app-preview::after {
  top: 30%;
  right: -3px;
  height: 12%;
}

.iphone-screen {
  position: relative;
  display: grid;
  grid-template-rows: 54fr 764fr 34fr;
  width: 100%;
  aspect-ratio: 393 / 852;
  overflow: hidden;
  border-radius: calc(var(--device-radius) - 7px);
  background: #f7f4ed;
  color: #161719;
  container-type: inline-size;
  box-shadow: 0 0 0 1px #050607;
}

.iphone-screen > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.iphone-statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 8cqw;
  font-size: 4cqw;
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1;
}

.iphone-statusbar::after {
  content: "";
  position: absolute;
  top: 2.4cqw;
  left: 50%;
  width: 31cqw;
  height: 8cqw;
  transform: translateX(-50%);
  border-radius: 99px;
  background: radial-gradient(circle at 86% 50%, #111e33 0 1.1cqw, #08090b 1.4cqw);
}

.iphone-status-icons {
  width: 17cqw;
  height: auto;
}

.iphone-home {
  position: relative;
  background: #fff;
}

.iphone-home::after {
  content: "";
  position: absolute;
  bottom: 2.5cqw;
  left: 32.5%;
  width: 35%;
  height: 1cqw;
  border-radius: 99px;
  background: #161719;
}

.hero-preview {
  position: absolute;
  bottom: 42px;
  left: 50%;
  width: 268px;
  transform: translateX(-50%);
}

.preview-left,
.preview-right {
  bottom: 74px;
  width: 238px;
  filter: brightness(0.92);
}

.preview-left {
  transform: translateX(-153%) rotate(-7deg);
}

.preview-right {
  transform: translateX(53%) rotate(7deg);
}

.product-stage figcaption {
  position: absolute;
  bottom: 0;
  width: 100%;
  color: #a0a3a5;
  font-size: 11px;
  letter-spacing: 0.3px;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
  padding: 100px 0 80px;
}

.section-heading {
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -2px;
  font-weight: 650;
}

.section-intro p {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.section-intro strong {
  color: #eee;
  font-weight: 500;
}

.feature-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feature-panel {
  position: relative;
  isolation: isolate;
  height: 560px;
  padding: 36px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--surface);
}

.feature-panel .eyebrow {
  color: #acafb0;
  font-size: 10px;
}

.feature-panel h3 {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.panel-copy {
  position: absolute;
  z-index: 2;
  bottom: 36px;
  left: 36px;
  width: 185px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.panel-preview {
  position: absolute;
  z-index: 1;
  top: 146px;
  right: 28px;
  width: 184px;
  --device-radius: 30px;
  transform: rotate(-4deg);
}

.memory-panel {
  background: #131b19;
}

.memory-panel h3 {
  color: #edd096;
}

.memory-panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 130px 0 0;
  background:
    linear-gradient(90deg, #131b19 10%, transparent),
    url("/assets/kyoto.jpg") center / cover;
  opacity: 0.4;
}

.memory-panel .panel-preview {
  transform: rotate(4deg);
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 55px;
  padding-top: 62px;
}

.benefits article {
  display: grid;
  grid-template-rows: 46px auto 1fr;
}

.benefit-icon {
  grid-row: 1;
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: 25px;
}

.benefits h3 {
  grid-row: 2;
  margin-bottom: 10px;
  font-size: 17px;
  letter-spacing: -0.4px;
}

.benefits p {
  grid-row: 3;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.site-footer {
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 27px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0;
}

.site-footer .brand {
  color: var(--ink);
}

.site-footer nav {
  gap: 20px;
  font-size: 11px;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .section-intro {
    gap: 40px;
  }

  .section-heading {
    font-size: 42px;
  }

  .feature-panels {
    grid-template-columns: 1fr;
  }

  .benefits {
    gap: 30px;
  }

  .site-footer {
    flex-wrap: wrap;
  }

  .site-footer > p {
    width: 100%;
    order: 3;
  }
}

@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .site-header {
    min-height: 62px;
    gap: 12px;
  }

  .brand {
    font-size: 17px;
  }

  .site-header nav {
    gap: 14px;
    font-size: 11px;
  }

  .hero {
    padding-top: 44px;
  }

  h1 {
    margin-top: 17px;
    font-size: clamp(36px, 11.8vw, 46px);
    line-height: 1.05;
    letter-spacing: -2.3px;
  }

  .eyebrow {
    font-size: 9px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .hero-copy br {
    display: none;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .button {
    padding: 13px 19px;
    font-size: 12px;
  }

  .text-link {
    font-size: 12px;
  }

  .product-stage {
    height: 490px;
    margin-top: 25px;
  }

  .hero-preview {
    bottom: 36px;
    width: 206px;
  }

  .preview-left,
  .preview-right {
    bottom: 60px;
    width: 174px;
  }

  .preview-left {
    transform: translateX(-145%) rotate(-7deg);
  }

  .preview-right {
    transform: translateX(45%) rotate(7deg);
  }

  .landscape {
    opacity: 0.65;
  }

  .product-stage figcaption {
    font-size: 10px;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 64px 0 32px;
  }

  .section-heading {
    font-size: clamp(30px, 9.2vw, 36px);
    letter-spacing: -1.5px;
  }

  .section-intro p {
    font-size: 16px;
    line-height: 1.6;
  }

  .feature-panels {
    gap: 18px;
  }

  .feature-panel {
    display: flex;
    min-height: 0;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .feature-panel h3 {
    font-size: clamp(25px, 7.7vw, 30px);
  }

  .panel-copy {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    max-width: 280px;
    margin-top: 20px;
    font-size: 13px;
  }

  .panel-preview,
  .memory-panel .panel-preview {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 180px;
    margin: 28px auto 0;
  }

  .benefits {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 38px;
  }

  .benefits article {
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 16px;
  }

  .benefit-icon {
    grid-row: 1 / span 2;
  }

  .benefits h3 {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 6px;
  }

  .benefits p {
    grid-column: 2;
    grid-row: 2;
  }

  .site-footer {
    margin-top: 56px;
    row-gap: 10px;
    font-size: 10px;
  }

  .site-footer nav {
    gap: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-heading {
    animation: none;
  }

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
