/* =============================================
   DESIGN TOKENS
============================================= */
:root {
  --pink:        #E91E63;
  --pink-light:  #F8BBD9;
  --pink-dark:   #C2185B;
  --blue:        #2A5C82;
  --blue-light:  #E3EEF6;
  --blue-dark:   #1A3D57;
  --bg:          #F8FAFC;
  --white:       #FFFFFF;
  --text-dark:   #1A2332;
  --text-mid:    #4A5568;
  --text-light:  #5F6F81; /* Darkened from #718096 for 4.5:1 contrast */
  --radius-lg:   1.5rem;
  --radius-xl:   2rem;
  --shadow-sm:   0 2px 16px rgba(42,92,130,.08);
  --shadow-md:   0 8px 40px rgba(42,92,130,.13);
  --shadow-card: 0 4px 24px rgba(42,92,130,.10);
  --transition:  all .3s cubic-bezier(.4,0,.2,1);
}

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

html { 
  scroll-behavior: smooth; 
  font-size: 16px; /* Explicit base font size */
}

/* Accessible Focus States */
:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 4px;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -.02em; }

p { color: var(--text-mid); line-height: 1.8; }

a { text-decoration: none; transition: var(--transition); }

section { padding: 96px 0; }

.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-light), #fce4ec);
  color: var(--pink-dark);
  font-size: .875rem; /* Increased from .75rem */
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-mid);
  max-width: 560px;
}

/* =============================================
   NAVBAR
============================================= */
#mainNav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1050;
  padding: 1.25rem 0;
  transition: var(--transition);
}

#mainNav.scrolled {
  background: rgba(255,255,255,.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: .75rem 0;
}

.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  display: block;
  transition: var(--transition);
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-dark) !important;
  padding: .5rem 1rem !important;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 1rem; right: 1rem;
  height: 2px;
  background: var(--pink);
  border-radius: 99px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}

.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.nav-cta {
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff !important;
  border-radius: 99px;
  padding: .5rem 1.4rem !important;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(233,30,99,.3);
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(233,30,99,.4);
}

.navbar-toggler {
  border: none;
  outline: none;
  box-shadow: none;
}

.navbar-toggler:focus { 
  box-shadow: 0 0 0 3px rgba(233,30,99,.25); 
}

.toggler-icon {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.toggler-icon span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 99px;
  transition: var(--transition);
}

/* =============================================
   HERO
============================================= */
#beranda {
  min-height: 100vh;
  background: linear-gradient(160deg, #fff 0%, var(--bg) 60%, var(--blue-light) 100%);
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}

#beranda::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(233,30,99,.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#beranda::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,92,130,.07) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, #fce4ec, #e3eef6);
  border: 1px solid rgba(233,30,99,.15);
  border-radius: 99px;
  padding: .4rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--pink-dark);
  margin-bottom: 1.5rem;
  animation: fadeInDown .6s ease both;
}

.hero-eyebrow .dot {
  width: 8px; height: 8px;
  background: var(--pink);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.4); }
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  color: var(--text-dark);
  animation: fadeInUp .7s .1s ease both;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-mid);
  max-width: 480px;
  margin: 1.5rem 0 2.5rem;
  animation: fadeInUp .7s .2s ease both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  animation: fadeInUp .7s .3s ease both;
}

.btn-primary-qirin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 99px;
  border: none;
  box-shadow: 0 6px 24px rgba(233,30,99,.35);
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary-qirin:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 36px rgba(233,30,99,.45);
  color: #fff;
}

.btn-outline-qirin {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: 99px;
  border: 2px solid var(--blue);
  transition: var(--transition);
  cursor: pointer;
}

.btn-outline-qirin:hover {
  background: var(--blue);
  color: #fff;
  transform: scale(1.05) translateY(-2px);
}

.hero-visual {
  position: relative;
  animation: fadeInRight .8s .2s ease both;
}

