/* ═══════════════════════════════════════════════════════════════
   LANDING — Dubai Flea Market Intelligence v2
   Section-level layout: hero, metrics, events, bento, how-it-works,
   security, CTA banner, footer.
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════════════ */

.hero-section {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background-color: var(--dark);
  padding-top: 4rem; /* nav height */
}

/* Aurora glow overlay */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 55%;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.13) 0%, transparent 65%);
  pointer-events: none;
  animation: auroraDrift 12s ease-in-out infinite;
}

/* Dot-grid overlay */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212, 168, 67, 0.09) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
}

@media (min-width: 640px) {
  .hero-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-inner { padding-left: 2rem; padding-right: 2rem; }
}

/* ── Hero left column ────────────────────────── */

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(212, 168, 67, 0.80);
  margin-bottom: 0.875rem;
  display: block;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.25rem);
  font-weight: 900;
  color: var(--text-invert);
  line-height: 1.06;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.hero-body {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.72;
  max-width: 30rem;
  margin: 0 0 2rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  margin-top: 1.25rem;
  margin-bottom: 2rem;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.hero-trust-item i {
  color: rgba(212, 168, 67, 0.65);
  font-size: 0.875rem;
}

.hero-trust-sep {
  color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 639px) {
  .hero-trust-sep { display: none; }
}

/* ── Hero widget ──────────────────────────────── */

.hero-widget {
  background: #0b1322;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 0;
  position: relative;
  overflow: hidden;
}

/* Glow behind the widget */
.hero-widget::before {
  content: '';
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 100px;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.18) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* OS-style chrome bar */
.hero-widget-chrome {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
}

.hero-widget-chrome-dots {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.chrome-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.chrome-dot-red   { background: #FF5F56; }
.chrome-dot-amber { background: #FFBD2E; }
.chrome-dot-green { background: #27C93F; }

.hero-widget-chrome-title {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.05em;
}

/* Widget body */
.hero-widget-body {
  padding: 1.25rem;
  position: relative;
  z-index: 1;
}

/* Active badge in the status row */
.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.2rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--green-tint);
  border: 1px solid var(--green-border);
  color: #34d399;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Toast cycling */
.hero-toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  min-height: 4.5rem;
}

.toast-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  align-self: center;
}

.toast-dot.scanning {
  background: var(--gold);
  animation: spinSlow 1.5s linear infinite;
  border-radius: 2px;
  margin-right: 5px;
}

.toast-dot.detected {
  background: #F59E0B;
  animation: radialPulse 1.8s ease-in-out infinite;
}

.toast-dot.sent {
  background: var(--green);
}

.toast-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
  font-family: var(--font-body);
}

.toast-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.15rem;
  font-family: var(--font-body);
}

/* Hero counter grid */
.hero-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
}

.hero-counter-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
}

.hero-counter-num {
  font-family: var(--font-mono);
  font-size: 1.625rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* Accent colors for counter numbers */
.hero-counter-cell--cyan .hero-counter-num  { color: #38bdf8; }
.hero-counter-cell--green .hero-counter-num { color: #34d399; }

.hero-counter-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Hide widget below 480px, show only toast */
@media (max-width: 479px) {
  .hero-widget { display: none; }
}

@media (max-width: 1023px) {
  .hero-widget { margin-top: 2.5rem; }
}


/* ══════════════════════════════════════════════
   METRICS BAR
   ══════════════════════════════════════════════ */

.metrics-section {
  background: var(--bg);
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

/* Subtle gold radial from center-top */
.metrics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50rem;
  height: 14rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(212, 168, 67, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .metrics-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Landing-specific metric card overrides */
.metrics-section .card-metric {
  text-align: center;
  border-top: 2px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-card), box-shadow var(--transition-card), border-color var(--transition-fast);
}

.metrics-section .card-metric:hover {
  border-top-color: var(--gold);
  box-shadow: 0 6px 24px rgba(212, 168, 67, 0.12), var(--shadow-md);
}

.metrics-section .metric-number {
  font-size: 3rem;
  letter-spacing: -0.03em;
}

.metrics-section .metric-icon {
  margin: 0 auto 1rem;
}

/* Trend chip */
.metric-trend {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.20);
  color: #10b981;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.625rem;
  font-family: var(--font-mono);
}

/* Bottom gold accent bar — appears on hover */
.metrics-section .card-metric::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
  pointer-events: none;
}

.metrics-section .card-metric:hover::after {
  opacity: 1;
}

/* Short description per metric card */
.metric-desc {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.35rem auto 0;
  max-width: 13rem;
}

/* Live sync strip below the metrics grid */
.metrics-sync-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.875rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  font-size: 0.72rem;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}

.metrics-sync-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: radialPulse 2s ease-in-out infinite;
  flex-shrink: 0;
  display: inline-block;
}

