/* ============================================================
   ALEXANDRITE — Sistem Warga (Standalone Night Mode)
   Cyber / High-Tech Theme with dot pattern background
   ============================================================ */

/* ── Google Fonts (Inline) ───────────────────────────────────── */

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

/* ── Root Tokens ─────────────────────────────────────────────── */
:root {
  --neon: #25D366;
  --neon-dim: rgba(37, 211, 102, 0.25);
  --neon-glow: 0 0 8px rgba(37, 211, 102, 0.6), 0 0 24px rgba(37, 211, 102, 0.2);
  --bg-deep:    #040d07;       /* Near-black with green tint */
  --bg-surface: #070f09;
  --bg-panel:   rgba(10, 24, 13, 0.7);
  --border:     rgba(37, 211, 102, 0.15);
  --border-hover: rgba(37, 211, 102, 0.4);
  --text:       #e8f5ea;
  --muted:      #7aab82;
  --white:      #ffffff;
  --font-body:  'DM Sans', system-ui, sans-serif;
  --font-mono:  'DM Mono', monospace;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-pill: 999px;
  --max-w:      1140px;
}

/* ── Base ────────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  /* Cyber dot pattern background */
  background-image: radial-gradient(circle, rgba(37, 211, 102, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Subtle gradient layer on top of dots */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 211, 102, 0.08) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(37, 211, 102, 0.05) 0%, transparent 60%);
}

/* All sections stack above the fixed background */
body > * { position: relative; z-index: 1; }

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3 { color: var(--white); line-height: 1.15; }
a { text-decoration: none; }

/* ── Buttons ─────────────────────────────────────────────────── */
.sw-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.sw-btn svg { width: 16px; height: 16px; }

.sw-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.sw-btn-ghost:hover {
  color: var(--neon);
  border-color: var(--neon-dim);
  background: rgba(37, 211, 102, 0.06);
}

.sw-btn-primary {
  background: var(--neon);
  color: #042408;
  font-weight: 700;
  box-shadow: var(--neon-glow);
}
.sw-btn-primary:hover {
  background: #1db855;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.8), 0 0 40px rgba(37, 211, 102, 0.3);
  transform: translateY(-1px);
}

.sw-btn-lg {
  padding: 16px 40px;
  font-size: 17px;
  border-radius: var(--radius-pill);
}
.sw-btn-lg svg { width: 20px; height: 20px; }

/* ── Navbar ──────────────────────────────────────────────────── */
.sw-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 40px;
  background: rgba(4, 10, 6, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.sw-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sw-brand img {
  filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.5));
}
.sw-brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.3px;
}

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

/* ── Hero ────────────────────────────────────────────────────── */
.sw-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 40px 80px;
  text-align: center;
}

.sw-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.sw-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--neon);
  letter-spacing: 0.3px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: rgba(37, 211, 102, 0.06);
  margin-bottom: 32px;
}
.sw-eyebrow svg { width: 14px; height: 14px; }

.sw-hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
  color: var(--white);
}

.sw-neon {
  color: var(--neon);
  text-shadow: var(--neon-glow);
}

.sw-hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 56px;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 56px;
}

/* Hero Stats Bar */
.sw-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  padding: 24px 48px;
  width: fit-content;
  margin: 0 auto;
  gap: 40px;
}

.sw-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sw-stat-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--neon);
  text-shadow: var(--neon-glow);
}

.sw-stat-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sw-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ── Features Grid ───────────────────────────────────────────── */
.sw-features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 40px 100px;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.sw-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.sw-feature-reverse {
  /* Mirror layout for alternating ZigZag */
}
.sw-feature-reverse .sw-feature-content { order: 2; }
.sw-feature-reverse .sw-mockup { order: 1; }

/* Feature Content */
.sw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sw-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(37, 211, 102, 0.08);
  color: var(--neon);
  border: 1px solid var(--border);
  letter-spacing: 0.5px;
}

.sw-feature-content h2 {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.sw-feature-content p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.sw-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sw-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text);
}

.sw-checklist li svg {
  width: 18px;
  height: 18px;
  color: var(--neon);
  flex-shrink: 0;
  filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.5));
}

/* ── Mockup Container ────────────────────────────────────────── */
.sw-mockup {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-panel);
  backdrop-filter: blur(12px);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.sw-mockup:hover {
  border-color: var(--border-hover);
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.12), 0 0 80px rgba(37, 211, 102, 0.05);
}

/* Ambient glow behind mockup */
.sw-mockup::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px rgba(37, 211, 102, 0.04);
}

.sw-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sw-mockup:hover img { transform: scale(1.03); }

/* Placeholder when image missing */
.sw-mockup-ph {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px;
  text-align: center;
}

.sw-mockup-ph svg {
  width: 40px;
  height: 40px;
  color: var(--border-hover);
}

.sw-mockup-ph code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ── Feature Section Separator ───────────────────────────────── */
.sw-feature + .sw-feature {
  border-top: 1px solid var(--border);
  padding-top: 100px;
}

/* ── Bottom CTA ──────────────────────────────────────────────── */
.sw-cta {
  text-align: center;
  padding: 100px 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(to bottom, transparent, rgba(37, 211, 102, 0.03) 50%, transparent);
}

.sw-cta-inner {
  max-width: 640px;
  margin: 0 auto;
}

.sw-cta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--neon);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  background: rgba(37, 211, 102, 0.06);
  margin-bottom: 24px;
}

.sw-cta h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.sw-cta p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}

/* ── Mobile Responsive ───────────────────────────────────────── */
@media (max-width: 900px) {
  .sw-nav { padding: 14px 20px; }
  .sw-nav-actions .sw-btn-ghost { display: none; }

  .sw-hero { padding: 100px 24px 60px; }
  .sw-hero-stats { padding: 20px 24px; gap: 20px; }
  .sw-stat-value { font-size: 22px; }

  .sw-features { padding: 60px 24px 80px; gap: 80px; }

  .sw-feature,
  .sw-feature-reverse .sw-feature-content,
  .sw-feature-reverse .sw-mockup {
    grid-template-columns: 1fr;
    order: unset;
  }

  .sw-feature {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .sw-feature-reverse .sw-feature-content { order: 1; }
  .sw-feature-reverse .sw-mockup { order: 2; }

  .sw-feature + .sw-feature { padding-top: 80px; }

  .sw-cta { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .sw-hero-title { font-size: 34px; }
  .sw-hero-sub { font-size: 16px; }
  .sw-hero-stats { 
    flex-direction: row; 
    padding: 16px 20px;
    gap: 16px;
  }
  .sw-stat-divider { height: 30px; }
}
