/* style.css */
:root {
  --brand: #402bdc;

  /* Light theme defaults */
  --bg: #ffffff;
  --text: #0f1222;
  --muted: #5b627a;
  --surface: rgba(255, 255, 255, 0.8);
  --border: rgba(15, 18, 34, 0.1);
  --shadow: 0 10px 30px rgba(15, 18, 34, 0.08);

  --radius: 14px;
  --container: 1200px;

  --nav-h: 80px;
  --gap: 18px;

  --focus: 0 0 0 4px rgba(64, 43, 220, 0.22);
}

[data-theme="dark"] {
  --bg: #0b0c12;
  --text: #eef0ff;
  --muted: #b3b9d6;
  --surface: rgba(11, 12, 18, 0.72);
  --border: rgba(238, 240, 255, 0.12);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Wix Madefor Text", system-ui, -apple-system, Segoe UI, Roboto,
    Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--bg);
  color: var(--text);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus {
  left: 12px;
  outline: none;
  box-shadow: var(--focus);
}

/* ===== NAVBAR ===== */
.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
}
body {
  padding-top: 72px;
}

.nav {
  height: var(--nav-h);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.nav__container {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.nav__logo {
  display: block;
  height: 28px;
  width: auto;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav__link {
  font-size: 14px;
  line-height: 1;
  color: var(--text);
  opacity: 0.86;
  padding: 10px 6px;
  border-radius: 10px;
  transition: opacity 140ms ease, background 140ms ease;
}

.nav__link:hover {
  opacity: 1;
  background: rgba(64, 43, 220, 0.08);
}

.nav__link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease,
    border-color 120ms ease;
}

.btn--primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(64, 43, 220, 0.22);
}

.btn--primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn--full {
  width: 100%;
}

/* Icon buttons */
.icon-btn {
  height: 40px;
  width: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease,
    transform 120ms ease;
}

.icon-btn:hover {
  background: rgba(64, 43, 220, 0.08);
  border-color: rgba(64, 43, 220, 0.35);
}

.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.icon-btn__icon {
  font-size: 16px;
  line-height: 1;
}

/* Hamburger */
.icon-btn--hamburger {
  display: none; /* shown on mobile */
}

.hamburger {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  opacity: 0.9;
}
.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.hamburger::before {
  top: -6px;
}
.hamburger::after {
  top: 6px;
}

/* Mobile menu panel */
.mobile-menu {
  max-width: var(--container);
  margin: 0 auto;
  padding: 10px 24px 18px;
}

.mobile-menu__list {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.mobile-menu__link {
  display: block;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(64, 43, 220, 0.06);
  color: var(--text);
  opacity: 0.92;
}

.mobile-menu__link:hover {
  opacity: 1;
  background: rgba(64, 43, 220, 0.1);
}

.mobile-menu__link:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.mobile-menu__cta {
  padding-top: 6px;
}

/* Responsive */
@media (max-width: 820px) {
  .nav__links {
    display: none;
  }

  .icon-btn--hamburger {
    display: inline-flex;
  }

  .nav__brand {
    min-width: auto;
  }
}

@media (max-width: 420px) {
  .nav__container,
  .mobile-menu,
  .page-container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .btn--primary {
    padding: 0 14px;
  }
}

/* ===== HERO ===== */
:root {
  --hero-bg: #f6f6fb;

  /* CTA: brand */
  --cta-bg: var(--brand);
  --cta-text: #ffffff;

  /* Rating image size */
  --rating-h: 28px;
}

[data-theme="dark"] {
  --hero-bg: #0b0c12;

  /* CTA */
  --cta-bg: var(--brand);
  --cta-text: #ffffff;

  --rating-h: 28px;
}

.hero {
  background: var(--hero-bg);
  padding: 72px 0 64px;
}

.hero__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  justify-items: center;
  gap: 34px;
}

.hero__content {
  text-align: center;
  max-width: 860px;
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text);
}

