/* ============================================================
   Barakah Finance -- Design System
   Palette: Ink #0B1210, Emerald #114B4C, Jade #2DD4A7,
            Brass #C9A15A, Ivory #F3EFE6, Sage #8FA69C
   Type: Fraunces (Display), Inter (Body), IBM Plex Mono (Data)
   ============================================================ */

:root {
  --ink: #0b1210;
  --ink-soft: #0f1a17;
  --emerald: #114b4c;
  --emerald-soft: #163f3a;
  --jade: #2dd4a7;
  --jade-dim: #1f8f72;
  --brass: #c9a15a;
  --ivory: #f3efe6;
  --sage: #8fa69c;
  --sage-dim: #5c6f68;
  --border: rgba(243, 239, 230, 0.1);
  --radius-lg: 28px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow-deep: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 0%, rgba(45, 212, 167, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 20%, rgba(201, 161, 90, 0.06), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 480;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ivory);
  overflow-wrap: break-word;
}

img, svg, canvas { max-width: 100%; }

a { color: inherit; text-decoration: none; }

.mono {
  font-family: 'IBM Plex Mono', monospace;
  letter-spacing: 0.02em;
}

.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jade);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 12px 2px var(--jade);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 1;
}

/* ---------------- Navigation ---------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(11,18,16,0.85), rgba(11,18,16,0));
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.nav-brand .mark {
  width: 30px; height: 30px;
  position: relative;
}

.nav-links {
  display: flex;
  gap: 36px;
  font-size: 0.88rem;
  color: var(--sage);
}

.nav-links a { transition: color 0.25s var(--ease); }
.nav-links a:hover { color: var(--jade); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--jade-dim);
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--jade);
  background: rgba(45,212,167,0.06);
  transition: all 0.25s var(--ease);
}
.nav-cta:hover { border-color: var(--jade); background: rgba(45,212,167,0.16); transform: translateY(-1px); animation-play-state: paused; }
.nav-cta .tg-icon { width: 15px; height: 15px; flex-shrink: 0; }

@keyframes tg-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(45,212,167,0.32); }
  50% { box-shadow: 0 0 0 7px rgba(45,212,167,0); }
}
.nav-cta { animation: tg-pulse 2.6s ease-in-out infinite; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 90px;
}

#hero-canvas {
  position: absolute;
  top: 0; right: -8%;
  width: 62%;
  height: 100%;
  z-index: 0;
  opacity: 0.95;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  margin: 22px 0 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--jade);
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--sage);
  max-width: 460px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-primary {
  background: var(--jade);
  color: var(--ink);
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(45,212,167,0.5); }

.btn-ghost {
  color: var(--ivory);
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 3px;
  transition: border-color 0.25s var(--ease);
}
.btn-ghost:hover { border-color: var(--brass); color: var(--brass); }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero-stat .num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 1.5rem;
  color: var(--brass);
}
.hero-stat .label {
  font-size: 0.76rem;
  color: var(--sage-dim);
  margin-top: 4px;
}

/* ---------------- Subpage header ---------------- */
.page-header {
  position: relative;
  z-index: 1;
  padding: 170px 0 64px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: clamp(2.1rem, 4vw, 3rem);
  margin: 16px 0 18px;
}

.page-header p {
  color: var(--sage);
  max-width: 560px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--sage);
  margin-bottom: 24px;
  transition: color 0.25s var(--ease);
}
.back-link:hover { color: var(--jade); }

/* ---------------- Blog archive list ---------------- */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 140px 1fr 24px;
  gap: 28px;
  align-items: center;
  padding: 28px 8px;
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}
.blog-list-item:hover { background: rgba(45,212,167,0.03); padding-left: 16px; }

.blog-list-meta {
  font-size: 0.78rem;
  color: var(--sage-dim);
}

.blog-list-body .tag {
  display: inline-block;
  margin-bottom: 10px;
}

.blog-list-body h4 { font-size: 1.25rem; margin-bottom: 8px; }

