/* ============================================================
   Rasi Web Messenger — Landing Page (Modern Dark Redesign)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
  --indigo:       #6366f1;
  --indigo-dark:  #4f52d3;
  --indigo-glow:  rgba(99,102,241,.35);
  --green:        #10b981;
  --green-glow:   rgba(16,185,129,.25);

  --bg:           #080b11;
  --surface:      rgba(255,255,255,0.04);
  --surface-2:    rgba(255,255,255,0.07);
  --border:       rgba(255,255,255,0.09);
  --border-strong:rgba(255,255,255,0.16);

  --text-1: #f0f0fa;
  --text-2: #94a3b8;
  --muted:  #64748b;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --font: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, sans-serif;
  --container: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-1);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Ambient background blobs */
body::before, body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .45;
}
body::before {
  width: 700px; height: 700px;
  top: -200px; left: -150px;
  background: radial-gradient(circle, rgba(99,102,241,.25) 0%, transparent 70%);
}
body::after {
  width: 600px; height: 600px;
  bottom: -100px; right: -100px;
  background: radial-gradient(circle, rgba(16,185,129,.15) 0%, transparent 70%);
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
p a, .step a, .faq-a a { color: #a5b4fc; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
p a:hover, .step a:hover, .faq-a a:hover { color: #c7d2fe; }
img, svg { display: block; max-width: 100%; }

code {
  font-family: 'Cascadia Code', 'Consolas', 'SF Mono', monospace;
  font-size: .88em;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  padding: 2px 7px;
  border-radius: 6px;
  color: #a5b4fc;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--indigo), #818cf8);
  color: #fff;
  box-shadow: 0 6px 22px var(--indigo-glow);
}
.btn-primary:hover { box-shadow: 0 10px 30px var(--indigo-glow); background: linear-gradient(135deg,#5355e8,#9aa0fd); }

.btn-ghost {
  background: var(--surface-2);
  color: var(--text-1);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { border-color: var(--indigo); color: #a5b4fc; background: rgba(99,102,241,.1); }

.btn-lg { padding: 15px 30px; font-size: 16px; border-radius: 16px; }

/* ---- Navbar ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,17,.75);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .brand-plus { color: #a5b4fc; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-2); transition: color .15s; }
.nav-links a:hover { color: var(--text-1); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text-1); margin: 5px 0; border-radius: 2px; transition: .2s ease; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 112px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 70% 20%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(16,185,129,.08), transparent 60%);
  pointer-events: none;
}

.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 56px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.28);
  color: #a5b4fc;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52,211,153,.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
  50%       { box-shadow: 0 0 0 7px rgba(52,211,153,.08); }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.08;
}
.hero h1 .accent {
  background: linear-gradient(135deg, #a5b4fc 0%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub { margin-top: 22px; font-size: 18px; color: var(--text-2); max-width: 520px; line-height: 1.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-meta {
  display: flex; flex-wrap: wrap; gap: 22px;
  margin-top: 36px; padding-top: 26px;
  border-top: 1px solid var(--border);
}
.hero-meta-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.hero-meta-item svg { color: var(--indigo); flex: none; }

.hero-visual { position: relative; }
.hero-visual img { width: 100%; border-radius: var(--radius-xl); border: 1px solid var(--border); }

.hero-float {
  position: absolute;
  background: rgba(15,20,30,.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(12px);
}
.hero-float.f1 { top: 8%; left: -6%; }
.hero-float.f2 { bottom: 10%; right: -4%; }
.hero-float .ic {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(99,102,241,.15); color: #a5b4fc;
}

/* ---- Trust strip ---- */
.trust { border-top: 1px solid var(--border); background: rgba(255,255,255,.02); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; padding: 40px 0; }
.trust-item { text-align: center; }
.trust-item .num {
  font-size: 34px; font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg,#a5b4fc,#34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.trust-item .label { font-size: 13px; color: var(--text-2); margin-top: 5px; }

/* ---- Sections ---- */
.section { padding: 96px 0; }
.section-alt { background: rgba(255,255,255,.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.25);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(28px,3.8vw,42px); }
.section-head p { margin-top: 14px; font-size: 16.5px; color: var(--text-2); }

/* ---- Core features ---- */
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(99,102,241,.4);
  background: rgba(99,102,241,.06);
  box-shadow: 0 12px 36px rgba(0,0,0,.4);
}

.feature-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 20px;
  background: rgba(99,102,241,.15); color: #a5b4fc;
}
.feature-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--text-1); }
.feature-card p  { font-size: 14px; color: var(--text-2); }

/* ---- Feature explorer ---- */
.feature-explorer { background: transparent; }

.category-card-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }

.category-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 8px; padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer; font-family: inherit; color: var(--text-1); text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99,102,241,.45);
  background: rgba(99,102,241,.07);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.category-card .cat-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(99,102,241,.15); color: #a5b4fc; margin-bottom: 6px;
}
.category-card-title { font-size: 17px; font-weight: 700; }
.category-card-count {
  font-size: 11px; font-weight: 700; color: #a5b4fc;
  background: rgba(99,102,241,.15); padding: 3px 10px; border-radius: 999px;
}
.category-card-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.5; flex: 1; }
.category-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #a5b4fc; margin-top: 10px; }
.category-card:hover .category-card-cta svg { transform: translateX(4px); }
.category-card-cta svg { transition: transform .16s ease; }

