/* =========================================================
   Methanol Market Intelligence — Premium Corporate Styling
   Light theme only.
   ========================================================= */

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --primary: #1e3a8a;
  --primary-600: #1e40af;
  --accent: #2563eb;
  --green: #16a34a;
  --orange: #f59e0b;
  --red: #dc2626;
  --text: #111827;
  --text-soft: #6b7280;
  --border: #e5e7eb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-sm: 0 4px 14px rgba(17, 24, 39, 0.05);
  --shadow-md: 0 10px 30px rgba(17, 24, 39, 0.06);
  --shadow-lg: 0 20px 45px rgba(30, 58, 138, 0.08);
  --container: 1240px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    background 0.3s var(--ease);
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-xs);
  background: rgba(255, 255, 255, 0.9);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  border-radius: 8px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.brand-sub {
  font-size: 11px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  gap: 34px;
}
.main-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.today-date {
  font-variant-numeric: tabular-nums;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.08);
  color: var(--green);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
}
.live-badge.sm {
  padding: 3px 8px;
  font-size: 10px;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  animation: pulseDot 1.6s infinite;
}
@keyframes pulseDot {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(22, 163, 74, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
  }
}
.market-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.06);
  color: var(--primary);
  font-weight: 600;
  font-size: 11px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f4f7fd 55%,
    var(--bg) 100%
  );
  border-bottom: 1px solid var(--border);
}
.hero-bg .shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
}
.shape-1 {
  width: 420px;
  height: 420px;
  background: rgba(37, 99, 235, 0.12);
  top: -120px;
  right: -80px;
  animation: float 14s ease-in-out infinite;
}
.shape-2 {
  width: 320px;
  height: 320px;
  background: rgba(30, 58, 138, 0.09);
  bottom: -140px;
  left: -60px;
  animation: float 18s ease-in-out infinite reverse;
}
.shape-3 {
  width: 220px;
  height: 220px;
  background: rgba(245, 158, 11, 0.08);
  top: 40%;
  left: 55%;
  animation: float 22s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(20px, -30px);
  }
}
.hero-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(30, 58, 138, 0.06);
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0 0 24px;
}
.hero-title {
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  background: linear-gradient(180deg, #0b1a45 0%, #1e3a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 auto 36px;
}
.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.22);
}
.btn-primary:hover {
  background: var(--primary-600);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(30, 58, 138, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: #fff;
  border-color: #d5dbe4;
  box-shadow: var(--shadow-xs);
}
.ripple .ripple-wave {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.35);
  animation: ripple 0.7s linear;
  pointer-events: none;
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---------- Info Strip ---------- */
.info-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.info-track {
  display: flex;
  gap: 44px;
  padding: 14px 0;
  white-space: nowrap;
  animation: scrollX 38s linear infinite;
  width: max-content;
}
.info-track span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.info-track span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@keyframes scrollX {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Main Layout ---------- */
.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  padding: 56px 28px 80px;
  align-items: start;
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 32px;
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}
.card-title {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.card-meta {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-soft);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.pill-warn {
  color: var(--orange);
  background: rgba(245, 158, 11, 0.1);
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: pulseDot 1.8s infinite;
}

/* ---------- Under Construction Block ---------- */
.uc-block {
  text-align: center;
  padding: 24px 12px 8px;
}
.uc-illustration {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 28px;
  height: auto;
}
.floaty {
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.uc-title {
  font-size: 26px;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 12px;
}
.uc-text {
  color: var(--text-soft);
  max-width: 480px;
  margin: 0 auto 28px;
  font-size: 15px;
}
.uc-progress {
  width: 220px;
  height: 6px;
  margin: 0 auto;
  background: #eef1f6;
  border-radius: 999px;
  overflow: hidden;
}
.uc-progress-bar {
  display: block;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 999px;
  animation: ucBar 2.4s ease-in-out infinite;
}
@keyframes ucBar {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(300%);
  }
}

/* ---------- Section headers ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 56px 0 22px;
  gap: 16px;
}
.section-title {
  font-size: 24px;
}
.section-sub {
  color: var(--text-soft);
  font-size: 14px;
  margin: 6px 0 0;
}
.link-more {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- News Grid ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d9dfe8;
}
.news-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef1f6;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.news-card:hover .news-thumb img {
  transform: scale(1.06);
}
.news-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.news-date {
  font-size: 11.5px;
  color: var(--text-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.news-title {
  font-size: 16.5px;
  line-height: 1.35;
  margin-bottom: 8px;
}
.news-summary {
  font-size: 13.5px;
  color: var(--text-soft);
  margin-bottom: 16px;
  flex: 1;
}
.news-read {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  position: relative;
}
.news-read::after {
  content: " →";
  transition: transform 0.25s var(--ease);
  display: inline-block;
}
.news-read:hover::after {
  transform: translateX(4px);
}

/* ---------- Right sidebar cards ---------- */
.col-right {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 92px;
}
.side-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.side-head h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.tag {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(30, 58, 138, 0.06);
  color: var(--primary);
}

/* ---------- Vertical Marquee ---------- */
.marquee {
  position: relative;
  height: 460px;
  overflow: hidden;
  mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 12%,
    #000 88%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0,
    #000 12%,
    #000 88%,
    transparent 100%
  );
}
.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  will-change: transform;
  animation: scrollY linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes scrollY {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

/* Price ticker items */
.ticker-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.ticker-item.alt {
  background: #f9fbff;
}
.ticker-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.ticker-name {
  font-weight: 600;
  font-size: 13.5px;
}
.ticker-price {
  font-weight: 700;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
  color: var(--primary);
  text-align: right;
}
.ticker-meta {
  font-size: 11.5px;
  color: var(--text-soft);
}
.ticker-change {
  font-size: 11.5px;
  font-weight: 700;
  text-align: right;
}
.ticker-change.up {
  color: var(--green);
}
.ticker-change.down {
  color: var(--red);
}

/* Exhibition items */
.exh-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.exh-item.alt {
  background: #f9fbff;
}
.exh-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.exh-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
}
.exh-date {
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}
.exh-venue {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-bottom: 6px;
}
.exh-desc {
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

/* ---------- Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.brand.small .brand-title {
  font-size: 14px;
}
.brand.small {
  margin-bottom: 14px;
}
.foot-text {
  color: var(--text-soft);
  font-size: 13.5px;
  margin: 0;
  max-width: 340px;
}
.site-footer h4 {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}
.foot-links li {
  margin-bottom: 10px;
}
.foot-links a {
  font-size: 13.5px;
  color: var(--text-soft);
  transition: color 0.2s;
}
.foot-links a:hover {
  color: var(--primary);
}
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: 12.5px;
  color: var(--text-soft);
  flex-wrap: wrap;
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.28);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease),
    background 0.2s;
  z-index: 60;
}
.back-to-top.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.back-to-top:hover {
  background: var(--primary-600);
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
  .col-right {
    position: static;
  }
}
@media (max-width: 860px) {
  .main-nav {
    display: none;
  }
  .header-meta .today-date,
  .header-meta .market-status {
    display: none;
  }
  .hero {
    padding: 72px 0 64px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .card {
    padding: 24px;
  }
  .section-head {
    margin-top: 40px;
  }
}
@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero-title {
    font-size: 40px;
  }
  .hero-sub {
    font-size: 15.5px;
  }
  .card {
    padding: 20px;
  }
}