/* T.E.X.O.T. – colours from the corp logo: black, silver, stars from white to warm gold and bronze */
:root {
  --bg: #08080a; --panel: #121210; --panel2: #191814; --line: #2b2820; --tx: #ecebe6; --mu: #9b968a;
  --gold: #e3c27a; --gold2: #fedd8d; --bronze: #91774c; --ok: #7fbf8a; --bad: #e07b6a; --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--gold); }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; background: rgba(11, 14, 18, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .06em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 6px; }
.brand span { background: linear-gradient(90deg, #ffffff 0%, #ffffe9 30%, var(--gold2) 70%, var(--bronze) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 17px; }
.top nav { display: flex; gap: 20px; flex-wrap: wrap; }
.top nav a { color: var(--mu); text-decoration: none; font-size: 14px; }
.top nav a:hover { color: var(--tx); }
/* the content column on a darkened band, the wallpaper stays visible beside it */
main, footer { max-width: 1040px; margin: 0 auto; background: rgba(8, 8, 10, .62); box-shadow: 0 0 60px 30px rgba(8, 8, 10, .45); }
main { padding: 0 54px 40px; }
section { padding: 40px 0 8px; border-bottom: 1px solid var(--line); }
section:last-child { border-bottom: 0; }
h1 { font-size: 44px; line-height: 1.1; margin: 6px 0 14px; background: linear-gradient(90deg, #ffffff 0%, #ffffe9 35%, var(--gold2) 75%, var(--bronze) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: 26px; margin: 0 0 12px; }
h3 { font-size: 18px; margin: 28px 0 8px; }
.hero { padding-top: 56px; }
.hero-top { display: flex; align-items: center; gap: 28px; }
.hero-top img { width: 132px; height: 132px; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 0 40px rgba(254, 221, 141, .12); flex: none; }
.kicker { color: var(--gold); text-shadow: 0 1px 4px rgba(0, 0, 0, .9); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; margin: 0; }
.lead { font-size: 19px; color: #c9d1da; max-width: 680px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 28px 0 30px; }
.card { display: flex; flex-direction: column; gap: 4px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-top: 2px solid var(--bronze); border-radius: var(--r); color: var(--tx); text-decoration: none; }
.card:hover { border-top-color: var(--gold2); }
.card:hover { background: var(--panel2); }
.card b { font-size: 18px; }
.card span { color: var(--mu); font-size: 14px; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
.note { color: var(--mu); font-size: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.cta { font-size: 18px; }

/* the background: one EVE wallpaper (WebP, lossless, 1920 x 1080), fixed over the whole screen at 55 % opacity; bg.js picks
   one of the four at random on every load */
html::before { content: ""; position: fixed; inset: 0; z-index: -1; background-position: center; background-size: cover; background-repeat: no-repeat; opacity: .55; }
html.bg-1::before { background-image: url(img/bg-1.webp); }
html.bg-2::before { background-image: url(img/bg-2.webp); }
html.bg-3::before { background-image: url(img/bg-3.webp); }
html.bg-4::before { background-image: url(img/bg-4.webp); }
body { background: transparent; }
html { background: var(--bg); }
h2, h3, p, li { text-shadow: 0 1px 4px rgba(0, 0, 0, .85); }
section { border-bottom-color: rgba(255, 255, 255, .08); }
.card, .calc, .note { background-color: rgba(18, 18, 16, .88); }

/* buyback calculator */
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 18px 0; }
.calc label { display: block; font-weight: 600; margin-bottom: 8px; }
.calc label small { font-weight: 400; color: var(--mu); }
textarea { width: 100%; background: var(--bg); color: var(--tx); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: 14px/1.5 Consolas, "Cascadia Mono", monospace; resize: vertical; }
textarea:focus { outline: 1px solid var(--bronze); }
.row { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
button { font: inherit; font-size: 15px; border-radius: 8px; padding: 8px 18px; cursor: pointer; border: 1px solid var(--line); background: transparent; color: var(--tx); }
button.primary { background: linear-gradient(180deg, var(--gold2), #c9a35e); border-color: #c9a35e; color: #15120b; font-weight: 700; }
button.primary:hover { background: linear-gradient(180deg, #ffe9b0, var(--gold2)); }
button.ghost:hover { border-color: var(--mu); }
button:disabled { opacity: .5; cursor: default; }
.status { color: var(--mu); font-size: 14px; }
.status.err { color: var(--bad); }
.total { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin: 18px 0 12px; padding: 16px; background: var(--panel2); border: 1px solid var(--bronze); border-radius: var(--r); }
.total .v { font-size: 30px; font-weight: 700; color: var(--gold2); }
.total .t { color: var(--mu); font-size: 14px; }
.total .t b { color: var(--tx); }
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
th { color: var(--mu); font-weight: 600; font-size: 13px; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
tr.no td { color: var(--mu); }
td .tag { font-size: 12px; padding: 1px 7px; border-radius: 9px; background: #2a1a16; color: var(--bad); }
td .tag.part { background: #262014; color: var(--gold2); }

footer { padding: 24px 54px 32px; color: var(--mu); font-size: 13px; border-top: 1px solid var(--line); }
footer .legal { font-size: 11px; opacity: .8; }

@media (max-width: 700px) {
  .top { padding: 10px 16px; flex-direction: column; align-items: flex-start; gap: 6px; }
  main { padding: 0 16px 32px; }
  footer { padding: 20px 16px 28px; }
  main, footer { box-shadow: none; }
  h1 { font-size: 32px; }
  .cards { grid-template-columns: 1fr; }
  .hero { padding-top: 32px; }
  .hero-top { flex-direction: column; align-items: flex-start; gap: 14px; }
  .hero-top img { width: 96px; height: 96px; }
}
