/* ==========================================================================
   JK Web Studio — Design System & Mobile-First Styles
   ========================================================================== */

:root {
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-accent: #10B981;
  --color-accent-hover: #059669;
  --color-dark: #0F172A;
  --color-muted: #475569;
  --color-subtle: #64748B;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-blue-tint: #EFF6FF;
  --color-border: #E2E8F0;

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1140px;
  --card-radius: 16px;
  --card-padding: 28px;
  --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  --btn-radius: 10px;
  --header-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  color: var(--color-dark);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

h1, h2, h3, h4 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}

p {
  margin: 0 0 16px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 12px);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections */
.section {
  padding: 48px 0;
  background-color: var(--color-bg);
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-subtitle {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--color-muted);
}

/* Cards */
.card {
  background-color: var(--color-bg);
  padding: var(--card-padding);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--btn-radius);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.btn-whatsapp {
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
}

.btn-whatsapp:hover {
  background-color: var(--color-accent-hover);
  box-shadow: 0 8px 18px rgba(16, 185, 129, 0.25);
}

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

.btn-secondary:hover {
  background-color: var(--color-blue-tint);
}

.btn-full {
  width: 100%;
}

/* 1. Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-dark);
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 20px;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.primary-nav.is-open {
  display: flex;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-link {
  font-weight: 500;
  color: var(--color-muted);
  padding: 6px 0;
  display: inline-block;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--color-primary);
}

.btn-header {
  padding: 10px 20px;
  font-size: 15px;
}

/* 2. Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.08), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.08), transparent 45%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--color-muted);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.trust-strip {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-muted);
}

/* CSS Device Mockup (Hero & Demo) */
.device-showcase {
  position: relative;
  padding-bottom: 16px;
  padding-right: 16px;
}

.laptop-frame {
  background-color: #1E293B;
  border-radius: 14px 14px 6px 6px;
  padding: 10px 10px 0;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.laptop-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px 8px;
}

.laptop-topbar .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #475569;
}

.laptop-topbar .dot:nth-child(1) { background-color: #F87171; }
.laptop-topbar .dot:nth-child(2) { background-color: #FBBF24; }
.laptop-topbar .dot:nth-child(3) { background-color: #34D399; }

.url-pill {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background-color: #334155;
  color: #E2E8F0;
  font-size: 0.7rem;
  font-weight: 500;
}

.laptop-screen {
  position: relative;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #EFF6FF 0%, #ECFDF5 100%);
}

.laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.laptop-base {
  height: 10px;
  margin: 0 -16px;
  background: linear-gradient(to bottom, #CBD5E1, #94A3B8);
  border-radius: 0 0 10px 10px;
}

.phone-frame {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 30%;
  min-width: 102px;
  max-width: 145px;
  background-color: #0F172A;
  border-radius: 18px;
  padding: 7px;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
  border: 2px solid #334155;
}

.phone-notch {
  width: 38%;
  height: 5px;
  background-color: #334155;
  border-radius: 999px;
  margin: 0 auto 6px;
}

.phone-screen {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: linear-gradient(135deg, #2563EB, #10B981);
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-cta-pill {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  text-align: center;
  padding: 5px 6px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.25);
}

/* 3. Services */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--color-blue-tint);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.card-icon-emerald {
  background-color: #ECFDF5;
  color: var(--color-accent);
}

.service-card h3,
.why-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card-text {
  color: var(--color-muted);
  font-size: 0.96875rem;
}

.best-for {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.best-for strong {
  color: var(--color-dark);
}

/* 4. Demo Work */
.demo-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.demo-visual {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.demo-badge {
  align-self: flex-start;
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background-color: var(--color-blue-tint);
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.demo-tour-screen {
  position: relative;
}

.demo-tour-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.1) 60%);
}

.demo-overlay-ui {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #FFFFFF;
}

.demo-mini-brand {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #A7F3D0;
}

.demo-mini-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
}

.demo-mini-btn {
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 6px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
}

.demo-tag {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.demo-details h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.demo-description {
  color: var(--color-muted);
  margin-bottom: 20px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-dark);
  font-size: 0.96875rem;
}

.check-icon {
  color: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
  display: inline-flex;
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.text-link {
  font-weight: 600;
  color: var(--color-primary);
  transition: color 0.2s ease;
}

.text-link:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.demo-footnote {
  text-align: center;
  margin: 20px auto 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

/* 5. Why Choose Me */
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card p {
  margin-bottom: 0;
}

/* 6. Packages */
.packages-grid {
  align-items: stretch;
  padding-top: 10px;
}

.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.package-popular {
  border: 2px solid var(--color-primary);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.package-head {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.package-name {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.price-launch {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
}

.price-regular {
  font-size: 16px;
  color: var(--color-subtle);
  text-decoration: line-through;
}

.package-tagline {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--color-muted);
}

.package-features {
  flex: 1;
  margin-bottom: 24px;
}

.packages-note {
  text-align: center;
  margin: 24px 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* 7. About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.about-media {
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  background: linear-gradient(135deg, #EFF6FF, #ECFDF5);
}

.about-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-content h2 {
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.about-text {
  color: var(--color-muted);
  font-size: 1.03125rem;
  margin: 0;
}

/* 8. FAQ */
.faq-container {
  max-width: 820px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-dark);
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: var(--color-muted);
}

.faq-answer p {
  margin: 0;
}

/* 9. Final CTA */
.cta-section {
  padding-top: 24px;
}

.cta-banner {
  background-color: var(--color-primary);
  color: #FFFFFF;
  border-radius: 20px;
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.2);
}

.cta-banner h2 {
  color: #FFFFFF;
  font-size: 1.875rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-subtitle {
  max-width: 620px;
  margin: 0 auto 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.0625rem;
}

.cta-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.cta-email-link {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: 500;
  text-underline-offset: 4px;
}

.cta-email-link:hover {
  opacity: 0.88;
}

/* 10. Footer */
.site-footer {
  background-color: var(--color-dark);
  color: #E2E8F0;
  padding: 48px 0 92px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.footer-meta {
  margin: 0;
  color: #94A3B8;
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.footer-nav a {
  color: #CBD5E1;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.875rem;
  color: #94A3B8;
}

.footer-bottom p {
  margin: 0;
}

/* 11. Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--color-accent);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.floating-whatsapp:hover {
  background-color: var(--color-accent-hover);
  transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints (Mobile-first)
   ========================================================================== */

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner {
    padding: 52px 40px;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .section-header h2,
  .about-content h2,
  .cta-banner h2 {
    font-size: 2.25rem;
  }

  .nav-toggle {
    display: none;
  }

  .primary-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border-bottom: none;
    padding: 0;
    box-shadow: none;
    gap: 24px;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 24px;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
  }

  .hero-content h1 {
    font-size: 2.75rem;
  }

  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .demo-spotlight {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 40px;
  }

  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .why-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .why-grid .why-card {
    grid-column: span 2;
  }

  .why-grid .why-card:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .why-grid .why-card:nth-child(5) {
    grid-column: 4 / span 2;
  }
}