.hero__subtitle {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.hero__cta {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.btn--cta {
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--cta-bg);
  color: var(--cta-text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 26px rgba(64, 43, 220, 0.22);
  transition: transform 120ms ease, filter 120ms ease;
}

.btn--cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--cta:active {
  transform: translateY(0);
}

.btn--cta:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.btn__icon {
  margin-left: 10px;
  font-size: 16px;
  line-height: 1;
}

.hero__proof {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rating {
  display: inline-flex;
  align-items: center;
}

.rating__img {
  display: block;
  height: var(--rating-h);
  width: auto;
}

/* Visual */
.hero__visual {
  width: min(1120px, 100%);
}

/* No background card */
.hero-card {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
}

.hero-card::before {
  display: none;
}

.hero-card__img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

/* Responsive */
@media (max-width: 820px) {
  .hero {
    padding: 56px 0 52px;
  }

  .hero__subtitle br {
    display: none;
  }

  :root {
    --rating-h: 26px;
  }
}

@media (max-width: 420px) {
  .hero__container {
    padding-left: 16px;
    padding-right: 16px;
  }

  :root {
    --rating-h: 24px;
  }
}

/* ===== SERVICES ===== */
:root {
  --services-bg: #ffffff;
  --services-title: var(--text);
  --services-subtitle: var(--muted);

  --card-radius: 18px;
  --card-h: 260px;

  /* gradient overlay for readability */
  --card-grad-from: rgba(0, 0, 0, 0.72);
  --card-grad-mid: rgba(0, 0, 0, 0.28);
  --card-grad-to: rgba(0, 0, 0, 0);
}

[data-theme="dark"] {
  --services-bg: #0b0c12;
  --services-title: var(--text);
  --services-subtitle: var(--muted);

  --card-grad-from: rgba(0, 0, 0, 0.78);
  --card-grad-mid: rgba(0, 0, 0, 0.34);
  --card-grad-to: rgba(0, 0, 0, 0);
}

.services {
  background: var(--services-bg);
  padding: 72px 0;
}

.services__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.services__header {
  margin-bottom: 22px;
}

.services__title {
  margin: 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--services-title);
}

.services__subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--services-subtitle);
}

.services__grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.service-card {
  height: var(--card-h);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  transform: translateZ(0);
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--card-grad-from) 0%,
    var(--card-grad-mid) 44%,
    var(--card-grad-to) 70%
  );
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(64, 43, 220, 0.35);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.18);
}

.service-card__content {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 18px 16px;
  color: #ffffff;
}

.service-card__title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
}

.service-card__desc {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.88;
  max-width: 40ch;
}

.service-card__icon {
  margin-top: 12px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :root {
    --card-h: 250px;
  }
}

@media (max-width: 640px) {
  .services {
    padding: 56px 0;
  }

  .services__container {
    padding: 0 16px;
  }

  .services__subtitle br {
    display: none;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  :root {
    --card-h: 240px;
  }
}

/* ===== HELPING / KEUNGGULAN ===== */
:root {
  --helping-bg: #ffffff;
  --helping-badge-bg: rgba(64, 43, 220, 0.12);
  --helping-badge-text: var(--brand);

  --helping-card-bg: #ffffff;
  --helping-card-text: var(--text);
  --helping-card-muted: rgba(15, 18, 34, 0.78);
  --helping-card-border: rgba(15, 18, 34, 0.12);

  --helping-shadow: 0 18px 40px rgba(15, 18, 34, 0.1);
}

[data-theme="dark"] {
  --helping-bg: #0b0c12;
  --helping-badge-bg: rgba(64, 43, 220, 0.18);
  --helping-badge-text: #cfc9ff;

  --helping-card-bg: rgba(255, 255, 255, 0.06);
  --helping-card-text: var(--text);
  --helping-card-muted: rgba(238, 240, 255, 0.8);
  --helping-card-border: rgba(238, 240, 255, 0.14);

  --helping-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.helping {
  background: var(--helping-bg);
  padding: 72px 0;
}

.helping__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.05fr 1.35fr;
  gap: 40px;
  align-items: center;
}

.helping__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--helping-badge-bg);
  color: var(--helping-badge-text);
  font-size: 12px;
  font-weight: 600;
}

