/* ── Design tokens — mirrored from app/src/main/res/values/colors.xml ─── */
:root {
  color-scheme: dark;
  --bg:       #0F0F0F;
  --surface:  #1A1A1A;
  --elevated: #242424;
  --divider:  #262626;
  --amber:    #F59E0B;
  --amber-dk: #D97706;
  --on-amber: #111111;
  --teal:     #22D3EE;
  --text:     #F5F5F5;
  --muted:    #A3A3A3;
  --hint:     #525252;
  --error:    #EF4444;
  --success:  #22C55E;

  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3 {
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h1 { font-size: clamp(2.8rem, 8vw, 5.2rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: 1.2rem; font-weight: 800; }

p { line-height: 1.6; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 12px;
}

/* ── Layout ─────────────────────────────────────────────────── */
.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 { margin-top: 8px; }

/* ── Buttons ────────────────────────────────────────────────── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.93rem;
  cursor: pointer;
  border: none;
  transition: opacity 0.14s, transform 0.1s;
}
.button:hover  { opacity: 0.86; transform: translateY(-1px); }
.button:active { transform: translateY(0); }

.cta-gold    { background: var(--amber); color: var(--on-amber); }
.cta-outline { background: transparent; border: 2px solid rgba(255,255,255,0.25); color: var(--text); }
.cta-outline:hover { border-color: rgba(255,255,255,0.6); opacity: 1; }

.large { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }

/* ── Site header ────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,15,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.nav-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  transition: color 0.14s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--amber);
  color: var(--on-amber);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  color: var(--text);
}

.hero-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero .eyebrow { color: var(--amber); }

.hero h1 {
  color: var(--text);
  margin-top: 8px;
}

.hero .lede {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  max-width: 520px;
}

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

/* Phone mockup ─────────────────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone {
  width: min(260px, 100%);
  aspect-ratio: 9 / 19.5;
  background: #000;
  border-radius: 40px;
  padding: 14px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.phone-notch {
  width: 68px;
  height: 8px;
  margin: 0 auto 14px;
  background: #111;
  border-radius: 999px;
}

.screen {
  height: calc(100% - 30px);
  background: var(--bg);
  border-radius: 28px;
  padding: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 9px;
  border: 1px solid var(--surface);
  color: var(--text);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--divider);
}

.screen-logo {
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.trust-badge {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--on-amber);
}

.screen-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.match-card {
  padding: 11px 12px;
  border: 1px solid var(--divider);
  border-radius: 10px;
  background: var(--surface);
  position: relative;
}

.match-card.verified {
  border-color: rgba(245, 158, 11, 0.35);
}

.match-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.match-info strong { font-size: 0.82rem; color: var(--text); }
.match-info span   { font-size: 0.7rem;  color: var(--muted); }

.match-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 7px;
}
.match-meta .stars { font-size: 0.68rem; color: var(--amber); font-weight: 800; }
.match-meta em     { font-size: 0.68rem; color: var(--muted); font-style: normal; }

.verified-badge {
  position: absolute;
  top: 9px;
  right: 10px;
  font-size: 0.58rem;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.15);
  color: var(--amber);
}

.screen-footer {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
}

.dot {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: var(--divider);
}
.dot.active { background: var(--amber); }

/* ── Value bar ──────────────────────────────────────────────── */
.value-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--divider);
}

.value-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 5px;
}
.value-item strong {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -0.03em;
}
.value-item span {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

/* ── How it works ───────────────────────────────────────────── */
.how-section { background: var(--bg); }

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

.step {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 14px;
}

.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--on-amber);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 20px;
}

.step h3 { color: var(--text); margin-bottom: 10px; }
.step p  { color: var(--muted); font-size: 0.93rem; }

/* ── Features ───────────────────────────────────────────────── */
.features-section { background: var(--surface); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 14px;
}

.feature-icon {
  font-size: 1.55rem;
  margin-bottom: 16px;
  line-height: 1;
}

.feature-card h3 { color: var(--text); margin-bottom: 10px; }
.feature-card p  { color: var(--muted); font-size: 0.93rem; }

.feature-tag {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
}
.feature-tag.earned {
  background: rgba(34, 197, 94, 0.12);
  color: var(--success);
}

/* ── Credential standings ───────────────────────────────────── */
.standings-section {
  background: var(--elevated);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  color: var(--text);
}
.standings-section .section-inner { padding: 72px 0; }
.standings-section .eyebrow { color: var(--amber); }

.standings-heading {
  color: var(--text);
  margin-top: 8px;
  margin-bottom: 40px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.standings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--divider);
  border-radius: 14px;
  overflow: hidden;
}

.standing {
  padding: 32px;
  background: var(--surface);
}

.standing.center {
  border-left:  1px solid var(--divider);
  border-right: 1px solid var(--divider);
}

.standing h3 {
  color: var(--amber);
  margin-bottom: 12px;
  font-size: 1.05rem;
}
.standing p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* ── Pricing ────────────────────────────────────────────────── */
.pricing-section { background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  padding: 32px;
  border: 1px solid var(--divider);
  border-radius: 14px;
  background: var(--surface);
  position: relative;
}
.pricing-card.featured { border-color: var(--amber); background: var(--elevated); }
.pricing-card.gold     { border-color: rgba(245, 158, 11, 0.45); background: var(--elevated); }

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  background: var(--amber);
  color: var(--on-amber);
  white-space: nowrap;
}

