/* ============================================================
   RAGING SAVINGS — "Molten Deals" Design System
   Bold red/orange fire theme. Dark warm base, ember gradients.
   Display: Anton (condensed)  ·  Body: Hanken Grotesk
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Hanken+Grotesk:ital,wght@0,300..800;1,400..700&display=swap');

:root {
  /* Base / surfaces */
  --rs-ink:        #120d0a;   /* deepest warm black */
  --rs-bg:         #1a120d;   /* page base */
  --rs-surface:    #241812;   /* card surface */
  --rs-surface-2:  #2f201a;   /* raised surface */
  --rs-line:       #4a2f22;   /* hairline border */

  /* Fire palette */
  --rs-red:        #e2280c;
  --rs-flame:      #ff5a1f;
  --rs-orange:     #ff8a00;
  --rs-amber:      #ffb300;
  --rs-gold:       #ffd400;

  /* Text */
  --rs-text:       #fff4ec;
  --rs-muted:      #d2b8a8;
  --rs-dim:        #9a7d6e;

  /* Molten gradients */
  --rs-grad:       linear-gradient(100deg, #e2280c 0%, #ff5a1f 45%, #ff8a00 75%, #ffb300 100%);
  --rs-grad-soft:  linear-gradient(135deg, #ff5a1f 0%, #ff8a00 100%);
  --rs-glow:       0 0 0 1px rgba(255,138,0,.35), 0 10px 40px -8px rgba(226,40,12,.55), 0 0 60px -10px rgba(255,138,0,.45);

  --rs-radius:     16px;
  --rs-radius-sm:  10px;
  --rs-maxw:       1160px;
  --rs-display:    'Anton', 'Arial Narrow', sans-serif;
  --rs-body:       'Hanken Grotesk', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--rs-body);
  color: var(--rs-text);
  background: var(--rs-bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Ambient ember atmosphere + film grain on the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 85% -5%, rgba(255,138,0,.16), transparent 60%),
    radial-gradient(50% 45% at 5% 10%, rgba(226,40,12,.14), transparent 55%),
    radial-gradient(70% 60% at 50% 110%, rgba(255,90,31,.12), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rs-wrap, header, main, section, footer { position: relative; z-index: 1; }

.rs-container {
  width: 100%;
  max-width: var(--rs-maxw);
  margin: 0 auto;
  padding: 0 22px;
}

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--rs-display); font-weight: 400; line-height: .96; letter-spacing: .5px; text-transform: uppercase; margin: 0 0 .4em; }
h1 { font-size: clamp(2.7rem, 7vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); letter-spacing: .8px; }
p  { margin: 0 0 1rem; color: var(--rs-muted); }
a  { color: var(--rs-amber); }

.rs-flame-text {
  background: var(--rs-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rs-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--rs-body); font-weight: 800; text-transform: uppercase;
  letter-spacing: 2.5px; font-size: .76rem; color: var(--rs-amber);
}