.helping__title {
  margin: 14px 0 0;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 850;
  color: var(--text);
}

.helping__desc {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 52ch;
}

.btn--helping {
  margin-top: 18px;
  height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 14px 26px rgba(64, 43, 220, 0.22);
}

.btn--helping:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn--helping:active {
  transform: translateY(0);
}

.btn--helping:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.helping__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.helping-card {
  background: var(--helping-card-bg);
  border: 1px solid var(--helping-card-border);
  border-left: 3px solid rgba(64, 43, 220, 0.55);
  border-radius: 14px;
  padding: 16px 16px 14px;
  min-height: 118px;
  box-shadow: var(--helping-shadow);
}

.helping-card__kpi {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--helping-card-text);
}

.helping-card__text {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--helping-card-muted);
}

/* Responsive */
@media (max-width: 1040px) {
  .helping__container {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .helping__desc {
    max-width: 70ch;
  }

  .helping__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .helping {
    padding: 56px 0;
  }

  .helping__container {
    padding: 0 16px;
  }

  .helping__title br {
    display: none;
  }

  .helping__grid {
    grid-template-columns: 1fr;
  }

  .helping-card {
    min-height: auto;
  }
}

/* ===== PRICING (MATCH DESIGN) ===== */
:root {
  --brand: #402bdc;

  --pricing-bg: #ffffff;
  --pricing-title: #0f1222;
  --pricing-subtitle: rgba(15, 18, 34, 0.7);

  --card-bg: #ffffff;
  --card-border: rgba(15, 18, 34, 0.1);
  --card-shadow: 0 14px 28px rgba(15, 18, 34, 0.06);
  --card-radius: 18px;

  --active-border: rgba(64, 43, 220, 0.75);
  --active-shadow: 0 18px 40px rgba(64, 43, 220, 0.1);

  --btn-outline-bg: transparent;
  --btn-outline-text: var(--brand);
  --btn-outline-border: rgba(64, 43, 220, 0.8);

  --btn-fill-bg: var(--brand);
  --btn-fill-text: #ffffff;

  --check-bg: #0f1222;
}

[data-theme="dark"] {
  --pricing-bg: #0b0c12;
  --pricing-title: #eef0ff;
  --pricing-subtitle: rgba(238, 240, 255, 0.72);

  --card-bg: rgba(255, 255, 255, 0.06);
  --card-border: rgba(238, 240, 255, 0.14);
  --card-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);

  --active-border: rgba(64, 43, 220, 0.85);
  --active-shadow: 0 28px 75px rgba(0, 0, 0, 0.45);

  --btn-outline-border: rgba(64, 43, 220, 0.9);
  --check-bg: #ffffff;
}

.pricing {
  background: var(--pricing-bg);
  padding: 72px 0;
}

.pricing__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.pricing__header {
  text-align: center;
  margin-bottom: 34px;
}

.pricing__title {
  margin: 0;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 850;
  color: var(--pricing-title);
}

.pricing__subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--pricing-subtitle);
}

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

/* Card */
.price-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.price-card__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(64, 43, 220, 0.18);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.price-card__head {
  padding-top: 2px;
}

.price-card__name {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--brand);
}

.price-card__desc {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--pricing-subtitle);
  max-width: 46ch;
}

.price-card__price {
  margin-top: 22px;
  font-size: 38px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pricing-title);
}

.price-card__btn {
  margin-top: 18px;
  height: 44px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 120ms ease, filter 120ms ease, background 120ms ease;
  box-shadow: 0 14px 26px rgba(64, 43, 220, 0.22);
}

.price-card__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.price-card__btn:active {
  transform: translateY(0);
}

.price-card__list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  color: var(--pricing-title);
  font-size: 13px;
  line-height: 1.55;
}

.price-card__list li {
  position: relative;
  padding-left: 34px;
}

.price-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--check-bg);
}

