/* ══════════════════════════════════════════════
   NabungDuit — style.css
   ══════════════════════════════════════════════ */

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

:root {
  --teal:    #00bfa5;
  --teal2:   #00e5c8;
  --gold:    #f5c842;
  --dark:    #080c14;
  --dark2:   #0d1220;
  --dark3:   #111827;
  --card:    #131c2e;
  --border:  rgba(0,191,165,0.15);
  --text:    #e8edf5;
  --muted:   #6b7a99;
  --font-head: 'Syne', sans-serif;
  --font-hero: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.4;
}

/* ── Nav ──────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 5%;
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(8,12,20,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: 1.2rem; font-weight: 800;
  color: var(--text); text-decoration: none;
}

.nav-logo-img {
  width: 36px; height: 36px;
  object-fit: contain;
}

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--teal); }

.btn-nav {
  background: var(--teal); color: #080c14;
  padding: 9px 22px; border-radius: 8px;
  font-weight: 700; font-size: 0.88rem;
  text-decoration: none; transition: all .2s;
  font-family: var(--font-head);
}
.btn-nav:hover { background: var(--teal2); transform: translateY(-1px); }
.btn-nav-ghost {
  border: 1px solid rgba(0,191,165,0.4); color: var(--teal);
  padding: 8px 18px; border-radius: 8px;
  font-weight: 600; font-size: 0.88rem;
  text-decoration: none; transition: all .2s;
}
.btn-nav-ghost:hover { border-color: var(--teal); background: rgba(0,191,165,0.08); }

.lang-toggle {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px; border-radius: 6px;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer; transition: all .2s;
  font-family: var(--font-head);
  letter-spacing: 0.05em;
}
.lang-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* ── Hero ─────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,191,165,0.12) 0%, transparent 70%);
  top: -100px; right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
  max-width: 1200px; margin: 0 auto;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,191,165,0.1);
  border: 1px solid rgba(0,191,165,0.3);
  color: var(--teal); padding: 6px 14px;
  border-radius: 100px; font-size: 0.8rem;
  font-weight: 600; margin-bottom: 24px;
  letter-spacing: 0.05em;
  animation: fadeUp .6s ease both;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--teal); border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

h1 {
  font-family: var(--font-hero);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  animation: fadeUp .6s .1s ease both;
}

h1 .accent { color: var(--teal); }
h1 .gold { color: var(--gold); }

.hero-sub {
  margin-top: 20px;
  color: var(--muted); font-size: 1.05rem;
  max-width: 480px; line-height: 1.7;
  animation: fadeUp .6s .2s ease both;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: 36px;
  animation: fadeUp .6s .3s ease both;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--teal); color: #080c14;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem;
  text-decoration: none; font-family: var(--font-head);
  transition: all .25s;
  box-shadow: 0 0 30px rgba(0,191,165,0.3);
}
.btn-primary:hover {
  background: var(--teal2); transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(0,191,165,0.45);
}

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--text);
  padding: 14px 28px; border-radius: 10px;
  border: 1px solid var(--border);
  font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: all .25s;
}
.btn-secondary:hover {
  border-color: var(--teal); color: var(--teal); transform: translateY(-2px);
}

.hero-stats {
  display: flex; gap: 32px; margin-top: 48px;
  animation: fadeUp .6s .4s ease both;
}

.stat-val {
  font-family: var(--font-head);
  font-size: 1.6rem; font-weight: 800; color: var(--teal);
}
.stat-lbl { font-size: 0.78rem; color: var(--muted); }

/* App mockup */
.hero-visual {
  position: relative;
  animation: fadeUp .8s .2s ease both;
}

.app-window {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,191,165,0.05);
  position: relative;
}

.app-titlebar {
  background: #0d1220;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dot-r { width:10px;height:10px;border-radius:50%;background:#ff5f57; }
.dot-y { width:10px;height:10px;border-radius:50%;background:#febc2e; }
.dot-g { width:10px;height:10px;border-radius:50%;background:#28c840; }

.titlebar-text {
  margin-left: 8px; font-size: 0.78rem;
  color: var(--muted); font-family: var(--font-head); font-weight: 600;
}

.app-body { padding: 20px; }

/* Fake chart UI */
.fake-chart {
  background: #0a0f1a;
  border-radius: 10px;
  height: 180px;
  position: relative; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  margin-bottom: 14px;
}

.chart-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,191,165,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,191,165,0.05) 1px, transparent 1px);
  background-size: 30px 30px;
}

.candles {
  position: absolute; bottom: 20px; left: 10px;
  display: flex; align-items: flex-end; gap: 5px;
}

