/* ============================================================
   Jasa Web Klinik — Landing Page Stylesheet
   ============================================================ */

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

:root {
  --primary:   #0ea5e9;   /* sky-500  */
  --primary-d: #0284c7;   /* sky-600  */
  --dark:      #0f172a;   /* slate-900 */
  --text:      #334155;   /* slate-700 */
  --muted:     #64748b;   /* slate-500 */
  --light:     #f1f5f9;   /* slate-100 */
  --white:     #ffffff;
  --radius:    12px;
  --shadow:    0 4px 24px rgba(15,23,42,.08);
  --font:      'Segoe UI', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: all .2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

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

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: var(--white); }

.btn-ghost {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }

/* ── Badge ── */
.badge {
  display: inline-block;
  background: rgba(14,165,233,.12);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(14,165,233,.25);
}

/* ── Section Helpers ── */
.section { padding: 80px 0; }
.section-alt { background: var(--light); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
}
.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.nav-links a:not(.btn):hover { color: var(--primary); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  padding: 100px 0 80px;
  color: var(--white);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-text h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-text p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Browser Mockup */
.mockup-browser {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(0,0,0,.3);
  overflow: hidden;
}

.mockup-bar {
  background: #e2e8f0;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mockup-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}
.mockup-bar span:first-child { background: #f87171; }
.mockup-bar span:nth-child(2) { background: #fbbf24; }
.mockup-bar span:nth-child(3) { background: #34d399; }

.mockup-url {
  background: var(--white);
  border-radius: 6px;
  flex: 1;
  padding: 4px 10px;
  font-size: 12px;
  color: var(--muted);
  margin-left: 8px;
}

.mockup-screen { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.mockup-line { height: 10px; border-radius: 6px; background: #e2e8f0; }
.mockup-line.wide   { width: 80%; }
.mockup-line.medium { width: 60%; }
.mockup-line.short  { width: 40%; }
.mockup-block { height: 120px; border-radius: var(--radius); background: linear-gradient(120deg, #bae6fd, #e0f2fe); }

/* ── Stats ── */
.stats {
  background: var(--primary);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat span {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  font-weight: 500;
}

/* ── Cards (Layanan) ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card h3 { font-size: 1.05rem; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.card p  { color: var(--muted); font-size: 14px; line-height: 1.65; }

/* ── Features (Keunggulan) ── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.feature {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.feature-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: .3;
  line-height: 1;
  min-width: 48px;
}

.feature h3 { font-size: 1rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.feature p  { color: var(--muted); font-size: 14px; }

/* ── Portfolio ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow .2s;
}
.portfolio-item:hover { box-shadow: var(--shadow); }

.portfolio-thumb {
  height: 180px;
  background: linear-gradient(120deg, #bae6fd 0%, #dbeafe 50%, #e0e7ff 100%);
}

.portfolio-info { padding: 16px 20px; }
.portfolio-info h4 { font-size: 15px; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.portfolio-info span { font-size: 13px; color: var(--muted); }

.portfolio-note { text-align: center; margin-top: 24px; font-size: 13px; color: var(--muted); }

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 36px 28px;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(14,165,233,.12);
}

.badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
}

.pricing-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 12px; }
.price { font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 24px; }

.pricing-card ul { margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-card li {
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
}
.pricing-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1e3a5f 100%);
  color: var(--white);
}
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 16px; }
.cta-inner p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 36px; }
.cta-contacts { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 40px 0;
}
.footer-inner { text-align: center; }
.footer .logo { display: inline-block; margin-bottom: 12px; }
.footer-tagline { font-size: 14px; margin-bottom: 16px; }
.footer-copy { font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .hero-text h1 { font-size: 2rem; }
  .nav-links { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 56px 0; }
}
