/* ==========================================================================
   RAFFIWD / RAFFIGAME - Mobile-First Ultra-Light Dark Theme
   Palette matched to Official RW | RAFFIWD Logo:
   Electric Cyan (#00d4f5) + Royal Ocean Blue (#1b4f8a) + Vivid Magenta (#e61ea0) + Royal Purple (#8c1477)
   ========================================================================== */

:root {
  --bg-base: #060916;
  --bg-surface: #0d1328;
  --bg-elevated: #141c38;
  --bg-alt: #090e1f;

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  /* Official Logo Brand Palette */
  --magenta: #d91a98;
  --magenta-bright: #f43fb7;
  --purple-deep: #8b147b;
  --magenta-glow: rgba(217, 26, 152, 0.36);

  --cyan: #00c4e8;
  --cyan-bright: #2be0ff;
  --royal-blue: #1b4f8a;
  --cyan-glow: rgba(0, 196, 232, 0.28);

  --whatsapp: #16a34a;
  --whatsapp-hover: #15803d;
  --telegram: #0284c7;
  --telegram-hover: #0369a1;
  --online: #22c55e;

  --border-subtle: rgba(148, 163, 184, 0.16);
  --border-strong: rgba(148, 163, 184, 0.28);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.42);
  --shadow-magenta: 0 8px 26px rgba(217, 26, 152, 0.38);
  --shadow-cyan: 0 8px 24px rgba(0, 196, 232, 0.25);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container-max: 1040px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-base);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  background-image:
    radial-gradient(ellipse 72% 48% at 20% -8%, rgba(0, 212, 245, 0.18), transparent 62%),
    radial-gradient(ellipse 68% 48% at 84% 4%, rgba(217, 26, 152, 0.17), transparent 60%),
    radial-gradient(ellipse 55% 40% at 50% 22%, rgba(27, 79, 138, 0.16), transparent 65%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 76px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--cyan-bright);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--cyan-bright);
  color: #060916;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 9, 22, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(43, 224, 255, 0.14);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(0, 196, 232, 0.25));
}

.header-nav {
  display: none;
  align-items: center;
  gap: 24px;
}

.header-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.header-nav a:hover {
  color: var(--cyan-bright);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--online);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.65);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--magenta-bright), var(--magenta) 58%, var(--purple-deep));
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(217, 26, 152, 0.35);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn-header-login:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  padding: 28px 0 44px;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-logo-wrap {
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at center, rgba(0, 196, 232, 0.14) 0%, rgba(217, 26, 152, 0.12) 48%, transparent 74%);
}

.hero-logo {
  width: min(290px, 84vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 22px rgba(217, 26, 152, 0.28)) drop-shadow(0 2px 10px rgba(0, 212, 245, 0.24));
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(13, 19, 40, 0.88);
  border: 1px solid rgba(43, 224, 255, 0.34);
  color: var(--cyan-bright);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}

.hero-title {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 6vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.text-gradient {
  background: linear-gradient(135deg, #ff6bd0 0%, var(--magenta-bright) 48%, #c026d3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-cyan {
  color: var(--cyan-bright);
}

.hero-subtitle {
  margin: 0 0 26px;
  max-width: 60ch;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.hero-subtitle strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* CTA Panel */
.cta-panel {
  width: 100%;
  max-width: 560px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(16, 23, 48, 0.94), rgba(9, 14, 31, 0.97));
  border: 1px solid rgba(43, 224, 255, 0.24);
  box-shadow: var(--shadow-card), 0 0 42px rgba(217, 26, 152, 0.12), 0 0 28px rgba(0, 196, 232, 0.08);
}

.cta-primary-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cta-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cta-divider::before,
.cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(0, 196, 232, 0.35), rgba(217, 26, 152, 0.35));
}

.cta-support-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cta-support-group .btn-livechat {
  grid-column: 1 / -1;
}

