/* =============================================
   CommoditiHub.ai — Landing Page Styles
   ============================================= */

:root {
  --bg: #050c17;
  --bg-2: #0a1628;
  --bg-3: #0d1d35;
  --panel: rgba(10, 22, 44, 0.82);
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --line-3: rgba(255, 255, 255, 0.18);
  --text: #eef2f8;
  --text-2: #d0daea;
  --muted: #8596ad;
  --green: #22c55e;
  --green-dim: #16a34a;
  --green-bright: #4ade80;
  --green-glow: rgba(34, 197, 94, 0.12);
  --blue: #3b82f6;
  --amber: #f59e0b;
  --red: #ef4444;
  --white: #fff;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --container: 1200px;
}

/* ---- RESET & BASE ---- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background atmosphere */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 50% at 15% 0%,
      rgba(34, 197, 94, 0.06),
      transparent
    ),
    radial-gradient(
      ellipse 60% 40% at 85% 10%,
      rgba(59, 130, 246, 0.04),
      transparent
    ),
    radial-gradient(
      ellipse 70% 60% at 50% 100%,
      rgba(34, 197, 94, 0.03),
      transparent
    );
  pointer-events: none;
  z-index: 0;
}

/* Grain overlay — DISABLED: SVG feTurbulence causes visible tile boundary
   artifacts (ghost boxes) on certain GPU/browser combinations.
   Can be re-enabled with a PNG-based noise texture instead. */
/*
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}
*/

img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  list-style: none;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
h1 {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  margin-bottom: 22px;
}
h2 {
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  margin-bottom: 16px;
}
h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
p {
  margin-bottom: 0;
}

.lead {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 56ch;
  line-height: 1.72;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.15);
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/* ---- SECTIONS ---- */
.section {
  padding: 96px 0;
  position: relative;
}

.section-line::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, var(--container));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.section-glow::after {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(34, 197, 94, 0.04),
    transparent 70%
  );
  pointer-events: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-xs);
  font-weight: 600;
  font-size: 0.94rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--green), var(--green-dim));
  color: #052e16;
  box-shadow:
    0 8px 24px rgba(34, 197, 94, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  box-shadow:
    0 14px 40px rgba(34, 197, 94, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-secondary {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--line-3);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* =============================================
   HEADER
   ============================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(24px) saturate(1.2);
  background: rgba(5, 12, 23, 0.65);
  border-bottom: 1px solid var(--line);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand span {
  color: var(--muted);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text);
}

.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.nav-actions .btn {
  min-height: 42px;
  font-size: 0.86rem;
  padding: 0 18px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-2);
  background: transparent;
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}

.mobile-menu {
  display: none !important;
  padding: 0 0 18px;
}

.mobile-menu.open {
  display: grid !important;
  gap: 4px;
}

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

/* =============================================
   HERO
   ============================================= */