.candle { width: 8px; border-radius: 2px; position: relative; }
.candle.bull { background: #26a69a; }
.candle.bear { background: #ef5350; }

.analysis-result {
  background: rgba(0,191,165,0.08);
  border: 1px solid rgba(0,191,165,0.2);
  border-radius: 10px; padding: 14px;
}

.result-row {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; margin-bottom: 6px;
}
.result-row:last-child { margin-bottom: 0; }
.result-key { color: var(--muted); }
.result-val { font-weight: 600; }
.result-val.bull { color: #26a69a; }
.result-val.bear { color: #ef5350; }
.result-val.neutral { color: var(--gold); }
.result-val.teal { color: var(--teal); }

/* Mascot in app window */
.mascot {
  position: absolute; bottom: -10px; right: 20px;
  animation: float 3s ease-in-out infinite;
  animation-delay: 1s;
}
.mascot-img {
  width: 56px; height: 56px;
  object-fit: contain;
  
}

/* Floating badge */
.float-badge {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px;
  font-size: 0.75rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  animation: float 4s ease-in-out infinite;
  display: flex; align-items: center; gap: 10px;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.float-badge.top-right { top: -20px; right: -20px; animation-delay: .5s; }
.float-badge.bottom-left { bottom: -20px; left: -20px; animation-delay: 1.5s; }

.badge-icon { font-size: 1.2rem; }
.badge-text { color: var(--teal); font-weight: 700; }
.badge-sub { color: var(--muted); }

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

/* ── Section base ─────────────────────────── */
section { padding: 100px 5%; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-tag {
  display: inline-block; color: var(--teal); font-size: 0.8rem;
  font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 12px;
}

h2 {
  font-family: var(--font-hero);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -0.02em;
}
h2 .accent { color: var(--teal); }

.section-lead { color: var(--muted); font-size: 1.05rem; margin-top: 14px; max-width: 560px; }

/* ── How it works ─────────────────────────── */
.how-bg { background: linear-gradient(180deg, var(--dark) 0%, var(--dark2) 50%, var(--dark) 100%); }

.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 2px; margin-top: 60px;
  background: var(--border); border-radius: 16px; overflow: hidden;
}

.step { background: var(--card); padding: 32px 28px; position: relative; transition: background .3s; }
.step:hover { background: #18243d; }

.step-num {
  font-family: var(--font-head); font-size: 3rem; font-weight: 800;
  color: rgba(0,191,165,0.15); line-height: 1; margin-bottom: 16px;
}
.step-icon { font-size: 1.8rem; margin-bottom: 12px; }
.step h3 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }

/* ── Features ─────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 20px; margin-top: 56px;
}

.feat-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  position: relative; overflow: hidden; transition: all .3s;
}
.feat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  opacity: 0; transition: opacity .3s;
}
.feat-card:hover { border-color: rgba(0,191,165,0.35); transform: translateY(-4px); }
.feat-card:hover::before { opacity: 1; }

.feat-icon {
  width: 52px; height: 52px;
  background: rgba(0,191,165,0.1); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
  border: 1px solid rgba(0,191,165,0.2);
}
.feat-card h3 { font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feat-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }
.feat-card.highlight {
  background: linear-gradient(135deg, rgba(0,191,165,0.12), rgba(0,191,165,0.04));
  border-color: rgba(0,191,165,0.3);
}

/* ── Video section ────────────────────────── */
.video-section { background: var(--dark2); }

.video-wrap {
  margin-top: 50px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--border); position: relative;
  aspect-ratio: 16/9; max-width: 860px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.video-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #0d1525, #111f35);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  position: relative; overflow: hidden;
}
.video-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at center, rgba(0,191,165,0.08) 0%, transparent 70%);
}

.play-btn {
  width: 80px; height: 80px;
  background: var(--teal); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; cursor: pointer;
  box-shadow: 0 0 40px rgba(0,191,165,0.4);
  transition: all .3s; z-index: 1; text-decoration: none;
}
.play-btn:hover { transform: scale(1.1); background: var(--teal2); }
.video-placeholder p { color: var(--muted); font-size: 0.9rem; z-index: 1; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; display: none; }

/* ── Pricing ──────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 56px; max-width: 800px;
}
.pricing-grid-3 {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1100px;
}

.price-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px; position: relative;
}
.price-card.popular {
  border-color: var(--teal);
  background: linear-gradient(135deg, rgba(0,191,165,0.1), var(--card));
}

.popular-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #080c14;
  padding: 4px 18px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.05em; white-space: nowrap;
}

.price-tier { font-family: var(--font-head); font-size: 0.85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.price-amount { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; }
.price-amount span { font-size: 1rem; color: var(--muted); font-weight: 400; }
.price-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 24px; line-height: 1.5; }

.price-features { list-style: none; margin-bottom: 28px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; margin-bottom: 10px; }
.price-features li.dim { color: var(--muted); }
.check { color: var(--teal); font-weight: 700; }
.cross { color: var(--muted); }

.btn-price {
  display: block; width: 100%; text-align: center;
  padding: 13px 20px; border-radius: 10px;
  font-weight: 700; font-size: 0.9rem; text-decoration: none;
  font-family: var(--font-head); transition: all .25s;
}
.btn-price.free { background: var(--card); border: 1px solid var(--border); color: var(--text); }
.btn-price.free:hover { border-color: var(--teal); color: var(--teal); }
.btn-price.paid { background: var(--teal); color: #080c14; box-shadow: 0 0 25px rgba(0,191,165,0.25); }
.btn-price.paid:hover { background: var(--teal2); transform: translateY(-2px); }

.price-note { text-align: center; margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
.price-note a { color: var(--teal); text-decoration: none; }
.price-note a:hover { text-decoration: underline; }

/* Price strike + discount */
.price-amount .price-strike {
  font-size: 1.5rem; color: var(--muted);
  text-decoration: line-through; font-weight: 400;
}
.price-discount {
  display: inline-block; background: rgba(252,92,101,0.15);
  color: #fc5c65; font-size: 0.68rem; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
  margin-left: 4px; vertical-align: middle;
  font-family: var(--font-head); letter-spacing: 0.03em;
  border: 1px solid rgba(252,92,101,0.3);
}

/* Coming Soon card */
.price-card-soon {
  border-color: rgba(245,200,66,0.25);
  background: linear-gradient(135deg, rgba(245,200,66,0.05), var(--card));
  opacity: 0.85;
}
.soon-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: #080c14;
  padding: 4px 18px; border-radius: 100px;
  font-size: 0.75rem; font-weight: 700;
  font-family: var(--font-head); letter-spacing: 0.05em; white-space: nowrap;
}
.price-features-soon li { color: var(--muted); }
.soon-check { color: var(--gold) !important; }
.btn-soon {
  background: rgba(245,200,66,0.1); border: 1px solid rgba(245,200,66,0.3);
  color: var(--muted); cursor: not-allowed; font-family: var(--font-head);
  font-weight: 700; font-size: 0.9rem;
}

/* ── Download ─────────────────────────────── */
.download-section {
  background: radial-gradient(ellipse at center bottom, rgba(0,191,165,0.08) 0%, transparent 60%),
    var(--dark2);
}

.download-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}

