/* ═══════════════════════════════════════════════════════════════
   Dedektif Ciroso — Landing Page Styles
   Palette: deep navy + warm gold (detective/vintage)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #0a0e1a;
  --bg-elev: #111827;
  --bg-card: #161c2e;
  --border: #252b3d;
  --text: #e5e7eb;
  --text-dim: #9ca3af;
  --text-mute: #6b7280;
  --gold: #f4b942;
  --gold-dim: #d99c28;
  --accent: #fde68a;
  --success: #10b981;
  --danger: #ef4444;
  --link: #60a5fa;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
  --max-w: 1180px;
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 24px;
  --shadow: 0 10px 40px rgba(0,0,0,0.4);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,14,26,0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}
.nav.scrolled {
  background: rgba(10,14,26,0.92);
  border-color: var(--border);
}
.nav-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 18px;
}
.brand-icon { font-size: 22px; }
.brand-name { background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { color: var(--text-dim); font-weight: 500; font-size: 14px; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* ═══════════ BUTTONS ═══════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  border: none; text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%);
  color: #0a0e1a;
  box-shadow: 0 4px 20px rgba(244,185,66,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(244,185,66,0.45); }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-card); border-color: var(--text-dim); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }
.btn-xl { padding: 18px 40px; font-size: 18px; }

/* ═══════════ HERO ═══════════ */
.hero {
  padding: 120px 0 80px;
  background:
    radial-gradient(ellipse at top left, rgba(244,185,66,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(96,165,250,0.08) 0%, transparent 50%),
    var(--bg);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.detective-img {
  width: 100%; max-width: 520px;
  filter: drop-shadow(0 30px 60px rgba(244,185,66,0.18)) drop-shadow(0 10px 30px rgba(0,0,0,0.5));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-mock-wrap {
  max-width: 780px; margin: 0 auto;
  padding-top: 20px;
}
.hero-mock-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 14px;
  text-align: center;
  letter-spacing: 0.02em;
}
.hero-pill {
  display: inline-block;
  background: rgba(244,185,66,0.12);
  color: var(--gold);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(244,185,66,0.3);
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.accent { background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead {
  font-size: 19px;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 560px;
}
.lead b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.hero-trust {
  display: flex; gap: 20px; font-size: 13px; color: var(--text-mute);
  flex-wrap: wrap;
}

/* MOCK REPORT (below hero) */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.mock-report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px;
  line-height: 1.8;
}
.mock-line { color: var(--text); }
.mock-line.header {
  color: var(--gold);
  font-weight: 700;
  border-bottom: 1px dashed var(--border);
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.mock-line.indent { padding-left: 20px; color: var(--text-dim); }
.mock-line b { color: var(--accent); }
.mock-line .up { color: var(--success); font-weight: 700; }
.mock-line .down { color: var(--danger); }

/* ═══════════ STATS ═══════════ */
.stats {
  padding: 60px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 900;
  background: linear-gradient(135deg, var(--gold) 0%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--text-dim); font-size: 14px; font-weight: 500; }

/* ═══════════ SECTION COMMON ═══════════ */
section { padding: 100px 0; }
.section-header { text-align: center; max-width: 780px; margin: 0 auto 60px; }
.eyebrow {
  color: var(--gold); font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-header p { font-size: 17px; color: var(--text-dim); }

/* ═══════════ FEATURES ═══════════ */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.feature-icon { font-size: 32px; margin-bottom: 16px; }
.feature h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.feature p { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

/* ═══════════ HOW ═══════════ */
.how { background: var(--bg-elev); }
.steps {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}
.step::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
}
.step-num {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 900;
  color: var(--gold);
  opacity: 0.8;
  line-height: 1;
  margin-bottom: 16px;
}
.step h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.step p { color: var(--text-dim); font-size: 14px; }

/* ═══════════ SAMPLE REPORT ═══════════ */
.sample-wrap {
  display: flex; justify-content: center;
}
.sample-report {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 14px; line-height: 1.8;
  overflow-x: auto;
  max-width: 820px;
  width: 100%;
  color: var(--text-dim);
  white-space: pre-wrap;
  box-shadow: var(--shadow);
}
.sample-report b { color: var(--accent); font-weight: 700; }
.sample-report .muted { color: var(--text-mute); font-size: 12px; }

/* ═══════════ WHY ═══════════ */
.why { background: var(--bg-elev); }
.why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}
.why-card.why-yes {
  border-color: var(--gold-dim);
  background: linear-gradient(180deg, rgba(244,185,66,0.05) 0%, var(--bg-card) 100%);
}
.why-x, .why-check {
  font-size: 16px; font-weight: 700; margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.why-x { color: var(--danger); }
.why-check { color: var(--gold); }
.why-card ul { list-style: none; }
.why-card li {
  padding: 10px 0; color: var(--text-dim); font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.why-card li:last-child { border: 0; }

/* ═══════════ DEMO FORM ═══════════ */
.demo { background: var(--bg); }
.demo-card {
  background: linear-gradient(135deg, rgba(244,185,66,0.08) 0%, rgba(96,165,250,0.04) 100%);
  border: 1px solid var(--gold-dim);
  border-radius: var(--r-lg);
  padding: 60px 40px;
  text-align: center;
  max-width: 780px; margin: 0 auto 40px;
}
.demo-card h2 { margin-bottom: 16px; }
.demo-card p { font-size: 18px; color: var(--text-dim); margin-bottom: 28px; }
.form-wrap {
  max-width: 760px; margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 32px;
}
.form-wrap h3 { font-family: var(--font-display); font-size: 28px; margin-bottom: 10px; }
.form-intro { color: var(--text-dim); margin-bottom: 24px; }
.form-wrap iframe { border-radius: var(--r-sm); background: white; min-height: 980px; }
.form-fallback { color: var(--text-mute); font-size: 13px; margin-top: 20px; text-align: center; }
.form-fallback a { color: var(--gold); text-decoration: underline; }

/* ═══════════ FAQ ═══════════ */
.faq { background: var(--bg-elev); }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 20px 24px;
  margin-bottom: 12px;
  max-width: 820px; margin-left: auto; margin-right: auto;
  cursor: pointer;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--gold-dim); }
.faq-item summary {
  font-weight: 600; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::after {
  content: '+'; font-size: 24px; color: var(--gold); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); color: var(--text-dim); font-size: 15px; }

/* ═══════════ FINAL CTA ═══════════ */
.final-cta {
  background:
    radial-gradient(ellipse at center, rgba(244,185,66,0.15) 0%, transparent 70%),
    var(--bg);
  text-align: center;
  padding: 120px 0;
}
.final-cta h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 16px; }
.final-cta p { font-size: 19px; color: var(--text-dim); margin-bottom: 36px; }

/* ═══════════ FOOTER ═══════════ */
.footer { background: var(--bg-elev); padding: 60px 0 20px; border-top: 1px solid var(--border); }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { color: var(--text-dim); font-size: 14px; margin-top: 14px; max-width: 320px; }
.footer-col h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold); margin-bottom: 16px; }
.footer-col a {
  display: block; color: var(--text-dim); font-size: 14px; padding: 6px 0;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  text-align: center; color: var(--text-mute); font-size: 13px;
  padding-top: 24px; border-top: 1px solid var(--border);
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-visual { order: -1; }
  .detective-img { max-width: 360px; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-mock-label { text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 600px) {
  section { padding: 70px 0; }
  .hero { padding: 100px 0 50px; }
  h2 { font-size: 1.8rem; }
  .stat-num { font-size: 36px; }
  .demo-card { padding: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero-trust { flex-direction: column; gap: 6px; }
}