.hero-card-float {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  width: 220px;
  position: absolute;
  z-index: 10;
  animation: floatY 4s ease-in-out infinite;
}

.hero-card-float.card-stats {
  top: 15%;
  left: -30px;
  animation-delay: 0s;
}

.hero-card-float.card-partner {
  bottom: 15%;
  right: -20px;
  animation-delay: 1.5s;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-img-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-img-main {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.hero-img-placeholder {
  width: 100%;
  height: 460px;
  background: linear-gradient(145deg, var(--blue-light) 0%, #c5dff0 50%, #fce4ec 100%);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 5rem;
}

.hero-img-placeholder p {
  font-size: .9rem;
  font-weight: 500;
  margin-top: .5rem;
  color: var(--blue);
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--pink);
  line-height: 1;
}

.stat-label {
  font-size: .875rem; /* Increased from .75rem */
  color: var(--text-light);
  margin-top: .2rem;
}

.partner-logo-row {
  display: flex;
  gap: .5rem;
  align-items: center;
  flex-wrap: wrap;
}

.partner-pill {
  background: var(--bg);
  border-radius: 99px;
  padding: .25rem .7rem;
  font-size: .8rem; /* Increased from .7rem */
  font-weight: 600;
  color: var(--blue);
}

/* =============================================
   STATS BAR
============================================= */
.stats-bar {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  padding: 52px 0;
  margin-top: -2px;
}

.stat-item {
  text-align: center;
  color: #fff;
  padding: 1rem;
}

.stat-item .num {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, #fff, var(--pink-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-item .lbl {
  font-size: .85rem;
  opacity: .8;
  margin-top: .35rem;
}

.stat-divider {
  width: 1px;
  background: rgba(255,255,255,.15);
  height: 60px;
  margin: auto;
}

/* =============================================
   TENTANG
============================================= */
#tentang {
  background: var(--white);
}

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

.vision-card {
  background: linear-gradient(145deg, var(--bg), #eef4f9);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid rgba(42,92,130,.08);
}

.vision-icon {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 1rem;
  box-shadow: 0 6px 20px rgba(233,30,99,.25);
}

.pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pillar-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.pillar-icon.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.pillar-icon.pink { background: linear-gradient(135deg, var(--pink), var(--pink-dark)); }
.pillar-icon.teal { background: linear-gradient(135deg, #0097A7, #00838F); }

.pillar-content h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .2rem;
}

.pillar-content p {
  font-size: .88rem;
  margin: 0;
}

/* =============================================
   PRODUK
============================================= */
#produk {
  background: var(--bg);
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid rgba(42,92,130,.07);
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--pink), var(--blue));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(42,92,130,.18);
}

.product-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.product-icon-wrap.pink {
  background: linear-gradient(135deg, #fce4ec, #f8bbd0);
  color: var(--pink-dark);
  box-shadow: 0 6px 20px rgba(233,30,99,.15);
}

.product-icon-wrap.blue {
  background: linear-gradient(135deg, var(--blue-light), #c5dff0);
  color: var(--blue-dark);
  box-shadow: 0 6px 20px rgba(42,92,130,.15);
}

.product-tag {
  display: inline-block;
  background: var(--bg);
  color: var(--text-light);
  font-size: .8125rem; /* Increased from .72rem */
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 99px;
  border: 1px solid rgba(42,92,130,.1);
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: .5rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--text-mid);
  padding: .4rem 0;
  border-bottom: 1px solid var(--bg);
}

.feature-list li:last-child { border: none; }

.feature-list li i {
  color: var(--pink);
  font-size: 1rem;
  flex-shrink: 0;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  font-weight: 600;
  padding: .7rem 1.5rem;
  border-radius: 99px;
  border: 2px solid var(--pink);
  color: var(--pink);
  transition: var(--transition);
  margin-top: 1rem;
}

.btn-card:hover {
  background: var(--pink);
  color: #fff;
  transform: scale(1.03);
}

/* =============================================
   HOW IT WORKS
============================================= */
#cara-kerja {
  background: var(--white);
}

