:root {
  color-scheme: light;
  --ink: #171613;
  --ink-soft: #4f4c45;
  --muted: #7e7a72;
  --line: #deddd8;
  --line-dark: #38362f;
  --paper: #ffffff;
  --canvas: #f3f4f2;
  --gold: #d7ad49;
  --gold-deep: #9f7417;
  --gold-pale: #fff4cf;
  --red: #df4d45;
  --red-bg: #fff0ed;
  --green: #15956a;
  --green-bg: #e8f7f1;
  --header-height: 74px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

button,
a {
  font: inherit;
}

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

button {
  border: 0;
}

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

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 8px 12px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-160%);
}

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

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: rgba(23, 22, 19, 0.94);
  color: #fff;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.site-header.scrolled {
  border-color: var(--line-dark);
  background: #171613;
}

.nav-shell,
.section-shell,
.footer-shell,
.hero-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand img {
  width: 42px;
  height: 42px;
  border: 1px solid #514a3a;
  border-radius: 8px;
  object-fit: cover;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 17px;
}

.brand-copy small {
  margin-top: 4px;
  color: #c7b686;
  font-size: 11px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  position: relative;
  color: #d7d5cf;
  font-size: 14px;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a.current {
  color: #fff;
}

.site-nav a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 2px;
  background: var(--gold);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a.current::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid #8b7338;
  border-radius: 6px;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid #4a473f;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.hero {
  position: relative;
  min-height: min(780px, calc(100vh - 36px));
  overflow: hidden;
  padding-top: var(--header-height);
  background: #171613;
  color: #fff;
}

.hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--line-dark);
  content: "";
}

.hero-mark {
  position: absolute;
  top: 12%;
  right: -7%;
  width: min(48vw, 700px);
  opacity: 0.07;
  filter: grayscale(1);
  pointer-events: none;
}

.hero-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  grid-template-rows: 1fr auto;
  gap: 26px 80px;
  min-height: calc(min(780px, calc(100vh - 36px)) - var(--header-height));
  padding: 72px 0 32px;
}

.hero-copy {
  align-self: center;
  max-width: 680px;
  padding-bottom: 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.hero h1 {
  margin: 0;
  font-size: clamp(66px, 8vw, 116px);
  font-weight: 760;
  line-height: 0.96;
}

.hero-slogan {
  margin: 22px 0 0;
  color: #f0cf76;
  font-size: 30px;
  font-weight: 600;
}

.hero-intro {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c8c6bf;
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--gold);
  color: #18150e;
}

.button-primary:hover {
  background: #e4bd5a;
}

.button-quiet {
  border-color: #555148;
  color: #fff;
}

.button-quiet:hover {
  border-color: #8c877d;
}

.hero-product {
  position: relative;
  align-self: end;
  justify-self: end;
  width: 340px;
  height: 570px;
  overflow: hidden;
  border: 1px solid #5d584d;
  border-bottom: 0;
  border-radius: 28px 28px 0 0;
  background: #f7f5ed;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.device-top {
  position: absolute;
  top: 9px;
  left: 50%;
  z-index: 2;
  width: 86px;
  height: 5px;
  border-radius: 3px;
  background: rgba(23, 22, 19, 0.64);
  transform: translateX(-50%);
}

.hero-facts {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-dark);
}

.hero-facts div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
  padding: 22px 22px 0 0;
}

.hero-facts strong {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.hero-facts span {
  color: #97938a;
  font-size: 13px;
}

.market-band {
  padding: 86px 0 96px;
  background: var(--canvas);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.section-heading h2,
.product-content h2,
.security-heading h2,
.availability-layout h2 {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.15;
}

.section-heading > p,
.security-heading > p,
.availability-layout > div > p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
}

.ticker-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.ticker-card {
  min-width: 0;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  transition: background-color 160ms ease, border-color 160ms ease;
}

.ticker-card.flash-up {
  animation: flash-up 700ms ease;
}

.ticker-card.flash-down {
  animation: flash-down 700ms ease;
}

.ticker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
}

.ticker-head span {
  font-size: 17px;
  font-weight: 700;
}

.ticker-head small {
  color: var(--muted);
  font-size: 11px;
}

