/* ==========================================================================
   Ahmad Hafidz — Premium Bento Landing Page
   Custom styles layered on top of Tailwind CDN utilities.
   ========================================================================== */

:root {
  --navy-deep: #0A192F;
  --navy-light: #112240;
  --ice: #8FA9C4;
  --ice-light: #CBD9EA;
  /* Checkmark used as a mask, so its color follows the element it marks. */
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--navy-deep);
  background-image:
    radial-gradient(circle at 15% 0%, rgba(143, 169, 196, 0.06), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(143, 169, 196, 0.05), transparent 40%);
}

/* ---------- Ambient background blobs ---------- */
.ambient-glow {
  position: fixed;
  border-radius: 9999px;
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 0;
}
.ambient-glow--one {
  width: 480px;
  height: 480px;
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, #2e5a8a, transparent 70%);
}
.ambient-glow--two {
  width: 520px;
  height: 520px;
  bottom: -160px;
  right: -160px;
  background: radial-gradient(circle, #1c3a5e, transparent 70%);
}

/* ---------- Scroll reveal: luxury "fade-in-up" entrance ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
}
.reveal.is-visible {
  animation: fadeInUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ---------- Glassmorphism card ---------- */
.glass-card {
  position: relative;
  z-index: 1;
  background: rgba(17, 34, 64, 0.55);
  border: 1px solid rgba(203, 217, 234, 0.10);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.card-hover {
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(203, 217, 234, 0.28);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 40px rgba(143, 169, 196, 0.12);
}

.card-title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #F5F8FC;
}

.card-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(203, 217, 234, 0.18);
  color: var(--ice-light);
  background: rgba(203, 217, 234, 0.05);
}

/* ---------- Status pill (header) ---------- */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ice-light);
  border: 1px solid rgba(203, 217, 234, 0.16);
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(203, 217, 234, 0.04);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #6EE7B7;
  box-shadow: 0 0 8px #6EE7B7;
}

/* ---------- Avatar ---------- */
.avatar-ring {
  padding: 4px;
  border-radius: 9999px;
  background: linear-gradient(135deg, rgba(203, 217, 234, 0.5), rgba(203, 217, 234, 0.05));
}

/* ---------- Chips / links ---------- */
.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 9999px;
  background: var(--ice-light);
  color: var(--navy-deep);
  transition: transform 0.25s ease, opacity 0.25s ease;
  white-space: nowrap;
}
.chip-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}
.chip-link--ghost {
  background: transparent;
  color: var(--ice-light);
  border: 1px solid rgba(203, 217, 234, 0.25);
}

/* ---------- Social icons ---------- */
.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  color: var(--ice-light);
  border: 1px solid rgba(203, 217, 234, 0.16);
  background: rgba(203, 217, 234, 0.04);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.social-icon:hover {
  transform: translateY(-3px);
  background: rgba(203, 217, 234, 0.12);
  border-color: rgba(203, 217, 234, 0.32);
  color: #ffffff;
}

/* ---------- Ecosystem items ---------- */
.eco-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(203, 217, 234, 0.03);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.eco-item:hover {
  background: rgba(203, 217, 234, 0.08);
  border-color: rgba(203, 217, 234, 0.24);
  transform: translateX(4px);
}
.eco-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(203, 217, 234, 0.06);
}
.eco-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #F5F8FC;
}
.eco-desc {
  font-size: 0.76rem;
  color: #94A3B8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eco-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--ice);
  flex-shrink: 0;
}

/* ---------- Buttons ---------- */
.btn-solid, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 12px 18px;
  border-radius: 14px;
  transition: transform 0.5s ease-out, box-shadow 0.5s ease-out, background 0.5s ease-out, filter 0.5s ease-out;
  cursor: pointer;
  text-align: center;
}
.btn-solid {
  background: var(--ice-light);
  color: var(--navy-deep);
  border: 1px solid transparent;
}
.btn-solid:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 25px rgba(203, 217, 234, 0.15);
  filter: brightness(1.08);
}
.btn-outline {
  background: rgba(203, 217, 234, 0.04);
  color: var(--ice-light);
  border: 1px solid rgba(203, 217, 234, 0.22);
}
.btn-outline:hover {
  background: rgba(203, 217, 234, 0.1);
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.08);
}
.btn-solid:disabled, .btn-outline:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Highlighted card (Support & Resources) ---------- */
.card-highlight {
  border-color: rgba(203, 217, 234, 0.22);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05), 0 8px 30px rgba(0, 0, 0, 0.25);
}
.card-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(203, 217, 234, 0.45), rgba(203, 217, 234, 0.04), rgba(203, 217, 234, 0.45));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card-highlight:hover {
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.08), 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 40px rgba(143, 169, 196, 0.12);
}

