:root {
  color-scheme: dark;
  --bg: #07080c;
  --panel: rgba(18, 21, 28, 0.78);
  --panel-strong: #11151d;
  --text: #f4f7fb;
  --muted: #aeb6c5;
  --soft: #dce4f0;
  --line: rgba(255, 255, 255, 0.12);
  --line-strong: rgba(255, 255, 255, 0.2);
  --gold: #f3c766;
  --silver: #d8e2ec;
  --blue: #66a9ff;
  --green: #5ee6a7;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(102, 169, 255, 0.15), transparent 30rem),
    radial-gradient(circle at 92% 10%, rgba(243, 199, 102, 0.16), transparent 34rem),
    linear-gradient(180deg, #080a0f 0%, #080910 44%, #0c0d13 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

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

.site-header {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(7, 8, 12, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(18px, 4vw, 56px);
  position: sticky;
  right: 0;
  top: 0;
  z-index: 10;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), var(--silver));
  border-radius: 12px;
  color: #14120b;
  display: grid;
  font-size: 16px;
  height: 34px;
  place-items: center;
  width: 34px;
}

.top-links {
  display: flex;
  gap: 8px;
}

.top-links a,
.category-tab {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: rgba(244, 247, 251, 0.9);
  font-size: 13px;
  font-weight: 750;
  padding: 10px 14px;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.top-links a:hover,
.category-tab:hover,
.category-tab.is-active {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

.top-links a:hover,
.category-tab:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.78fr);
  min-height: calc(100svh - 72px);
  overflow: hidden;
  padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px) clamp(54px, 8vw, 96px);
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(7, 8, 12, 0.78), rgba(7, 8, 12, 0.2)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 92px);
  inset: 0;
  mask-image: linear-gradient(180deg, #000 72%, transparent);
  position: absolute;
}

.hero-content {
  align-self: center;
  max-width: 780px;
  position: relative;
  z-index: 2;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(46px, 7.2vw, 104px);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 26px;
  max-width: 760px;
}

.hero-copy {
  color: var(--soft);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.48;
  margin-bottom: 32px;
  max-width: 620px;
}

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

.category-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  display: grid;
  min-height: 72px;
  min-width: 220px;
  padding: 14px 18px;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.category-button span {
  font-size: 17px;
  font-weight: 850;
}

.category-button small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin-top: 4px;
}

.category-button.primary {
  background: linear-gradient(135deg, rgba(243, 199, 102, 0.24), rgba(216, 226, 236, 0.12));
  border-color: rgba(243, 199, 102, 0.34);
}

.category-button:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.hero-media {
  align-self: center;
  display: grid;
  min-height: 520px;
  place-items: center;
  position: relative;
  z-index: 1;
}

.app-icon-wall {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 520px;
  position: relative;
  width: min(38vw, 520px);
}

.app-icon-wall::before {
  background: radial-gradient(circle, rgba(243, 199, 102, 0.18), transparent 68%);
  content: "";
  height: 118%;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 118%;
  z-index: -1;
}

.hero-icon {
  aspect-ratio: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 26%;
  display: block;
  width: 100%;
}

.hero-icon-gold {
  background-image: url("assets/hero-icons/gold-prices-tracker.jpg");
}

.hero-icon-silver-scan {
  background-image: url("assets/hero-icons/silver-coins-bars-identifier.jpg");
}

.hero-icon-melt {
  background-image: url("assets/hero-icons/melt-value-calculator.jpg");
}

.hero-icon-pips {
  background-image: url("assets/hero-icons/fx-pip-lot-calculator.jpg");
}

.hero-icon-chart {
  background-image: url("assets/hero-icons/chart-scanner.jpg");
}

.hero-icon-hub {
  background-image: url("assets/hero-icons/trading-tools-hub.jpg");
}

.hero-icon-silver-scan,
.hero-icon-chart {
  transform: translateY(28px);
}

.category-nav {
  background: rgba(8, 9, 14, 0.82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: -28px auto 0;
  padding: 8px;
  position: sticky;
  top: 84px;
  width: fit-content;
  z-index: 8;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 610px;
}

.section-heading.wide {
  max-width: 820px;
}

.section-heading h2,
.final-cta h2 {
  font-size: clamp(36px, 5vw, 72px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 18px;
}

.section-heading p,
.group-heading p,
.final-cta p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.56;
}

.intro-section {
  padding-top: clamp(72px, 8vw, 104px);
}

.intro-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 34px;
}