/* ---------- Buttons ---------- */
.rs-btn {
  --pad-y: 16px; --pad-x: 34px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--rs-body); font-weight: 800; font-size: 1.02rem;
  text-transform: uppercase; letter-spacing: 1px; text-decoration: none;
  padding: var(--pad-y) var(--pad-x); border: none; border-radius: 999px;
  color: #2a0f04; background: var(--rs-grad); cursor: pointer;
  box-shadow: var(--rs-glow); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  position: relative; overflow: hidden;
}
.rs-btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.5) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s ease;
}
.rs-btn:hover { transform: translateY(-2px) scale(1.015); filter: brightness(1.07); color: #2a0f04; }
.rs-btn:hover::after { transform: translateX(120%); }
.rs-btn-lg { --pad-y: 20px; --pad-x: 46px; font-size: 1.15rem; }
.rs-btn-ghost {
  background: transparent; color: var(--rs-text);
  box-shadow: inset 0 0 0 2px var(--rs-line);
}
.rs-btn-ghost:hover { box-shadow: inset 0 0 0 2px var(--rs-orange); color: var(--rs-text); }

/* ---------- Header ---------- */
.rs-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18,13,10,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rs-line);
}
.rs-header .rs-container { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.rs-logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.rs-logo svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 2px 6px rgba(255,90,31,.6)); }
.rs-logo-text { display: flex; flex-direction: column; line-height: 1; }
.rs-logo-text b {
  font-family: var(--rs-display); font-size: 1.5rem; letter-spacing: 1px; text-transform: uppercase;
  background: var(--rs-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rs-logo-text small { font-size: .62rem; letter-spacing: 3px; text-transform: uppercase; color: var(--rs-dim); font-weight: 700; }
.rs-header-nav { display: flex; align-items: center; gap: 22px; }
.rs-header-nav a:not(.rs-btn) { color: var(--rs-muted); text-decoration: none; font-weight: 600; font-size: .95rem; }
.rs-header-nav a:not(.rs-btn):hover { color: var(--rs-text); }

/* ---------- Sections ---------- */
.rs-section { padding: clamp(56px, 9vw, 110px) 0; }
.rs-section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.rs-center { text-align: center; }
.rs-lede { font-size: 1.18rem; color: var(--rs-muted); max-width: 620px; }
.rs-center .rs-lede { margin-left: auto; margin-right: auto; }

/* Diagonal molten divider */
.rs-divider { height: 5px; width: 100%; background: var(--rs-grad); }

/* ---------- Cards ---------- */
.rs-grid { display: grid; gap: 22px; }
.rs-grid-3 { grid-template-columns: repeat(3, 1fr); }
.rs-grid-2 { grid-template-columns: repeat(2, 1fr); }
.rs-card {
  background: linear-gradient(180deg, var(--rs-surface-2), var(--rs-surface));
  border: 1px solid var(--rs-line); border-radius: var(--rs-radius);
  padding: 30px 26px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rs-card:hover { transform: translateY(-4px); border-color: var(--rs-orange); box-shadow: 0 18px 50px -22px rgba(255,90,31,.6); }
.rs-card-icon {
  width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 14px; background: var(--rs-grad-soft); color: #2a0f04; font-size: 1.5rem;
  box-shadow: 0 8px 24px -8px rgba(255,138,0,.7);
}
.rs-card h3 { color: var(--rs-text); margin-bottom: .5rem; }
.rs-card p { margin: 0; }

/* ---------- Forms ---------- */
.rs-form { max-width: 540px; margin: 0 auto; }
.rs-field { margin-bottom: 14px; }
.rs-input-group { display: flex; align-items: stretch; background: var(--rs-ink); border: 1px solid var(--rs-line); border-radius: var(--rs-radius-sm); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease; }
.rs-input-group:focus-within { border-color: var(--rs-orange); box-shadow: 0 0 0 3px rgba(255,138,0,.18); }
.rs-input-icon { display: grid; place-items: center; width: 52px; color: var(--rs-orange); background: rgba(255,138,0,.07); }
.rs-form input[type=text], .rs-form input[type=email], .rs-form input[type=tel] {
  flex: 1; border: none; background: transparent; color: var(--rs-text);
  padding: 15px 14px; font-size: 1rem; font-family: var(--rs-body); outline: none;
}
.rs-form input::placeholder { color: var(--rs-dim); }
.rs-check { display: flex; gap: 12px; align-items: flex-start; font-size: .82rem; color: var(--rs-dim); line-height: 1.5; margin: 6px 0 18px; }
.rs-check input { margin-top: 3px; accent-color: var(--rs-flame); width: 18px; height: 18px; flex: none; }
.rs-check a { color: var(--rs-amber); }
.rs-form .rs-btn { width: 100%; }

/* ---------- Footer ---------- */
.rs-footer { background: var(--rs-ink); border-top: 1px solid var(--rs-line); padding: 48px 0 36px; text-align: center; }
.rs-footer .rs-logo { justify-content: center; margin-bottom: 16px; }
.rs-footer p { color: var(--rs-dim); font-size: .9rem; margin: 6px 0; }
.rs-footer a { color: var(--rs-muted); text-decoration: none; }
.rs-footer a:hover { color: var(--rs-amber); }

/* ---------- Badges / pills ---------- */
.rs-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,138,0,.12); border: 1px solid rgba(255,138,0,.35);
  color: var(--rs-amber); font-weight: 700; font-size: .8rem; letter-spacing: 1px;
  text-transform: uppercase; padding: 8px 16px; border-radius: 999px;
}

/* ---------- Animations ---------- */
@keyframes rs-rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rs-flicker { 0%,100% { opacity: 1; } 50% { opacity: .82; } }
.rs-rise { animation: rs-rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rs-d1 { animation-delay: .1s; } .rs-d2 { animation-delay: .22s; } .rs-d3 { animation-delay: .34s; } .rs-d4 { animation-delay: .46s; }

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

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .rs-grid-3 { grid-template-columns: 1fr; }
  .rs-grid-2 { grid-template-columns: 1fr; }
  .rs-header-nav { gap: 12px; }
  .rs-header-nav a:not(.rs-btn) { display: none; }
}