.download-badges { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }

.dl-badge {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 24px;
  text-decoration: none; color: var(--text); transition: all .25s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.dl-badge:hover { border-color: var(--teal); transform: translateY(-3px); }
.dl-badge-icon { font-size: 1.6rem; }
.dl-badge-sub { font-size: 0.72rem; color: var(--muted); }
.dl-badge-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; }
.dl-version { font-size: 0.8rem; color: var(--muted); margin-top: 16px; }
.dl-version strong { color: var(--teal); }

/* Linux install box */
.dl-badge-linux.active { border-color: var(--teal); background: rgba(45,212,191,0.06); }
.linux-install-box {
  margin-top: 16px;
  background: var(--card);
  border: 1px solid var(--teal);
  border-radius: 14px;
  padding: 20px 22px;
  animation: fadeSlideDown .25s ease;
}
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lib-header {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 0.95rem; color: var(--teal);
  margin-bottom: 8px;
}
.lib-desc { font-size: 0.85rem; color: var(--muted); margin-bottom: 12px; }
.lib-cmd-wrap {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px;
}
.lib-cmd {
  flex: 1; font-family: 'Courier New', monospace;
  font-size: 0.82rem; color: var(--text);
  word-break: break-all; user-select: all;
}
.lib-copy-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.1rem; padding: 4px 6px; border-radius: 6px;
  transition: background .2s; flex-shrink: 0;
}
.lib-copy-btn:hover { background: var(--border); }
.lib-copy-btn.copied { filter: grayscale(1); }
.lib-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }
.dl-register-note { margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
.dl-register-link { color: var(--teal); font-weight: 600; text-decoration: none; margin-left: 6px; }
.dl-register-link:hover { text-decoration: underline; }

/* Chicken mascot big */
.mascot-big {
  display: flex; align-items: center; justify-content: center;
  animation: float 4s ease-in-out infinite;
}
.mascot-big-img {
  width: 220px; height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px rgba(0,191,165,0.25));
}

/* ── Trust bar ────────────────────────────── */
.trust-bar {
  display: flex; justify-content: center; align-items: center; gap: 48px;
  padding: 32px 5%; border-bottom: 1px solid var(--border); flex-wrap: wrap;
}
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); }
.trust-item .ti { font-size: 1.2rem; }

/* ── Footer ───────────────────────────────── */
footer { padding: 48px 5% 32px; border-top: 1px solid var(--border); }

.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 20px;
}

.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  color: var(--text); text-decoration: none;
}
.footer-logo .accent { color: var(--teal); }
.footer-logo-img {
  width: 28px; height: 28px;
  object-fit: contain; 
}

.footer-links { display: flex; gap: 24px; }
.footer-links a { color: var(--muted); font-size: 0.85rem; text-decoration: none; transition: color .2s; }
.footer-links a:hover { color: var(--teal); }

.footer-copy {
  color: var(--muted); font-size: 0.8rem;
  width: 100%; text-align: center;
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ── Scroll reveal ────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Glow line ────────────────────────────── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--teal) 50%, transparent 100%);
  opacity: 0.4;
}

/* ── Responsive ───────────────────────────── */
@media (max-width: 1100px) {
  .pricing-grid-3 { grid-template-columns: 1fr 1fr; max-width: 100%; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid, .pricing-grid-3 { grid-template-columns: 1fr; max-width: 100%; }
  .download-grid { grid-template-columns: 1fr; }
  .mascot-big { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .trust-bar { gap: 24px; }
}