.blog-list-arrow {
  color: var(--sage-dim);
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.blog-list-item:hover .blog-list-arrow { transform: translateX(4px); color: var(--jade); }

@media (max-width: 700px) {
  .blog-list-item { grid-template-columns: 1fr; gap: 10px; }
  .blog-list-arrow { display: none; }
}

/* ---------------- Blog post detail ---------------- */
.post-meta-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  font-size: 0.82rem;
  color: var(--sage);
}

.post-article {
  max-width: 720px;
  padding: 100px 0 40px;
}

.post-article h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  margin-bottom: 28px;
}

.post-assets {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.post-body p {
  color: var(--ivory);
  opacity: 0.92;
  margin-bottom: 22px;
  font-size: 1.02rem;
  line-height: 1.75;
}

.post-footer-note {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--sage-dim);
  line-height: 1.7;
}

/* ---------------- Unternehmen filter ---------------- */
.sector-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-chip {
  border: 1px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--sage);
  background: transparent;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  font-family: inherit;
}
.filter-chip:hover { border-color: var(--jade); color: var(--jade); }
.filter-chip.active { background: var(--jade); border-color: var(--jade); color: var(--ink); font-weight: 600; }

/* ---------------- Company detail ---------------- */
.company-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.company-detail-name h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin: 10px 0 6px; }

.company-detail-industry { color: var(--sage); font-size: 0.94rem; }

.company-detail-chart {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  margin: 36px 0;
  background: rgba(255,255,255,0.015);
}

.company-detail-chart .sparkline { height: 90px; }

.company-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
}

.company-detail-grid h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--ivory);
}

.pros-list, .cons-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pros-list li, .cons-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--sage);
  line-height: 1.5;
}

.pros-list .mark { color: var(--jade); flex-shrink: 0; }
.cons-list .mark { color: var(--brass); flex-shrink: 0; }

.halal-note-box {
  margin-top: 32px;
  padding: 20px 24px;
  border: 1px solid var(--jade-dim);
  border-radius: var(--radius-md);
  background: rgba(45,212,167,0.05);
  font-size: 0.88rem;
  color: var(--sage);
}

@media (max-width: 700px) {
  .company-detail-grid { grid-template-columns: 1fr; gap: 28px; }
}

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

/* ---------------- Process strip ("Was wir tun") ---------------- */
.process-strip {
  position: relative;
  z-index: 1;
  padding: 8px 0 64px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 44px;
}

.process-step { position: relative; }

.process-num {
  font-size: 0.78rem;
  color: var(--jade-dim);
  display: block;
  margin-bottom: 10px;
}

.process-step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.process-step p {
  font-size: 0.86rem;
  color: var(--sage);
  line-height: 1.55;
}

@media (max-width: 900px) {
  .process-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
}
@media (max-width: 560px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------------- Gradient-Blob-Feld (Tiefe hinter Sections) ---------------- */
.blob-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.28;
  animation: blob-drift 24s ease-in-out infinite alternate;
  will-change: transform;
}

.blob-jade { width: 420px; height: 420px; background: var(--jade); top: -140px; left: 6%; }
.blob-brass { width: 380px; height: 380px; background: var(--brass); bottom: -160px; right: 4%; animation-duration: 28s; animation-delay: -8s; }
.blob-emerald { width: 460px; height: 460px; background: var(--emerald); top: 20%; right: 30%; animation-duration: 32s; animation-delay: -14s; opacity: 0.22; }

@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(50px, -36px) scale(1.1); }
}

/* ---------------- Cursor-Spotlight ---------------- */
.spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(560px circle at var(--x, 50%) var(--y, 50%), rgba(45, 212, 167, 0.1), transparent 42%);
}
.spotlight.is-active { opacity: 1; }

/* ---------------- 3D Card-Tilt (Maus-getrieben, per JS) ---------------- */
.tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------------- Ticker-Marquee ---------------- */
.marquee {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  animation: marquee-scroll 34s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.86rem;
  color: var(--sage);
  white-space: nowrap;
}

