/* ===================================================
   Cumalo Channel — cumalochannel.com
   Shared Stylesheet
   =================================================== */

:root {
  --primary: #6366F1;
  --primary-dark: #4F46E5;
  --primary-light: #EEF2FF;
  --accent: #F59E0B;
  --text: #1C1917;
  --muted: #6B7280;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* === LAYOUT === */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 4.5rem 0;
}

section.alt-bg {
  background: var(--bg-alt);
}

/* === NAVIGATION === */
.nav {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
  flex-wrap: nowrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-links .disabled {
  color: #D1D5DB;
  cursor: default;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.nav-badge {
  font-size: 0.6rem;
  background: var(--accent);
  color: white;
  padding: 1px 5px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 3px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-cta {
  background: var(--primary) !important;
  color: white !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--primary-dark) !important;
  color: white !important;
}

/* === TYPOGRAPHY === */
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.3rem 0.875rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-heading {
  font-size: clamp(1.625rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--text);
  line-height: 1.2;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 600px;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}

.btn-outline {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

/* === HERO === */
.hero {
  padding: 5rem 0 4.5rem;
  text-align: center;
  background: linear-gradient(150deg, #EEF2FF 0%, #fff 50%, #FEF3C7 100%);
}

.hero-eyebrow {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.375rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero p {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

/* === STORY SECTION === */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text p {
  margin-bottom: 1rem;
  color: #374151;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.story-text p:last-child { margin-bottom: 0; }

.story-card {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  border-radius: 20px;
  padding: 2.5rem;
  color: white;
  text-align: center;
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

.story-card .star-emoji {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: block;
}

.story-card .name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.story-card .subtitle {
  font-size: 0.9375rem;
  opacity: 0.8;
  margin-bottom: 1.25rem;
}

.story-card .date {
  font-size: 0.875rem;
  opacity: 0.65;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  margin-top: 0.5rem;
}

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.feature-card p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.65;
}

/* === KEYWORD CHIPS (SEO section) === */
.keyword-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.keyword-chip {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-size: 0.9375rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}

.keyword-chip:hover {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary);
}

.keyword-chip.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.keyword-chip.coming-soon:hover {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}

/* === CTA BANNER === */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #7C3AED 100%);
  border-radius: 20px;
  padding: 4rem;
  text-align: center;
  color: white;
}

.cta-banner h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  max-width: 480px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* === PAGE HEADER (inner pages) === */
.page-header {
  background: linear-gradient(150deg, #EEF2FF 0%, #fff 50%, #FEF3C7 100%);
  padding: 4rem 0 3rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-header p {
  color: var(--muted);
  font-size: 1.0625rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === PROSE (about / privacy pages) === */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.75rem 0 1rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.prose p {
  margin-bottom: 1.25rem;
  color: #374151;
  line-height: 1.8;
  font-size: 1.0625rem;
}

.prose ul, .prose ol {
  margin: 0 0 1.25rem 1.5rem;
}

.prose li {
  margin-bottom: 0.625rem;
  color: #374151;
  line-height: 1.75;
  font-size: 1.0625rem;
}

.prose a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose .last-updated {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* === FOOTER === */
footer {
  background: #111827;
  color: #9CA3AF;
  padding: 3.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand p {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 300px;
}

.footer-brand .logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  text-decoration: none;
}

.footer-brand .logo span { color: var(--accent); }

footer h4 {
  color: white;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.5rem;
}

footer ul a {
  color: #9CA3AF;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--transition);
}

footer ul a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1F2937;
  padding-top: 1.5rem;
  font-size: 0.875rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav-links .disabled {
    display: none;
  }
}

@media (max-width: 768px) {
  .story {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-card {
    order: -1;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-banner {
    padding: 2.5rem 1.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-inner::after {
    content: 'Coba Gratis →';
    background: var(--primary);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    white-space: nowrap;
    text-decoration: none;
  }

  /* Mobile: show only logo + app link */
  .nav-mobile-cta {
    display: inline-flex !important;
  }

  section { padding: 3rem 0; }

  .hero { padding: 3.5rem 0 3rem; }
}

/* Mobile CTA button in nav (shown only on small screens) */
.nav-mobile-cta {
  display: none;
  background: var(--primary);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
