:root {
  --primary: #ce3643;
  --primary-light: #ff6472;
  --primary-dark: #a52430;
  --primary-glow: rgba(206, 54, 67, 0.35);
  --bg: #0c0b10;
  --surface: #15141c;
  --surface-2: #1d1b27;
  --surface-3: #262334;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(206, 54, 67, 0.55);
  --text: #f4f4f6;
  --muted: #9895a6;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.14);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html, body {
  min-height: 100%;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(206, 54, 67, 0.14) 0%, transparent 42%),
    radial-gradient(circle at 86% 78%, rgba(206, 54, 67, 0.09) 0%, transparent 42%);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* TOPBAR */
.topbar {
  border-bottom: 1px solid var(--border);
  background: rgba(12, 11, 16, 0.82);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 18px var(--primary-glow);
}

.brand-title {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.4px;
}

.brand-title em {
  color: var(--primary);
  font-style: normal;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.link-subtle {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.link-subtle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-sm {
  padding: 9px 16px;
  font-size: 0.88rem;
  border-radius: 10px;
}

.btn-download {
  padding: 15px 28px;
  font-size: 1.05rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 8px 26px var(--primary-glow);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(206, 54, 67, 0.5);
}

.btn-ghost {
  padding: 15px 20px;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
}

/* MAIN HERO */
.main-section {
  padding: 44px 0 56px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 48px;
  align-items: center;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(206, 54, 67, 0.12);
  border: 1px solid rgba(206, 54, 67, 0.3);
  color: var(--primary-light);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.dot-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.hero-left h1 {
  font-size: 2.55rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.hero-left h1 span {
  color: var(--primary-light);
}

.hero-desc {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 24px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.meta-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.meta-counter {
  background: rgba(206, 54, 67, 0.14);
  border: 1px solid rgba(206, 54, 67, 0.38);
  color: var(--primary-light) !important;
  padding: 3px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: default;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.25s ease;
}

.meta-counter.bump {
  transform: scale(1.14);
  background: rgba(206, 54, 67, 0.32);
}

.counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 7px var(--green);
}

.meta-counter strong {
  color: #ffffff;
  font-weight: 700;
}

/* INTERACTIVE STEP LIST (LEFT SIDE) */
.steps-box {
  background: rgba(21, 20, 28, 0.78);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.steps-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 4px;
}

.steps-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--muted);
}

.steps-box-hint {
  font-size: 0.76rem;
  color: var(--primary-light);
}

.step-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.step-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font-family: inherit;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.step-item:hover {
  background: var(--surface-2);
}

.step-item.active {
  background: rgba(206, 54, 67, 0.11);
  border-color: var(--border-active);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.step-item.active .step-num {
  background: var(--primary);
  color: #fff;
}

.step-info strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

.step-info small {
  display: block;
  font-size: 0.73rem;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

.step-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  width: 0%;
  background: var(--primary-light);
  opacity: 0;
}

.step-item.active .step-progress {
  opacity: 1;
}

/* RIGHT SIDE: PLAYABLE PHONE DEMO */
.demo-column {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.phone-frame {
  width: 326px;
  height: 636px;
  background: #141218;
  border-radius: 44px;
  border: 5px solid #2b2838;
  box-shadow:
    0 26px 65px rgba(0, 0, 0, 0.78),
    0 0 42px rgba(206, 54, 67, 0.16);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.phone-notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 92px;
  height: 20px;
  background: #09080c;
  border-radius: 12px;
  z-index: 30;
}

.phone-statusbar {
  height: 34px;
  padding: 8px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 600;
  color: #d6d4df;
  background: #141218;
  z-index: 20;
  flex-shrink: 0;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.66rem;
}

.phone-stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #141218;
  display: flex;
  flex-direction: column;
}

.phone-navbar-bottom {
  height: 30px;
  background: #0e0d12;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 0 54px;
  color: #7c798a;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-shrink: 0;
}

/* DEMO CONTROLS BAR */
.demo-controls {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 10px;
  border-radius: 999px;
}

.ctrl-btn {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.ctrl-btn:hover {
  background: var(--surface-3);
}

.ctrl-btn.playing {
  background: rgba(206, 54, 67, 0.18);
  border-color: var(--border-active);
  color: #ff8590;
}

.ctrl-counter {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 6px;
  min-width: 56px;
  text-align: center;
}

.demo-caption {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
  min-height: 20px;
}

/* ===== INSIDE PHONE SCREENS ===== */
.screen-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
  animation: fadeSlide 0.28s ease;
  overflow-y: auto;
}

.screen-pane.no-pad {
  padding: 0;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pulse highlight for simulated tap */
.tap-pulse {
  box-shadow: 0 0 0 0 rgba(255, 100, 114, 0.75);
  animation: pulseRing 0.7s ease;
}

@keyframes pulseRing {
  0% { transform: scale(0.97); box-shadow: 0 0 0 0 rgba(255, 100, 114, 0.75); }
  70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 100, 114, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 100, 114, 0); }
}

/* Step 1: Installer */
.dl-toast {
  background: #1f1d29;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  margin-bottom: 14px;
}

.installer-card {
  background: #1d1b26;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 18px 16px;
  margin-top: auto;
  margin-bottom: auto;
  text-align: center;
}

.installer-card img {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  margin-bottom: 10px;
}

.perm-row {
  background: #14121b;
  border-radius: 10px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.73rem;
  margin: 12px 0;
  text-align: left;
}

.mini-switch {
  width: 34px;
  height: 19px;
  border-radius: 999px;
  background: #3a3748;
  position: relative;
  flex-shrink: 0;
  cursor: pointer;
  transition: background 0.2s;
}

.mini-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
}

.mini-switch.on {
  background: var(--green);
}

.mini-switch.on::after {
  transform: translateX(15px);
}

.p-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
  color: #fff;
  background: var(--primary);
  transition: opacity 0.2s, transform 0.15s;
}

