/* ═══════════════════════════════════════════════════
   RIGHT WAY BRANDING — GLOBAL DESIGN SYSTEM v2.0
   Flyer-inspired: Bold red/gold/black, circuit patterns,
   glassmorphism, urgency CTAs, tech/AI motifs
   ═══════════════════════════════════════════════════ */

/* ── CSS Custom Properties ── */
:root {
  /* Brand Colors */
  --red: #DC2626;
  --red-dark: #991B1B;
  --red-glow: rgba(220, 38, 38, 0.4);
  --gold: #F59E0B;
  --gold-light: #FCD34D;
  --gold-glow: rgba(245, 158, 11, 0.4);
  --green: #22C55E;
  --green-dark: #16A34A;

  /* Dark Palette */
  --bg-deep: #0a0a0a;
  --bg-primary: #111111;
  --bg-card: #1a1a1a;
  --bg-card-hover: #222222;
  --bg-surface: #2d2d2d;

  /* Light Palette (for light sections) */
  --bg-light: #ffffff;
  --bg-light-alt: #fafafa;
  --bg-light-card: #f5f5f5;

  /* Text */
  --text-white: #ffffff;
  --text-light: #e5e5e5;
  --text-muted: #888888;
  --text-dark: #1a1a1a;
  --text-body: #666666;

  /* Effects */
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-light: rgba(255, 255, 255, 0.8);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
  --shadow-red: 0 4px 20px rgba(220, 38, 38, 0.4);
  --shadow-gold: 0 4px 20px rgba(245, 158, 11, 0.3);

  /* Typography */
  --font-heading: 'Montserrat', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: all 0.3s; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.1;
}

h1 { font-size: clamp(36px, 6vw, 64px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(20px, 3vw, 28px); }

.gradient-text-red {
  background: linear-gradient(135deg, var(--red) 0%, #f87171 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Section Styles ── */
.section {
  padding: 80px 0;
  position: relative;
}

.section-dark {
  background: var(--bg-primary);
  color: var(--text-white);
}

.section-darker {
  background: var(--bg-deep);
  color: var(--text-white);
}

.section-light {
  background: var(--bg-light);
  color: var(--text-dark);
}

.section-red {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--text-white);
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  margin-bottom: 16px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.section-light .section-title p { color: var(--text-body); }

/* ── Circuit Background Pattern ── */
.circuit-bg {
  position: relative;
  overflow: hidden;
}

.circuit-bg::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 20% 30%, rgba(220, 38, 38, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(245, 158, 11, 0.06) 0%, transparent 50%);
  background-size: 60px 60px, 60px 60px, 100% 100%, 100% 100%;
  pointer-events: none;
  z-index: 0;
}

.circuit-bg > * { position: relative; z-index: 1; }

/* ── Glow Orbs ── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-red {
  background: rgba(220, 38, 38, 0.15);
}

.glow-orb-gold {
  background: rgba(245, 158, 11, 0.1);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  border: none;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--text-white);
  box-shadow: var(--shadow-red);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(220, 38, 38, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, #D97706 100%);
  color: var(--text-dark);
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--text-white);
  background: rgba(220, 38, 38, 0.1);
}

.btn-white {
  background: var(--text-white);
  color: var(--red);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn-sm {
  padding: 12px 24px;
  font-size: 14px;
}

.btn-lg {
  padding: 20px 48px;
  font-size: 20px;
  border-radius: var(--radius-md);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--red);
  box-shadow: 0 12px 32px rgba(220, 38, 38, 0.15);
}

.card-light {
  background: var(--bg-light);
  border-color: #e5e5e5;
}

.card-light:hover {
  border-color: var(--red);
  box-shadow: var(--shadow-md);
}

/* ── Glass Morphism ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.glass-white {
  background: var(--glass-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-md);
}

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.badge-red {
  background: rgba(220, 38, 38, 0.15);
  color: #f87171;
  border: 1px solid rgba(220, 38, 38, 0.3);
}

.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ── Price Display ── */
.price-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 24px 0;
}

.price-was {
  font-size: 28px;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 600;
}

.price-now {
  font-size: clamp(48px, 8vw, 72px);
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 4px 12px rgba(245, 158, 11, 0.3));
}

/* ── Check List ── */
.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
}

.check-list li svg,
.check-list li .check-icon {
  color: var(--green);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ── Floating Badges (flyer-style) ── */
.float-badge {
  position: absolute;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  animation: floatBadge 3s ease-in-out infinite;
  z-index: 5;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-badge-red {
  background: var(--red);
  color: var(--text-white);
}

.float-badge-gold {
  background: var(--gold);
  color: var(--text-dark);
}

.float-badge-green {
  background: var(--green);
  color: var(--text-white);
}

/* ── Urgency / Scarcity ── */
.urgency-bar {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  color: var(--text-white);
  text-align: center;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 15px;
  position: relative;
  z-index: 1001;
}

.urgency-bar a {
  color: var(--text-white);
  text-decoration: underline;
  font-weight: 800;
}

.urgency-bar a:hover { opacity: 0.9; }

/* ── Animated Counter ── */
.counter-section {
  background: var(--bg-deep);
  padding: 50px 0;
  border-top: 1px solid rgba(220, 38, 38, 0.1);
  border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.counter-item .number {
  font-size: 52px;
  font-weight: 900;
  color: var(--red);
  font-family: var(--font-heading);
}

.counter-item .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 20px var(--red-glow); }
  50% { box-shadow: 0 0 40px var(--red-glow), 0 0 60px rgba(220, 38, 38, 0.2); }
}

.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .counter-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .counter-grid { grid-template-columns: 1fr 1fr; }
  .counter-item .number { font-size: 40px; }
  .btn { padding: 14px 28px; font-size: 15px; }
  .btn-lg { padding: 16px 36px; font-size: 17px; }
  .float-badge { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .counter-grid { grid-template-columns: 1fr; }
  .price-block { flex-direction: column; gap: 8px; }
  .price-now { font-size: 48px; }
}