.step-flow {
  position: relative;
}

.step-flow::before {
  content: '';
  position: absolute;
  top: 36px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--pink-light), var(--blue-light));
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 1rem;
}

.step-num {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: #fff;
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 6px 24px rgba(233,30,99,.2);
}

.step-item h5 { font-size: 1rem; color: var(--text-dark); }
.step-item p { font-size: .85rem; }

/* =============================================
   KONTAK
============================================= */
#kontak {
  background: linear-gradient(160deg, var(--bg) 0%, #eef4f9 100%);
}

.contact-wrapper {
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info-side {
  background: linear-gradient(145deg, var(--blue-dark), var(--blue));
  padding: 3rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-side h3 {
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: .75rem;
}

.contact-info-side p { color: rgba(255,255,255,.75); }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  border-radius: .75rem;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item-text strong {
  display: block;
  font-size: .875rem; /* Increased from .8rem */
  opacity: .75; /* Increased opacity from .65 */
  margin-bottom: .15rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.contact-item-text a {
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
}

.contact-item-text a:hover { color: var(--pink-light); }

.social-row {
  display: flex;
  gap: .75rem;
  margin-top: 2rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: .6rem;
  background: rgba(255,255,255,.15);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition);
}

.social-btn:hover {
  background: rgba(255,255,255,.3);
  color: #fff;
  transform: translateY(-2px);
}

.contact-form-side {
  padding: 3rem;
}

.form-label-qirin {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: .4rem;
}

.form-control-qirin {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: .9rem;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
  resize: none;
}

.form-control-qirin:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(233,30,99,.12);
}

.form-control-qirin::placeholder { color: var(--text-light); }

textarea.form-control-qirin { min-height: 130px; }

/* =============================================
   FOOTER
============================================= */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,.65);
  padding: 60px 0 32px;
}

.footer-brand {
  display: inline-block;
  margin-bottom: .75rem;
}

.footer-tagline {
  font-size: .88rem;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,.5);
}

footer h6 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 1.25rem;
}

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

footer ul li { margin-bottom: .6rem; }

footer ul li a {
  color: rgba(255,255,255,.55);
  font-size: .88rem;
  transition: var(--transition);
}

footer ul li a:hover {
  color: var(--pink-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
}

.footer-social { display: flex; gap: .6rem; }

.footer-social a {
  width: 36px; height: 36px;
  border-radius: .5rem;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 991.98px) {
  .tentang-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  #beranda { padding-top: 100px; }
  .step-flow::before { display: none; }
  .contact-info-side { padding: 2rem; }
  .contact-form-side { padding: 2rem; }
}

@media (max-width: 767.98px) {
  section { padding: 64px 0; }
  .hero-title { font-size: 2rem; }
  .hero-card-float { display: none; }
  .hero-img-placeholder { height: 280px; font-size: 3.5rem; }
  .stats-bar .stat-divider { display: none; }
  .product-card { margin-bottom: 1.5rem; }
}

/* Very Small Devices */
@media (max-width: 575.98px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary-qirin,
  .hero-actions .btn-outline-qirin { width: 100%; justify-content: center; }
  .stat-item .num { font-size: 1.8rem; }
  .section-title { font-size: 1.75rem; }
}

/* Scroll-to-top button */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--pink), var(--pink-dark));
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 6px 24px rgba(233,30,99,.35);
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

#scrollTop.show { opacity: 1; pointer-events: auto; }
#scrollTop:hover { transform: translateY(-3px) scale(1.05); }

/* Toast notification */
.toast-qirin {
  position: fixed;
  bottom: 5rem;
  right: 2rem;
  background: var(--white);
  border-radius: 1rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  font-weight: 500;
  z-index: 999;
  transform: translateX(200px);
  opacity: 0;
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

.toast-qirin.show { transform: translateX(0); opacity: 1; }
.toast-qirin i { color: #22C55E; font-size: 1.4rem; }