.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade-dim); flex-shrink: 0; }
.marquee-item strong { color: var(--ivory); font-weight: 500; }
.marquee-item .chg { font-size: 0.8rem; }
.marquee-item .chg.up { color: var(--jade); }
.marquee-item .chg.down { color: #d97757; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 600px) {
  .marquee-track { gap: 36px; animation-duration: 22s; }
}

/* ---------------- Feature-Grid ("Warum Barakah Finance") ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  background: rgba(255, 255, 255, 0.015);
  transition: transform 0.4s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.feature-card:hover { border-color: var(--jade-dim); background: rgba(45, 212, 167, 0.035); }

.feature-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--jade);
}
.feature-icon path, .feature-icon circle { vector-effect: non-scaling-stroke; }

.feature-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.feature-card p { font-size: 0.88rem; color: var(--sage); line-height: 1.6; }

@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------------- Methodik-Timeline (Deep-Dive) ---------------- */
.methodology { position: relative; overflow: hidden; }

.methodology-intro { max-width: 620px; margin-bottom: 8px; }
.methodology-intro p { color: var(--sage); }

.timeline {
  position: relative;
  margin-top: 56px;
  padding-left: 46px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(to bottom, var(--jade-dim), transparent);
}

.timeline-item { position: relative; padding-bottom: 52px; }
.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -46px;
  top: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--jade-dim);
  transition: all 0.5s var(--ease);
}
.timeline-item.is-visible .timeline-dot {
  background: var(--jade);
  border-color: var(--jade);
  box-shadow: 0 0 14px 2px rgba(45, 212, 167, 0.45);
}

.timeline-meta {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--jade-dim);
  margin-bottom: 8px;
}

.timeline-item h3 { font-size: 1.3rem; margin-bottom: 12px; }
.timeline-item p { color: var(--sage); max-width: 640px; line-height: 1.75; font-size: 0.96rem; }
.timeline-item ul { margin-top: 14px; padding-left: 20px; color: var(--sage); font-size: 0.9rem; line-height: 1.8; }

@media (max-width: 600px) {
  .timeline { padding-left: 34px; }
  .timeline-dot { left: -34px; }
}

/* ---------------- Anlageklassen-Showcase ---------------- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.asset-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent);
  transition: transform 0.4s var(--ease), border-color 0.35s var(--ease);
  overflow: hidden;
}
.asset-card:hover { border-color: var(--brass); }

.asset-tag {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--brass);
  letter-spacing: 0.06em;
}

.asset-visual { height: 84px; margin-bottom: 20px; overflow: visible; }

.asset-visual .bar {
  transform-origin: bottom;
  animation: bar-grow 2.6s var(--ease) infinite alternate;
}
.asset-visual .bar:nth-child(2) { animation-delay: -0.4s; }
.asset-visual .bar:nth-child(3) { animation-delay: -0.9s; }
.asset-visual .bar:nth-child(4) { animation-delay: -1.4s; }
.asset-visual .bar:nth-child(5) { animation-delay: -1.9s; }

@keyframes bar-grow {
  from { transform: scaleY(0.55); }
  to   { transform: scaleY(1); }
}

.asset-visual .orbit { animation: orbit-spin 7s linear infinite; transform-origin: center; }
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.asset-visual .pulse-ring { animation: pulse-ring 2.4s var(--ease) infinite; transform-origin: center; }
@keyframes pulse-ring {
  0%   { opacity: 0.7; transform: scale(0.85); }
  70%  { opacity: 0; transform: scale(1.25); }
  100% { opacity: 0; transform: scale(1.25); }
}

.asset-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.asset-card p { font-size: 0.86rem; color: var(--sage); line-height: 1.65; }

@media (max-width: 900px) { .asset-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .asset-grid { grid-template-columns: 1fr; } }

/* ---------------- FAQ-Akkordeon ---------------- */
.faq-list {
  border-top: 1px solid var(--border);
  max-width: 780px;
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 26px 4px;
  font-family: 'Fraunces', serif;
  font-size: 1.06rem;
  color: var(--ivory);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--jade);
  transition: transform 0.3s var(--ease);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-answer {
  padding: 0 34px 26px 4px;
  color: var(--sage);
  font-size: 0.94rem;
  line-height: 1.75;
  max-width: 680px;
  animation: faq-fade 0.35s var(--ease);
}