.price-card__list li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: no-repeat center / 12px 12px;
  /* inline SVG check (white) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' d='M9.0 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .price-card__list li::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f1222' d='M9.0 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 980px) {
  .pricing__grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: auto;
  }

  .price-card__badge {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 420px) {
  .pricing__container {
    padding: 0 16px;
  }

  .price-card {
    padding: 18px;
  }

  .price-card__price {
    font-size: 34px;
  }
}

/* ===== PORTFOLIO ===== */
:root {
  --portfolio-bg: #0b0c12;
  --portfolio-text: #eef0ff;
  --portfolio-muted: rgba(238, 240, 255, 0.68);

  --portfolio-badge-bg: rgba(255, 255, 255, 0.1);
  --portfolio-badge-text: #d6d9ff;

  --pf-card-bg: #ffffff;
  --pf-card-border: rgba(15, 18, 34, 0.1);
  --pf-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);

  --pf-by: #ff8a3d;
}

[data-theme="dark"] {
  --portfolio-bg: #0b0c12;
  --portfolio-text: #eef0ff;
  --portfolio-muted: rgba(238, 240, 255, 0.68);
}

[data-theme="light"] {
  /* kalau suatu saat kamu pakai section ini di light mode juga */
  --portfolio-bg: #ffffff;
  --portfolio-text: #0f1222;
  --portfolio-muted: rgba(15, 18, 34, 0.7);
  --portfolio-badge-bg: rgba(64, 43, 220, 0.1);
  --portfolio-badge-text: var(--brand);
  --pf-shadow: 0 18px 45px rgba(15, 18, 34, 0.08);
}

.portfolio {
  background: var(--portfolio-bg);
  padding: 72px 0;
  color: var(--portfolio-text);
}

.portfolio__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.portfolio__header {
  margin-bottom: 26px;
}

.portfolio__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--portfolio-badge-bg);
  color: var(--portfolio-badge-text);
  font-size: 12px;
  font-weight: 700;
}

.portfolio__head-row {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.portfolio__title {
  margin: 0;
  font-size: clamp(26px, 2.9vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 900;
  color: var(--portfolio-text);
}

.portfolio__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--portfolio-muted);
  max-width: 64ch;
}

.portfolio__cta {
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  box-shadow: 0 14px 26px rgba(64, 43, 220, 0.22);
  white-space: nowrap;
  transition: transform 120ms ease, filter 120ms ease;
}

.portfolio__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.portfolio__cta:active {
  transform: translateY(0);
}

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.pf-card {
  background: var(--pf-card-bg);
  border: 1px solid var(--pf-card-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--pf-shadow);
  color: #0f1222;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

/* image nempel ke card (no padding) */
.pf-card__media {
  width: 100%;
  height: 190px;
  overflow: hidden;
}

.pf-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pf-card__body {
  padding: 16px 16px 18px;
}

.pf-card__meta {
  margin: 0;
  font-size: 12px;
  color: rgba(15, 18, 34, 0.68);
}

.pf-card__title {
  margin: 6px 0 0;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.pf-card__by {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: rgba(15, 18, 34, 0.72);
}

.pf-card__by span {
  color: var(--pf-by);
  font-weight: 700;
}

.pf-card__desc {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(15, 18, 34, 0.7);
}

/* Hover */
.pf-card {
  transition: transform 160ms ease, box-shadow 160ms ease,
    border-color 160ms ease;
}

.pf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(64, 43, 220, 0.35);
  box-shadow: 0 30px 75px rgba(0, 0, 0, 0.42);
}

/* Responsive */
@media (max-width: 1100px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .portfolio__head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .portfolio__cta {
    margin-top: 10px;
  }
}

@media (max-width: 640px) {
  .portfolio {
    padding: 56px 0;
  }

  .portfolio__container {
    padding: 0 16px;
  }

  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .pf-card__media {
    height: 210px;
  }
}

/* ===== TESTIMONI ===== */
:root {
  --testi-bg: #ffffff;

  --testi-title: var(--text);
  --testi-subtitle: var(--muted);

  --testi-badge-bg: rgba(64, 43, 220, 0.1);
  --testi-badge-text: var(--brand);

  --testi-card-bg: #ffffff;
  --testi-card-border: rgba(15, 18, 34, 0.1);
  --testi-card-shadow: 0 14px 28px rgba(15, 18, 34, 0.06);

  --testi-quote: rgba(15, 18, 34, 0.78);
  --testi-mark: rgba(64, 43, 220, 0.95);

  --avatar-size: 38px;
}

[data-theme="dark"] {
  --testi-bg: #0b0c12;

  --testi-title: var(--text);
  --testi-subtitle: var(--muted);

  --testi-badge-bg: rgba(64, 43, 220, 0.18);
  --testi-badge-text: #d7d2ff;

  --testi-card-bg: rgba(255, 255, 255, 0.06);
  --testi-card-border: rgba(238, 240, 255, 0.14);
  --testi-card-shadow: 0 22px 65px rgba(0, 0, 0, 0.35);

  --testi-quote: rgba(238, 240, 255, 0.78);
  --testi-mark: rgba(64, 43, 220, 0.95);
}

.testi {
  background: var(--testi-bg);
  padding: 72px 0;
}

.testi__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.testi__badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--testi-badge-bg);
  color: var(--testi-badge-text);
  font-size: 12px;
  font-weight: 800;
}

