/* Mellstroy Fresh Compact V3 — public styles */
:root {
  --bg: #111214;
  --panel: #18191c;
  --panel-2: #202126;
  --ink: #f3f0e8;
  --muted: #aaa7a1;
  --line: #34343b;
  --accent: #b89cff;
  --accent-2: #d8caff;
  --paper: #ece9e2;
  --paper-ink: #1a1a1d;
  --success: #bce7c8;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; background: var(--paper); color: var(--paper-ink); border-radius: 10px; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(17,18,20,.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { max-width: 1180px; margin: 0 auto; min-height: 64px; padding: 0 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; text-decoration: none; }
.brand img { width: 72px; height: auto; max-height: 54px; object-fit: contain; }
.nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav a { color: #c8c5bf; text-decoration: none; font-size: 14px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.header-cta, .button-primary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--paper); color: var(--paper-ink); text-decoration: none; font-weight: 750;
  border: 1px solid var(--paper); transition: transform .18s ease, opacity .18s ease;
}
.header-cta:hover, .button-primary:hover { transform: translateY(-1px); }
.menu-button { display: none; margin-left: auto; background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.shell { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.hero { padding: 86px 0 54px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 52px; align-items: end; }
.kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 800; }
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
h1 { margin: 0; font-size: clamp(42px,6vw,78px); line-height: .98; letter-spacing: -.045em; max-width: 920px; }
.hero-lead { max-width: 760px; margin: 24px 0 0; color: #c6c2bb; font-size: clamp(18px,2vw,22px); line-height: 1.55; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.button-ghost { display:inline-flex; min-height:44px; align-items:center; justify-content:center; padding:0 18px; border-radius:999px; border:1px solid var(--line); text-decoration:none; color:#d7d3cc; }
.fact-rail { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fact { background: var(--panel); padding: 18px 20px; }
.fact b { display: block; font-size: 26px; line-height: 1.15; }
.fact span { color: var(--muted); font-size: 13px; }
.disclosure { margin-top: 18px; color: #8f8c86; font-size: 13px; }
.section { padding: 58px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .75fr 1.25fr; gap: 34px; margin-bottom: 28px; align-items: start; }
.section-head h2 { margin: 0; font-size: clamp(28px,4vw,46px); line-height: 1.05; letter-spacing: -.03em; }
.section-head p { margin: 0; color: #bbb7b0; max-width: 760px; }
.content-grid { display: grid; grid-template-columns: repeat(12,1fr); gap: 18px; }
.card { grid-column: span 4; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card.wide { grid-column: span 8; }
.card.full { grid-column: 1 / -1; }
.card h3 { margin: 0 0 10px; font-size: 19px; }
.card p { margin: 0; color: #b9b5ae; }
.card p + p { margin-top: 12px; }
.route-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.route-list li { border-bottom: 1px solid var(--line); }
.route-list a { display: grid; grid-template-columns: 190px 1fr auto; gap: 24px; align-items: center; padding: 18px 0; text-decoration: none; }
.route-list b { font-size: 16px; }
.route-list span { color: var(--muted); }
.route-list em { color: var(--accent-2); font-style: normal; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { text-align: left; vertical-align: top; padding: 15px 17px; border-bottom: 1px solid var(--line); }
th { color: #e7e3dc; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; background: #1c1d21; }
td { color: #bbb7b0; }
tr:last-child td { border-bottom: 0; }
.value { color: var(--ink); font-weight: 750; }
.note { padding: 18px 20px; border-left: 3px solid var(--accent); background: rgba(184,156,255,.08); color: #c9c4d0; border-radius: 0 14px 14px 0; }
.checklist { margin: 0; padding-left: 20px; color: #bbb7b0; }
.checklist li + li { margin-top: 8px; }
.faq { display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 0 18px; }
summary { cursor: pointer; padding: 17px 0; font-weight: 750; }
details p { margin: 0 0 18px; color: #b8b4ad; }
.source-note { color: #8e8b85; font-size: 12px; margin-top: 14px; }
.source-note a { color: #bab5c8; }
.end-cta { margin: 60px 0; padding: 34px; border-radius: 24px; background: var(--paper); color: var(--paper-ink); display: flex; gap: 30px; justify-content: space-between; align-items: center; }
.end-cta h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.03em; }
.end-cta p { margin: 0; color: #5d5a57; }
.end-cta .button-primary { background: #161719; color: #fff; border-color: #161719; flex: 0 0 auto; }
.site-footer { padding: 30px 0 44px; color: #8c8983; }
.footer-inner { display: flex; gap: 20px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: #aaa7a0; text-decoration: none; }
.breadcrumbs { padding-top: 28px; color: #8f8c86; font-size: 13px; }
.breadcrumbs a { color: #bcb8b1; text-decoration: none; }
.article-hero { padding: 48px 0 36px; }
.article-hero h1 { font-size: clamp(38px,5vw,64px); max-width: 980px; }
.article-hero .hero-lead { font-size: 19px; max-width: 820px; }
@media (max-width: 940px) {
  .nav { display:none; position:absolute; left:16px; right:16px; top:66px; padding:16px; background:#17181b; border:1px solid var(--line); border-radius:14px; flex-direction:column; align-items:stretch; }
  .nav.is-open { display:flex; }
  .menu-button { display:block; }
  .header-cta { margin-left: 0; }
  .hero-grid, .section-head { grid-template-columns: 1fr; }
  .fact-rail { grid-template-columns: repeat(2,1fr); }
  .card, .card.wide { grid-column: span 6; }
}
@media (max-width: 640px) {
  .header-inner { min-height: 58px; padding: 0 14px; gap: 10px; }
  .brand img { width: 56px; max-height: 44px; }
  .header-cta { min-height: 38px; padding: 0 14px; font-size: 14px; }
  .shell { padding: 0 16px; }
  .hero { padding: 52px 0 38px; }
  h1 { font-size: 43px; }
  .article-hero h1 { font-size: 40px; }
  .fact-rail { grid-template-columns: 1fr 1fr; }
  .fact b { font-size: 21px; }
  .card, .card.wide, .card.full { grid-column: 1 / -1; }
  .route-list a { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .route-list span { grid-column: 1 / -1; }
  .end-cta { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Fresh V3 — editorial trust / source methodology */
.trust-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(184,156,255,.055), rgba(255,255,255,.015));
  overflow: hidden;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.trust-item {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}
.trust-item:last-child { border-right: 0; }
.trust-item b { display: block; margin: 7px 0 7px; font-size: 17px; line-height: 1.25; }
.trust-item p { margin: 0; color: #aaa7a1; font-size: 14px; line-height: 1.6; }
.trust-label {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(184,156,255,.28);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(184,156,255,.07);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.trust-foot {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 17px 22px;
  border-top: 1px solid var(--line);
  color: #98958f;
  font-size: 13px;
}
.trust-foot p { margin: 0; }
.trust-foot a { color: var(--accent-2); text-decoration: none; white-space: nowrap; }
.evidence-table td:first-child { color: var(--ink); font-weight: 700; }
.evidence-status { white-space: nowrap; font-weight: 700; color: var(--accent-2); }
@media (max-width: 940px) {
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 19px; }
  .trust-item:nth-child(2) { border-right: 0; }
  .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .trust-item:last-child { border-bottom: 0; }
  .trust-foot { align-items: flex-start; flex-direction: column; gap: 8px; padding: 15px 19px; }
}



/* Fresh V4 — primary-source cards */
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.source-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 168px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.source-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184,156,255,.55);
  background: #1c1d21;
}
.source-card-static { cursor: default; }
.source-card-static:hover { transform: none; border-color: var(--line); background: var(--panel); }
.source-type {
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.source-card b { font-size: 17px; line-height: 1.3; }
.source-desc { color: var(--muted); font-size: 13px; line-height: 1.55; }
.source-section .source-note { margin-top: 14px; }
@media (max-width: 940px) { .source-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .source-grid { grid-template-columns: 1fr; } .source-card { min-height: 0; } }

/* Fresh V4.2 — livelier premium background, CSS-only and lightweight */
:root {
  --bg: #0d0e12;
  --panel: rgba(24, 25, 30, .82);
  --panel-2: rgba(31, 32, 39, .86);
  --line: rgba(255, 255, 255, .105);
  --accent: #a66cff;
  --accent-2: #d8c8ff;
  --violet-glow: rgba(126, 55, 255, .24);
  --blue-glow: rgba(70, 105, 255, .15);
  --pink-glow: rgba(201, 77, 255, .11);
}

html {
  background: #090a0d;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  background:
    radial-gradient(ellipse 72% 34% at 8% 2%, rgba(135, 60, 255, .15), transparent 70%),
    radial-gradient(ellipse 62% 30% at 96% 18%, rgba(70, 102, 255, .10), transparent 72%),
    radial-gradient(ellipse 58% 28% at 56% 72%, rgba(180, 65, 255, .07), transparent 74%),
    linear-gradient(180deg, #0e0f13 0%, #0b0c10 48%, #090a0d 100%);
}

/* Soft ambient light + technical grid. No image assets or canvas. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px),
    radial-gradient(circle at 12% 12%, var(--violet-glow), transparent 25%),
    radial-gradient(circle at 88% 26%, var(--blue-glow), transparent 22%),
    radial-gradient(circle at 58% 78%, var(--pink-glow), transparent 24%);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  opacity: .78;
}

/* Very light dotted grain to keep large dark areas from looking flat. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .055;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.62) 0 .55px, transparent .8px),
    radial-gradient(circle, rgba(255,255,255,.42) 0 .5px, transparent .75px);
  background-position: 0 0, 13px 17px;
  background-size: 31px 31px, 37px 37px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-header {
  background: rgba(12, 13, 17, .78);
  border-bottom-color: rgba(255,255,255,.085);
  box-shadow: 0 10px 34px rgba(0,0,0,.16);
}

.hero,
.article-hero {
  position: relative;
}

.hero::before,
.article-hero::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: min(720px, 72vw);
  height: 360px;
  left: -130px;
  top: 5px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(151, 76, 255, .16), rgba(76, 88, 255, .055) 45%, transparent 72%);
  filter: blur(18px);
  transform: translate3d(0,0,0);
  animation: mellAmbient 13s ease-in-out infinite alternate;
}

@keyframes mellAmbient {
  from { transform: translate3d(-10px, -5px, 0) scale(.98); opacity: .78; }
  to { transform: translate3d(22px, 12px, 0) scale(1.05); opacity: 1; }
}

/* More depth without changing the content structure. */
.fact-rail,
.card,
.table-wrap,
details,
.trust-panel,
.source-card {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 45px rgba(0,0,0,.13), inset 0 1px 0 rgba(255,255,255,.025);
}

.card,
details,
.source-card,
.fact {
  background: linear-gradient(180deg, rgba(27, 28, 34, .88), rgba(21, 22, 27, .82));
}

.table-wrap,
.trust-panel {
  background: linear-gradient(180deg, rgba(24, 25, 31, .86), rgba(17, 18, 23, .82));
}

th {
  background: rgba(31, 32, 39, .92);
}

.section {
  border-bottom-color: rgba(255,255,255,.085);
}

.button-primary,
.header-cta {
  box-shadow: 0 8px 24px rgba(0,0,0,.18), 0 0 0 1px rgba(255,255,255,.22) inset;
}

.button-ghost {
  background: rgba(255,255,255,.018);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.kicker::before {
  box-shadow: 0 0 16px rgba(166,108,255,.65);
}

.end-cta {
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

.end-cta::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -95px;
  top: -120px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(151,76,255,.20), transparent 68%);
}

@media (max-width: 940px) {
  .nav {
    background: rgba(18, 19, 24, .96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }
}

@media (max-width: 640px) {
  body::before {
    background-size: 54px 54px, 54px 54px, auto, auto, auto;
    opacity: .58;
  }
  body::after { opacity: .035; }
  .hero::before,
  .article-hero::before {
    width: 92vw;
    height: 280px;
    left: -28vw;
    top: 10px;
    filter: blur(22px);
  }
  .fact-rail,
  .card,
  .table-wrap,
  details,
  .trust-panel,
  .source-card {
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .article-hero::before { animation: none !important; }
}
