:root {
  --bg: #0f1220;
  --bg-2: #131734;
  --text: #e9ebf5;
  --muted: #9aa2bd;
  --accent: #7c9cff;
  --accent-2: #b28bff;
  --card: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --whatsapp: #25d366;
  --ipo: #7c9cff;
  --video: #b28bff;
  --penasihat: #f0c36a;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(124, 156, 255, 0.25), transparent 60%),
    radial-gradient(700px 500px at 100% 10%, rgba(178, 139, 255, 0.18), transparent 55%),
    radial-gradient(700px 500px at 0% 20%, rgba(255, 122, 184, 0.12), transparent 55%),
    var(--bg);
}

/* Hero */
.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1.5rem;
  text-align: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.pintu-akaun {
  margin: 0 0 2rem;
}

.pintu-akaun a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.brand__mark {
  display: inline-flex;
}

.brand__name {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand__accent {
  color: var(--muted);
  font-weight: 600;
}

.hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.1;
  margin: 0 auto 1rem;
  max-width: 16ch;
  background: linear-gradient(90deg, #cdd7ff, #b28bff 60%, #ff9ecb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  color: var(--muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.6;
}

/* Gates grid */
.gates {
  max-width: 1080px;
  width: 100%;
  margin: 2.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.6rem 1.5rem 1.75rem;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--card-border);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease,
    box-shadow 0.2s ease;
  backdrop-filter: blur(8px);
}

.gate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gate-color, var(--accent));
  opacity: 0.9;
}

.gate--os {
  --gate-color: #8b7cff;
}
.gate--penasihat {
  --gate-color: var(--penasihat);
}
.gate--whatsapp {
  --gate-color: var(--whatsapp);
}
.gate--ipo {
  --gate-color: var(--ipo);
}
.gate--video {
  --gate-color: var(--video);
}

.gate--video::before {
  background: linear-gradient(135deg, #7c9cff, #b28bff);
}

.gate:hover,
.gate:focus-visible {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--gate-color) 55%, transparent);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--gate-color) 65%, transparent);
  outline: none;
}

.gate__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  color: var(--gate-color);
  background: color-mix(in srgb, var(--gate-color) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--gate-color) 35%, transparent);
}

.gate__title {
  margin: 0.35rem 0 0;
  font-size: 1.35rem;
}

.gate__desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.97rem;
}

.gate__cta {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--gate-color);
}

.gate__cta svg {
  transition: transform 0.2s ease;
}

.gate:hover .gate__cta svg,
.gate:focus-visible .gate__cta svg {
  transform: translateX(4px);
}

.gate__badge {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--card-border);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.gate__badge--live {
  color: #0a0f1f;
  background: var(--ipo);
  border-color: transparent;
}

.gate__badge--os {
  color: #ffffff;
  background: #6d5efc;
  border-color: transparent;
}

.dasar {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem 2rem;
  text-align: left;
  line-height: 1.6;
}

.dasar h2 {
  margin: 1.6rem 0 0.4rem;
  font-size: 1.15rem;
}

.dasar p,
.dasar li {
  color: var(--muted);
}

.dasar a {
  color: var(--accent);
}

/* Footer */
.footer {
  margin-top: auto;
  padding: 3rem 1.5rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  color: var(--accent);
}

@media (min-width: 860px) {
  .gates {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
