:root {
  --fg-emerald: #0f8a78;
  --fg-deep: #063a34;
  --fg-gold: #d7bd67;
  --fg-gold-soft: #ead99b;
  --fg-gold-deep: #b89436;
  --fg-cream: #f5f7f3;
  --fg-ink: #111412;
  --fg-muted: #65716b;
  --fg-line: rgba(17, 20, 18, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--fg-ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(15, 138, 120, 0.08), transparent 32%),
    linear-gradient(180deg, #f6faf7, var(--fg-cream) 42%, #edf5f1);
  font-family: Manrope, Poppins, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.fg-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 58px);
  color: #fff;
  background: linear-gradient(180deg, rgba(6, 58, 52, 0.82), rgba(6, 58, 52, 0));
}

.fg-brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-weight: 900;
}

.fg-brand img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 10px;
}

.fg-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fg-video-hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 132px clamp(18px, 6vw, 82px) clamp(54px, 8vw, 90px);
  color: #fff;
  background: var(--fg-deep);
}

.fg-video-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.58));
}

.fg-video-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.12), transparent 24%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
    linear-gradient(135deg, rgba(6, 58, 52, 0.92), rgba(15, 138, 120, 0.76)),
    url("/assets/logo-koperasi.jpeg") right 8% center / min(390px, 44vw) no-repeat;
  transform: scale(1.08);
  animation: fg-cinematic 18s ease-in-out infinite alternate;
}

.fg-video-hero .fg-hero-content::after {
  content: "";
  position: absolute;
  left: -18px;
  right: auto;
  bottom: -24px;
  width: min(620px, 78vw);
  height: 8px;
  background: linear-gradient(90deg, var(--fg-gold-deep), var(--fg-gold-soft), transparent);
  border-radius: 999px;
}

.fg-hero-grid {
  position: absolute;
  inset: 18% 4% 9%;
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.9fr;
  gap: 14px;
  opacity: 0.18;
}

.fg-hero-grid span {
  display: flex;
  align-items: end;
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  font-weight: 900;
}

.fg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 960px;
}

.fg-eyebrow {
  margin: 0 0 16px;
  color: #f4df9a;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
strong {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  font-family: Poppins, Manrope, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
  line-height: 0.9;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4.4rem);
  line-height: 1;
}

h3 {
  margin: 0;
  font-size: 1.35rem;
}

.fg-hero-content p:last-of-type {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.12rem;
  line-height: 1.75;
}

.fg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.fg-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
}

.fg-button.primary {
  color: var(--fg-deep);
  background: linear-gradient(135deg, var(--fg-gold), var(--fg-gold-soft));
}

.fg-button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.fg-section {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0;
}

.fg-section-head {
  display: grid;
  gap: 12px;
  max-width: 880px;
  margin-bottom: 34px;
}

.fg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fg-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--fg-line);
  border-radius: 26px;
  box-shadow: 0 18px 48px rgba(6, 27, 20, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fg-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 68px rgba(6, 27, 20, 0.14);
}

.fg-card .icon {
  font-size: 2.4rem;
}

.fg-card p,
.fg-list li,
.fg-split p {
  color: var(--fg-muted);
  line-height: 1.7;
}

.fg-dark {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto clamp(40px, 6vw, 82px);
  padding: clamp(32px, 5vw, 64px);
  color: #fff;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.12), transparent 36%),
    linear-gradient(135deg, var(--fg-deep), var(--fg-emerald));
  border-radius: 32px;
}

.fg-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.fg-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fg-list li {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--fg-line);
  border-radius: 18px;
}

.fg-footer {
  width: min(1220px, calc(100% - 32px));
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 28px 0 44px;
  color: var(--fg-muted);
  border-top: 1px solid var(--fg-line);
  font-weight: 800;
}

@keyframes fg-cinematic {
  from {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
  to {
    transform: scale(1.13) translate3d(1.2%, 1%, 0);
  }
}

@media (max-width: 900px) {
  .fg-header,
  .fg-split {
    grid-template-columns: 1fr;
  }

  .fg-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .fg-nav a {
    flex: 0 0 auto;
  }

  .fg-grid {
    grid-template-columns: 1fr;
  }

  .fg-video-hero {
    min-height: 86vh;
  }

  .fg-hero-grid {
    grid-template-columns: 1fr;
    opacity: 0.2;
  }

  .fg-actions,
  .fg-footer {
    display: grid;
  }

  .fg-button {
    width: 100%;
  }
}