.metrics-sync-sep {
  color: rgba(0, 0, 0, 0.18);
}


/* ══════════════════════════════════════════════
   RECENT EVENTS SECTION
   ══════════════════════════════════════════════ */

.events-section {
  background: var(--bg);
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .events-section { padding: 7rem 0; }
}

.recent-events-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .recent-events-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .recent-events-grid { gap: 1.25rem; }
}

/* Event card */
.event-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-card), box-shadow var(--transition-card);
  display: flex;
  flex-direction: column;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.event-card-img-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Hover gradient overlay on card images */
.event-card-img-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(6, 13, 26, 0.72) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 350ms ease;
  pointer-events: none;
}

.event-card:hover .event-card-img-wrap::after {
  opacity: 1;
}

/* NEW badge — first event card */
.event-card-new {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.55rem;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  z-index: 2;
  line-height: 1.4;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 400ms ease;
}

.event-card:hover .event-card-img {
  transform: scale(1.04);
}

.event-card-body {
  padding: 0.875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-card-time {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.3rem;
}

.event-card-title {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.event-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  margin-top: 0.625rem;
  transition: color var(--transition-fast);
}

.event-card-link:hover {
  color: var(--gold-bright);
}

/* Empty state */
.events-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--surface);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-lg);
}

/* Legacy class aliases (used in JS renderRecentEvents) */
.recent-event-card       { @apply event-card; }  /* fallback via class on the element */
.recent-event-media-wrap { @apply event-card-img-wrap; }
.recent-event-media      { @apply event-card-img; }
.recent-event-body       { @apply event-card-body; }
.recent-event-time       { @apply event-card-time; }
.recent-event-title      { @apply event-card-title; }
.recent-event-link       { @apply event-card-link; }
.recent-empty-state      { @apply events-empty; }


/* ══════════════════════════════════════════════
   BENTO FEATURES GRID
   ══════════════════════════════════════════════ */

.features-section {
  background: var(--surface);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .features-section { padding: 7rem 0; }
}

/* Bento grid — asymmetric */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .bento-grid {
    grid-template-columns: 1.6fr 1fr;
    grid-template-rows: auto auto auto;
  }

  /* Featured card spans 2 rows on left */
  .bento-featured {
    grid-row: 1 / 3;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: auto auto;
  }

  /* Featured spans 2 rows, 1 column */
  .bento-featured {
    grid-row: 1 / 3;
    grid-column: 1 / 2;
  }

  /* Second card: col 2 row 1 */
  .bento-2 { grid-column: 2; grid-row: 1; }

  /* Third card: col 3 row 1 */
  .bento-3 { grid-column: 3; grid-row: 1; }

  /* Fourth: col 2-3 row 2 (spans 2 cols) */
  .bento-4 { grid-column: 2 / 4; grid-row: 2; }
}

.bento-card {
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-card), box-shadow var(--transition-card);
  display: flex;
  flex-direction: column;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* Featured bento card */
.bento-card.bento-featured {
  background: var(--dark);
  border-color: var(--gold-border);
  color: var(--text-invert);
  position: relative;
  overflow: hidden;
  min-height: 22rem;
}

.bento-card.bento-featured::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.22) 0%, transparent 65%);
  pointer-events: none;
}

.bento-card.bento-featured:hover {
  box-shadow: var(--shadow-gold);
}

.bento-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.bento-card.bento-featured .bento-card-title {
  color: var(--text-invert);
  font-size: 1.25rem;
}

.bento-card-body {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.65;
}

.bento-card.bento-featured .bento-card-body {
  color: var(--dark-muted);
}

/* Big label on featured card */
.bento-featured-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-top: auto;
  padding-top: 1.5rem;
}

/* Bento-4 sub-cards — divider treatment */
.bento-sub-card {
  padding: 0.25rem 0;
}

.bento-4 .bento-sub-card + .bento-sub-card {
  border-left: 1px solid rgba(0, 0, 0, 0.07);
  padding-left: 1.5rem;
  margin-left: 0.25rem;
}