.p-btn.green {
  background: #2e7d32;
}

/* Step 2: Battery Gatekeeper */
.bat-box {
  background: #1c1a24;
  border-radius: 12px;
  padding: 11px;
  margin: 10px 0;
}

.bat-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 9px;
  background: #252330;
  margin-bottom: 6px;
  cursor: pointer;
  font-size: 0.74rem;
  border: 1px solid transparent;
}

.bat-opt.selected {
  background: #163a1d;
  border-color: #4caf50;
}

/* Step 3: RinaV 3FA & Character */
.otp-row {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 12px 0;
}

.otp-cell {
  width: 32px;
  height: 38px;
  border-radius: 8px;
  background: #23202e;
  border: 1px solid rgba(206, 54, 67, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
}

.char-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 11px;
  background: #201e2b;
  border: 1px solid rgba(255,255,255,0.07);
  margin-top: 8px;
  cursor: pointer;
}

.char-card.active {
  border-color: var(--primary-light);
  background: rgba(206, 54, 67, 0.14);
}

.av-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: #fff;
  flex-shrink: 0;
}

/* Step 4 & 5: App Header, Feed, Bottom Sheet & Messages */
.app-topbar {
  height: 46px;
  padding: 0 14px;
  background: #1b1922;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.app-bottomnav {
  height: 44px;
  background: #1b1922;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-around;
  font-size: 0.95rem;
  margin-top: auto;
  flex-shrink: 0;
}

.sheet-overlay {
  background: #1d1b26;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px 18px 0 0;
  padding: 12px 14px;
  margin-top: auto;
  box-shadow: 0 -12px 30px rgba(0,0,0,0.65);
}

.setting-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.74rem;
}

.setting-line:last-child {
  border-bottom: none;
}

.msg-search {
  margin: 10px 14px 6px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #1e1c26;
  border: 1px solid rgba(255,255,255,0.07);
  color: #8b8894;
  font-size: 0.75rem;
}

.msg-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 14px;
  cursor: pointer;
  transition: background 0.15s;
}

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

.unread-pill {
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 19px;
  height: 19px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

.bubble {
  max-width: 78%;
  padding: 8px 11px;
  border-radius: 13px;
  font-size: 0.75rem;
  margin-bottom: 7px;
  line-height: 1.35;
}

.bubble.in {
  background: #23202e;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble.out {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Step 6: Lock Screen Push Notifications */
.lockscreen {
  background: linear-gradient(170deg, #1b1322 0%, #0f0e16 65%, #19121a 100%);
  text-align: center;
  padding: 20px 14px 14px;
}

.lock-clock {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
}

.lock-date {
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.push-card {
  background: rgba(31, 29, 43, 0.92);
  border: 1px solid rgba(255,255,255,0.09);
  border-left: 3px solid var(--primary);
  border-radius: 13px;
  padding: 9px 11px;
  text-align: left;
  margin-bottom: 8px;
  animation: fadeSlide 0.3s ease;
}

.push-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.66rem;
  color: var(--primary-light);
  font-weight: 700;
  margin-bottom: 3px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-title {
  color: var(--text);
  font-weight: 600;
  font-size: 0.86rem;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.78rem;
  opacity: 0.85;
}

.footer-inner a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-decoration 0.2s;
}

.footer-inner a:hover {
  text-decoration: underline;
  color: #fff;
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-left {
    text-align: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-row, .meta-strip {
    justify-content: center;
  }

  .hero-left h1 {
    font-size: 2.05rem;
  }
}

@media (max-width: 540px) {
  .step-list {
    grid-template-columns: 1fr;
  }

  .link-subtle {
    display: none;
  }

  .phone-frame {
    width: 304px;
    height: 604px;
  }
}