.direction-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  color: var(--text);
  min-height: 260px;
  overflow: hidden;
  padding: clamp(24px, 4vw, 42px);
  position: relative;
  text-decoration: none;
}

.direction-panel::after {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  content: "";
  height: 260px;
  position: absolute;
  right: -90px;
  top: -80px;
  width: 260px;
}

.direction-panel span {
  color: var(--gold);
  display: block;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.direction-panel strong {
  display: block;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
  line-height: 1.08;
  max-width: 610px;
}

.metal-panel {
  background:
    radial-gradient(circle at 92% 10%, rgba(243, 199, 102, 0.24), transparent 18rem),
    linear-gradient(135deg, rgba(22, 24, 30, 0.98), rgba(16, 18, 23, 0.82));
}

.trading-panel {
  background:
    radial-gradient(circle at 92% 10%, rgba(102, 169, 255, 0.2), transparent 18rem),
    linear-gradient(135deg, rgba(18, 21, 29, 0.98), rgba(11, 15, 24, 0.84));
}

.app-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(54px, 7vw, 88px);
}

.metal-section {
  background:
    radial-gradient(circle at 90% 14%, rgba(243, 199, 102, 0.12), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), rgba(255, 255, 255, 0));
}

.trading-section {
  background: radial-gradient(circle at 7% 6%, rgba(102, 169, 255, 0.1), transparent 30rem);
}

.app-card img {
  border-radius: 22%;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  width: 100%;
}

.app-card {
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}

.app-card:focus-visible {
  outline: 3px solid rgba(243, 199, 102, 0.75);
  outline-offset: 4px;
}

.collection-group {
  margin-top: clamp(46px, 6vw, 72px);
}

.group-heading {
  align-items: end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.52fr) minmax(280px, 0.68fr);
  margin-bottom: 18px;
  padding-bottom: 18px;
}

.group-heading h3 {
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 0;
}

.app-grid {
  display: grid;
  gap: 14px;
}

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

.single-grid {
  grid-template-columns: minmax(0, 1fr);
  max-width: 560px;
}

.trading-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
}

.app-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  display: grid;
  gap: 16px;
  grid-template-columns: 76px minmax(0, 1fr);
  min-height: 158px;
  padding: 18px;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.app-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.app-card h4 {
  font-size: 17px;
  line-height: 1.16;
  margin-bottom: 8px;
}

.app-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
  margin-bottom: 0;
}

.metal-card {
  background: rgba(243, 199, 102, 0.05);
}

.trading-card {
  background: rgba(102, 169, 255, 0.045);
}

.final-cta {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(243, 199, 102, 0.15), rgba(102, 169, 255, 0.1)),
    rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: clamp(56px, 8vw, 92px) clamp(18px, 5vw, 72px);
}

.final-cta > div {
  max-width: 740px;
}

.footer {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  padding: 34px 18px 48px;
}

.footer span {
  color: var(--text);
  font-weight: 850;
}

.footer a {
  text-decoration: none;
}

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

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 340px;
    order: -1;
  }

  .app-icon-wall {
    max-width: 420px;
    width: min(72vw, 420px);
  }

  .compact-grid,
  .trading-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 64px;
    padding-inline: 14px;
  }

  .top-links a {
    padding-inline: 12px;
  }

  .hero {
    min-height: auto;
    padding-top: 38px;
  }

  .hero-media {
    min-height: 246px;
  }

  .app-icon-wall {
    gap: 10px;
    width: min(78vw, 310px);
  }

  .hero-icon-silver-scan,
  .hero-icon-chart {
    transform: translateY(14px);
  }

  h1 {
    font-size: clamp(42px, 15vw, 64px);
  }

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

  .hero-actions {
    display: grid;
  }

  .category-button {
    min-width: 0;
    width: 100%;
  }

  .category-nav {
    margin-top: 0;
    top: 72px;
    width: calc(100% - 28px);
  }

  .category-tab {
    flex: 1;
    text-align: center;
  }

  .intro-grid,
  .compact-grid,
  .trading-grid,
  .group-heading {
    grid-template-columns: 1fr;
  }

  .direction-panel {
    min-height: 220px;
  }

  .app-card {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 134px;
    padding: 14px;
  }

  .final-cta {
    align-items: stretch;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