/* Thumb-Friendly Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  flex-shrink: 0;
}

.btn-primary {
  background: linear-gradient(135deg, var(--magenta-bright) 0%, var(--magenta) 52%, var(--purple-deep) 100%);
  color: #ffffff;
  font-size: 1.05rem;
  min-height: 58px;
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow-magenta);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(244, 63, 183, 0.48);
  filter: brightness(1.06);
}

.btn-secondary {
  background: linear-gradient(135deg, rgba(0, 196, 232, 0.18), rgba(27, 79, 138, 0.3));
  border-color: rgba(43, 224, 255, 0.6);
  color: #d8f8ff;
  box-shadow: var(--shadow-cyan);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, rgba(0, 196, 232, 0.28), rgba(27, 79, 138, 0.42));
  border-color: var(--cyan-bright);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #22c55e, var(--whatsapp));
  color: #ffffff;
  border-color: rgba(134, 239, 172, 0.3);
  font-size: 0.92rem;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #16a34a, var(--whatsapp-hover));
  transform: translateY(-2px);
}

.btn-telegram {
  background: linear-gradient(135deg, #229ed9, var(--telegram));
  color: #ffffff;
  border-color: rgba(125, 211, 252, 0.3);
  font-size: 0.92rem;
}

.btn-telegram:hover {
  background: linear-gradient(135deg, #0284c7, var(--telegram-hover));
  transform: translateY(-2px);
}

.btn-livechat {
  background: linear-gradient(135deg, rgba(139, 20, 123, 0.34), rgba(27, 79, 138, 0.34));
  border-color: rgba(244, 63, 183, 0.52);
  color: #fce7f6;
  font-size: 0.94rem;
}

.btn-livechat:hover {
  background: linear-gradient(135deg, rgba(217, 26, 152, 0.34), rgba(0, 196, 232, 0.24));
  border-color: var(--magenta-bright);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-compact {
  width: auto;
  min-height: 48px;
  padding: 10px 24px;
  white-space: nowrap;
}

/* Trust Strip */
.trust-strip {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  width: 100%;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.trust-strip li {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 10px;
  border-radius: var(--radius-md);
  background: rgba(13, 19, 40, 0.78);
  border: 1px solid rgba(43, 224, 255, 0.16);
}

.trust-strip strong {
  color: var(--cyan-bright);
  font-size: 0.98rem;
  font-weight: 800;
}

.trust-strip li:nth-child(even) strong {
  color: #ff73d3;
}

.trust-strip span {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

/* Sections */
.section {
  padding: 48px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 30px;
}

.section-kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan-bright);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 4.4vw, 2.05rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.section-desc {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.section-desc strong {
  color: var(--text-primary);
}

/* Cards */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(43, 224, 255, 0.38);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.feature-card h3 {
  margin: 14px 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

.feature-card strong {
  color: var(--text-primary);
}

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-magenta {
  background: rgba(217, 26, 152, 0.16);
  border: 1px solid rgba(244, 63, 183, 0.42);
  color: #ff73d3;
}

.icon-cyan {
  background: rgba(0, 196, 232, 0.15);
  border: 1px solid rgba(43, 224, 255, 0.4);
  color: var(--cyan-bright);
}

/* Guide Steps */
.steps-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 196, 232, 0.22), rgba(217, 26, 152, 0.24));
  border: 1px solid rgba(244, 63, 183, 0.44);
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 900;
}

.step-body h3 {
  margin: 0 0 6px;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-primary);
}

.step-body p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.step-body strong {
  color: var(--text-primary);
}

/* Guide Banner */
.guide-banner {
  margin-top: 22px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 28, 56, 0.96), rgba(13, 19, 40, 0.96));
  border: 1px solid rgba(244, 63, 183, 0.34);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.guide-banner-visual {
  display: flex;
  align-items: center;
  gap: 14px;
}

.guide-banner-visual img {
  flex-shrink: 0;
}

.guide-banner h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.guide-banner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.guide-banner .btn-compact {
  width: 100%;
}

/* FAQ Accordion */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] {
  border-color: rgba(244, 63, 183, 0.48);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--cyan-bright);
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--magenta-bright);
}

.faq-answer {
  padding: 0 20px 18px;
  border-top: 1px solid var(--border-subtle);
}

.faq-answer p {
  margin: 14px 0 0;
  font-size: 0.93rem;
  color: var(--text-secondary);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(43, 224, 255, 0.14);
  background: #040711;
  padding: 32px 0 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  margin: 10px 0 0;
  max-width: 46ch;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-brand strong {
  color: var(--text-secondary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
}

.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: var(--cyan-bright);
}

.footer-bottom {
  padding-top: 16px;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Floating Livechat Button */
.floating-livechat {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #00b8dc 0%, #1b5ea3 48%, #c91892 100%);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 10px 26px rgba(201, 24, 146, 0.38), 0 4px 12px rgba(0, 196, 232, 0.32);
  transition: transform 0.18s ease, box-shadow 0.2s ease, filter 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.floating-livechat:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 30px rgba(244, 63, 183, 0.48), 0 4px 14px rgba(43, 224, 255, 0.4);
}

.floating-livechat:active {
  transform: scale(0.96);
}

.floating-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #4ade80;
  border: 1.5px solid #060916;
  flex-shrink: 0;
}

/* Responsive Breakpoints (Mobile-First) */
@media (min-width: 640px) {
  .container {
    padding-inline: 24px;
  }

  .brand-logo-img {
    height: 36px;
  }

  .hero-logo {
    width: 340px;
  }

  .cta-panel {
    padding: 24px;
  }

  .cta-support-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-support-group .btn-livechat {
    grid-column: auto;
  }

  .trust-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .features-grid,
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .guide-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .guide-banner .btn-compact {
    width: auto;
  }
}

@media (min-width: 820px) {
  body {
    padding-bottom: 0;
  }

  .header-nav {
    display: flex;
  }

  .hero {
    padding: 44px 0 60px;
  }

  .section {
    padding: 68px 0;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .pulse-dot {
    animation: none;
  }

  .btn,
  .card,
  .faq-chevron,
  .floating-livechat {
    transition: none;
  }
}
