/* MyMettle — marketing site (formerly My Treasure) */

:root {
  --gold: #d9a520;
  --gold-light: #f0c85a;
  --gold-dim: rgba(217, 165, 32, 0.15);
  --gold-glow: rgba(217, 165, 32, 0.35);
  --bg-deep: #080706;
  --bg-mid: #12100a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f2eb;
  --text-muted: rgba(245, 242, 235, 0.62);
  --text-faint: rgba(245, 242, 235, 0.4);
  --silver: #b8bcc4;
  --radius: 16px;
  --radius-lg: 24px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--gold);
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: linear-gradient(145deg, #080706 0%, #141008 40%, #0a0906 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 18s ease-in-out infinite;
}

.orb-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, var(--gold-glow), transparent 70%);
  top: -120px;
  right: -80px;
}

.orb-2 {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(184, 188, 196, 0.12), transparent 70%);
  bottom: 20%;
  left: -100px;
  animation-delay: -6s;
}

.orb-3 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(217, 165, 32, 0.2), transparent 70%);
  bottom: -60px;
  right: 25%;
  animation-delay: -12s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 20px) scale(0.95); }
}

/* Layout */
.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 7, 6, 0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lang-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang-btn.is-active {
  color: #1a1408;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 2px 12px var(--gold-dim);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 4px 20px var(--gold-glow);
}

.brand span {
  font-size: 1.05rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 600;
}

.brand-former {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

.hero-former {
  margin-top: 8px;
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-faint);
  font-style: italic;
}

.hero-content > .app-store-link {
  margin-top: 16px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-former {
  font-size: 0.78rem;
  color: var(--text-faint);
  font-style: italic;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(217, 165, 32, 0.25);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 600;
  line-height: 1.1;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 32px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.app-store-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.app-store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.app-store-link img {
  width: auto;
  height: 44px;
}

.app-store-link:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1408;
  box-shadow: 0 8px 32px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--gold-glow);
  color: #1a1408;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.hero-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Phone mock */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone {
  width: 280px;
  background: linear-gradient(160deg, #1c1810, #0e0c08);
  border-radius: 36px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 60px var(--gold-dim);
  transform: perspective(800px) rotateY(-8deg) rotateX(4deg);
  animation: phone-in 1s ease-out;
}

@keyframes phone-in {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-8deg) rotateX(4deg) translateY(30px);
  }
}

.phone-screen {
  background: linear-gradient(180deg, #14110c, #0a0906);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.phone-screen-real {
  padding: 0;
  line-height: 0;
}

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

/* Screenshots gallery */
.screenshots-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
}

.screenshot-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 1 280px;
  max-width: 280px;
}

.screenshot-frame {
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, #1c1810, #0e0c08);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-card:hover .screenshot-frame {
  transform: translateY(-6px);
  border-color: rgba(217, 165, 32, 0.28);
  box-shadow:
    0 32px 64px rgba(0, 0, 0, 0.45),
    0 0 40px var(--gold-dim);
}

.screenshot-card figcaption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 4px;
}

.screenshot-card figcaption strong {
  font-size: 1rem;
  color: var(--text);
}

.screenshot-card figcaption span {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-intro {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 48px;
  font-size: 1.05rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  transition: border-color 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(217, 165, 32, 0.3);
  transform: translateY(-4px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-dim);
  border: 1px solid rgba(217, 165, 32, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--gold-light);
}

.feature-card h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Metals strip */
.metals-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding: 40px 0;
}

.metal-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.95rem;
}

.metal-pill .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* Legal sections */
.legal-block {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 24px;
  color: var(--text);
}

.legal-block p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

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

/* Powered by */
.powered {
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.powered-text {
  flex: 1;
  min-width: 200px;
}

.powered-text p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.powered-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s;
}

.powered-link:hover {
  border-color: rgba(217, 165, 32, 0.35);
  background: rgba(217, 165, 32, 0.08);
}

.powered-link img {
  height: 40px;
  width: auto;
}

.powered-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

.powered-url {
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* Footer */
.footer {
  padding: 40px 0 48px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 48px;
  }

  .hero-lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-content > .app-store-link {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    transform: none;
    width: 260px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-right {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .legal-block {
    padding: 24px;
  }

  .powered {
    flex-direction: column;
    text-align: center;
  }
}
