/* ============================================================
   Landing Page — tampilan publik
   ============================================================ */

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

:root {
  --accent: #e11d48;
  --primary: #4f46e5;
  --hero-overlay: .65;
  --ink: #0f172a;
  --ink-soft: #475569;
  --ink-mute: #94a3b8;
  --line: #e5e7eb;
  --bg: #f8fafc;
  --card: #ffffff;
  --radius: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
}

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* Atribut hidden harus menang atas display: flex/grid (dipakai pencarian aplikasi). */
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 20px;
}

.icon { flex: none; }

/* ------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background-color: #1e293b;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}

.hero--plain {
  background-image:
    radial-gradient(1200px 400px at 15% 0%, rgba(99, 102, 241, .55), transparent 70%),
    linear-gradient(120deg, #0f172a 0%, #1e293b 55%, #312e81 100%);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(2, 6, 23, calc(var(--hero-overlay) + .2)) 0%,
    rgba(2, 6, 23, var(--hero-overlay)) 45%,
    rgba(2, 6, 23, calc(var(--hero-overlay) * .35)) 100%
  );
}

.hero__inner {
  position: relative;
  padding-block: 64px 92px;
  max-width: 1240px;
}

.hero__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

.hero__subtitle {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: 14px;
  color: rgba(255, 255, 255, .82);
}

.hero__badge {
  margin: 22px 0 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
}

/* --------------------------------------------------------------- features */

.features { margin-top: -46px; position: relative; z-index: 2; }

.features__card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 4px;
  padding: 22px 12px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 22px;
  border-left: 1px solid var(--line);
}

.feature:first-child { border-left: 0; }

.feature__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #f1f5f9;
  color: var(--ink-soft);
}

.feature__title { margin: 0; font-size: 13.5px; font-weight: 700; }
.feature__sub { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-mute); }

/* ------------------------------------------------------------------- main */

.main { padding-block: 56px 64px; }

.section-label {
  margin: 0 0 26px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--accent);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  margin: 0 auto 38px;
  padding: 10px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  color: var(--ink-mute);
}

.search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}

/* ------------------------------------------------------------------ group */

.group { margin-bottom: 56px; }
.group:last-child { margin-bottom: 0; }

.group__head { text-align: center; margin-bottom: 26px; }

.group__logo {
  width: 66px;
  height: 66px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
}

.group__logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

.group__logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.group__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .01em;
}

.group__tagline { margin: 4px 0 0; font-size: 13px; color: var(--ink-mute); }

/* ------------------------------------------------------------------- apps */

.apps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  max-width: 1000px;
  margin-inline: auto;
}

.app-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 16px 20px;
  text-align: center;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.app-card:hover,
.app-card:focus-visible {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow);
  outline: none;
}

.app-card__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef2ff;
  color: var(--primary);
}

.app-card__name {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.app-card__desc { font-size: 12px; color: var(--ink-mute); }

.apps__none,
.empty {
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
}

.empty a { color: var(--primary); font-weight: 600; }
.empty--sm { font-size: 13px; }

/* ------------------------------------------------------- warna ikon aplikasi */

.ic-indigo { background: #eef2ff; color: #4f46e5; }
.ic-violet { background: #f5f3ff; color: #7c3aed; }
.ic-blue   { background: #eff6ff; color: #2563eb; }
.ic-sky    { background: #f0f9ff; color: #0284c7; }
.ic-teal   { background: #f0fdfa; color: #0d9488; }
.ic-green  { background: #ecfdf5; color: #059669; }
.ic-amber  { background: #fffbeb; color: #d97706; }
.ic-orange { background: #fff7ed; color: #ea580c; }
.ic-rose   { background: #fff1f2; color: #e11d48; }
.ic-red    { background: #fef2f2; color: #dc2626; }
.ic-pink   { background: #fdf2f8; color: #db2777; }
.ic-slate  { background: #f1f5f9; color: #475569; }

/* ----------------------------------------------------------------- footer */

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding-block: 22px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer__text { margin: 0; font-size: 12.5px; color: var(--ink-mute); }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.footer__meta li { display: flex; align-items: center; gap: 6px; }
.footer__meta a { text-decoration: none; }
.footer__meta a:hover { color: var(--primary); }

/* --------------------------------------------------------------- responsif */

@media (max-width: 720px) {
  .hero__inner { padding-block: 48px 76px; }
  .feature { border-left: 0; padding-block: 10px; }
  .apps { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .main { padding-block: 42px 48px; }
}