.testi__title {
  margin: 14px 0 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 950;
  color: var(--testi-title);
}

.testi__subtitle {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--testi-subtitle);
}

.testi__grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Card */
.testi-card {
  background: var(--testi-card-bg);
  border: 1px solid var(--testi-card-border);
  border-radius: 14px;
  box-shadow: var(--testi-card-shadow);
  padding: 18px;
  min-height: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-card__quote {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--testi-quote);
}

.testi-card__mark {
  margin-top: 14px;
  font-size: 38px;
  line-height: 1;
  font-weight: 900;
  color: var(--testi-mark);
}

.testi-card__footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.testi-card__who {
  font-size: 13px;
  color: var(--testi-title);
  opacity: 0.86;
}

.testi-card__name {
  font-weight: 800;
}

.testi-card__role {
  margin-left: 4px;
  font-weight: 600;
  opacity: 0.78;
}

.testi-card__avatar {
  width: var(--avatar-size);
  height: var(--avatar-size);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(15, 18, 34, 0.1);
  flex: 0 0 auto;
  background: rgba(15, 18, 34, 0.06);
}

[data-theme="dark"] .testi-card__avatar {
  border-color: rgba(238, 240, 255, 0.14);
  background: rgba(238, 240, 255, 0.1);
}

.testi-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.testi-card__avatar.is-placeholder {
  background: rgba(15, 18, 34, 0.14);
  border-color: rgba(15, 18, 34, 0.1);
}

[data-theme="dark"] .testi-card__avatar.is-placeholder {
  background: rgba(238, 240, 255, 0.16);
  border-color: rgba(238, 240, 255, 0.14);
}

/* Responsive */
@media (max-width: 1100px) {
  .testi__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .testi {
    padding: 56px 0;
  }

  .testi__container {
    padding: 0 16px;
  }

  .testi__grid {
    grid-template-columns: 1fr;
  }

  .testi__title {
    font-size: 40px;
  }
}

/* ===== BANNER / CTA ===== */
:root {
  --banner-bg: var(--brand);
  --banner-text: #ffffff;
  --banner-muted: rgba(255, 255, 255, 0.84);

  --banner-cta-bg: #ffffff;
  --banner-cta-text: var(--brand);

  --banner-radius: 24px;
}

.banner {
  background: transparent;
  padding: 56px 0 72px;
}

.banner__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  background: var(--banner-bg);
  border-radius: var(--banner-radius);
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  min-height: 330px;
}

.banner__content {
  padding: 56px 56px;
  position: relative;
  z-index: 2;
}

.banner__title {
  margin: 0;
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.03em;
  color: var(--banner-text);
}

