/* ==========================================================================
   RajaNokos Landing Page — tema terang
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --surface: #f9f9fc;
  --surface-border: #e7e6f0;
  --text: #16141f;
  --text-muted: #5c5972;
  --text-faint: #8b889c;

  --cyan: #0891b2;
  --violet: #7c3aed;
  --pink: #db2777;

  --gradient-brand: linear-gradient(120deg, var(--violet), var(--cyan));

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --font-display: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; color: var(--text-muted); }

:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Layout helpers ---------- */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 96px 24px;
}

.section-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--violet);
  margin-bottom: 14px;
}

.section h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  max-width: 20ch;
}

.section h2 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-desc {
  max-width: 52ch;
  margin-top: 16px;
  font-size: 16px;
}

/* ---------- Navbar ---------- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  position: relative;
  z-index: 20;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--gradient-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
}

.brand span span { color: var(--violet); }

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.login-link {
  font-size: 15px;
  color: var(--text-muted);
}
.login-link:hover { color: var(--text); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 20px;
}
.mobile-menu.show { display: flex; }
.mobile-menu a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--surface-border);
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--gradient-brand);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(124, 58, 237, 0.32); }

.btn-small { padding: 9px 18px; font-size: 14px; }

.btn-outline {
  border-color: var(--surface-border);
  color: var(--text);
  background: #ffffff;
}
.btn-outline:hover { border-color: var(--violet); }

.btn-dark {
  background: var(--text);
  color: #ffffff;
}
.btn-dark:hover { opacity: 0.9; }

.btn-light {
  background: transparent;
  border-color: rgba(255,255,255,0.5);
  color: #ffffff;
}
.btn-light:hover { border-color: #ffffff; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 40px 24px 100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  animation: hero-rise 0.7s ease both;
}

@keyframes hero-rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.15);
}

.hero h1 {
  font-size: clamp(38px, 5.4vw, 60px);
  font-weight: 800;
  line-height: 1.06;
}

.hero h1 span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text {
  margin-top: 22px;
  font-size: 17px;
  max-width: 46ch;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--surface-border);
}
.trust-row strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
}
.trust-row small {
  color: var(--text-faint);
  font-size: 13px;
}

/* ---------- Hero phone card ---------- */
.hero-card-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.glow {
  position: absolute;
  inset: -50px;
  background: radial-gradient(circle at 30% 25%, rgba(124, 58, 237, 0.18), transparent 60%),
              radial-gradient(circle at 75% 65%, rgba(8, 145, 178, 0.15), transparent 55%);
  filter: blur(6px);
  z-index: 0;
}

.phone-card {
  position: relative;
  z-index: 1;
  width: 300px;
  border-radius: 36px;
  background: linear-gradient(180deg, #1c1a2b, #12111c);
  box-shadow: 0 30px 60px rgba(23, 15, 55, 0.22);
  overflow: hidden;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.online { color: #4ee3d6; }

.phone-screen {
  padding: 24px 20px 28px;
}

.mini-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

.phone-screen h3 {
  font-size: 20px;
  color: #ffffff;
  margin-top: 6px;
  margin-bottom: 18px;
}

.number-box {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.number-box span { font-size: 13px; color: rgba(255,255,255,0.6); }
.number-box b { font-size: 18px; color: #ffffff; }
.number-box small { color: rgba(255,255,255,0.4); font-size: 12px; }

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.mini-grid div {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.mini-grid b { display: block; font-size: 13px; color: #ffffff; }
.mini-grid span { font-size: 12px; color: rgba(255,255,255,0.45); }

.fake-button {
  margin-top: 18px;
  text-align: center;
  padding: 13px;
  border-radius: 999px;
  background: var(--gradient-brand);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.feature-card {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  background: var(--surface);
}

.feature-card .icon { font-size: 22px; margin-bottom: 16px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 700; }
.feature-card p { font-size: 14.5px; }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 52px;
  position: relative;
}

.steps-grid::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: var(--surface-border);
  z-index: 0;
}

.step { position: relative; z-index: 1; }

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  margin-bottom: 18px;
}
.step-number.active {
  background: var(--gradient-brand);
  color: #ffffff;
  border-color: transparent;
}

.step h3 { font-size: 16px; margin-bottom: 8px; font-weight: 700; }
.step p { font-size: 14px; }

/* ---------- CTA ---------- */
.cta {
  max-width: 1120px;
  margin: 40px auto;
  padding: 56px 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #7c3aed, #0891b2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta .section-label { color: rgba(255,255,255,0.8); }
.cta h2 { font-size: clamp(24px, 3vw, 32px); margin-top: 8px; color: #ffffff; }
.cta p { margin-top: 14px; color: rgba(255,255,255,0.85); }
.cta-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-list details {
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  background: var(--surface);
}
.faq-list summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  font-size: 20px;
  color: var(--violet);
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list p { margin-top: 14px; font-size: 14.5px; }

/* ---------- Footer ---------- */
.footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--surface-border);
}
.footer-brand { font-size: 16px; }
.footer p { color: var(--text-faint); font-size: 13.5px; }
.footer a { color: var(--violet); font-size: 14px; font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .hero { grid-template-columns: 1fr; }
  .hero-card-wrap { order: -1; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .steps-grid::before { display: none; }
  .cta { flex-direction: column; align-items: flex-start; padding: 40px 28px; }
}

@media (max-width: 520px) {
  .steps-grid { grid-template-columns: 1fr; }
  .trust-row { gap: 24px; flex-wrap: wrap; }
  .phone-card { width: 100%; max-width: 320px; }
}
