/* ═══════════════════════════════════════════════════
   Upaj Marketing — Dark Theme
   ═══════════════════════════════════════════════════ */

:root {
  --bg: hsl(222 50% 8%);
  --bg-alt: hsl(222 47% 6%);
  --card: hsl(222 47% 11%);
  --border: hsl(217 33% 17%);
  --fg: hsl(210 40% 98%);
  --muted: hsl(215 16% 47%);
  --primary: hsl(240 100% 68%);
  --primary-hover: hsl(240 100% 60%);
  --positive: hsl(142 71% 45%);
  --negative: hsl(0 84% 60%);
  --warning: hsl(38 92% 50%);
  --gold: hsl(45 80% 46%);
  --radius: 0.5rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; }

.text-primary { color: var(--primary); }
.text-positive { color: var(--positive); }
.text-negative { color: var(--negative); }
.text-warning { color: var(--warning); }

/* ─── BUTTONS ───────────────────────────────────── */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff;
  padding: 0.625rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--fg);
  padding: 0.625rem 1.5rem; border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 500;
  transition: background 0.2s, border-color 0.2s;
}
.btn-ghost:hover { background: var(--card); border-color: var(--muted); }

.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; text-align: center; }

/* ─── NAVIGATION ────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: hsla(222, 50%, 8%, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 4rem;
}

.logo { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.875rem; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }

.nav-actions { display: flex; gap: 0.75rem; align-items: center; }

.mobile-menu-btn { display: none; background: none; border: none; color: var(--fg); cursor: pointer; }

/* ─── HERO ──────────────────────────────────────── */

.hero { padding: 8rem 0 5rem; }

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}

.hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
.hero-sub { margin-top: 1.25rem; font-size: 1.125rem; color: var(--muted); max-width: 480px; }
.hero-ctas { display: flex; gap: 1rem; margin-top: 2rem; }
.hero-note { margin-top: 1rem; font-size: 0.8rem; color: var(--muted); }

/* Dashboard mockup */
.dashboard-mock {
  background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem;
  overflow: hidden;
}
.mock-header {
  display: flex; gap: 6px; padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-body { padding: 1.5rem; }
.mock-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.mock-stat { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.mock-label { display: block; font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.mock-value { display: block; font-size: 1.1rem; font-weight: 700; font-family: ui-monospace, monospace; margin-top: 0.25rem; font-variant-numeric: tabular-nums; }
.mock-chart { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.mock-bar {
  flex: 1; background: var(--primary); border-radius: 4px 4px 0 0; opacity: 0.7;
  animation: barGrow 1.2s ease-out both;
}
.mock-bar:nth-child(2) { background: var(--positive); }
.mock-bar:nth-child(4) { background: var(--warning); }
.mock-bar:nth-child(6) { background: var(--positive); opacity: 0.5; }

@keyframes barGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ─── SECTIONS ──────────────────────────────────── */

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-size: 2rem; font-weight: 700; text-align: center; letter-spacing: -0.01em;
}
.section-sub {
  text-align: center; color: var(--muted); margin-top: 0.75rem;
  max-width: 560px; margin-left: auto; margin-right: auto; font-size: 1rem;
}

/* ─── GRIDS ─────────────────────────────────────── */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2.5rem; }

/* ─── CARDS ─────────────────────────────────────── */

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.75rem;
}
.card h3 { font-size: 1rem; font-weight: 600; margin-top: 1rem; }
.card p { font-size: 0.875rem; color: var(--muted); margin-top: 0.5rem; line-height: 1.6; }

.card-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted);
}
.card-icon.icon-primary { color: var(--primary); border-color: hsl(240 100% 68% / 0.2); background: hsl(240 100% 68% / 0.08); }

/* ─── STEPS ─────────────────────────────────────── */

.steps {
  display: flex; align-items: flex-start; justify-content: center; gap: 0;
  margin-top: 3rem;
}

