:root {
  --ink: #111219;
  --night: #0b0d12;
  --night-soft: #12151d;
  --cream: #f3efe6;
  --paper: #fbf9f4;
  --muted: #77756f;
  --muted-dark: #a4a7b0;
  --rule: rgba(17, 18, 25, 0.14);
  --rule-dark: rgba(255, 255, 255, 0.16);
  --gold: #f4b63d;
  --gold-soft: #e8c887;
  --silver: #c5cbd4;
  --positive: #78d6a4;
  --negative: #ff8e87;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: min(1240px, calc(100vw - 64px));
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.045em; line-height: .98; }

.skip-link {
  position: fixed;
  inset-block-start: 10px;
  inset-inline-start: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: white;
  color: black;
  transform: translateY(-150%);
  transition: transform .2s;
}
.skip-link:focus { transform: translateY(0); }
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 50;
  width: var(--shell);
  height: 82px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-block-end: 1px solid var(--rule-dark);
  color: white;
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; font-weight: 700; letter-spacing: -.03em; }
.brand img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.primary-nav, .header-actions { display: flex; align-items: center; gap: 24px; }
.primary-nav a { color: #cacdd5; font-size: 13px; font-weight: 600; transition: color .2s; }
.primary-nav a:hover, .primary-nav a:focus-visible { color: white; }
.header-actions { justify-self: end; }
.language-picker, .currency-picker { position: relative; display: inline-flex; align-items: center; }
.language-picker select, .currency-picker select {
  appearance: none;
  border: 0;
  cursor: pointer;
  color: inherit;
  background: transparent;
  font-weight: 700;
  outline-offset: 4px;
}
.language-picker select { padding: 8px 24px 8px 6px; font-size: 12px; max-width: 108px; }
.language-picker svg, .currency-picker svg { position: absolute; inset-inline-end: 5px; width: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; pointer-events: none; }
.language-picker select option, .currency-picker select option { color: #111; }
.header-download { padding: 11px 17px; background: white; color: var(--night); border-radius: 999px; font-size: 12px; font-weight: 800; transition: transform .25s var(--ease), background .25s; }
.header-download:hover { transform: translateY(-2px); background: var(--gold); }

.market-hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: var(--night);
  color: white;
  isolation: isolate;
}
.market-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .15;
  background-image: linear-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
.hero-orbit { position: absolute; z-index: -1; width: 38vw; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .14; }
.hero-orbit-gold { inset-block-start: -17vw; inset-inline-start: -12vw; background: var(--gold); }
.hero-orbit-silver { inset-block-end: -22vw; inset-inline-end: -10vw; background: #8da2c9; }
.hero-grid {
  width: var(--shell);
  min-height: 100svh;
  margin-inline: auto;
  padding-block: 132px 60px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 24px 28px;
  align-items: center;
}
.hero-copy { grid-column: 1 / 8; align-self: end; max-width: 700px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin-block-end: 18px; color: #d6d8de; font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.live-dot, .status-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--positive); box-shadow: 0 0 0 5px rgba(120, 214, 164, .1); animation: pulse 2.4s ease-in-out infinite; }
.hero-copy h1 { max-width: 680px; font-size: clamp(58px, 6.3vw, 102px); }
.hero-copy h1 span { color: var(--gold); }
.hero-intro { max-width: 600px; margin-block-start: 22px; color: var(--muted-dark); font-size: clamp(16px, 1.4vw, 19px); }

.market-tool { grid-column: 1 / 8; align-self: start; padding-block-start: 16px; }
.market-toolbar { display: flex; align-items: center; justify-content: space-between; padding-block: 13px; border-block: 1px solid var(--rule-dark); }
.market-freshness { display: flex; align-items: center; gap: 10px; color: #c6c8d0; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.market-tool[data-price-state="loading"] .status-dot { background: var(--gold); }
.market-tool[data-price-state="error"] .status-dot { background: var(--negative); animation: none; }
.currency-picker { color: white; }
.currency-picker select { padding: 8px 24px 8px 8px; font-size: 12px; letter-spacing: .08em; }
.quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-block-end: 1px solid var(--rule-dark); }
.quote { padding: 22px 26px 20px 0; min-width: 0; }
.quote + .quote { padding-inline: 26px 0; border-inline-start: 1px solid var(--rule-dark); }
.quote-heading { display: flex; align-items: center; min-width: 0; }
.metal-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--night); background: var(--gold); font-family: var(--serif); font-size: 14px; }
.quote-silver .metal-mark { background: var(--silver); }
.quote-heading h2 { margin-inline-start: 11px; font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0; }
.quote-change { margin-inline-start: auto; padding: 5px 8px; border-radius: 999px; color: #c9cbd2; background: rgba(255, 255, 255, .07); font-size: 10px; font-weight: 800; }
.quote-change.positive { color: var(--positive); background: rgba(120, 214, 164, .09); }
.quote-change.negative { color: var(--negative); background: rgba(255, 142, 135, .09); }
.quote-price { margin-block-start: 15px; white-space: nowrap; font-size: clamp(33px, 3.4vw, 54px); font-weight: 600; letter-spacing: -.065em; line-height: 1; font-variant-numeric: tabular-nums; }
.quote-price small { margin-inline-start: 7px; color: #777b87; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.quote-secondary, .range-values { display: flex; align-items: center; justify-content: space-between; color: #858994; font-size: 10px; font-weight: 700; }
.quote-secondary { margin-block-start: 16px; }
.quote-secondary strong { color: #c8cad1; font-weight: 600; }
.range { position: relative; height: 2px; margin-block: 14px 7px; background: rgba(255, 255, 255, .11); }
.range span { position: absolute; inset-block-start: 50%; inset-inline-start: var(--position, 50%); width: 8px; height: 8px; border-radius: 50%; background: currentColor; transform: translate(-50%, -50%); transition: inset-inline-start .7s var(--ease); }
[dir="rtl"] .range span { transform: translate(50%, -50%); }
.quote-gold .range { color: var(--gold); }
.quote-silver .range { color: var(--silver); }
.range-values { font-variant-numeric: tabular-nums; }
.market-foot { display: flex; align-items: center; justify-content: space-between; padding-block: 12px 0; color: #9a9da6; font-size: 11px; }
.market-foot strong { margin-inline-start: 6px; color: white; font-size: 13px; }
.retry-button { width: 34px; height: 34px; border: 1px solid var(--rule-dark); border-radius: 50%; background: transparent; color: white; cursor: pointer; }
.market-note { max-width: 620px; margin-block-start: 9px; color: #666a74; font-size: 9px; line-height: 1.5; }

.hero-phone { grid-column: 9 / 13; grid-row: 1 / 4; align-self: end; justify-self: center; width: min(100%, 400px); height: calc(100svh - 114px); overflow: hidden; border-radius: 26px 26px 0 0; box-shadow: 0 42px 100px rgba(0, 0, 0, .46); transform: rotate(1.5deg); transform-origin: bottom center; }
.hero-phone img { width: 100%; height: auto; }
.hero-install { grid-column: 1 / 8; display: flex; align-items: center; gap: 24px; }
.store-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.store-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 21px; border-radius: 999px; background: var(--gold); color: var(--night); font-size: 12px; font-weight: 800; transition: transform .25s var(--ease), box-shadow .25s; }
.store-button:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(244, 182, 61, .17); }
.store-button svg { width: 18px; height: 18px; fill: currentColor; }
.store-button-secondary { background: white; }
.hero-qr { position: relative; display: flex; flex: 0 0 auto; align-items: center; gap: 14px; color: #c3c6ce; font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: .08em; text-transform: uppercase; }
.hero-qr img { width: 148px; height: 148px; padding: 10px; border-radius: 12px; background: white; box-shadow: 0 18px 44px rgba(0, 0, 0, .28); image-rendering: auto; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hero-qr span { max-width: 76px; }
.hero-qr:hover img { transform: scale(1.025); box-shadow: 0 22px 54px rgba(0, 0, 0, .36); }
.section-shell { width: var(--shell); margin-inline: auto; }
.section-index { margin-block-end: 24px; font-size: 10px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.utility-explainer { padding-block: 110px; background: var(--cream); }
.context-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 8vw; align-items: start; }
.context-heading h2 { max-width: 500px; font-size: clamp(48px, 5.2vw, 82px); }
.context-copy > p { max-width: 650px; color: #5f5d58; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.25; }
.context-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-block-start: 58px; border-block: 1px solid var(--rule); }
.context-facts div { padding-block: 22px; }
.context-facts div + div { padding-inline-start: 24px; border-inline-start: 1px solid var(--rule); }
.context-facts strong, .context-facts span { display: block; }
.context-facts strong { font-family: var(--serif); font-size: 27px; font-weight: 500; }
.context-facts span { margin-block-start: 5px; color: var(--muted); font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.app-story { min-height: 110vh; padding-block: 120px 0; background: var(--night); color: white; overflow: hidden; }
.app-story-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 8vw; align-items: start; }
.app-story-copy { position: sticky; inset-block-start: 90px; padding-block-end: 100px; }
.app-story-copy h2 { max-width: 520px; font-size: clamp(56px, 6vw, 94px); color: var(--gold); }
.app-story-copy > p:not(.section-index) { max-width: 500px; margin-block-start: 26px; color: var(--muted-dark); font-size: 16px; }
.feature-lines { margin: 50px 0 32px; padding: 0; list-style: none; border-block-start: 1px solid var(--rule-dark); }
.feature-lines li { display: grid; grid-template-columns: 34px 1fr auto; gap: 8px; align-items: center; padding-block: 16px; border-block-end: 1px solid var(--rule-dark); }
.feature-lines span { color: #666a74; font-size: 9px; }
.feature-lines strong { font-size: 12px; }
.feature-lines em { color: var(--gold); font-size: 8px; font-style: normal; font-weight: 800; letter-spacing: .12em; }
.text-link { display: inline-flex; align-items: center; gap: 14px; padding-block-end: 6px; border-block-end: 1px solid currentColor; font-size: 12px; font-weight: 800; }
.text-link span:last-child { transition: transform .2s var(--ease); }
.text-link:hover span:last-child { transform: translate(3px, -3px); }
.story-visual { justify-self: end; width: min(100%, 600px); margin-block-end: -13vw; border-radius: 34px 34px 0 0; overflow: hidden; box-shadow: 0 50px 130px rgba(0, 0, 0, .55); }
.story-visual img, .metals-visual img { width: 100%; height: auto; }

.five-metals { position: relative; padding-block: 150px 0; background: #d8dce0; overflow: hidden; }
.metal-wordmark { position: absolute; inset-block-start: 34px; inset-inline: 0; display: flex; justify-content: space-around; color: rgba(17, 18, 25, .06); font-family: var(--serif); font-size: clamp(60px, 10vw, 160px); line-height: 1; pointer-events: none; }
.five-metals-grid { position: relative; display: grid; grid-template-columns: 7fr 5fr; gap: 7vw; align-items: end; }
.five-metals-copy { align-self: center; padding-block: 70px 130px; }
.five-metals-copy h2 { max-width: 720px; font-size: clamp(56px, 6.5vw, 106px); }
.five-metals-copy > p:not(.section-index) { max-width: 610px; margin-block-start: 28px; color: #5b5e64; font-size: 16px; }
.metal-list { display: flex; flex-wrap: wrap; gap: 10px 25px; margin-block-start: 42px; }
.metal-list span { padding-block: 7px; border-block-end: 1px solid rgba(17, 18, 25, .3); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.metals-visual { width: min(100%, 430px); justify-self: end; max-height: 910px; overflow: hidden; border-radius: 32px 32px 0 0; box-shadow: 0 44px 100px rgba(17, 18, 25, .22); }

.learn-section { padding-block: 120px; background: var(--paper); }
.learn-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-block-end: 60px; }
.learn-heading h2 { font-size: clamp(48px, 6vw, 88px); }
.learn-list { border-block-start: 1px solid var(--rule); }
.learn-list a { display: grid; grid-template-columns: 50px 1fr auto; gap: 20px; align-items: center; padding-block: 25px; border-block-end: 1px solid var(--rule); transition: padding-inline .3s var(--ease), color .2s; }
.learn-list a:hover { padding-inline: 12px; color: #9b6814; }
.learn-list span { color: #96928a; font-size: 10px; }
.learn-list strong { font-family: var(--serif); font-size: clamp(25px, 3vw, 42px); font-weight: 500; letter-spacing: -.025em; }
.learn-list i { font-size: 19px; font-style: normal; }

.final-cta { padding-block: 125px; background: var(--gold); color: var(--night); }
.final-cta-grid { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; }
.final-cta h2 { max-width: 850px; font-size: clamp(60px, 8vw, 125px); }
.final-cta p:not(.section-index) { max-width: 580px; margin-block: 25px 30px; font-size: 16px; }
.store-button-light { background: var(--night); color: white; }
.store-button-outline { border: 1px solid rgba(11, 13, 18, .42); background: transparent; color: var(--night); }
.final-qr { width: 170px; padding: 14px; background: white; color: var(--night); text-align: center; box-shadow: 0 24px 70px rgba(17, 18, 25, .15); }
.final-qr img { width: 142px; height: 142px; background: white; }
.final-qr span { display: block; margin-block-start: 8px; font-size: 9px; font-weight: 800; text-transform: uppercase; }

.site-footer { padding-block: 80px 24px; background: var(--night); color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 80px; padding-block-end: 60px; }
.footer-brand p { max-width: 500px; margin-block-start: 20px; color: #7f828b; font-size: 12px; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 14px 40px; align-content: start; }
.footer-links a { color: #a8abb3; font-size: 11px; font-weight: 700; }
.footer-links a:hover { color: white; }
.locale-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; max-width: 1100px; margin-inline: auto; padding: 28px 32px; border-block: 1px solid var(--rule-dark); color: #777b85; }
.locale-nav a, .locale-nav span { font-size: 9px; font-weight: 700; }
.locale-nav a:hover, .locale-nav [aria-current="page"] { color: white; }
.copyright { margin-block-start: 24px; color: #545761; font-size: 9px; text-align: center; }
.mobile-install { display: none; }

.hero-enter { opacity: 0; transform: translateY(20px); animation: hero-in .8s var(--ease) forwards; }
.hero-copy { animation-delay: .05s; }
.market-tool { animation-delay: .16s; }
.hero-phone { animation-delay: .24s; }
.hero-install { animation-delay: .32s; }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s var(--ease), transform .75s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.price-flash { animation: price-flash .7s var(--ease); }

@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes price-flash { 0% { color: var(--gold); transform: translateY(4px); } 100% { color: inherit; transform: translateY(0); } }

@media (max-width: 1050px) {
  :root { --shell: min(100% - 42px, 900px); }
  .primary-nav { display: none; }
  .site-header { grid-template-columns: 1fr auto; }
  .hero-grid { grid-template-columns: repeat(8, 1fr); }
  .hero-copy, .market-tool, .hero-install { grid-column: 1 / 6; }
  .hero-phone { grid-column: 6 / 9; width: 330px; }
  .hero-install { gap: 16px; }
  .hero-qr { gap: 10px; }
  .hero-qr img { width: 132px; height: 132px; padding: 9px; }
  .hero-qr span { max-width: 68px; font-size: 9px; }
  .context-grid, .app-story-grid { gap: 6vw; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100vw - 34px); }
  body { padding-block-end: 62px; }
  .site-header { height: 68px; }
  .brand { gap: 8px; font-size: 13px; }
  .brand img { width: 35px; height: 35px; border-radius: 9px; }
  .header-download { display: none; }
  .language-picker select { max-width: 92px; }
  .market-hero { min-height: auto; }
  .market-hero::before { background-size: 64px 64px; }
  .hero-grid { min-height: auto; padding-block: 104px 62px; display: block; }
  .hero-copy h1 { font-size: clamp(52px, 16vw, 74px); }
  .hero-intro { margin-block-start: 18px; font-size: 14px; }
  .market-tool { margin-block-start: 32px; padding-block-start: 0; }
  .quotes { display: block; }
  .quote { padding: 21px 0; }
  .quote + .quote { padding-inline: 0; border-inline-start: 0; border-block-start: 1px solid var(--rule-dark); }
  .quote-price { font-size: 44px; }
  .market-note { font-size: 8px; }
  .hero-phone { width: min(82vw, 360px); height: 560px; margin: 48px auto 0; border-radius: 26px 26px 0 0; transform: rotate(1deg); }
  .hero-install { margin-block-start: 26px; flex-wrap: wrap; justify-content: center; }
  .hero-install .store-actions { display: none; }
  .hero-qr { display: none; }
  .utility-explainer, .learn-section { padding-block: 78px; }
  .context-grid, .app-story-grid, .five-metals-grid, .final-cta-grid, .footer-grid { grid-template-columns: 1fr; }
  .context-grid, .app-story-grid, .five-metals-grid { gap: 50px; }
  .context-heading h2, .app-story-copy h2, .five-metals-copy h2, .learn-heading h2 { font-size: 50px; }
  .context-copy > p { font-size: 23px; }
  .context-facts { margin-block-start: 38px; }
  .context-facts strong { font-size: 20px; }
  .context-facts span { font-size: 7px; }
  .context-facts div + div { padding-inline-start: 12px; }
  .app-story { min-height: auto; padding-block-start: 78px; }
  .app-story-copy { position: static; padding-block-end: 0; }
  .story-visual { width: min(100%, 460px); margin: 0 auto -30vw; }
  .five-metals { padding-block-start: 110px; }
  .metal-wordmark { font-size: 18vw; }
  .five-metals-copy { padding-block: 70px 10px; }
  .metals-visual { width: min(88%, 400px); justify-self: center; max-height: 730px; }
  .learn-heading { align-items: start; flex-direction: column; margin-block-end: 38px; }
  .learn-list a { grid-template-columns: 28px 1fr auto; gap: 10px; padding-block: 20px; }
  .learn-list strong { font-size: 25px; }
  .final-cta { padding-block: 85px; }
  .final-cta-grid { gap: 45px; }
  .final-cta h2 { font-size: 58px; }
  .final-qr { display: none; }
  .footer-grid { gap: 45px; padding-block-end: 48px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
  .locale-nav { padding-inline: 0; }
  .mobile-install { position: fixed; inset-inline: 12px; inset-block-end: 10px; z-index: 100; display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; background: var(--gold); color: var(--night); box-shadow: 0 14px 35px rgba(0, 0, 0, .28); font-size: 12px; font-weight: 800; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-enter, .reveal { opacity: 1; transform: none; }
}

[dir="rtl"] .hero-phone { transform: rotate(-1.5deg); }
[dir="rtl"] .quote { padding-inline: 0 26px; }
[dir="rtl"] .quote + .quote { padding-inline: 0 26px; }
[dir="rtl"] .text-link span:last-child, [dir="rtl"] .learn-list i { transform: scaleX(-1); }

@media (max-width: 760px) {
  [dir="rtl"] .quote, [dir="rtl"] .quote + .quote { padding-inline: 0; }
}
