/* =========================================================
   razberi.css — Razberi Product Page
   Theme: #1a1a1a bg + Blood Red (#7B1519) accent
   ========================================================= */

:root {
  --rbz-bg:       #1a1a1a;
  --rbz-surface:  #222222;
  --rbz-surface2: #2a2a2a;
  --rbz-border:   rgba(255,255,255,0.07);
  --rbz-red:      #7B1519;
  --rbz-red2:     #A01E23;
  --rbz-red3:     #C0392B;
  --rbz-redglow:  rgba(123,21,25,0.35);
  --rbz-text:     #f0f0f0;
  --rbz-muted:    #888888;
}

/* ── Base override ── */
#content .rbz-hero,
#content .rbz-stats,
#content .rbz-section,
#content .rbz-cta {
  font-family: 'Noto Sans Thai', 'DM Sans', sans-serif !important;
  color: var(--rbz-text) !important;
  background: var(--rbz-bg) !important;
}

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.reveal-rbz {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-rbz.rbz-visible {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.rbz-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 100px 7% 80px;
  overflow: hidden;
  box-sizing: border-box;
}

/* noise texture */
.rbz-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* grid lines */
.rbz-hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(123,21,25,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123,21,25,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* red glow blob */
.rbz-hero-glow {
  position: absolute;
  top: -100px;
  left: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,21,25,0.2) 0%, transparent 65%);
  pointer-events: none;
  animation: rbzPulse 6s ease-in-out infinite alternate;
}
@keyframes rbzPulse {
  from { transform: scale(1) translate(0,0); opacity: 0.7; }
  to   { transform: scale(1.15) translate(30px, 20px); opacity: 1; }
}

.rbz-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  max-width: 580px;
}

.rbz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rbz-red3);
  border: 1px solid rgba(192,57,43,0.35);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  background: rgba(123,21,25,0.08);
  margin-bottom: 1.8rem;
}
.rbz-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--rbz-red3);
  animation: rbzBlink 1.5s ease-in-out infinite;
}
@keyframes rbzBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.rbz-hero-title {
  margin: 0 0 1.4rem;
  padding: 0;
  line-height: 1;
}
.rbz-title-main {
  display: block;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(4rem, 9vw, 8rem);
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #fff 30%, var(--rbz-red3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 0.9;
}
.rbz-title-sub {
  display: block;
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  letter-spacing: 0.25em;
  color: var(--rbz-muted);
  margin-top: 0.5rem;
  -webkit-text-fill-color: var(--rbz-muted);
}

.rbz-hero-desc {
  font-size: 1rem;
  color: var(--rbz-muted);
  line-height: 1.8;
  margin: 0 0 2.2rem;
  padding: 0;
}

.rbz-hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */
.rbz-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--rbz-red), var(--rbz-red2));
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 28px var(--rbz-redglow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.rbz-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(123,21,25,0.5);
}
.rbz-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: rgba(255,255,255,0.04);
  color: var(--rbz-text) !important;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 8px;
  border: 1px solid var(--rbz-border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.rbz-btn-ghost:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-2px);
}

