:root {
  --bg: #050505;
  --bg-2: #0b0f12;
  --panel: #111418;
  --panel-2: #171b20;
  --ink: #f4f7fb;
  --muted: #b8c0c9;
  --soft: #eef2f6;
  --gold: #f2c94c;
  --teal: #14f1c7;
  --red: #ff4d4d;
  --line: rgba(255, 255, 255, 0.12);
  --gold-line: rgba(242, 201, 76, 0.42);
  --teal-line: rgba(20, 241, 199, 0.34);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.44);
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  line-height: 1.6;
}

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

code {
  color: var(--teal);
  background: rgba(20, 241, 199, 0.08);
  border: 1px solid var(--teal-line);
  padding: 2px 7px;
  border-radius: 5px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 5, 5, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 215px;
}

.logo-image {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--gold-line);
  background: #050505;
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.brand-lockup strong {
  display: block;
  font-size: 0.92rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-lockup span {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e1e5ea;
  font-size: 0.92rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover {
  color: var(--teal);
  border-color: var(--teal);
}

.menu-toggle {
  display: none;
  min-height: 42px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 6px;
  padding: 9px 12px;
  font-weight: 900;
}

.section,
.hero {
  padding: 86px 0;
}

.section-dark {
  background:
    linear-gradient(135deg, rgba(242,201,76,0.11), transparent 30%),
    linear-gradient(315deg, rgba(20,241,199,0.08), transparent 34%),
    #07090b;
  border-bottom: 1px solid var(--line);
}

.section-muted {
  background: #0a0d10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-grid,
.exchange-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 42px;
  align-items: center;
}

.hero-copy h1,
.exchange-copy h1,
.hero h1 {
  font-size: 4.8rem;
  line-height: 0.94;
  letter-spacing: 0;
  text-transform: uppercase;
  margin: 10px 0 20px;
}

.hero-subtitle {
  font-size: 1.45rem;
  color: var(--gold);
  font-weight: 900;
  margin-bottom: 14px;
  max-width: 780px;
}

.hero-text,
.section-heading p,
.card p,
.brand-card p,
.product-card p,
.coupon-card p,
.post-card p,
.social-card p {
  color: var(--muted);
}

.eyebrow {
  color: var(--teal);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 18px;
  border-radius: 6px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
  cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gold); color: #050505; }
.btn-secondary { background: var(--teal); color: #03110e; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); }

.btn-small {
  min-height: 40px;
  padding: 10px 12px;
  font-size: 0.88rem;
}

.hero-panel {
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.logo-panel { text-align: center; }

.home-hero-logo,
.brand-logo-hero {
  width: min(430px, 82vw);
  border-radius: var(--radius);
  margin: 0 auto 18px;
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow);
  background: #050505;
}

.signal-strip,
.exchange-ticker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.signal-strip span,
.exchange-ticker span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  border-radius: 6px;
  padding: 8px 11px;
  color: #dfe5ec;
  font-weight: 800;
  font-size: 0.9rem;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: 3.15rem;
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 12px;
  max-width: 820px;
}

.split-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.three-grid,
.product-grid,
.coupon-grid,
.post-grid,
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card,
.brand-card,
.product-card,
.coupon-card,
.post-card,
.social-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.018)), var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 184px;
}

.card h3,
.brand-card h3,
.product-card h3,
.coupon-card h3,
.post-card h3,
.social-card h3 {
  color: var(--ink);
  font-size: 1.28rem;
  margin-bottom: 10px;
}

.card-kicker {
  display: inline-block;
  color: #050505 !important;
  background: var(--teal);
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 900;
  margin-bottom: 14px;
}

.shop-band {
  background:
    linear-gradient(90deg, rgba(242,201,76,0.08), transparent 24%),
    linear-gradient(270deg, rgba(20,241,199,0.08), transparent 26%),
    #07090b;
}

.stock-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.stock-tile {
  min-height: 92px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 16px;
}

.stock-tile strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--gold);
}

.stock-tile span {
  display: block;
  color: var(--muted);
  margin-top: 6px;
  font-size: 0.9rem;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(242,201,76,0.18), transparent 34%),
    linear-gradient(315deg, rgba(20,241,199,0.11), transparent 40%);
  opacity: 0.95;
}

.product-card > * {
  position: relative;
  z-index: 1;
}