@keyframes faq-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .faq-item summary { padding: 20px 2px; font-size: 0.98rem; }
  .faq-answer { padding: 0 20px 22px 2px; }
}

/* ---------------- Angebot: Website (gratis) vs. Telegram-Community ---------------- */
.offer-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.offer-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  background: rgba(255, 255, 255, 0.015);
  display: flex;
  flex-direction: column;
}

.offer-card.featured {
  border-color: var(--jade);
  background: linear-gradient(160deg, rgba(45, 212, 167, 0.09), rgba(11, 18, 16, 0.3));
  box-shadow: 0 30px 70px -34px rgba(45, 212, 167, 0.35);
}

.offer-badge {
  position: absolute;
  top: -14px;
  left: 40px;
  background: var(--jade);
  color: var(--ink);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.offer-plan {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.76rem;
  color: var(--sage-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.offer-card h3 { font-size: 1.5rem; margin-bottom: 20px; }

.offer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.offer-list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--sage);
  line-height: 1.5;
}

.offer-list .mark-yes { color: var(--jade); flex-shrink: 0; }
.offer-list .mark-no { color: var(--sage-dim); flex-shrink: 0; }
.offer-card.featured .offer-list li { color: var(--ivory); }

.offer-foot-note {
  font-size: 0.78rem;
  color: var(--sage-dim);
  margin-top: 16px;
}

.telegram-preview {
  margin-top: 24px;
  border: 1px solid var(--jade-dim);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  background: rgba(11, 18, 16, 0.5);
}

.telegram-preview-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--sage-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.telegram-bubble {
  background: rgba(45, 212, 167, 0.06);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
}

.telegram-bubble-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--jade);
  margin-bottom: 8px;
  font-weight: 600;
}
.telegram-bubble-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--jade); flex-shrink: 0; }
.telegram-bubble-head .ts { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; color: var(--sage-dim); font-weight: 400; }

.telegram-bubble p { font-size: 0.88rem; color: var(--ivory); opacity: 0.92; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .offer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .offer-card { padding: 28px 24px; }
}

/* ---------------- Sticky Telegram-CTA ---------------- */
.sticky-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 45;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.sticky-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sticky-cta .btn-primary { box-shadow: var(--shadow-deep); }

@media (max-width: 600px) {
  .sticky-cta { right: 16px; bottom: 16px; }
  .sticky-cta .btn-primary { padding: 13px 20px; font-size: 0.82rem; }
}

/* ---------------- Section shell ---------------- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section.has-blobs { overflow: hidden; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-top: 14px;
}

.section-link {
  font-size: 0.86rem;
  color: var(--sage);
  white-space: nowrap;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.section-link:hover { color: var(--jade); border-color: var(--jade); }

/* ---------------- Today's Report card ---------------- */
.report-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  background: linear-gradient(155deg, rgba(17,75,76,0.35), rgba(11,18,16,0.2));
  position: relative;
  overflow: hidden;
}

.report-card::after {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(201,161,90,0.16), transparent 70%);
  pointer-events: none;
}

.report-meta {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  font-size: 0.8rem;
  color: var(--sage);
}

.tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--jade);
}

.report-card h3 {
  font-size: 1.9rem;
  max-width: 720px;
  margin-bottom: 18px;
}

.report-card p {
  color: var(--sage);
  max-width: 680px;
  margin-bottom: 28px;
}

.report-assets {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.asset-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.82rem;
}

.asset-chip .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--jade);
}

/* ---------------- Locked insight (Paid-Telegram-Teaser) ---------------- */
.locked-insight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding: 22px 26px;
  border: 1px dashed var(--jade-dim);
  border-radius: var(--radius-md);
  background: rgba(45,212,167,0.05);
}

.locked-insight p {
  color: var(--sage);
  font-size: 0.92rem;
  margin: 0;
  max-width: 480px;
}