/* ---------- Form fields ---------- */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ice-light);
}
.field-input {
  width: 100%;
  background: rgba(203, 217, 234, 0.04);
  border: 1px solid rgba(203, 217, 234, 0.16);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.9rem;
  color: #F5F8FC;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.field-input::placeholder {
  color: #64748B;
}
.field-input:focus {
  border-color: rgba(203, 217, 234, 0.55);
  background: rgba(203, 217, 234, 0.07);
}
.field-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238FA9C4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.purpose-hint {
  min-height: 18px;
  font-size: 0.78rem;
  color: #6EE7B7;
  transition: opacity 0.25s ease;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 20px);
  background: rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(203, 217, 234, 0.25);
  color: #F5F8FC;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
  z-index: 50;
  max-width: 90vw;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.toast--error {
  border-color: rgba(248, 113, 113, 0.4);
}

/* ==========================================================================
   Brand Media Kit — cross-platform traffic insights
   ========================================================================== */

.mk-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ice-light);
  border: 1px solid rgba(203, 217, 234, 0.18);
  background: rgba(203, 217, 234, 0.05);
  padding: 6px 12px;
  border-radius: 9999px;
}

/* ---------- Highlight stats ---------- */
.mk-stat {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(203, 217, 234, 0.03);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.mk-stat:hover {
  border-color: rgba(203, 217, 234, 0.26);
  background: rgba(203, 217, 234, 0.06);
}
.mk-stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #94A3B8;
  margin-bottom: 8px;
}
.mk-stat-value {
  font-size: 1.6rem;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #F5F8FC;
}
.mk-stat-note {
  margin-top: 5px;
  font-size: 0.68rem;
  font-weight: 500;
  color: #6EE7B7;
}
.mk-stat-note--muted {
  color: #94A3B8;
}

/* ---------- Platform tabs ---------- */
.mk-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(10, 25, 47, 0.55);
  overflow-x: auto;
  scrollbar-width: none;
}
.mk-tabs::-webkit-scrollbar {
  display: none;
}
.mk-tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 12px;
  color: var(--ice);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.mk-tab:hover {
  color: #F5F8FC;
  background: rgba(203, 217, 234, 0.07);
}
.mk-tab.is-active {
  background: var(--ice-light);
  color: var(--navy-deep);
  box-shadow: 0 6px 18px rgba(203, 217, 234, 0.14);
}
.mk-tab-sub {
  font-weight: 500;
  opacity: 0.7;
  font-size: 0.68rem;
}

/* ---------- Panels ---------- */
.mk-panel {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(203, 217, 234, 0.03);
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mk-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.mk-panel-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #F5F8FC;
}
.mk-panel-sub {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-top: 2px;
}
.mk-delta {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 9999px;
  color: #6EE7B7;
  background: rgba(110, 231, 183, 0.10);
  border: 1px solid rgba(110, 231, 183, 0.22);
}

.mk-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ice-light);
  margin-bottom: 12px;
}
.mk-sub--tight {
  margin-bottom: 4px;
}

/* ---------- Bars ---------- */
.mk-barlabel {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  color: #94A3B8;
  margin-bottom: 6px;
}
.mk-barlabel b {
  font-weight: 700;
  color: #F5F8FC;
}
.mk-bar {
  height: 7px;
  border-radius: 9999px;
  background: rgba(203, 217, 234, 0.08);
  overflow: hidden;
}
.mk-bar > span {
  display: block;
  height: 100%;
  border-radius: 9999px;
  transform-origin: left center;
  background: linear-gradient(90deg, var(--acc, var(--ice)), rgba(203, 217, 234, 0.65));
}
/* .revealed is permanent, unlike .reveal/.is-visible which are stripped once
   the entrance animation ends — never hang a bar's appearance off those. */