.pricing-head { margin-bottom: 24px; }
.pricing-head h3 { color: var(--text); margin-bottom: 4px; }

.pricing-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--amber);
  letter-spacing: -0.03em;
  margin: 4px 0 2px;
}
.pricing-sub { font-size: 0.83rem; color: var(--muted); }

.pricing-list {
  list-style: none;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-list li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 20px;
  position: relative;
}
.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--amber);
  font-weight: 900;
}

.pricing-cta {
  width: 100%;
  background: var(--elevated);
  border: 1px solid var(--divider);
  color: var(--text);
}
.pricing-cta.brand    { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }
.pricing-cta.gold-cta { background: var(--amber); border-color: var(--amber); color: var(--on-amber); }

/* ── Trade directory ────────────────────────────────────────── */
.trades-section { background: var(--surface); }

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

.trades-grid article {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--divider);
  border-radius: 10px;
}
.trades-grid h3 {
  font-size: 0.93rem;
  color: var(--amber);
  margin-bottom: 8px;
}
.trades-grid p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Download CTA ───────────────────────────────────────────── */
.download-section {
  background: var(--elevated);
  border-top: 1px solid var(--divider);
  color: var(--text);
}

.download-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 96px 0;
}
.download-inner h2 { color: var(--text); }
.download-inner > p:not(.download-sub) {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 400px;
}
.download-sub {
  font-size: 0.8rem;
  color: var(--hint);
  margin-top: -4px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: #000;
  color: var(--hint);
  border-top: 1px solid var(--divider);
}

.footer-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-inner p { font-size: 0.8rem; }

.site-footer nav {
  display: flex;
  gap: 24px;
  flex-shrink: 0;
}
.site-footer a {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hint);
  transition: color 0.14s;
}
.site-footer a:hover { color: var(--text); }

/* ── Responsive — tablet ────────────────────────────────────── */
@media (max-width: 900px) {
  .site-header { position: relative; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--divider);
    padding: 8px 24px 16px;
    gap: 0;
    z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--divider);
    font-size: 1rem;
    color: var(--text);
  }
  .nav-links a:last-child { border-bottom: none; }

  .nav-cta    { display: none; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 52px 0 44px;
    gap: 36px;
  }
  .hero-visual { order: -1; }
  .phone       { max-width: 220px; }

  .value-inner    { grid-template-columns: repeat(2, 1fr); }
  .steps          { grid-template-columns: 1fr; }
  .features-grid  { grid-template-columns: 1fr; }
  .standings-grid { grid-template-columns: 1fr; }
  .pricing-grid   { grid-template-columns: 1fr; }
  .trades-grid    { grid-template-columns: repeat(2, 1fr); }

  .standing.center {
    border-left: none;
    border-right: none;
    border-top:    1px solid var(--divider);
    border-bottom: 1px solid var(--divider);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ── Responsive — mobile ────────────────────────────────────── */
@media (max-width: 540px) {
  .section-inner  { width: calc(100% - 32px); padding: 56px 0; }
  .nav-inner      { width: calc(100% - 32px); }
  .value-inner    { width: calc(100% - 32px); padding: 24px 0; }
  .hero-inner     { width: calc(100% - 32px); }
  .footer-inner   { width: calc(100% - 32px); }

  .value-inner    { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trades-grid    { grid-template-columns: 1fr; }
  .download-inner { padding: 64px 0; }

  .site-footer nav { flex-wrap: wrap; gap: 16px; }
}

/* ── Auth nav elements ──────────────────────────────────────────── */
.nav-signin {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: color 0.14s;
}
.nav-signin:hover { color: var(--text); }

.nav-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  flex-shrink: 0;
  white-space: nowrap;
}

.link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  font-weight: 700;
  color: var(--amber);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--amber-dk); }

@media (max-width: 900px) {
  .nav-signin,
  .nav-user { display: none; }
}

/* ── Auth modal ─────────────────────────────────────────────────── */
#auth-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#auth-modal[hidden] { display: none; }

#modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}

.modal-box {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 16px;
  width: 100%;
  max-width: 460px;
  padding: 40px 40px 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.modal-close:hover { background: var(--elevated); color: var(--text); }

.auth-title {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.auth-view form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.form-field input,
.form-field select {
  height: 44px;
  padding: 0 12px;
  border: 1.5px solid var(--divider);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--elevated);
  transition: border-color 0.14s, background 0.14s;
  outline: none;
  width: 100%;
}
.form-field input::placeholder { color: var(--hint); }
.form-field input:focus,
.form-field select:focus { border-color: var(--amber); background: #2a2a2a; }

.form-field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A3A3A3' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
.form-field select option { background: var(--elevated); color: var(--text); }
.form-field select optgroup { background: var(--surface); color: var(--amber); font-weight: 800; }

.auth-error {
  font-size: 0.82rem;
  color: var(--error);
  font-weight: 600;
  min-height: 1.2em;
}

.button.brand {
  background: var(--amber);
  color: var(--on-amber);
}
.button.brand:hover { opacity: 0.88; }
.button.brand:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.button.full-width { width: 100%; margin-top: 4px; }

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

@media (max-width: 540px) {
  .modal-box { padding: 32px 24px 24px; }
  .form-row  { grid-template-columns: 1fr; }
}