.category-detail { display: flex; flex-direction: column; gap: 20px; }
.back-btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  background: none; border: none; font-family: inherit; font-size: 14px; font-weight: 600;
  color: #a5b4fc; cursor: pointer; padding: 6px 10px 6px 6px; border-radius: 8px;
  transition: background .15s ease;
}
.back-btn:hover { background: rgba(99,102,241,.12); }

.category-detail-header { display: flex; align-items: center; gap: 16px; padding-bottom: 4px; }
.category-detail-header .cat-icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: rgba(99,102,241,.15); color: #a5b4fc; flex: none; }
.category-detail-header h3 { font-size: 24px; }
.category-detail-header p { color: var(--text-2); font-size: 15px; margin-top: 4px; }
.category-detail .addon-grid { margin-left: 0; }

.addon-cat-label { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a5b4fc; margin-bottom: 10px; }

.feature-search { max-width: 480px; margin: 18px auto 44px; position: relative; }
.feature-search input {
  width: 100%; padding: 14px 18px 14px 48px;
  border: 1px solid var(--border); border-radius: 999px;
  font-size: 15px; font-family: inherit;
  background: var(--surface); color: var(--text-1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.feature-search input::placeholder { color: var(--muted); }
.feature-search input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 4px rgba(99,102,241,.15); }
.feature-search svg { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--muted); }