.hero {
  padding: 88px 0 64px;
  position: relative;
  overflow: clip;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -10%;
  width: 60%;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(34, 197, 94, 0.07),
    transparent 65%
  );
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: -5%;
  width: 50%;
  height: 600px;
  background: radial-gradient(
    ellipse,
    rgba(59, 130, 246, 0.05),
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-copy {
  padding: 40px 0;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 14ch;
}

.hero-copy h1 .accent {
  background: linear-gradient(135deg, var(--green-bright), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust bar */
.trust-bar {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  font-size: 0.84rem;
  color: var(--muted);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.25);
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  color: var(--green);
}

/* Hero card */
.hero-card {
  position: relative;
  background: linear-gradient(
    170deg,
    rgba(255, 255, 255, 0.05) 0%,
    rgba(255, 255, 255, 0.01) 100%
  );
  border: 1px solid var(--line-2);
  border-radius: 22px;
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  min-height: 500px;
}

/* Shimmer border */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(
    170deg,
    rgba(34, 197, 94, 0.15),
    transparent 40%,
    rgba(59, 130, 246, 0.08)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Live feed */
.hero-feed {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.hero-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.live-dot {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-weight: 600;
  font-size: 0.78rem;
}

.live-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.feed-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  font-size: 0.86rem;
  transition: all 0.3s ease;
}

.feed-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
}

.commodity-name {
  font-weight: 600;
  color: var(--text);
}
.commodity-price {
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.commodity-change {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.commodity-change.up {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}
.commodity-change.down {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

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

.signal-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(6, 14, 26, 0.75);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.signal-card span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.signal-card strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

/* =============================================
   VISION SECTION
   ============================================= */
.vision {
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}

.vision::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - 2rem, var(--container));
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

/* Subtle amber/warm glow to differentiate from green operational sections */
.vision::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(
    ellipse,
    rgba(245, 158, 11, 0.03),
    transparent 65%
  );
  pointer-events: none;
}

.vision-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  max-width: 900px;
  margin: 0 auto;
}

.vision-header {
  text-align: center;
}

.vision-header h2 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  max-width: 20ch;
  margin: 0 auto 20px;
  line-height: 1.08;
}

.vision-header .lead {
  max-width: 52ch;
  margin: 0 auto;
  font-size: 1.1rem;
}

.vision-statement {
  position: relative;
  padding: 36px 40px;
  border-radius: 20px;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line-2);
  text-align: center;
}

.vision-statement::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 20%;
  right: 20%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.25),
    transparent
  );
}

.vision-quote {
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 500;
  line-height: 1.65;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.vision-quote .highlight {
  color: var(--green-bright);
}

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

.vision-pillar {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.vision-pillar:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.vision-pillar-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  margin-bottom: 18px;
}

.vision-pillar:nth-child(1) .vision-pillar-icon {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.vision-pillar:nth-child(2) .vision-pillar-icon {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.22);
}

.vision-pillar:nth-child(3) .vision-pillar-icon {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.vision-pillar h3 {
  font-size: 1.06rem;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.vision-pillar p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* =============================================
   INDUSTRIES
   ============================================= */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.industry-card {
  position: relative;
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: all 0.35s ease;
  cursor: default;
}

.industry-card:hover {
  border-color: var(--line-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.industry-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: all 0.5s ease;
}

.industry-card:hover img {
  opacity: 0.8;
  transform: scale(1.03);
}

.industry-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 12, 23, 0) 20%,
    rgba(5, 12, 23, 0.94) 100%
  );
}

.industry-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}

.industry-tag {
  display: inline-flex;
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.industry-content h3 {
  font-size: 1.12rem;
  margin-bottom: 5px;
}
.industry-content p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.flow-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 40px;
}

.flow-item {
  position: relative;
  padding: 26px 22px;
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.flow-item:hover {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}

.flow-item:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -10px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  z-index: 3;
}

.flow-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--green-glow);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: var(--green);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-display);
  margin-bottom: 18px;
  box-shadow: 0 0 16px rgba(34, 197, 94, 0.1);
}

.flow-item h3 {
  font-size: 1.04rem;
  margin-bottom: 8px;
}
.flow-item p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* =============================================
   VALUE PROPOSITION
   ============================================= */
.split-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.benefit-panel {
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.04),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.3s ease;
}

.benefit-panel:hover {
  border-color: var(--line-2);
}

.benefit-panel h3 {
  font-size: 1.4rem;
  margin-bottom: 22px;
  font-family: var(--font-display);
}

.benefit-panel:first-child h3 {
  color: var(--green-bright);
}
.benefit-panel:last-child h3 {
  color: #60a5fa;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.015);
  color: var(--text-2);
  font-size: 0.92rem;
  transition: all 0.2s ease;
}

.check-list li:hover {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-2);
}

.check-list li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.benefit-panel:last-child .check-list li::before {
  color: #60a5fa;
}

/* =============================================
   DASHBOARD
   ============================================= */