.banner__desc {
  margin: 14px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--banner-muted);
}

.banner__cta {
  margin-top: 20px;
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  background: var(--banner-cta-bg);
  color: var(--banner-cta-text);
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
  transition: transform 120ms ease, filter 120ms ease;
}

.banner__cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.02);
}

.banner__cta:active {
  transform: translateY(0);
}

.banner__visual {
  position: relative;
  height: 100%;
  min-height: 330px;
}

/* Orbits */
.banner-orbit {
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  filter: blur(0px);
}

.banner-orbit--outer {
  width: 520px;
  height: 520px;
  right: -180px;
  top: -110px;
}

.banner-orbit--inner {
  width: 330px;
  height: 330px;
  right: -60px;
  top: 40px;
  border-color: rgba(255, 255, 255, 0.12);
}

/* Bubbles */
.banner-bubble {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  place-items: center;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
}

.banner-bubble::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0) 70%
  );
  pointer-events: none;
}

/* Positions (match layout) */
.b1 {
  right: 220px;
  top: 40px;
  width: 110px;
  height: 110px;
  opacity: 0.95;
}
.b2 {
  right: 60px;
  top: 10px;
  width: 170px;
  height: 170px;
  opacity: 0.8;
}
.b3 {
  right: 290px;
  top: 170px;
  width: 92px;
  height: 92px;
  opacity: 0.72;
}
.b4 {
  right: 115px;
  top: 150px;
  width: 120px;
  height: 120px;
  opacity: 0.72;
}
.b5 {
  right: 90px;
  top: 240px;
  width: 140px;
  height: 140px;
  opacity: 0.7;
}

/* Icon base */
.banner-icon {
  width: 54%;
  height: 54%;
  opacity: 0.65;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

/* Inline SVG icons (white-ish) */
.banner-icon[data-icon="briefcase"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='.85' d='M10 3h4a2 2 0 0 1 2 2v2h3a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h3V5a2 2 0 0 1 2-2Zm4 4V5h-4v2h4Zm7 6h-8v1a1 1 0 0 1-1 1h-0a1 1 0 0 1-1-1v-1H3v6h18v-6Z'/%3E%3C/svg%3E");
}

.banner-icon[data-icon="calc"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='.85' d='M7 2h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2Zm0 6h10V4H7v4Zm2 4H7v2h2v-2Zm4 0h-2v2h2v-2Zm4 0h-2v2h2v-2ZM9 16H7v2h2v-2Zm4 0h-2v2h2v-2Zm4 0h-2v2h2v-2Z'/%3E%3C/svg%3E");
}

.banner-icon[data-icon="growth"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='.85' d='M4 19h16v2H2V3h2v16Zm3-4 4-4 3 3 5-6 1.6 1.2-6.6 7.8-3-3-2.6 2.6L7 15Z'/%3E%3C/svg%3E");
}

.banner-icon[data-icon="plant"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='.85' d='M12 3c4.5 2.2 7 6 7 10a7 7 0 0 1-14 0c0-4 2.5-7.8 7-10Zm-1 10c-2.2 0-4-1.8-4-4h2c0 1.1.9 2 2 2V7h2v6Zm-5 8h12v-2H6v2Z'/%3E%3C/svg%3E");
}

.banner-icon[data-icon="piggy"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffffff' fill-opacity='.85' d='M19 8h2v4h-2v2.5a4.5 4.5 0 0 1-4.5 4.5H7.5A4.5 4.5 0 0 1 3 14.5V12a5 5 0 0 1 5-5h5.2l2.1-2.1A1 1 0 0 1 16 4h2v2h-1.6l-1 1H16.5A4.5 4.5 0 0 1 19 8ZM7 12a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm9 9v-2H8v2h8Z'/%3E%3C/svg%3E");
}

/* Responsive */
@media (max-width: 980px) {
  .banner__container {
    grid-template-columns: 1fr;
  }

  .banner__visual {
    min-height: 260px;
  }

  .banner__content {
    padding: 44px 28px 10px;
  }

  .banner-orbit--outer {
    right: -260px;
    top: -160px;
  }

  .banner-orbit--inner {
    right: -120px;
    top: 10px;
  }

  .b1 {
    right: 170px;
    top: 18px;
  }
  .b2 {
    right: 20px;
    top: 0px;
  }
  .b3 {
    right: 240px;
    top: 130px;
  }
  .b4 {
    right: 90px;
    top: 120px;
  }
  .b5 {
    right: 60px;
    top: 200px;
  }
}

@media (max-width: 560px) {
  .banner {
    padding: 44px 0 56px;
  }

  .banner__container {
    padding: 0;
    border-radius: 18px;
  }

  .banner__content {
    padding: 34px 20px 8px;
  }

  .banner__visual {
    min-height: 220px;
  }

  .banner-orbit--outer {
    width: 440px;
    height: 440px;
    right: -260px;
    top: -160px;
  }

  .banner-orbit--inner {
    width: 280px;
    height: 280px;
    right: -150px;
    top: 0px;
  }

  .banner-bubble {
    transform: scale(0.86);
  }

  .b1 {
    right: 140px;
    top: 10px;
  }
  .b2 {
    right: 6px;
    top: -6px;
  }
  .b3 {
    right: 205px;
    top: 110px;
  }
  .b4 {
    right: 70px;
    top: 105px;
  }
  .b5 {
    right: 40px;
    top: 175px;
  }
}

/* ===== FOOTER ===== */
:root {
  --footer-bg: #0b0c12;
  --footer-text: #eef0ff;
  --footer-muted: rgba(238, 240, 255, 0.64);
  --footer-border: rgba(238, 240, 255, 0.1);

  --social-bg: #ffffff;
  --social-text: #0b0c12;
}

[data-theme="light"] {
  --footer-bg: #0b0c12;
  --footer-text: #eef0ff;
  --footer-muted: rgba(238, 240, 255, 0.64);
  --footer-border: rgba(238, 240, 255, 0.1);
}

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 52px 0 18px;
}