.locked-insight .btn-primary {
  padding: 11px 22px;
  font-size: 0.84rem;
  white-space: nowrap;
}

/* ---------------- Company grid ---------------- */
.company-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.company-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform 0.4s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  background: rgba(255,255,255,0.015);
}

.company-card:hover {
  transform: translateY(-6px);
  border-color: var(--jade);
  background: rgba(45,212,167,0.04);
}

.company-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.company-ticker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  color: var(--sage);
}

.company-name {
  font-family: 'Fraunces', serif;
  font-size: 1.3rem;
  margin-top: 4px;
}

.halal-badge {
  font-size: 0.68rem;
  font-family: 'IBM Plex Mono', monospace;
  color: var(--jade);
  border: 1px solid var(--jade-dim);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.company-change {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.9rem;
  margin-top: 18px;
}
.company-change.up { color: var(--jade); }
.company-change.down { color: #d97757; }

.sparkline { margin-top: 12px; width: 100%; height: 40px; }

/* ---------------- Blog preview ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 20px;
}

.blog-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.blog-card:hover { border-color: var(--brass); transform: translateY(-4px); }

.blog-card.featured {
  grid-row: span 2;
  justify-content: flex-end;
  min-height: 380px;
  background: linear-gradient(200deg, rgba(201,161,90,0.1), rgba(11,18,16,0.4));
}

.blog-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  color: var(--sage-dim);
}

.blog-card h4 { font-size: 1.2rem; }
.blog-card.featured h4 { font-size: 1.7rem; }

.blog-excerpt { color: var(--sage); font-size: 0.9rem; }

/* ---------------- Community / Telegram CTA ---------------- */
.community-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px;
  background: linear-gradient(155deg, rgba(45,212,167,0.1), rgba(11,18,16,0.3));
  position: relative;
  overflow: hidden;
}

.community-card::after {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  left: -140px; bottom: -160px;
  background: radial-gradient(circle, rgba(45,212,167,0.14), transparent 70%);
  pointer-events: none;
}

.community-copy { position: relative; z-index: 1; max-width: 640px; }

.community-copy h2 { margin: 16px 0 20px; font-size: clamp(1.8rem, 3vw, 2.4rem); }

.community-sub { color: var(--sage); max-width: 560px; margin-bottom: 28px; }

.community-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.community-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: var(--ivory);
}

.community-benefits .check {
  color: var(--jade);
  font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
  margin-top: 1px;
}

.btn-telegram {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn-telegram .tg-icon { width: 18px; height: 18px; }

.community-note {
  font-size: 0.78rem;
  color: var(--sage-dim);
  margin-top: 18px;
}

@media (max-width: 900px) {
  .community-card { padding: 40px 28px; }
}

/* ---------------- Footer ---------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.footer-note {
  font-size: 0.78rem;
  color: var(--sage-dim);
  max-width: 560px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.82rem;
  color: var(--sage);
}
.footer-links a:hover { color: var(--jade); }

/* ---------------- Mobile nav (hamburger + dropdown) ---------------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 0 auto;
  background: var(--ivory);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 49;
  padding: 90px 24px 24px;
  background: var(--ink);
  border-bottom: 1px solid var(--border);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.nav-mobile-menu.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-mobile-menu a {
  padding: 14px 4px;
  font-size: 1.05rem;
  color: var(--ivory);
  border-bottom: 1px solid var(--border);
}
.nav-mobile-menu a:hover { color: var(--jade); }

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .company-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-row: auto; min-height: 260px; }
  #hero-canvas { width: 100%; right: 0; opacity: 0.35; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile-menu { display: flex; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .company-grid { grid-template-columns: 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .hero h1 { font-size: clamp(1.9rem, 8.2vw, 2.6rem); }
  .nav-brand { font-size: 1rem; }
  .nav { padding: 16px 20px; }
  .nav-cta span, .nav-cta { font-size: 0.78rem; }
  .report-card, .community-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--jade);
  outline-offset: 3px;
}