.dashboard-wrap {
  margin-top: 40px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: linear-gradient(
    180deg,
    rgba(8, 16, 33, 0.97),
    rgba(10, 22, 42, 0.98)
  );
  box-shadow:
    var(--shadow),
    0 0 80px rgba(34, 197, 94, 0.04);
  position: relative;
}

/* Top edge glow */
.dashboard-wrap::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.3),
    transparent
  );
  z-index: 2;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}

.topbar-dots {
  display: flex;
  gap: 7px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot:nth-child(1) {
  background: rgba(239, 68, 68, 0.5);
}
.dot:nth-child(2) {
  background: rgba(245, 158, 11, 0.5);
}
.dot:nth-child(3) {
  background: rgba(34, 197, 94, 0.5);
}

.topbar-center {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-display);
}

.topbar-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--muted);
}

.topbar-status .status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
  animation: pulse-dot 2s ease-in-out infinite;
}

.dashboard {
  display: grid;
  grid-template-columns: 290px 1fr 1fr;
  gap: 0;
  min-height: 460px;
}

.dash-col {
  padding: 20px;
  border-right: 1px solid var(--line);
}

.dash-col:last-child {
  border-right: 0;
}

.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.84rem;
  color: var(--text);
  font-weight: 600;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.pill-live {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.22);
}

.pill-muted {
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border: 1px solid var(--line);
}

.pill-live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

/* (Orders section removed — replaced by Input Cost Index) */

/* Market table */
.market-table {
  display: grid;
  gap: 6px;
}

.market-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  transition: all 0.25s ease;
}

.market-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-2);
}

.mkt-name {
  font-weight: 500;
}
.mkt-price {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.mkt-change {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
}

.mkt-change.up {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}
.mkt-change.down {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}

/* Chart */
.chart-area {
  margin-top: 14px;
  border-radius: var(--radius-sm);
  min-height: 150px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  position: relative;
  overflow: hidden;
  padding: 14px;
}

.chart-area canvas {
  width: 100% !important;
  height: 120px !important;
}

.chart-label {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Input Cost Index */
.input-cost-list {
  display: grid;
  gap: 8px;
}

.cost-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  font-size: 0.84rem;
  transition: all 0.25s ease;
}

.cost-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-2);
}

.cost-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.cost-name {
  font-weight: 500;
  color: var(--text-2);
}

.cost-name small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}

.cost-value {
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.cost-change {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 62px;
}

.cost-change.up {
  color: var(--red);
  background: rgba(239, 68, 68, 0.1);
}
.cost-change.down {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
}
.cost-change.flat {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.margin-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: rgba(245, 158, 11, 0.04);
  border: 1px solid rgba(245, 158, 11, 0.1);
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Export Demand */
.export-list {
  display: grid;
  gap: 8px;
}

.export-row {
  padding: 14px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  transition: all 0.25s ease;
}

.export-row:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: var(--line-2);
}

.export-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.export-top .dest {
  font-weight: 600;
  color: var(--text);
}

.export-trend {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 5px;
}

.export-trend.rising {
  background: rgba(34, 197, 94, 0.1);
  color: var(--green);
}
.export-trend.stable {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}
.export-trend.declining {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.export-commodities {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.export-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.export-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--green-dim), var(--green));
  transition: width 0.8s ease;
}

.export-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 7px;
}

/* =============================================
   METRICS
   ============================================= */