.addon-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.addon-card {
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 18px; background: var(--surface);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.addon-card:hover { transform: translateY(-2px); border-color: rgba(99,102,241,.3); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.addon-name { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.addon-name .badge { font-size: 10px; font-weight: 700; background: rgba(16,185,129,.15); color: #34d399; padding: 2px 7px; border-radius: 6px; }
.addon-desc { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.addon-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.addon-tags span { font-size: 11.5px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); padding: 3px 9px; border-radius: 7px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); display: none; }
.empty-state.show { display: block; }

/* ---- Steps ---- */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px; position: relative;
  transition: border-color .2s, background .2s;
}
.step:hover { border-color: rgba(99,102,241,.4); background: rgba(99,102,241,.04); }

.step-num {
  width: 42px; height: 42px; border-radius: 13px;
  background: linear-gradient(135deg,var(--indigo),#818cf8);
  color: #fff; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; margin-bottom: 20px;
  box-shadow: 0 4px 14px var(--indigo-glow);
}
.step h3 { font-size: 18px; margin-bottom: 10px; }
.step p  { font-size: 14.5px; color: var(--text-2); }

/* ---- Privacy band ---- */
.privacy-band { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.privacy-band .copy h2 { font-size: clamp(26px,3.4vw,38px); }
.privacy-band .copy p { margin-top: 16px; font-size: 16.5px; color: var(--text-2); }
.privacy-points { margin-top: 28px; display: grid; gap: 16px; }
.privacy-point { display: flex; gap: 14px; align-items: flex-start; }
.privacy-point .tick {
  flex: none; width: 26px; height: 26px; border-radius: 9px;
  background: rgba(16,185,129,.15); color: #34d399; display: grid; place-items: center;
}
.privacy-point b    { display: block; font-size: 15px; }
.privacy-point span { font-size: 13.5px; color: var(--text-2); }

/* ---- Requirements ---- */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.req-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px;
  transition: border-color .2s;
}
.req-card:hover { border-color: rgba(99,102,241,.35); }
.req-card h3 { font-size: 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.req-card h3 svg { color: #a5b4fc; }
.req-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.req-card li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); align-items: flex-start; }
.req-card li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); margin-top: 8px; }

/* ---- Pricing ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  align-items: start;
  margin-top: 52px;
}
@media (max-width: 1024px) { .pricing-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 24px 24px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.pricing-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,.5); border-color: var(--border-strong); }

.pricing-popular {
  border-color: var(--indigo);
  background: linear-gradient(160deg, rgba(99,102,241,.1) 0%, var(--surface) 60%);
  box-shadow: 0 0 0 1px var(--indigo), 0 10px 36px var(--indigo-glow);
  transform: translateY(-10px);
}
.pricing-popular:hover { transform: translateY(-15px); }

.pricing-badge-top {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--indigo); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .5px;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap;
}
.pricing-badge-year { background: linear-gradient(90deg,#f59e0b,#ef4444); }

.pricing-duration { font-size: 12px; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 10px; }

.pricing-price { font-size: 28px; font-weight: 800; color: var(--text-1); line-height: 1; }
.pricing-price span { font-size: 13px; font-weight: 500; color: var(--text-2); }
.pricing-popular .pricing-price { color: #a5b4fc; }

.pricing-permonth { font-size: 12px; color: var(--text-2); margin-top: -4px; }

.pricing-features { list-style: none; padding: 0; margin: 8px 0 4px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.pricing-features li { font-size: 13px; color: var(--text-2); }
.pricing-features li.dim { color: rgba(148,163,184,.35); }
.pricing-features strong { color: var(--text-1); }

.pricing-btn { margin-top: auto; text-align: center; justify-content: center; width: 100%; }

.pricing-note { font-size: 11px; color: #818cf8; text-align: center; font-weight: 500; }

.pricing-note-bottom { text-align: center; margin-top: 36px; font-size: 13.5px; color: var(--text-2); }
.pricing-note-bottom a { color: #a5b4fc; }
.pricing-note-bottom a:hover { color: #c7d2fe; }

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-bottom: 12px; overflow: hidden;
  transition: border-color .2s;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item.open  { border-color: rgba(99,102,241,.4); }

.faq-q {
  width: 100%; text-align: left; background: none; border: none;
  padding: 20px 24px; font-size: 15.5px; font-weight: 600;
  font-family: inherit; color: var(--text-1); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform .2s ease; color: var(--muted); flex: none; }
.faq-item.open .chev { transform: rotate(180deg); color: var(--indigo); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 24px 22px; font-size: 14.5px; color: var(--text-2); line-height: 1.7; }

/* ---- Footer ---- */
.site-footer { background: rgba(0,0,0,.4); border-top: 1px solid var(--border); padding: 64px 0 36px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { width: 38px; height: 38px; border-radius: 10px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: var(--text-2); max-width: 280px; }
.footer-col h4 { font-size: 13px; margin-bottom: 16px; color: var(--text-1); letter-spacing: .06em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--text-2); transition: color .15s ease; }
.footer-col a:hover { color: var(--text-1); }

.footer-bottom {
  padding-top: 26px; display: flex; justify-content: space-between;
  gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.disclaimer { margin-top: 8px; font-size: 12px; color: var(--muted); max-width: 720px; }

/* ---- Reveal ---- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s ease; }
.js .reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-float.f1 { left: 0; }
  .hero-float.f2 { right: 0; }
  .features-grid, .steps-grid, .trust-grid { grid-template-columns: repeat(2,1fr); }
  .addon-grid { grid-template-columns: repeat(2,1fr); }
  .category-card-grid { grid-template-columns: repeat(2,1fr); }
  .privacy-band, .req-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(8,11,17,.96); backdrop-filter: blur(16px);
    padding: 18px 24px 24px;
    border-bottom: 1px solid var(--border); gap: 16px;
    box-shadow: 0 24px 48px rgba(0,0,0,.5);
  }
}

@media (max-width: 640px) {
  .features-grid, .steps-grid, .trust-grid { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .category-card-grid { grid-template-columns: 1fr; }
  .category-detail-header { flex-direction: column; align-items: flex-start; }
  .hero { padding: 56px 0 72px; }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; }
}