.step { text-align: center; max-width: 280px; padding: 0 1rem; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: hsl(240 100% 68% / 0.1); border: 2px solid var(--primary);
  color: var(--primary); font-size: 1rem; font-weight: 700;
  font-family: ui-monospace, monospace;
}
.step h3 { font-size: 1rem; font-weight: 600; margin-top: 1rem; }
.step p { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

.step-line {
  flex-shrink: 0; width: 60px; height: 2px;
  background: var(--border); margin-top: 24px;
}

/* ─── CHECK ITEMS ───────────────────────────────── */

.check-item {
  display: flex; gap: 1rem; padding: 1.25rem;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
}
.check-icon { flex-shrink: 0; margin-top: 2px; }
.check-item h4 { font-size: 0.95rem; font-weight: 600; }
.check-item p { font-size: 0.85rem; color: var(--muted); margin-top: 0.25rem; }

/* ─── PRICING ───────────────────────────────────── */

.pricing-card { text-align: center; position: relative; }
.pricing-card h3 { margin-top: 0; font-size: 1.1rem; }
.pricing-card .price { margin: 1.25rem 0; }
.pricing-card .currency { font-size: 1.25rem; color: var(--muted); vertical-align: top; }
.pricing-card .amount {
  font-size: 2.5rem; font-weight: 700; font-family: ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}
.pricing-card .period { font-size: 0.875rem; color: var(--muted); }

.pricing-features { list-style: none; text-align: left; margin: 1.5rem 0; }
.pricing-features li {
  padding: 0.5rem 0; font-size: 0.875rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.pricing-features li:last-child { border: none; }

.pricing-recommended {
  border-color: var(--primary);
  background: hsl(240 100% 68% / 0.04);
}
.recommended-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  padding: 0.25rem 1rem; border-radius: 9999px;
  font-size: 0.75rem; font-weight: 600;
}

.pricing-annual {
  font-size: 0.8125rem; color: var(--muted);
  margin: -0.25rem 0 0.5rem;
}

.pricing-persona {
  font-size: 0.8125rem; color: var(--muted);
  margin: -0.5rem 0 1rem;
}

.pricing-addons {
  margin: 1rem 0 1.5rem;
  padding: 0.75rem;
  background: hsl(0 0% 100% / 0.03);
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  text-align: left;
}
.pricing-addons .addon-label {
  font-size: 0.6875rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.5rem;
}
.pricing-addons span {
  display: inline-block; font-size: 0.75rem; color: var(--muted);
  margin-right: 0.75rem; font-family: ui-monospace, monospace;
}

.pricing-includes {
  margin-top: 3rem; text-align: center;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: hsl(0 0% 100% / 0.02);
}
.pricing-includes h3 {
  font-size: 1rem; margin-bottom: 1.25rem;
}
.includes-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem;
}
.includes-grid span {
  font-size: 0.8125rem; color: var(--muted);
  padding: 0.25rem 0;
}
.includes-grid span::before {
  content: '✓ '; color: hsl(142 71% 45%); font-weight: 600;
}

.pricing-enterprise {
  margin-top: 2rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: hsl(0 0% 100% / 0.02);
}
.enterprise-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.enterprise-inner h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.enterprise-inner p { font-size: 0.875rem; color: var(--muted); margin-bottom: 0.75rem; }
.enterprise-inner ul {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem;
}
.enterprise-inner ul li {
  font-size: 0.8125rem; color: var(--muted);
}
.enterprise-inner ul li::before {
  content: '→ '; color: var(--primary);
}

.pricing-notes {
  margin-top: 1.5rem; text-align: center;
}
.pricing-notes p {
  font-size: 0.75rem; color: var(--muted); margin: 0.25rem 0;
}

@media (max-width: 768px) {
  .enterprise-inner {
    flex-direction: column; text-align: center; align-items: stretch;
  }
  .enterprise-inner ul { justify-content: center; }
}

/* ─── TRUST BADGES ──────────────────────────────── */

.trust-grid { text-align: center; }
.trust-badge { padding: 1.5rem; }
.trust-badge svg { color: var(--primary); margin-bottom: 0.75rem; }
.trust-badge h4 { font-size: 0.9rem; font-weight: 600; }
.trust-badge p { font-size: 0.8rem; color: var(--muted); margin-top: 0.25rem; }

/* ─── CTA SECTION ───────────────────────────────── */

.cta-section {
  background: hsl(240 100% 68% / 0.04);
  border-top: 1px solid hsl(240 100% 68% / 0.1);
  border-bottom: 1px solid hsl(240 100% 68% / 0.1);
}
.cta-inner { text-align: center; max-width: 600px; }
.cta-inner h2 { font-size: 2rem; font-weight: 700; }
.cta-inner p { color: var(--muted); margin-top: 0.75rem; font-size: 1.05rem; }
.cta-inner .hero-ctas { justify-content: center; margin-top: 2rem; }

/* ─── FOOTER ────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 0.5rem; max-width: 260px; }
.footer-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 0.75rem; }
.footer-col a { display: block; font-size: 0.875rem; color: var(--muted); padding: 0.25rem 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-ctas { justify-content: center; }
  .hero-visual { display: none; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  .step-line { width: 2px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 640px) {
  .nav-links, .nav-actions { display: none; }
  .nav-links.open, .nav-actions.open {
    display: flex; flex-direction: column;
    position: absolute; top: 4rem; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem; gap: 0.75rem;
  }
  .mobile-menu-btn { display: block; }
  .hero { padding: 6rem 0 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .section { padding: 3rem 0; }
  .section-title { font-size: 1.5rem; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