.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.metric {
  text-align: center;
  padding: 22px 16px;
  border-radius: var(--radius);
  background: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.metric:hover {
  border-color: var(--line-2);
  transform: translateY(-2px);
}

.metric strong {
  display: block;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric span {
  color: var(--muted);
  font-size: 0.86rem;
}

/* =============================================
   CTA
   ============================================= */
.cta-box {
  border-radius: 24px;
  overflow: hidden;
  padding: 72px 32px;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(
      ellipse at 30% 50%,
      rgba(34, 197, 94, 0.06),
      transparent 55%
    ),
    radial-gradient(
      ellipse at 70% 50%,
      rgba(59, 130, 246, 0.04),
      transparent 55%
    ),
    linear-gradient(180deg, rgba(10, 22, 40, 0.96), rgba(5, 12, 23, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(34, 197, 94, 0.25),
    transparent
  );
}

.cta-box .eyebrow {
  justify-content: center;
}

.cta-box p {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.cta-buttons {
  justify-content: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.86rem;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a {
  transition: color 0.2s;
}
.footer-links a:hover {
  color: var(--text);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
/* B13e + B14-hotfix: Hide all visual traces of unrevealed elements */
/* visibility: hidden hides element AND all children completely — */
/* stronger than border-color: transparent which only affects the element itself */
.fade-up:not(.show) {
  pointer-events: none;
  visibility: hidden;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.fade-up:nth-child(2) {
  transition-delay: 0.08s;
}
.fade-up:nth-child(3) {
  transition-delay: 0.16s;
}
.fade-up:nth-child(4) {
  transition-delay: 0.24s;
}

@keyframes row-flash {
  0% {
    background: rgba(34, 197, 94, 0.06);
  }
  100% {
    background: rgba(255, 255, 255, 0.02);
  }
}

.row-updated {
  animation: row-flash 1.2s ease-out;
}

/* =============================================
   DASHBOARD TABS (mobile-only)
   ============================================= */
.dashboard-tabs {
  display: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */

/* ---- Tablet (≤1080px) ---- */
@media (max-width: 1080px) {
  .hero-grid,
  .industry-grid,
  .flow-strip,
  .split-grid,
  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard .dash-col:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-right: 0;
  }

  .flow-item:not(:last-child)::after {
    display: none;
  }

  .vision-pillars {
    grid-template-columns: 1fr 1fr;
  }
  .vision-pillars .vision-pillar:last-child {
    grid-column: 1 / -1;
  }
}

/* ---- Mobile (≤820px) ---- */
@media (max-width: 820px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  /* ---- Global spacing reduction ---- */
  .section {
    padding: 56px 0;
  }
  .vision {
    padding: 56px 0;
  }

  /* ---- HERO — tighter, less padding ---- */
  .hero {
    padding: 28px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding: 12px 0 0;
  }

  .hero-copy .lead {
    font-size: 0.96rem;
  }

  .btn-row {
    margin-top: 20px;
    flex-direction: column;
  }
  .btn-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Trust bar — 2x2 grid ---- */
  .trust-bar {
    margin-top: 28px;
    padding-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .trust-item {
    font-size: 0.78rem;
  }

  /* ---- Hero card — compact ---- */
  .hero-card {
    min-height: auto;
  }
  .hero-card-inner {
    padding: 16px;
  }

  /* Hero feed — only show first 3 items on mobile */
  .hero-feed .feed-item:nth-child(n + 4) {
    display: none;
  }

  .feed-item {
    padding: 8px 10px;
    font-size: 0.8rem;
    gap: 8px;
  }

  .signal-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  .signal-card {
    padding: 10px;
  }
  .signal-card span {
    font-size: 0.68rem;
  }
  .signal-card strong {
    font-size: 0.82rem;
  }

  /* ---- Vision — tighter ---- */
  .vision-layout {
    gap: 36px;
  }

  .vision-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
  .vision-header .lead {
    font-size: 0.96rem;
  }

  .vision-statement {
    padding: 22px 18px;
  }
  .vision-quote {
    font-size: 1rem;
  }

  .vision-pillars {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .vision-pillars .vision-pillar:last-child {
    grid-column: auto;
  }
  .vision-pillar {
    padding: 20px 18px;
  }
  .vision-pillar-icon {
    margin-bottom: 12px;
  }
  .vision-pillar p {
    font-size: 0.86rem;
  }

  /* ---- Industries — horizontal scroll cards ---- */
  .industry-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    margin-top: 28px;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .industry-grid::-webkit-scrollbar {
    display: none;
  }
  .industry-card {
    flex: 0 0 78%;
    scroll-snap-align: start;
    min-height: 220px;
  }

  /* ---- How It Works — 2x2 grid ---- */
  .flow-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 28px;
  }
  .flow-item {
    padding: 20px 16px;
  }
  .flow-number {
    width: 30px;
    height: 30px;
    font-size: 0.8rem;
    margin-bottom: 12px;
  }
  .flow-item h3 {
    font-size: 0.95rem;
  }
  .flow-item p {
    font-size: 0.82rem;
  }

  /* ---- Value Proposition ---- */
  .split-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }
  .benefit-panel {
    padding: 22px 18px;
  }
  .benefit-panel h3 {
    font-size: 1.15rem;
    margin-bottom: 14px;
  }
  .check-list li {
    padding: 10px 12px;
    font-size: 0.86rem;
    gap: 10px;
  }

  /* ---- DASHBOARD — tabbed interface on mobile ---- */
  .dashboard-tabs {
    display: flex;
    gap: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--line);
  }

  .dash-tab {
    flex: 1;
    padding: 10px 8px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: all 0.25s ease;
    white-space: nowrap;
  }

  .dash-tab.active {
    background: rgba(34, 197, 94, 0.08);
    color: var(--green);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.06);
  }

  .dashboard {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dash-col {
    border-right: 0;
    border-top: none;
    padding: 16px;
    display: none;
  }

  .dash-col.mob-active {
    display: block;
  }

  /* First tab active by default */
  .dash-col:first-child {
    border-top: 0;
  }

  .dashboard-topbar {
    padding: 10px 14px;
  }
  .topbar-center {
    font-size: 0.72rem;
  }
  .topbar-status {
    font-size: 0.7rem;
  }
  .topbar-dots .dot {
    width: 8px;
    height: 8px;
  }

  /* Compact cost rows on mobile */
  .cost-row {
    padding: 10px 10px;
    gap: 8px;
    font-size: 0.8rem;
  }
  .cost-icon {
    width: 28px;
    height: 28px;
    font-size: 0.78rem;
  }
  .cost-name small {
    font-size: 0.66rem;
  }
  .cost-change {
    font-size: 0.7rem;
    padding: 2px 7px;
    min-width: 54px;
  }

  .margin-note {
    font-size: 0.72rem;
    padding: 10px 12px;
  }

  /* Compact market rows */
  .market-row {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
  .mkt-change {
    font-size: 0.72rem;
    padding: 2px 7px;
  }

  .chart-area {
    padding: 10px;
    min-height: 130px;
  }

  /* Compact export rows */
  .export-row {
    padding: 10px 12px;
  }
  .export-top {
    font-size: 0.8rem;
  }
  .export-commodities {
    font-size: 0.74rem;
    margin-bottom: 8px;
  }
  .export-meta {
    font-size: 0.68rem;
  }

  /* ---- Metrics — 2x2 grid ---- */
  .metric-row {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .metric {
    padding: 16px 12px;
  }
  .metric span {
    font-size: 0.78rem;
  }

  /* ---- CTA ---- */
  .cta-box {
    padding: 44px 20px;
    border-radius: 18px;
  }
  .cta-box p {
    font-size: 0.92rem;
  }
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Footer ---- */
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 20px;
  }
  .footer {
    padding: 20px 0 32px;
    font-size: 0.8rem;
  }
}

/* ---- Small phones (≤400px) ---- */
@media (max-width: 400px) {
  .container {
    width: calc(100% - 1.25rem);
  }

  h1 {
    font-size: 2rem;
  }

  .trust-bar {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .signal-grid {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .signal-card:last-child {
    grid-column: 1 / -1;
  }

  .industry-card {
    flex: 0 0 88%;
  }

  .flow-strip {
    grid-template-columns: 1fr;
  }

  .metric-row {
    grid-template-columns: 1fr 1fr;
  }

  .dash-tab {
    font-size: 0.72rem;
    padding: 8px 6px;
  }
}