/* Hero visual */
.rbz-hero-visual {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.rbz-hero-img {
  width: 100%;
  max-width: 520px;
  border-radius: 16px;
  border: 1px solid rgba(123,21,25,0.25);
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(123,21,25,0.1);
}
.rbz-hero-badge {
  position: absolute;
  bottom: -16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.1rem;
  background: var(--rbz-red);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  border-radius: 100px;
  box-shadow: 0 6px 20px var(--rbz-redglow);
}

/* ══════════════════════════════════════
   STATS
══════════════════════════════════════ */
.rbz-stats {
  padding: 0 7%;
}
.rbz-stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 2.5rem 3rem;
  background: var(--rbz-surface);
  border: 1px solid rgba(123,21,25,0.2);
  border-radius: 16px;
  box-shadow: inset 0 0 60px rgba(123,21,25,0.04);
  flex-wrap: wrap;
  gap: 1.5rem;
}
.rbz-stat { text-align: center; }
.rbz-stat-num {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2.2rem;
  letter-spacing: 0.04em;
  color: var(--rbz-red3);
  line-height: 1;
}
.rbz-stat-num span {
  font-size: 1rem;
  color: var(--rbz-muted);
  letter-spacing: 0.08em;
}
.rbz-stat-label {
  font-size: 0.72rem;
  color: var(--rbz-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}
.rbz-stat-div {
  width: 1px;
  height: 40px;
  background: var(--rbz-border);
}

/* ══════════════════════════════════════
   SECTIONS
══════════════════════════════════════ */
.rbz-section {
  padding: 6rem 7%;
}
.rbz-section--dark {
  background: var(--rbz-surface) !important;
  border-top: 1px solid var(--rbz-border);
  border-bottom: 1px solid var(--rbz-border);
}
.rbz-section-inner { max-width: 1200px; margin: 0 auto; }

.rbz-section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.rbz-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rbz-red3);
  margin-bottom: 0.8rem;
}
.rbz-section-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  color: var(--rbz-text) !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: none !important;
  -webkit-text-fill-color: var(--rbz-text) !important;
  letter-spacing: 0.03em;
  line-height: 1;
}
.rbz-section-desc {
  font-size: 1rem;
  color: var(--rbz-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   CARDS
══════════════════════════════════════ */
.rbz-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rbz-card {
  position: relative;
  background: var(--rbz-surface);
  border: 1px solid var(--rbz-border);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.rbz-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rbz-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.rbz-card:hover {
  border-color: rgba(123,21,25,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.rbz-card:hover::before { opacity: 1; }

.rbz-card--featured {
  border-color: rgba(123,21,25,0.3);
  background: linear-gradient(160deg, var(--rbz-surface) 60%, rgba(123,21,25,0.08) 100%);
}
.rbz-card--featured::before { opacity: 1; }

.rbz-card-glow {
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,21,25,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.rbz-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: rgba(123,21,25,0.12);
  border: 1px solid rgba(123,21,25,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: var(--rbz-red3);
  margin-bottom: 1rem;
}
.rbz-card-num {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  position: absolute;
  top: 1rem; right: 1.5rem;
  letter-spacing: 0.04em;
}
.rbz-card-badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rbz-red3);
  background: rgba(123,21,25,0.12);
  border: 1px solid rgba(123,21,25,0.3);
  border-radius: 100px;
  padding: 0.2rem 0.7rem;
}
.rbz-card-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 1.6rem !important;
  letter-spacing: 0.03em;
  color: var(--rbz-text) !important;
  margin: 0 0 0.8rem !important;
  padding: 0 !important;
  background: none !important;
  -webkit-text-fill-color: var(--rbz-text) !important;
}
.rbz-card-desc {
  font-size: 0.88rem;
  color: var(--rbz-muted);
  line-height: 1.7;
  margin: 0 0 1.2rem !important;
  padding: 0 !important;
}
.rbz-card-list {
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.rbz-card-list li {
  font-size: 0.84rem;
  color: rgba(240,240,240,0.7);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.5;
}
.rbz-card-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--rbz-red3);
  font-weight: 700;
}

/* ══════════════════════════════════════
   DIAGRAM
══════════════════════════════════════ */
.rbz-diagram {
  margin-bottom: 3.5rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--rbz-border);
}
.rbz-diagram-img {
  width: 100%;
  display: block;
}

/* ══════════════════════════════════════
   STEPS
══════════════════════════════════════ */
.rbz-steps {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.rbz-step {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--rbz-surface2);
  border: 1px solid var(--rbz-border);
  border-radius: 12px;
}
.rbz-step-num {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2rem;
  color: var(--rbz-red);
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.7;
}
.rbz-step-body h4 {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: var(--rbz-text) !important;
  margin: 0 0 0.4rem !important;
  padding: 0 !important;
}
.rbz-step-body p {
  font-size: 0.82rem;
  color: var(--rbz-muted);
  line-height: 1.6;
  margin: 0 !important;
  padding: 0 !important;
}
.rbz-step-arrow {
  font-size: 1.5rem;
  color: var(--rbz-red);
  opacity: 0.4;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.rbz-cta {
  position: relative;
  padding: 6rem 7%;
  overflow: hidden;
  text-align: center;
}
.rbz-cta-glow {
  position: absolute;
  bottom: -100px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(123,21,25,0.18) 0%, transparent 65%);
  pointer-events: none;
}
.rbz-cta-inner { position: relative; z-index: 2; }
.rbz-cta-title {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: clamp(2.5rem, 5vw, 4rem) !important;
  color: var(--rbz-text) !important;
  margin: 0.5rem 0 1rem !important;
  padding: 0 !important;
  background: none !important;
  -webkit-text-fill-color: var(--rbz-text) !important;
}
.rbz-cta-desc {
  font-size: 1rem;
  color: var(--rbz-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem !important;
  line-height: 1.7;
}
.rbz-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1024px) {
  .rbz-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .rbz-hero { flex-direction: column; min-height: auto; padding: 80px 6% 60px; gap: 2.5rem; }
  .rbz-hero-visual { display: none; }
  .rbz-cards { grid-template-columns: 1fr; }
  .rbz-stats-inner { gap: 1rem; }
  .rbz-stat-div { display: none; }
  .rbz-steps { flex-direction: column; }
  .rbz-step-arrow { display: none; }
}