.footer__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: start;
  padding-bottom: 22px;
}

.footer__logo img {
  height: 26px;
  width: auto;
  display: block;
}

.footer__tagline {
  margin: 12px 0 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.55;
  max-width: 36ch;
}

.footer__social {
  margin-top: 18px;
  display: flex;
  gap: 10px;
}

.footer__social-icon {
  width: 18px;
  height: 18px;
  display: block;
}

.footer__cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  justify-content: end;
}

.footer__title {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--footer-text);
  opacity: 0.9;
}

.footer__list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer__link {
  color: var(--footer-muted);
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}

.footer__link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 16px;
}

.footer__copy {
  margin: 0;
  text-align: center;
  color: var(--footer-muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 820px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer__cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 420px) {
  .footer__container {
    padding: 0 16px;
  }

  .footer__cols {
    grid-template-columns: 1fr;
  }
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 9999;
}
body {
  padding-top: 72px;
}

/* ===== SCROLL REVEAL (IntersectionObserver) ===== */
:root {
  --reveal-duration: 700ms;
  --reveal-delay: 0ms;
  --reveal-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Start state (hidden) */
[data-reveal],
[data-reveal-item] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--reveal-duration) var(--reveal-ease)
      var(--reveal-delay),
    transform var(--reveal-duration) var(--reveal-ease) var(--reveal-delay);
  will-change: opacity, transform;
}

/* Direction variants */
[data-reveal="up"] {
  transform: translateY(18px);
}
[data-reveal="down"] {
  transform: translateY(-18px);
}
[data-reveal="left"] {
  transform: translateX(-22px);
}
[data-reveal="right"] {
  transform: translateX(22px);
}
[data-reveal="scale"] {
  transform: scale(0.98);
}

/* Visible state */
[data-reveal].is-inview,
[data-reveal-item].is-inview {
  opacity: 1;
  transform: none;
}

/* Respect OS setting */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  [data-reveal-item] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