.product-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill,
.stock-pill,
.coupon-code {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.pill {
  color: var(--teal) !important;
  border: 1px solid var(--teal-line);
  background: rgba(20, 241, 199, 0.08);
}

.stock-pill {
  color: #050505;
  background: var(--gold);
  white-space: nowrap;
}

.stock-pill.low { background: var(--red); color: white; }
.stock-pill.out { background: #5b6169; color: white; }

.product-visual {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px solid rgba(255,255,255,0.12);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    rgba(0,0,0,0.2);
  background-size: 18px 18px;
  border-radius: var(--radius);
  text-align: center;
  padding: 14px;
}

.product-visual strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.product-visual span {
  color: var(--teal);
  font-weight: 900;
  font-size: 0.78rem;
  margin-top: 6px;
}

.price-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0;
}

.price-row span,
.shop-meta {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}

.shop-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.shop-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.muted-small {
  color: var(--muted) !important;
  font-size: 0.9rem;
}

.coupon-card {
  border-color: rgba(242, 201, 76, 0.28);
}

.coupon-code {
  color: #050505 !important;
  background: var(--gold);
  margin-bottom: 12px;
}

.social-card {
  min-height: 152px;
}

.social-card .platform {
  color: var(--teal);
  font-weight: 900;
  margin-bottom: 8px;
}

.social-card a,
.post-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--gold);
  font-weight: 900;
}

.social-posts {
  margin-top: 18px;
}

.exchange-hero {
  padding: 72px 0 28px;
  background:
    linear-gradient(120deg, rgba(242,201,76,0.13), transparent 32%),
    linear-gradient(300deg, rgba(20,241,199,0.11), transparent 36%),
    #07090b;
  border-bottom: 1px solid var(--line);
}

.exchange-command {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255,255,255,0.045);
  box-shadow: var(--shadow);
}

.command-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.command-line strong {
  color: var(--gold);
}

.command-line span {
  color: var(--muted);
  text-align: right;
}

.process-section {
  background: #080a0c;
}

.contact-band {
  border-top: 1px solid var(--gold-line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.site-footer {
  padding: 34px 0;
  border-top: 1px solid var(--line);
  background: #050505;
  color: #aeb6c0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .hero-grid,
  .exchange-hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-grid,
  .coupon-grid,
  .post-grid,
  .social-grid,
  .three-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stock-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .nav-wrap {
    width: min(100% - 24px, 1180px);
    min-height: 68px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(5,5,5,0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid;
    gap: 8px;
  }

  .site-nav a {
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(255,255,255,0.05);
  }

  .brand-lockup {
    min-width: 0;
  }

  .brand-lockup strong {
    font-size: 0.8rem;
  }

  .brand-lockup span {
    font-size: 0.72rem;
  }

  .logo-image {
    width: 46px;
    height: 46px;
  }

  .section,
  .hero,
  .exchange-hero {
    padding: 56px 0;
  }

  .hero-copy h1,
  .exchange-copy h1,
  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.12rem;
  }

  .hero-panel,
  .exchange-command {
    padding: 20px;
  }

  .section-heading h2 {
    font-size: 2.25rem;
  }

  .split-heading {
    display: block;
  }

  .split-heading .btn {
    margin-top: 18px;
  }

  .product-grid,
  .coupon-grid,
  .post-grid,
  .social-grid,
  .three-grid,
  .two-grid,
  .stock-board {
    grid-template-columns: 1fr;
  }

  .card,
  .brand-card,
  .product-card,
  .coupon-card,
  .post-card,
  .social-card {
    padding: 20px;
    min-height: auto;
  }

  .price-row,
  .shop-actions {
    grid-template-columns: 1fr;
  }

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

  .btn {
    width: 100%;
  }

  .footer-grid {
    display: grid;
    gap: 8px;
  }
}

/* HE Exchange product alignment-only fix */
.product-grid {
  align-items: stretch !important;
}

.product-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}

.product-card .product-top {
  min-height: 34px;
}

.product-card h3 {
  min-height: 3.2em;
  display: flex;
  align-items: flex-start;
}

.product-card > p:not(.meta) {
  min-height: 4.8em;
}

.product-card .price-row {
  margin-top: auto !important;
}

.product-card .meta {
  min-height: 3.2em;
}

.product-card .actions {
  margin-top: 10px !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch !important;
}

.product-card .actions .btn {
  min-height: 44px !important;
  height: 100%;
  text-align: center;
}

.product-image-button,
.product-image-wrap {
  min-height: 210px;
}

.product-image-button .product-image,
.product-image-wrap .product-image {
  object-fit: contain !important;
}

@media (max-width: 720px) {
  .product-card h3,
  .product-card > p:not(.meta),
  .product-card .meta,
  .product-card .product-top {
    min-height: 0;
  }

  .product-card .actions {
    grid-template-columns: 1fr;
  }

  .product-image-button,
  .product-image-wrap {
    min-height: 190px;
  }
}

/* Mobile menu fix */
@media (max-width: 720px) {
  .menu-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .site-nav {
    display: none !important;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    z-index: 1000;
    padding: 12px;
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.98);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: grid !important;
    gap: 8px;
  }

  .site-nav a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
  }
}