.ticker-price {
  display: block;
  min-height: 52px;
  margin-top: 14px;
  font-size: 38px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ticker-change {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ticker-change.up {
  color: var(--red);
}

.ticker-change.down {
  color: var(--green);
}

.sparkline {
  display: block;
  width: 100%;
  height: 58px;
  margin-top: 18px;
}

.feature-section {
  padding: 104px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.feature-card-wide {
  grid-column: span 2;
}

.feature-card-accent {
  border-color: #ddc78d;
  background: var(--gold-pale);
}

.feature-index,
.panel-number {
  color: var(--gold-deep);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.feature-card h3 {
  margin: 52px 0 10px;
  font-size: 24px;
}

.feature-card p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.feature-data-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  width: min(100%, 440px);
  margin-top: 28px;
  background: var(--line);
}

.feature-data-row span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f8f6;
}

.feature-data-row b {
  color: var(--muted);
  font-size: 12px;
}

.feature-data-row strong {
  color: var(--green);
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.product-section {
  overflow: hidden;
  padding: 104px 0;
  background: #20201d;
  color: #fff;
}

.product-layout {
  display: grid;
  grid-template-columns: 470px minmax(0, 1fr);
  gap: 100px;
  align-items: center;
}

.product-media {
  position: relative;
  min-height: 680px;
}

.product-phone {
  width: 350px;
  height: 660px;
  overflow: hidden;
  border: 1px solid #5b574e;
  border-radius: 30px;
  background: #fff;
}

.product-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.product-note {
  position: absolute;
  right: 0;
  bottom: 62px;
  width: 230px;
  padding: 20px;
  border: 1px solid #676258;
  border-radius: 8px;
  background: #2b2a26;
}

.product-note span,
.product-note strong {
  display: block;
}

.product-note span {
  color: var(--gold);
  font-size: 12px;
}

.product-note strong {
  margin-top: 6px;
  font-size: 16px;
}

.product-content .section-kicker {
  margin-bottom: 16px;
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 38px;
  border: 1px solid #4a4841;
  border-radius: 8px;
  overflow: hidden;
}

.product-tab {
  min-height: 48px;
  border-right: 1px solid #4a4841;
  background: transparent;
  color: #aaa79f;
  cursor: pointer;
  font-size: 13px;
}

.product-tab:last-child {
  border-right: 0;
}

.product-tab:hover,
.product-tab.active {
  background: var(--gold);
  color: #18150e;
}

.product-panel {
  min-height: 286px;
  padding: 34px 0 0;
}

.product-panel h3 {
  margin: 16px 0 12px;
  font-size: 28px;
}

.product-panel p {
  max-width: 640px;
  margin: 0;
  color: #bbb8b0;
}

.product-panel ul {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.product-panel li {
  position: relative;
  padding-left: 22px;
  color: #e2e0da;
}

.product-panel li::before {
  position: absolute;
  top: 10px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  content: "";
}

.security-section {
  padding: 104px 0;
}

.security-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 100px;
}

.security-heading {
  position: sticky;
  top: calc(var(--header-height) + 40px);
  align-self: start;
}

.security-heading > p:last-child {
  margin-top: 22px;
}

.security-list {
  border-top: 1px solid var(--line);
}

.security-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 22px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.security-list article > span {
  color: var(--gold-deep);
  font-size: 12px;
  font-weight: 700;
}

.security-list h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.security-list p {
  margin: 0;
  color: var(--muted);
}

.availability-section {
  padding: 90px 0;
  border-top: 1px solid var(--line-dark);
  background: #171613;
  color: #fff;
}

.availability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: end;
}

.availability-layout > div > p:last-child {
  margin-top: 20px;
  color: #a9a69e;
}

.platform-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.platform-list span {
  padding: 10px 14px;
  border: 1px solid #565149;
  border-radius: 6px;
  color: #dedbd3;
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid #34322d;
  background: #171613;
  color: #8f8b83;
}

.footer-shell {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
  min-height: 116px;
}

.footer-shell p {
  margin: 0;
  font-size: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.footer-brand div {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.footer-brand strong {
  color: #fff;
  font-size: 14px;
}

.footer-brand span {
  margin-top: 3px;
  font-size: 10px;
}

@keyframes flash-up {
  0%, 100% { background: var(--paper); }
  35% { background: var(--red-bg); border-color: #efb4ae; }
}

@keyframes flash-down {
  0%, 100% { background: var(--paper); }
  35% { background: var(--green-bg); border-color: #acdcca; }
}

@media (max-width: 980px) {
  .site-nav {
    gap: 18px;
  }

  .hero-shell {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 26px 34px;
  }

  .hero-product {
    width: 300px;
    height: 520px;
  }

  .product-layout {
    grid-template-columns: 390px minmax(0, 1fr);
    gap: 54px;
  }

  .product-note {
    right: 8px;
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .nav-shell,
  .section-shell,
  .footer-shell,
  .hero-shell {
    width: min(100% - 32px, 680px);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid #48453e;
    border-radius: 8px;
    background: #1f1e1a;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 12px;
  }

  .site-nav a::after {
    display: none;
  }

  .nav-cta {
    margin-top: 4px;
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    display: flex;
    flex-direction: column;
    min-height: auto;
    padding: 64px 0 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    font-size: clamp(58px, 18vw, 86px);
  }

  .hero-slogan {
    font-size: 24px;
  }

  .hero-product {
    align-self: center;
    justify-self: auto;
    width: min(330px, 88vw);
    height: 560px;
    margin-top: 28px;
  }

  .hero-facts {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    padding-bottom: 30px;
  }

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

  .feature-card-wide {
    grid-column: auto;
  }

  .section-heading,
  .availability-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading {
    display: flex;
  }

  .product-layout,
  .security-layout,
  .availability-layout {
    grid-template-columns: 1fr;
  }

  .product-layout {
    gap: 60px;
  }

  .product-media {
    width: min(460px, 100%);
    min-height: 630px;
    margin: 0 auto;
  }

  .product-phone {
    width: min(340px, 82vw);
    height: 610px;
  }

  .security-layout {
    gap: 54px;
  }

  .security-heading {
    position: static;
  }

  .platform-list {
    justify-content: flex-start;
  }

  .footer-shell {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }
}

@media (max-width: 520px) {
  .hero-intro {
    font-size: 16px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .market-band,
  .feature-section,
  .product-section,
  .security-section,
  .availability-section {
    padding: 72px 0;
  }

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

  .product-tab:nth-child(2) {
    border-right: 0;
  }

  .product-tab:nth-child(-n + 2) {
    border-bottom: 1px solid #4a4841;
  }

  .product-media {
    min-height: 570px;
  }

  .product-phone {
    height: 550px;
  }

  .product-note {
    right: 0;
    bottom: 24px;
    width: 205px;
  }

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