@media (max-width: 767px) {
  .bento-4 .bento-sub-card + .bento-sub-card {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    padding-left: 0;
    padding-top: 1.25rem;
    margin-left: 0;
    margin-top: 0.25rem;
  }
}


/* ══════════════════════════════════════════════
   HOW IT WORKS — DARK SECTION
   ══════════════════════════════════════════════ */

.how-section {
  background: var(--dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .how-section { padding: 7rem 0; }
}

/* Faint dot grid */
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Step timeline */
.how-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 0;
  position: relative;
}

/* Connecting line */
.how-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.125rem; /* center of the step number circle */
  top: 3.5rem;
  bottom: 0;
  width: 2px;
  background: rgba(212, 168, 67, 0.18);
}

.how-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.12);
  border: 1.5px solid var(--gold-border);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.how-step-content {
  flex: 1;
  padding-top: 0.125rem;
}

.how-step-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 0.3rem;
}

.how-step-desc {
  font-size: 0.8125rem;
  color: var(--dark-muted);
  line-height: 1.6;
}

/* Terminal panel */
.terminal-panel {
  background: #0D1117;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.625rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.td-red   { background: #FF5F56; }
.td-amber { background: #FFBD2E; }
.td-green { background: #27C93F; }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
}

.terminal-body {
  padding: 1rem 1.25rem 1.25rem;
}

.terminal-line {
  font-size: 0.8125rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
}

.terminal-line .t-prompt {
  color: var(--gold);
  margin-right: 0.5rem;
  font-weight: 700;
}

.tl-success { color: #4ade80; }
.tl-info    { color: #93c5fd; }
.tl-muted   { color: rgba(255,255,255,0.35); }


/* ══════════════════════════════════════════════
   SECURITY SECTION
   ══════════════════════════════════════════════ */

.security-section {
  background: var(--dark);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .security-section { padding: 7rem 0; }
}

/* Dot-grid overlay */
.security-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* Ambient center glow */
.security-section::after {
  content: '';
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 50%;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 1024px) {
  .security-grid { grid-template-columns: repeat(4, 1fr); }
}

/* Security card — dark styled */
.security-card {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-card), box-shadow var(--transition-card), border-color var(--transition-card);
}

.security-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-border), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.security-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212, 168, 67, 0.35);
}

.security-card:hover::after {
  opacity: 1;
}

.security-card-title {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
}

.security-card-body {
  font-size: 0.8125rem;
  color: var(--dark-muted);
  line-height: 1.65;
}


/* ══════════════════════════════════════════════
   CTA BANNER
   ══════════════════════════════════════════════ */

.cta-section {
  background: var(--dark);
  padding: 5rem 0;
}

@media (min-width: 640px) {
  .cta-section { padding: 7rem 0; }
}

.cta-banner {
  background: linear-gradient(135deg, #0c1a2e 0%, #06091a 50%, #0b1d28 100%);
  border: 1px solid rgba(212, 168, 67, 0.14);
  border-radius: var(--radius-xl);
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .cta-banner { padding: 6rem 4rem; }
}

/* Dot-grid texture */
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(212, 168, 67, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.cta-banner::after { display: none; }

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.cta-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 67, 0.07) 0%, transparent 70%);
  top: -150px;
  right: -100px;
}

.cta-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.04) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
}

.cta-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(212, 168, 67, 0.65);
  margin-bottom: 1.25rem;
}

.cta-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: radialPulse 2s ease-in-out infinite;
  display: inline-block;
}

.cta-banner-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text-invert);
  line-height: 1.05;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.cta-banner-sub {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin: 1.25rem auto 0;
  max-width: 32rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 2.25rem;
  position: relative;
  z-index: 1;
}

.cta-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  font-size: 0.775rem;
  color: rgba(255, 255, 255, 0.3);
  font-family: var(--font-mono);
  position: relative;
  z-index: 1;
}

.cta-trust-num {
  color: rgba(212, 168, 67, 0.75);
  font-weight: 600;
}

.cta-trust-sep {
  color: rgba(255, 255, 255, 0.12);
}


/* ══════════════════════════════════════════════
   CONTACT SECTION
   ══════════════════════════════════════════════ */

.contact-section {
  background: var(--dark);
  padding: 5rem 0;
}

.contact-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid rgba(212, 168, 67, 0.14);
  position: relative;
}

.contact-card-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  padding: 3.5rem 3rem;
  background: linear-gradient(135deg, #0a1628 0%, #060d1a 60%, #0a1820 100%);
  position: relative;
}