.revealed .mk-bar > span {
  animation: barGrow 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ---------- Rows, notes, mini tiles ---------- */
.mk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.72rem;
  color: #CBD5E1;
  padding: 8px 11px;
  border-radius: 11px;
  background: rgba(203, 217, 234, 0.05);
}
.mk-row b {
  font-weight: 700;
  color: var(--acc, var(--ice-light));
}
.mk-note {
  margin-top: 14px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(10, 25, 47, 0.45);
  font-size: 0.74rem;
  color: #E2E8F0;
}
.mk-note-label {
  display: block;
  font-size: 0.68rem;
  color: #94A3B8;
  margin-bottom: 2px;
}
.mk-note--accent {
  display: flex;
  align-items: center;
  gap: 9px;
  border-color: rgba(203, 217, 234, 0.18);
}
.mk-note b {
  font-weight: 700;
  color: #F5F8FC;
}
.mk-mini {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 12px;
  border-radius: 13px;
  background: rgba(203, 217, 234, 0.05);
  border: 1px solid rgba(203, 217, 234, 0.08);
}
.mk-mini-label {
  font-size: 0.66rem;
  color: #94A3B8;
}
.mk-mini-value {
  font-size: 1rem;
  font-weight: 700;
  color: #F5F8FC;
  letter-spacing: -0.01em;
}
.mk-mini-note {
  font-size: 0.63rem;
  color: #6EE7B7;
}

/* ---------- Showcase / CTA column ---------- */
.mk-side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(203, 217, 234, 0.12);
  background: linear-gradient(160deg, rgba(17, 34, 64, 0.85), rgba(10, 25, 47, 0.55));
}
.mk-viral {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(203, 217, 234, 0.04);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.mk-viral:hover {
  border-color: rgba(203, 217, 234, 0.26);
  transform: translateX(3px);
}
.mk-viral-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #F5F8FC;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mk-viral-note {
  font-size: 0.66rem;
  color: #94A3B8;
  margin-top: 1px;
}
.mk-viral-pill {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 9px;
  color: var(--ice-light);
  background: rgba(203, 217, 234, 0.10);
  border: 1px solid rgba(203, 217, 234, 0.16);
}

/* ---------- Rate card packages ---------- */
.mk-pack {
  position: relative;
  padding: 14px;
  border-radius: 15px;
  border: 1px solid rgba(203, 217, 234, 0.10);
  background: rgba(203, 217, 234, 0.03);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}
.mk-pack:hover {
  border-color: rgba(203, 217, 234, 0.26);
  background: rgba(203, 217, 234, 0.06);
  transform: translateY(-3px);
}
.mk-pack--rec {
  border-color: rgba(203, 217, 234, 0.28);
  background: rgba(203, 217, 234, 0.07);
}
.mk-pack-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6EE7B7;
  background: rgba(110, 231, 183, 0.10);
  border: 1px solid rgba(110, 231, 183, 0.22);
  padding: 2px 8px;
  border-radius: 9999px;
  margin-bottom: 7px;
}
.mk-pack-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #F5F8FC;
}
.mk-pack-desc {
  margin-top: 4px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #94A3B8;
}

/* Highlight the contact card when a brand CTA sends the visitor there */
.field-flash {
  border-color: rgba(110, 231, 183, 0.6) !important;
  background: rgba(110, 231, 183, 0.06) !important;
}

/* Respect reduced-motion: land on the final state, skip the theatrics. */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible,
  .mk-panel,
  .mk-bar > span {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Anchor jumps land with breathing room instead of flush against the viewport. */
html {
  scroll-padding-top: 28px;
}

/* Deliverables inside a package card */
.mk-pack-list {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mk-pack-list li {
  position: relative;
  padding-left: 15px;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #94A3B8;
}
.mk-pack-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.28em;
  width: 11px;
  height: 11px;
  background: var(--ice);
  -webkit-mask: var(--check-icon) center / contain no-repeat;
  mask: var(--check-icon) center / contain no-repeat;
}
.mk-pack-list li.is-bonus {
  color: #A7E8C9;
}
.mk-pack-list li.is-bonus::before {
  background: #6EE7B7;
}

/* Phones: tighten the media kit padding so the data gets the width instead. */
@media (max-width: 480px) {
  .mk-panel,
  .mk-side {
    padding: 14px;
  }
  .mk-stat {
    padding: 13px;
  }
  .mk-stat-value {
    font-size: 1.35rem;
  }
  .mk-mini {
    padding: 9px 10px;
  }
  .mk-mini-label {
    font-size: 0.62rem;
  }
  .mk-mini-value {
    font-size: 0.9rem;
  }
  .mk-tab {
    padding: 9px 12px;
    font-size: 0.72rem;
  }
  .mk-barlabel {
    font-size: 0.66rem;
  }
}
