/* Page-level styles — loaded by inner pages only */

/* ---------- homepage desk links ---------- */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.link-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px;
  padding: 26px 24px 24px; border-radius: var(--radius); min-height: 190px;
  background: linear-gradient(160deg, rgba(217, 169, 74, .09), rgba(255, 255, 255, .015) 60%);
  border: 1px solid var(--line);
  transition: transform .28s ease, border-color .28s ease, background .28s ease;
}
.link-card:hover { transform: translateY(-3px); border-color: rgba(217, 169, 74, .35); }
.link-card .idx { font-size: 10px; letter-spacing: .18em; color: var(--muted-2); font-weight: 700; }
.link-card h3 { font-size: 19px; line-height: 1.3; margin-top: 4px; }
.link-card p { font-size: 13px; color: var(--muted); line-height: 1.6; }
.link-card .go { margin-top: auto; font-size: 12px; font-weight: 650; color: var(--gold-lt); }
.link-card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 160px; height: 160px;
  border-radius: 50%; border: 1px solid rgba(217, 169, 74, .18);
  transition: transform .4s ease;
}
.link-card:hover::after { transform: scale(1.15); }

/* ---------- featured cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, #0d1424, #090f1a); border: 1px solid var(--line);
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card:hover {
  transform: translateY(-4px); border-color: rgba(217, 169, 74, .32);
  box-shadow: 0 28px 60px -30px rgba(0, 0, 0, .95);
}
.card-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(140deg, #162034, #0a101c 70%);
}
.card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(9, 15, 26, .85));
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.card:hover .card-media img { transform: scale(1.055); }
.card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; padding: 20px 22px 22px; }
.card-body h3 { font-size: 18px; line-height: 1.32; }
.card-body p { font-size: 13.5px; line-height: 1.62; color: var(--muted); }
.card-meta { font-size: 11px; color: var(--muted-2); letter-spacing: .05em; margin-top: auto; padding-top: 6px; }

/* ---------- inner page banner ---------- */
.page-hero { position: relative; padding: 60px 0 46px; border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; right: -140px; top: -260px; width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(217, 169, 74, .14), rgba(217, 169, 74, 0) 62%);
}
.page-hero h1 { position: relative; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.035em; }
.page-hero p { position: relative; margin-top: 16px; max-width: 620px; font-size: 15.5px; color: var(--muted); line-height: 1.7; }
.crumb { position: relative; font-size: 11.5px; letter-spacing: .1em; color: var(--muted-2); margin-bottom: 18px; }
.crumb a:hover { color: var(--gold-lt); }

/* ---------- desk / markets panel ---------- */
.desk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.desk-copy h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.03em; margin-bottom: 18px; }
.desk-list { margin: 24px 0 30px; display: flex; flex-direction: column; gap: 12px; }
.desk-list li { position: relative; padding-left: 26px; font-size: 14px; color: #c3cee0; line-height: 1.55; }
.desk-list li::before {
  content: ""; position: absolute; left: 4px; top: 8px; width: 7px; height: 7px;
  border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-lt), var(--gold-dk));
}
.desk-panel {
  border-radius: 22px; padding: 26px 26px 20px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(217, 169, 74, .1), transparent 55%),
    linear-gradient(180deg, #0d1526, #080e19);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 40px 80px -46px rgba(0, 0, 0, .95);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-label { font-size: 10px; letter-spacing: .18em; color: var(--muted-2); font-weight: 700; }
.panel-price { display: block; font-size: 30px; letter-spacing: -.03em; margin-top: 4px; }
.panel-price span { color: var(--muted-2); font-size: 20px; }
.panel-change {
  font-size: 11.5px; font-weight: 650; padding: 4px 9px; border-radius: 999px;
  background: rgba(61, 220, 151, .1); border: 1px solid rgba(61, 220, 151, .25);
}
.chart { margin: 14px -6px 6px; }
.chart svg { width: 100%; height: 150px; overflow: visible; }
.chart .line { stroke-dasharray: 900; stroke-dashoffset: 900; }
.chart.in .line { animation: draw 1.9s cubic-bezier(.35, .75, .25, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.panel-rows { border-top: 1px solid var(--line); margin-top: 8px; }
.prow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 13px; color: var(--muted);
}
.prow b { color: #e7eefb; font-weight: 650; font-size: 13.5px; }
.prow b.up { color: var(--up); }
.panel-note { margin-top: 14px; font-size: 10.5px; color: var(--muted-2); }

/* ---------- newsletter ---------- */
.newsletter { padding: 20px 0 84px; }
.nl-card {
  position: relative; overflow: hidden; text-align: center;
  padding: 64px 40px 56px; border-radius: 26px;
  background: linear-gradient(180deg, #0c1322, #070c15);
  border: 1px solid rgba(217, 169, 74, .2);
}
.nl-glow {
  position: absolute; left: 50%; top: -240px; transform: translateX(-50%);
  width: 720px; height: 480px;
  background: radial-gradient(ellipse, rgba(217, 169, 74, .2), rgba(217, 169, 74, 0) 68%);
  pointer-events: none;
}
.nl-card h2 { position: relative; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -.03em; max-width: 720px; margin: 0 auto; }
.nl-card p { position: relative; margin: 18px auto 0; max-width: 560px; font-size: 14.5px; color: var(--muted); }
.nl-form { position: relative; display: flex; gap: 10px; max-width: 500px; margin: 30px auto 0; }
.nl-form input {
  flex: 1 1 auto; min-width: 0; padding: 13px 18px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--text); font-size: 14px; outline: none;
  transition: border-color .2s ease, background .2s ease;
}
.nl-form input::placeholder { color: var(--muted-2); }
.nl-form input:focus { border-color: rgba(217, 169, 74, .6); background: rgba(255, 255, 255, .06); }
.nl-msg { position: relative; min-height: 20px; margin-top: 12px; font-size: 12.5px; color: var(--up); }
.nl-msg.err { color: var(--down); }
.nl-fine { position: relative; font-size: 11px !important; color: var(--muted-2) !important; margin-top: 6px !important; }

/* ---------- prose (about / legal) ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -.02em; margin: 42px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { font-size: 14.5px; color: var(--muted); line-height: 1.8; margin-bottom: 14px; }
.prose ul { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 18px; }
.prose li { position: relative; padding-left: 22px; font-size: 14px; color: #c3cee0; line-height: 1.65; }
.prose li::before {
  content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 6px;
  border-radius: 2px; transform: rotate(45deg);
  background: linear-gradient(135deg, var(--gold-lt), var(--gold-dk));
}
.prose a { color: var(--gold-lt); }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .card-grid, .link-grid { grid-template-columns: 1fr; }
  .desk-grid { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nl-card { padding: 44px 20px 38px; }
  .nl-form { flex-direction: column; }
  .nl-form .btn { width: 100%; }
  .page-hero { padding: 40px 0 34px; }
}