@media (max-width: 768px) {
  .contact-card-inner {
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 1.75rem;
    text-align: center;
    align-items: center;
  }
}

.contact-card-body {
  flex: 1;
  position: relative;
  z-index: 1;
}

.contact-card-body .section-heading {
  color: rgba(255, 255, 255, 0.9);
}

.contact-card-body .section-sub {
  color: rgba(255, 255, 255, 0.42);
  max-width: 480px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 768px) {
  .contact-actions {
    justify-content: center;
  }
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.contact-btn-telegram {
  background: rgba(42, 171, 238, 0.12);
  color: #4dc3f5;
  border: 1px solid rgba(42, 171, 238, 0.22);
}

.contact-btn-telegram:hover {
  background: rgba(42, 171, 238, 0.2);
  box-shadow: 0 8px 24px rgba(42, 171, 238, 0.15);
}

.contact-btn-email {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-btn-email:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.contact-card-decoration {
  flex-shrink: 0;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .contact-card-decoration {
    display: none;
  }
}

/* ══════════════════════════════════════════════
   DEVELOPER SECTION
   ══════════════════════════════════════════════ */

.developer-section {
  background: var(--dark);
  padding: 2.5rem 0 5rem;
}

.dev-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem;
  max-width: 680px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.dev-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212, 168, 67, 0.03) 0%, transparent 60%);
  pointer-events: none;
}

@media (max-width: 640px) {
  .dev-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.25rem;
    align-items: center;
  }
}

.dev-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.dev-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid rgba(212, 168, 67, 0.3);
}

.dev-avatar-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(212, 168, 67, 0.14);
  animation: devRingPulse 3s ease-in-out infinite;
}

@keyframes devRingPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.08); opacity: 0.2; }
}

.dev-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.dev-role {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(212, 168, 67, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.dev-name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 0.5rem;
}

.dev-bio {
  font-size: 0.8625rem;
  color: rgba(255, 255, 255, 0.38);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 0.75rem;
}

.dev-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.dev-github-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
  text-decoration: none;
  transition: color 0.2s ease;
}

.dev-github-link:hover {
  color: var(--gold);
}

.dev-portfolio-link {
  color: rgba(212, 168, 67, 0.55);
}

.dev-portfolio-link:hover {
  color: var(--gold);
}


/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */

.site-footer {
  background: var(--dark);
  padding: 4rem 0 2.5rem;
  position: relative;
}

/* Gold gradient rule at very top */
.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 25%, var(--gold-bright) 50%, var(--gold) 75%, transparent 100%);
}

.footer-brand {
  position: relative;
}

/* Soft ambient glow behind brand */
.footer-brand::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: -2rem;
  width: 14rem;
  height: 14rem;
  background: radial-gradient(ellipse, rgba(212, 168, 67, 0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.footer-brand p {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.38);
  line-height: 1.65;
  max-width: 18rem;
  margin-top: 0.75rem;
}

.footer-section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.875rem;
}

.footer-link {
  display: block;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.50);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: 0.2rem 0;
}

.footer-link:hover {
  color: var(--gold);
}

.footer-stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0.5rem;
  margin: 0 -0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  transition: background var(--transition-fast);
}

.footer-stat-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.footer-stat-row:hover .footer-stat-val {
  color: var(--gold-bright);
}

.footer-stat-label {
  color: rgba(255,255,255,0.45);
}

.footer-stat-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: rgba(255,255,255,0.80);
  font-size: 0.875rem;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.30);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: rgba(255,255,255,0.70);
}


/* ══════════════════════════════════════════════
   SECTION SHARED UTILITIES
   ══════════════════════════════════════════════ */

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.section-heading-dark {
  color: var(--text-invert);
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.section-sub-dark {
  color: var(--dark-muted);
}

.section-header-center {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header-center .badge-section,
.section-header-center .badge-dark {
  margin-bottom: 0.875rem;
}

.section-header-center .section-sub {
  margin-left: auto;
  margin-right: auto;
}

/* Mobile nav panel */
.mobile-nav-panel {
  border-top: 1px solid rgba(212, 168, 67, 0.1);
  background: rgba(6, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
}

.mobile-nav-link.active {
  color: var(--gold);
}

.mobile-nav-cta {
  margin-top: 1.25rem;
  padding-top: 1.125rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav-link, .logo-block, .event-card,
.event-card-link, .badge-live, .footer-legal-links a,
.bento-cell { cursor: pointer; }
